**** BEGIN LOGGING AT Mon Aug 12 02:59:58 2013 Aug 12 03:01:31 ok so let the device push to the gcm, and I just consume it Aug 12 03:01:51 your service would send gcm messages that the device would consume Aug 12 03:01:55 let the device push small messages to the gcm queue and I just consume it Aug 12 03:02:21 what if I just need bits of messages only from the device Aug 12 03:02:34 in other words its a one way communication from the device and that is all? Aug 12 03:03:08 if you want to send data from device use any mechanism you feel like, maybe use volley to queue messages together if you wanted Aug 12 03:03:10 the message the device sends is less than 1k Aug 12 03:04:58 good idea Aug 12 03:06:19 so the device can queue messages and just broadcast back to my web service ever 5 minutes. and 5 minutes would not be noticeable/bothersome to the user Aug 12 03:06:21 got it Aug 12 03:09:40 hey guys, should i use LoaderManager or AsyncTask? Aug 12 03:10:40 depends on what you're doing... Aug 12 03:12:06 just running some webservice getting some json back Aug 12 03:12:35 i've never used loader before, kinda want to learn how to intergrate it into the architecture Aug 12 03:12:39 it's a new project Aug 12 03:13:39 while looking at the source code, they seem the same -_- just loader is built on top of async task Aug 12 03:17:37 nvm, let me just use it for the heck of it Aug 12 03:17:43 getting paid to do it anyway lol Aug 12 03:25:08 meetoman i like IntentService for networking Aug 12 03:42:26 g00s, i just got Loader working for the first time, duno whether i like it or not Aug 12 03:42:53 hey g00s, how do you make a background image scale to be cropinside? Aug 12 03:43:59 bg image - no idea Aug 12 03:44:16 it makes the height entire image Aug 12 03:44:30 that's the problem, i only want it as large as the content inside Aug 12 03:45:11 one way to set it is to setParams after the stuff it's loaded, that's probably what i have to do Aug 12 04:19:29 how do I change which textbox is selected at startup Aug 12 04:19:38 Im really just starting with android Aug 12 04:20:49 MDTech-us_MAN : you can call textView.requestFocus() on onCreate() or where appropriate Aug 12 04:21:11 is there something in the xml? Aug 12 04:23:28 you can: Aug 12 04:26:10 ok Aug 12 04:30:24 I'm creating a MenuItem in a fragment, once I go to other fragments it disappears until I rotate the device then it shows, even while on other fragments. Ideas on how to fix this? Aug 12 04:33:20 "hours.requestFocus();" gives error hours could not e resolved Aug 12 04:33:27 be* Aug 12 04:38:29 MDTech-us_MAN: http://developer.android.com/reference/android/view/View.html#requestFocus() Aug 12 04:38:35 api 1 Aug 12 05:48:05 kjeldahl there by any chance ? Aug 12 05:58:31 ugh, for some reason I can't get the ADB driver to load on my Windows 7 machine, right now it feels like I'm just facerolling to try and make it work, I've tried Google's driver, Samsung drivers, and ClockWorkMod's driver pack x.x Aug 12 06:00:18 is the device even detected ? Aug 12 06:00:27 you have that verified right ? Aug 12 06:13:48 hi, where can I find an example of a control widget ? Aug 12 06:23:05 control widget? Aug 12 06:31:04 mind control widget!! Aug 12 06:52:42 bubbleguuum: heh. I think I'd end up using a native web server with that kind of stuff :D Aug 12 06:54:49 Yes. Aug 12 06:55:20 p_l lol, that was like 6 hours ago :D Aug 12 06:55:36 g00s: I had to sleep :) Aug 12 06:56:12 g00s: not to mention, this is IRC Aug 12 06:56:21 the answers might come 3 days later :> Aug 12 06:56:28 here, ya Aug 12 07:01:03 g00s: Now I am! Aug 12 07:03:23 kjeldahl hey! by any chance, do you have the code on github for the gradle plugin you wrote which depends on the android plugin ? Aug 12 07:05:29 groovy is easy, gradle even seem kinda easy, but working with the android plugin - ugh Aug 12 07:05:44 g00s: Wish I did. I have parts of a kawa plugin that works with the java plugin, but when I learned that the Android plugin is incompatible with the java plugin, I gave up and moved on. Aug 12 07:05:56 oh! Aug 12 07:06:25 hm. kinda lame groovy doesn't even have an irc channel Aug 12 07:06:33 Yeah, it's ridiculous (the Android plugin...). Aug 12 07:06:43 thats one indicator that a language is lamesauce Aug 12 07:07:17 But #gradle exists, isn't that what you need? I've seen you on there, so I know you already know... Aug 12 07:07:18 then i went to go add the groovy plugin to eclipse, and it wanted to patch the jdt compiler Aug 12 07:07:26 i was like, ugh, what Aug 12 07:07:38 kjeldahl yeah, #gradle Aug 12 07:08:01 which is pretty quiet too Aug 12 07:08:38 #gradle isn't any kind of official channel Aug 12 07:08:48 Based on the little research I did into the subject, I believe pfn is probably the most qualified person to ask about Android specific building. At least he is pulling things out of the Android gradle plugin and reusing it in his Scala SBT plugin. Aug 12 07:08:51 seems like the codehaus guys used to run their own irc server Aug 12 07:08:56 (or maybe still do) Aug 12 07:09:03 don't use Eclipse and everything becomes 10x easier Aug 12 07:09:25 i'm going to try the groovy plugin in #intellij Aug 12 07:10:31 g00s: For Android? There's too much "magic" going on with Android (well, magic as in undocumented, not that hard once you figure it out), so regular plugins isn't going to cut it IMHO. Aug 12 07:11:21 As long as I keep mixed language projects out of the build system, using Emacs with gradle for building, or basically ANYTHING plus gradle for building, should be quite fine. Aug 12 07:11:43 i was going to try eclim :| Aug 12 07:12:08 Use whatever editor tool/environment you are comfortable with and leave the building stuff to gradle. Aug 12 07:12:13 i saw there was an eclim-emacs or something Aug 12 07:12:48 Personally, I've had better luck with emacs plus specialized plugins than with tools trying to make emacs into an ide. Aug 12 07:12:52 kjeldahl have you seen that? maybe its better to run eclipse headless and just have emacs give te heavy work to it Aug 12 07:13:29 g00s: I've briefly read about it. But Eclipse is too much magic for me to trust it. Even for straight up java stuff I never quite trusted it. Aug 12 07:14:12 probably too much a pita Aug 12 07:14:27 i used to want to do everything in emacs, linux was the ide Aug 12 07:14:38 i guess now its better to be in a real ide for most things Aug 12 07:14:49 I was on a team which used Maven for building, and they had issues with their build scripts. They didn't care, as Eclipse mostly worked around it, and when it didn't (and they catched it), Clean->Rebuild was fine. That's a time bomb if you ask me. Aug 12 07:15:40 It's not that I have to use Emacs. I used AS until I figured most of the Android stuff out, and then moved on. Aug 12 07:19:08 actually, unlike a lot of these shitty vim/emacs plugins, emacs-eclim looks pretty well maintained Aug 12 07:19:29 p_l have you by any chance looked at it ? Aug 12 07:21:39 I think once Aug 12 07:22:06 cool little writeup here http://www.skybert.net/emacs/java/ Aug 12 07:24:45 Zharf: button on a widget, acting as a ToggleButton Aug 12 07:25:07 g00s: Looks nice. Aug 12 07:25:51 nam3l3zz, so when it's pressed you change graphics? :) Aug 12 07:25:56 shouldn't that be like really easy Aug 12 07:26:21 Zharf: you are right, i was thinking if there's any pre-done stuff Aug 12 07:27:08 also I'm guessing you're talking about appwidgets? Aug 12 07:30:34 Zharf: i'd say so, the ones, that go on the homescreen Aug 12 07:32:27 ok then I don't know if there's anything ready to use Aug 12 07:33:03 Hi all, How can i change the theme on one view? (Spinner holo dark) Aug 12 07:34:14 Zharf: thnx anyhow Aug 12 07:34:26 FrancescoV: http://developer.android.com/guide/topics/ui/themes.html Aug 12 07:56:23 If you use the picasso lib for downloading and caching images, what's about the dependency on this page? https://github.com/square/picasso Aug 12 07:56:29 do you have to add it somewhere? Aug 12 07:57:46 because I can't find the UrlConnectionDownloader class in the jar I have added Aug 12 08:15:41 Can anyone point to the actual bugreport or commit that fixes or anything more technical about the alleged bitcoin related securerandom issue ? Aug 12 08:15:58 I have not yet found one in any of the posts discussing the topic... Aug 12 08:21:56 I've downloaded the latest jar file of picasso but how is it that I can't import some classes? Aug 12 08:22:46 Some classes are in the zip but not in the jar Aug 12 08:30:57 Hi guys Aug 12 08:31:45 I've a question about focus on Option menu in a my small app on Android 4.2. Can I ask you some hints? Aug 12 08:37:29 * lut4rp stretches Aug 12 08:43:10 Someone know because in touchmode (I opened keyboard programmatically) every time I press a key, the item of option menu focus? There is some workaround?THanks Aug 12 08:45:38 this a good place to ask dev questions from a beginner? Aug 12 08:45:45 sometimes Aug 12 08:47:39 alright, im trying to modify some open source to learn a little … it's frontlinesms-android .. There's a class Keyword.java that is an Activity and in onCreate() there's a line: if (getIntent()!=null) { … } Aug 12 08:50:35 Is this checking to see if there's some previously saved state? Here's the method- http://pastebin.com/XpViSnFW Aug 12 08:54:46 Someone know because in touchmode (I opened keyboard programmatically) every time I press a key the item of option menu focus? There is some workaround to avoid this?THanks Aug 12 09:02:52 Did my question come through? Aug 12 09:03:33 marrrk: no Aug 12 09:03:45 Okay so here it is again: I was thinking of making some kind of a list view bar chart hybrid by having a list view with the background colour filling up to value/maxValue * listWidth. Can I modify a background drawable like this programmatically? Aug 12 09:04:02 you know if you repackage using appt with a new package name, the old one still shows up in logcat if you look carefully, any way to change that without refactoring everything? Aug 12 09:04:59 marrrk, yes. Aug 12 09:05:15 Gut Aug 12 09:08:58 annoying that u can get rid of this Aug 12 09:09:29 ugh, for some reason I can't get the ADB driver to load on my Windows 7 machine, right now it feels like I'm just facerolling to try and make it work, I've tried Google's driver, Samsung drivers, and ClockWorkMod's driver pack, yes the device is recognized in general but is an unknown device Aug 12 09:10:13 marrrk, basically, you create a bitmap, use Canvas to draw on it and then set it as background Aug 12 09:10:22 marrrk, performance isn't gonna be that good though Aug 12 09:10:39 Datalink did u install the usb drivers for the device? did you try unpluggin replugging usb? did u got into application->development-> and toggle usb debugging? did u reboot phone? did you run adb kill-server and re-try? did u kill eclipse and re-try etc, do you have anything like bluestacks running that will interfere? Aug 12 09:10:39 That doesn't seem right. How about a gradient? Aug 12 09:11:32 yes to everything up to eclipse due to the fact I'm doing an Adobe Air app right now, I am not running bluestack Aug 12 09:13:58 marrrk, what doesn't seem right_ Aug 12 09:13:59 ? Aug 12 09:14:32 Well it is right, but I'm worried about performance as well. Aug 12 09:17:50 i am starting to love scala Aug 12 09:17:51 hehe Aug 12 09:18:02 now .. if only i can get my company to start using scala for our project Aug 12 09:21:31 always hated it, but i should look at it more Aug 12 09:22:02 What's there to hate? Aug 12 09:22:36 hello in here Aug 12 09:22:37 all rigght ? Aug 12 09:23:41 i have a interesting question and i already googled, so I ended up to ask in here. It is about "dynamic ui generation"..... may I post the question ? Aug 12 09:25:09 post away Aug 12 09:25:23 u cant win tats lotto if u dont buy a ticket Aug 12 09:27:23 so, i read about " it is not possible to create activities at runtime" , the android model does not allow this due to the design time designed manifest. My requirement is to create N activities at runtime. Are fragments an useful workaround for this ? Aug 12 09:28:47 That's quite a lot of activities. Aug 12 09:29:34 they are insinde a database , meaning, i deal with metadata to create ui at runtime..... Aug 12 09:30:23 with "parent form" and child elements....... ( referring to the c# names ) ...... and i need to enable such thing in android..... Aug 12 09:30:27 I guess they aren't all that different and you could just define one activity in the manifest which then looks different depending on what's coming from the db Aug 12 09:30:44 You can generate views from that. Aug 12 09:30:55 views upon ONE activity ? Aug 12 09:31:24 so the views could be, as my runtime generated forms in .net, the parent containers ? Aug 12 09:31:40 ??? Aug 12 09:32:32 you can start N copies of the same activity, each one different, you just can't create a new type of activity at runtime Aug 12 09:32:43 as in, redefine the functionality of it Aug 12 09:33:26 so your first activity, as defined in the manifest, can start the new activities, passing state data to each Aug 12 09:33:56 i read about that, that activities at runtime are not possible.... therefore i need to know,whichz approach is recommended to still meet my requirements Aug 12 09:34:23 can i somehow distinguish the copies of the original activity ? Aug 12 09:34:35 by name ? Aug 12 09:35:14 you could just keep weak references to each in the application that they're all part of, as part of a lookup table if you wanted ease of identification Aug 12 09:35:46 so you start one, give it the metadata to build it's ui, then pass a reference to the application, and an id, and it sticks that in a hashtable or sparsearray if you're using ints Aug 12 09:35:55 that's how I'd start anyway, and tweak from there Aug 12 09:37:02 and put something in onDestroy to tell the application to remove that activity from the table too Aug 12 09:38:03 well, there's lots you'd have to do lifecycle related, but like I said, that's the starting concept I'd suggest Aug 12 09:38:25 and all the copies are handled seperately ( none is reference to original ) ??? I would also Do it like dictionary, or hashtable to keep track of all of them, but it shold stay in hashtable, for lifetime defined in the metadata.... Aug 12 09:39:37 zulaxia, my battery is running out. which time Do You have now ? Aug 12 09:40:17 I'm using google maps inside my fragment but there's a black box flicking under the google map, how can i fix this? Aug 12 09:40:59 i would say, i will read about views. And i will return in here to check if my approaches are right. Aug 12 09:41:02 thx very much, see ya next time. Your hint is very helpful. Aug 12 09:42:24 anyone here using genymotion? Aug 12 09:45:56 skullcrasher yeh been using it a bit Aug 12 09:47:14 how can i add my custom devices? Aug 12 09:47:27 not sure, been using the cloud ones Aug 12 09:47:40 i need version 4.0.3 but in their cloud there are only 4.1 and above :/ Aug 12 09:50:59 Mavrik: So, I'm back at the Bitmap solution. No other ideas? Aug 12 09:59:29 Someone know because in touchmode (I opened keyboard programmatically) every time I press a key the item of option menu focus? There is some workaround to avoid this?THanks Aug 12 10:31:59 Does anyone know if the Google Play App State API actually requires a game set up as per all the bits actually labelled Google Play Game. The docs and naming are confusing me. It seems useful to non games, but then lots suggests it requires the game type configuration Aug 12 10:35:02 how to apply border to the layout, used by a widget in the homescreen ? Aug 12 11:12:04 marrrk, what other ideas? Aug 12 11:12:10 that's what the OS does no matter what you do. Aug 12 11:12:18 I got it with a gradient now. Aug 12 11:25:26 is viewpagerindicator still necessary if one wants to indicate which fragment you are on? As in play store Aug 12 11:41:27 Is there anyway to force an android tablet / phone to connect to wifi when it detects it? if i have it locked it doesnt connect, but when i unlock it does Aug 12 11:41:31 and then it stays connected Aug 12 11:41:44 i need it for an app for syncing on detection of wifi Aug 12 11:41:46 Bear10: you can change the mode in the extended wireless prefs Aug 12 11:41:52 ahh Aug 12 11:41:57 Bear10: but not programmatically, AFAIK Aug 12 11:42:30 Ge0rG, so from the settings screen in the phone / tablet? Aug 12 11:42:56 use wifi in suspension mode always on right? Aug 12 11:43:49 do any of you use edittexts in list views? Aug 12 11:47:10 Google's documentation for setting up a GCM Server; "read the source". Great... Aug 12 11:49:04 .. in java even. O_o Aug 12 11:51:36 O.o Aug 12 11:51:41 what are you talking about_ Aug 12 11:51:43 ? Aug 12 11:53:37 kjeldahl: it's really super easy Aug 12 11:53:43 I'm writing a server relaying messaging between clients and itself using GCM. Aug 12 11:53:54 Yeah, the node.js examples are 20 lines. Aug 12 11:55:01 Google's own example - which they refer to as "how to do it" - consist of a java project with 2.5k code lines. Incredible. Aug 12 11:55:18 Without even trying to explain the underlying mechanisms. Aug 12 11:56:33 But maybe I'm just having a bad day. Aug 12 11:58:39 I often have bad days when I find examples like that and no more Aug 12 11:59:09 And I'm about to implement GCM, so good omen there ;) Aug 12 12:00:30 Yeah, you have something to look forward to. Bring LOTS of coffee. Aug 12 12:01:06 Trying to work out if App State API works fine on its own atm. Same kind of issue, half the docs suggest it's not just for games, but then everything redirects to the play games dev minisite Aug 12 12:01:12 Here's how easy it is: http://developer.android.com/google/gcm/server.html#gcm-setup See? Selv explanatory... Aug 12 12:01:38 Well, this one actually: http://developer.android.com/google/gcm/server.html#server-setup Aug 12 12:01:42 I've briefly looked before and put it on the "maybe on a better day" pile Aug 12 12:03:29 I generally find such things suddenly make sense.. A year later Aug 12 12:03:58 .. until the APIs change, and you realize you've forgotten everything already! ;-) Aug 12 12:04:48 Indeed Aug 12 12:05:17 "that's fine, I did it before, right? I'll just.. Um.. Oh" Aug 12 12:05:52 dude you just need to make a simple REST post Aug 12 12:06:02 I do that on a yearly basis with GWT ;) Aug 12 12:06:46 grab a coffee and take a time off if you think you need 2.5k LOC in Java to make a POST request on google GCM servers :P Aug 12 12:07:21 it takes about 10 lines of code in java to do it using java.net.URL Aug 12 12:07:42 Mavrik: That statement carries a lot of assumptions. IF you have a client that IS authenticated with GCM, sure. Now add web apps, your own GCM/CCS servers and browser extensions into the mix. Aug 12 12:08:23 but you're linking docs about server setup Aug 12 12:08:34 if you want to push to clients you need a push request with proper API key in header Aug 12 12:08:45 unless you want two-way XMPP communication Aug 12 12:08:52 why are you talking about clients? Aug 12 12:12:02 I was talking about lack of documentation on the server side setup, and sent you the links to the docs, which just points to a java repo. Aug 12 12:12:48 But that's fine, I'll figure it out, together with the oauth2 stuff all of this depends upon. Nearly there already. Aug 12 12:13:28 If all you do is piggyback on the GCM stuff running on pre-authenticated Android devices, then I agree, it's a lot easier... Aug 12 12:15:34 I'm leaning towards using Endpoints for my current needs. Hopefully it'll cope with long term needs too. Aug 12 12:16:13 I'm at my least favourite "pick what you think is the right way" part of adding new features Aug 12 12:16:46 ok Aug 12 12:16:56 kjeldahl, I think you're looking at wrong docs though still :) Aug 12 12:17:01 or you're just bad at explaining the issue :) Aug 12 12:17:49 I'm always bad at exlaining stuff I haven't figured out yet! You may be right, that I'm overstating. Like I said, bad day... Aug 12 12:18:35 Sounds like kjeldahl is where I normally am with new big "Google documented" things. So fed up he can't even work out which bit to rant about Aug 12 12:19:16 It's often me just missing something, though that something is also generally not made obvious Aug 12 12:21:55 yeah, Google documentation tends to really suck Aug 12 12:22:07 especially when you go slightly further than basic use cases Aug 12 12:25:35 Or, occasionally, if you don't even need their typical case. Like back when I first did a list activity years ago and wasn't doing it from a query. Working out extending the base class was vile before tutorials appeared Aug 12 12:26:27 does anyone here have experience in developing sim toolkit applications for android devices? Aug 12 12:29:58 Ge0rG: Not much; I've done some reversing and security audits of it (the Android parts of it, not the stuff on the SIM), so I know a little bit, but not much. But you could try. Aug 12 12:30:29 (asking your question I mean) Aug 12 12:34:21 kjeldahl: I wonder how expensive it would be to roll out an stk app to one of the large telcos, actually Aug 12 12:36:23 Ge0rG: Well, as long as the handset comes bundled with STK Toolkit (most do), there is "zero" cost on the Android side of things. Aug 12 12:37:07 BUT, you need a SIM toolkit to develop the app and a server that the app running on the SIM can talk to (through the operator, this all happens inside the "baseband" stuff on the phone using SMS-type messaging). Aug 12 12:37:27 Eh, a SIM Developer Toolkit (SIM cards, an OS and programming tools) Aug 12 12:38:15 Messages from the app running on the SIM get routed through the phone operator (SMS to/from phones), which then typically push it to IP to an application server, which responds and returns the message the same way back. Aug 12 12:38:49 The Android part of it is just "show user SOMETEXT", "show user SOMETEXT+BUTTON" or even "show user SOMETEXT+BUTTON+GETAPINCODE". Aug 12 12:39:11 Which is implemented in the sim toolkit, talking to the phone services on the phone with broadcasts. Aug 12 12:39:23 kjeldahl: is it possible to integrate the "SOMETEXT" aspect into your own android app? Aug 12 12:40:04 Ge0rG: Doubt it, I think it's a system service of some kind, so you can not pick it up. But I'm not 100% certain. Aug 12 12:41:25 kjeldahl: ok, thanks Aug 12 12:51:19 Anyway, here's the manifest of the user facing Stk support in Android: https://gist.github.com/mariusk/6210523 . I think it requires special phone access. But if it's possible to latch onto the android.intent.action.stk.command intent, and your are able to get hold of things like com.android.internal.telephony.cat.CatService.getInstance() it should work. Aug 12 12:51:58 No idea if that's possible though. Aug 12 12:58:11 In https://github.com/playgameservices/android-samples#if-youre-using-eclipse , it says "Import the Google Play Services library project "? How should I import it? Aug 12 12:58:33 I'm not able to locate any JAR file corresponding to Google Play Services Aug 12 12:59:50 can somebody tell me what happens to SharedPreference values if the user doesnt open settings? can I still access the default applied settings? Aug 12 13:00:37 s33k: it wil be included if you add the Android library project /extra/google/extras/google/google_play_services/libproject/google-play-services_lib to your project Aug 12 13:03:13 JakeWharton: in my dex 64K limit adventures, with the help of jarjar, I could successfully reduce google-play-services.jar from 6K funcs to 300 funcs (using it only to access Google Drive). Aug 12 13:10:21 s33k: It's both a jar and resources, and the resources need to be merged with the resources in your app. Which is why it's more complex than just a jar. Eclipse has a GUI for doing it, not sure if the one in AS is active (but you can do it in your build.gradle file if not). Aug 12 13:10:35 s33k: Eh, both CODE and resources I meant. Aug 12 13:11:53 Someone know because in touchmode (I opened keyboard programmatically) every time I press a key the item of option menu focus? There is some workaround to avoid this?THanks Aug 12 13:12:29 bubbleguuum: kjeldahl: I went to "Properties->Java Build Path->Libraries->Add External Class Folder" and added google-play-services_lib from the path bubbleguuum told earlier Aug 12 13:13:03 But it doesn't seem like google play services has been linked correctly Aug 12 13:13:31 When I try to build, I get an error saying `BaseGameActivity cannot be resolved to a type` Aug 12 13:13:34 you must add google-play-services_lib as an Android project in Eclipse, then in your project using it add it as an Android Library Aug 12 13:14:22 s33k: This has all the info, make sure you follow/verify each step: http://developer.android.com/google/play-services/setup.html Aug 12 13:15:04 Any of you know if the app state part can be used with a plain api oauth key, etc, or does it need all the game setup done too? I want to use it for a non game app if possible Aug 12 13:15:44 But halfway the docs just point to the play games minisite with no actual further specific information Aug 12 13:16:22 I'm mainly being confused by the fact it doesn't have Game in the Api name or description tbh Aug 12 13:20:53 is there such a thing as onlayoutshow ? Aug 12 13:22:45 in cases when an app is shown in the foreground Aug 12 13:26:38 You just watch for window attach Aug 12 13:26:45 I think ;) Aug 12 13:26:58 I do it lots, but am on phone away from code Aug 12 13:29:37 OnWindowFocusChange Aug 12 13:30:04 With proper case obviously Aug 12 13:38:44 zulaxia: thnx! Aug 12 13:39:32 Np :) Aug 12 13:39:43 another one, how do alter state of a togglebutton in the main activity from inside an appwidgetprovider class Aug 12 13:40:03 findViewById is not there Aug 12 13:40:54 You'd have to somehow message the main activity and it deal with it when it comes back in focus. Been a long while Aug 12 13:41:24 I last did a widget when 2.2 was too new to be normal ;) Aug 12 13:41:52 I'm using actionbar actions for calling/ emailing a person inside my app. I'm creating this with the menu. The first time I open a fragment (for customerA), the menu isn't visible, but if i open another (2nd/3rd time) the menu is visible, does somebody know the solution for this? Aug 12 13:42:16 (the call/email is inside the 3 dots) Aug 12 13:42:17 If your activity can access the widget, you'd be better looking it up that way round perhaps Aug 12 13:43:15 Code free brainstorming I hasten to add, can't say for sure what will work Aug 12 13:44:09 zulaxia: thnx anyhow Aug 12 13:51:46 i am trying to create preferences activity using eclipse via file>new>android activity... but Finish button is inactive, what could be the case ? Aug 12 13:52:38 *minsdk - 9 Aug 12 13:54:33 not too sure Aug 12 13:54:40 but what you can do is just add a new class Aug 12 13:54:51 and then extends PreferencesActivity Aug 12 13:55:08 may do that, thanx Aug 12 13:55:10 public class MainPreferences extends PreferenceActivity Aug 12 13:55:12 It's nearly all in xml anyway Aug 12 13:55:15 that is pretty simple Aug 12 13:55:51 and you can do this .. since you cant user PreferenceFragments .. you can use addPreferencesFromResource(R.xml.preferences_main); Aug 12 13:55:57 but that is deprecated Aug 12 13:56:16 unfortunately the support libraries dont support preferenceFragamentActivities Aug 12 13:56:30 hope that helps Aug 12 13:59:05 FrancescoV: what you can do is in your fragements do a invalidateOptionsMenu Aug 12 13:59:16 that will force a re-render Aug 12 13:59:27 and make sure you have set hasOptionsMenu(true) Aug 12 13:59:45 then your fragment with have onOptionsMenuCreated() Aug 12 13:59:50 well it has it anyway Aug 12 14:00:24 but you can put the code in there to render your actionbar the way you want to render it for that fragment Aug 12 14:00:53 call the invalidateOptionsMenu in the onResume() Aug 12 14:03:37 unfortunately fornax i have not done proguard with gradle and i dont use android studio i run eclipse Aug 12 14:04:14 but i am sure others have Aug 12 14:04:18 lemonxah: still not working.. Aug 12 14:04:58 FrancescoV: make sure they are set to always display not just ifRoom Aug 12 14:05:11 else it might only ever be in the 3 dots menu Aug 12 14:05:21 Hi, Im trying to get proguard with gradle under Android Studio working but have no idea how to do. Can someone give me some advice? Aug 12 14:05:23 oké but how can you put 2 items in the overlay menu (3 dots) and one always visible? Aug 12 14:05:32 ok like this Aug 12 14:05:59 android:showAsAction="never" for the ones to not be in the bar Aug 12 14:06:10 and android:showAsAction="always" for the one that should always be visible Aug 12 14:06:14 lemonxah: did you ever use gradle? it would be nice to have the script first and can try to integrate it in a further step Aug 12 14:06:20 that is int he of the menu.xml Aug 12 14:06:56 fornax: sry i haven't played with gradle yet .. someone else on my team setup the gradle scripts i will ask them if they can spare a few minutes Aug 12 14:07:43 with "never" they are under the physical menu button on the device, 2nd time open fragment --> under 3 dots (that's what i want) Aug 12 14:08:38 hmm i would have to look at your code could you plz pastebin it Aug 12 14:08:51 I use gradle with proguard, but not studio Aug 12 14:08:59 So depends where the problem actually is Aug 12 14:09:08 Hi folks, i'm using rajawali in order to load an 3d obj file in a opengl scene. The parsing is done well, but my object is never drawn and I get warnings like this: Adreno200-ES20(21645): : GL_INVALID_OPERATION Aug 12 14:09:19 Any hints where it could come from? Aug 12 14:10:54 lemonxah: it works: i made a dropdown menu of it Aug 12 14:12:42 FrancescoV: i am glad Aug 12 14:13:03 zulaxia: I always get the message "Could not find method runProguard() for arguments [true] on ProductFlavorDsl_Decorated" when I enable pro guard such as in the link http://stackoverflow.com/questions/17647978/android-studio-proguard-does-not-appear-to-run Aug 12 14:13:58 Have you run a gradle clean? Aug 12 14:14:27 It could just be failing to create the task Aug 12 14:15:01 What's your line to enable proguard? Aug 12 14:15:24 zulaxia: when I run gradlew clean he says that my AndroidManifest.xml is missing, I try to fix this first… Aug 12 14:15:48 zulaxia: i have the lines from the link on stackoverflow Aug 12 14:17:03 Pasted from mine: Aug 12 14:17:10 zulaxia: have to go to a telco an will be back in a few minutes, sorry Aug 12 14:17:16 release { runProguard true proguardFile '/var/opt/eclipse/android_workspace/proguard-android.txt' proguardFile '/var/opt/eclipse/android_workspace/proguard-nodebuglog.txt' Aug 12 14:17:20 K Aug 12 14:17:29 Oh, removed my end of lines, fun Aug 12 14:35:20 Is it not possible to use ActionBarAction with showAsAction="ifRoom" with a custom ActionBar-Layout? My actions are always hidden... Aug 12 14:35:24 Is it not possible to use ActionBarAction with showAsAction="ifRoom" with a custom ActionBar-Layout? My actions are always hidden... Aug 12 14:35:35 sorry. Aug 12 14:39:06 zulaxia: re. Is there a good example somewhere for a gradle build file for android? Aug 12 14:41:21 I had one thought. What version of the android gradle plug in does your build file request? Aug 12 14:41:35 Proguard didn't work in early versions Aug 12 14:44:58 Much as I fear publicly showing my things, here's a link to mine, since all sensitive stuff is stored elsewhere.. Aug 12 14:45:04 https://www.dropbox.com/s/ecsh8geysyx6la4/build.gradle Aug 12 14:45:39 Since I know for sure it works, it seems safest to link that rather than something else Aug 12 14:46:01 zulaxia: The strange thing is that android studio says that the gradle version is too old (<1.6) but it is ticked that it should use the wrapper. when i execute the script with gradlew manually it says the version is Gradle 1.7 Aug 12 14:47:00 zulaxia: thank you, that file looks good, i will try to use this a s template Aug 12 14:47:34 Obviously some is irrelevant to you, but the core bits should be usable examples Aug 12 14:48:41 Whats the easiest way to open an xml file and change the value of a node? Aug 12 14:48:42 zulaxia: it is good to know that there is a working example where i can start with, when you say pro guard is working I will try to find out why Android studio tries to use an old version instead of the wrapper, normally it should autoupdate gradle when i understand this correctly Aug 12 14:50:12 Fornax: you also have the plus that I'm not really relying on defaults, most things are specified, so you get to be sure you're pointing to your files rather than hoping you got it in the right default location Aug 12 14:51:04 zulaxia: I have ha dthe hope that there is a ready to use script when i start with android studio but there seems to be much to do. first it was not able to use source level 1.7, then the build tools version has been increased and did not work, now pro guard has problems... Aug 12 14:51:35 zulaxia: yes, thanks, the file looks promising Aug 12 14:52:05 The gradle tools are awesome, but a little hard at first. Once it's working it's totally worth it though Aug 12 14:52:29 Especially for multiple flavours Aug 12 14:53:40 zulaxia: These are the usual first obstacles, I used ant before for extremely large projects with plug ins and externs etc, now it is the time to go forward and i think gradle is the correct way. distributed builds will become interesting Aug 12 14:54:34 Actually, I recall seeing a mention that studio doesn't support flavours at the moment, but I don't use it, so that's a vague memory at best Aug 12 15:04:47 I have a Fragment that contains a google map fragment , the map fragment is inside a scrollview. If i scroll down, the begin position of the google map is flickering black, does somebody know a good solution for that? Aug 12 15:05:12 downgrade google maps :P Aug 12 15:06:56 and now the good solution :p Aug 12 15:07:22 it only happens on my tablet, the phone works fine Aug 12 15:07:40 i've had some pretty terrible drawing issues w/ the new Maps, i wasn't actually joking :/ Aug 12 15:07:49 Does anyone has any experience with Android Studio? For some reason; my .iml files do not get saved when using Git submodules. Aug 12 15:08:15 everything from not flipping the buffers at the right time to black screens to rebooting the phone (different devices) Aug 12 15:08:22 Android Studio doesn't recognise my JDK even though JAVA_HOME and PATH both point to the JDK... Aug 12 15:21:22 after adjustPan is there an easy way to find out how much the view has been panned? Aug 12 15:27:05 hi, does someone know why ConnectivityService keep doing every 5 min a Captive portal check NetworkInfo on Wifi ? Aug 12 15:30:40 probably it's associated to a wifi network and can't ping the external test servers Aug 12 15:30:49 so it's trying to do so Aug 12 15:36:15 hi Aug 12 15:36:23 how can I check what kind of filters application has on google play market? Aug 12 15:36:52 it is not available for one of my devices Aug 12 15:36:56 I have a ItemDetailFragment that contains a MapFragment, then i can start a scannerFragment in my master/Detail layout to scan a QR code that is linked to an item. After scanning, another ItemDetailFragment is showing up but now i get an error for duplicate ID from my mapfragment, what's the best solution for that? Aug 12 15:43:02 Can i find a fragment from the fragmentmanager that is added in xml? Aug 12 15:43:41 I wonder if anyone is able to help with this error that has had me stumped for over 2 days now, I am having an InflateException with ActionBarSherlock with an incredibly cryptic message, it only happens on Android versions <4 as well, here is the pastebin: http://pastebin.com/00czG7Tx Aug 12 15:44:14 Someone know because in touchmode (I opened keyboard programmatically) every time I press a key the item of option menu focus? There is some workaround to avoid this?THanks Aug 12 15:49:03 zyngawow: Which jdk do you mean, the one which is used to start Android Studio or the one for the project? Aug 12 15:49:20 fornax, for installation Aug 12 15:49:57 zyngagow: This means you cannot install Android Studio at all? Which system? Aug 12 15:51:28 fornax, yes. Windows 7 64 bits. It happened last time, and then I just set the environment variables and it worked. I formatted and now it just doesnt work Aug 12 15:52:40 zulaxia: Regarding Play Services, yes I have. I'm using the AccountPicker and login services (with profile access). Aug 12 15:53:11 zyngagow: since this is only the installation jdk you could simply tory to install a java 7 ire from the java website. I'm Mac User but I know that this always worked for windows. The JRE will automatically add it to the path and Android Studio itself should be able to use the JDK of your choice Aug 12 15:54:02 Now if anybody wants to clue me in on the differences between a "channel id" and "registration id", and how to get a registration id from a channel id with GCM, now is a good time! Aug 12 15:54:27 with adjustPan is it possible to figure out how much the view has panned? Aug 12 15:54:45 peter pannnnning Aug 12 15:58:48 fornax, still doesnt work Aug 12 15:58:56 Does anyone here use the app state api? Aug 12 15:58:57 dragorn, it's not related to that I'm sure, I did a heartbeat of 1min to google server to keep sure it have the connection. Aug 12 16:00:02 And: JAVA_HOME="C:\Program Files\Java\jdk1.7.0_25\", PATH=%JAVA_HOME%\bin; Aug 12 16:00:34 i've got an app in the beta testing program and a user reported that they kept getting the production version of my app. will the app auto update to the testing version or is something else missing? Aug 12 16:00:49 zygawow: Unfortunaly I cannot debug the problem since I have no Windows here. Did you make a restart? Is java and javac in your path so that you can start it from the cmd? Aug 12 16:00:59 and they are enrolled in the beta program Aug 12 16:01:14 alexfu: They need to use the beta download link, assuming you also already have a prod version out. Aug 12 16:02:07 I wonder if anyone is able to help with this error that has had me stumped for over 2 days now, I am having an InflateException with ActionBarSherlock with an incredibly cryptic message, it only happens on Android versions <4 as well, here is the pastebin: http://pastebin.com/00czG7Tx Aug 12 16:03:13 fornax, yep, both are in path. I'll try restarting Aug 12 16:03:32 kjeldahl, i did send them the testing link... I tried it myself and it brings to the page to opt in. once I opted in, i click the link to "Download xxx from the Play Store" and it downloads the production version. Aug 12 16:03:55 Is the beta a higher number? To check the obvious Aug 12 16:04:02 My beta is rolling out fine Aug 12 16:04:33 zulaxia, yeah, beta is a much higher number Aug 12 16:05:16 alexfu: I remember the link used to say "download beta version" or something, but it's been a while. You could try the signup link again and see if it returns a different page or links after you've actually signed up. Aug 12 16:05:25 K. Can't help more then. The downside when things work out guess ;) Aug 12 16:06:31 I've had beta testers state they wish they could have the production still, so I know it's not down to how you download it. Once their account is in for beta, they should just get the highest release number but now including beta Aug 12 16:06:57 Oh. Another sanity check, your beta doesn't say draft right? Aug 12 16:08:13 zulaxia, no. Aug 12 16:09:39 Well, at least I indirectly answered the "does it autoupdate" bit ;) Aug 12 16:10:10 fornax, rebooted, nothing Aug 12 16:11:30 the minSDK on my production version is lower than the one in my beta version.. could that have anything to do with it? Aug 12 16:13:14 and for some reason, it says "Supported Android devices: 0 devices" when i look at the details of my beta version Aug 12 16:14:07 right, then something you set is filtering out all devices Aug 12 16:14:22 I've done accidental stuff like that before, primarily involving things like faketouch Aug 12 16:15:16 zulaxia, a setting in developer console? or elsewhere? Aug 12 16:15:28 manifest Aug 12 16:15:43 have you changed any uses-feature or anything for your beta? Aug 12 16:16:35 zulaxia, it uses same features as the production Aug 12 16:16:42 Is there a way to debug attribute values after building? Aug 12 16:16:59 zulaxia, i have 1 uses-feature and it's android.hardware.CAMERA Aug 12 16:17:36 I'd try dropping the minSDK to match and upload, just as a test Aug 12 16:17:43 something like that needs ruled out Aug 12 16:17:54 even if you actually *need* it higher, I'd test it Aug 12 16:18:09 is there any way to fix this compiler warning? http://www.fpaste.org/31539/37632417/ Aug 12 16:20:19 here is the code around it, http://www.fpaste.org/31540/24403137/ Aug 12 16:21:10 Arrays.asList(name, id, table); Aug 12 16:21:35 won't fix the warning, but saves two lines of code Aug 12 16:21:40 three actually Aug 12 16:21:50 the 3 .add lines... Aug 12 16:24:04 Why doesn't Android Studio recognise my JDK even though the JAVA_HOME and PATH point to it? Aug 12 16:24:46 any way to get the amount a view was panned for the soft keyboard with adjustPan ? Aug 12 16:26:19 zulaxia, event matching the minSDK, had no effect Aug 12 16:26:55 I assume production lists a decent amount of devices with the same manifest? Aug 12 16:27:45 zulaxia, 3337 Aug 12 16:28:09 very odd. mine only shows 0 when I've not actually uploaded an apk ;) Aug 12 16:28:21 zulaxia, WOW, i dropped the tag and its not zero anymore Aug 12 16:28:54 well there you go, cause found, if not solution. it's a start Aug 12 16:29:25 zulaxia, that's not how it should work though lol Aug 12 16:30:07 i'll leave it out for the time being and put it back in when im going to promote it to production Aug 12 16:37:06 Someone know because in touchmode (I opened keyboard programmatically) every time I press a key the item of option menu focus? There is some workaround to avoid this?THanks Aug 12 16:41:49 Why doesn't Android Studio recognise my JDK even though the JAVA_HOME and PATH point to it? Aug 12 16:41:50 zulaxia, turns out. its case sensitive. i had android.hardware.CAMERA when it should of been android.hardware.camera Aug 12 16:44:54 zyngawow: Because IntelliJ in general prefers to deal with explicits Aug 12 16:45:19 p_l, explicits? Aug 12 16:45:51 zyngawow: it doesn't assume that JAVA_HOME, which afaik actually is defined to point to JRE, will contain JDK Aug 12 16:46:20 it prefers explicitly defined SDKs, so you have to add JDK manually sometimes Aug 12 16:46:37 Alexfu, I had spotted that but hadn't considered it. Glad you got it sorted Aug 12 16:47:06 p_l, http://puu.sh/40fOe.png Aug 12 16:47:23 p_l, set JAVA_HOME... Aug 12 16:47:40 Has anybody here used the App State API? Aug 12 16:53:43 zyngawow: ahh, you fail at the installer. For some reason it gets java from system32, which is definitely bad Aug 12 16:53:56 It is Aug 12 16:54:01 what it asks for is stuff needed to *run* it Aug 12 16:54:21 just in case, recheck your environment variables, then relogin Aug 12 16:56:03 p_l, I renamed the java.exe, javaw and javaws on system32 Aug 12 16:56:04 it works Aug 12 17:15:03 sounds like it was a case of wrong precedence Aug 12 17:27:36 After modifying a list adapter in a fragment, how do I call a refresh on that fragment? Aug 12 17:28:01 notifyDataSetChanged() on the adapter Aug 12 17:31:48 JakeWharton, And if this is a custom list adapter, do I have to create somethingn within that adapter to handle .notifyDataSetChanged(); Aug 12 17:32:00 no Aug 12 17:32:23 wait, yes. you should extend BaseAdapter Aug 12 17:32:31 it'll handle the DataSetObserver dance Aug 12 17:32:53 JakeWharton, It's already extended - yet no dice... let me see if I can get some pasties Aug 12 17:34:11 I have a context menu for renaming items in an adapter. The adapter is custom and extends baseadapter. Aug 12 17:34:32 After the rename and the user presses ok, I call notifiydatasetchanged on the adapter. Aug 12 17:34:52 The fragment displays the old values until I click another fragment and go back Aug 12 17:35:48 JakeWharton, ^ Aug 12 17:36:50 Hi, does anybody know how to create a 'provided' dependency using Gradle so that i can use the devices SystemUI classes Aug 12 17:38:16 I've attempted to handle it like this: https://ghostbin.com/paste/zqf5m however i'm having no luck Aug 12 17:39:17 @romainguy: Guess what? :D Aug 12 17:39:22 what? Aug 12 17:39:33 I Aug 12 17:39:37 I'm interviewing with Google :D Aug 12 17:39:48 Congrats :) Aug 12 17:40:09 Fleixius, you have to cast it to baseadapter to access the method Aug 12 17:40:21 I am kind of nervous though Aug 12 17:40:52 although I do good with like programming and stuff regarding application development, I feel like my school transcripts do not portray my work ethic/abilities D: Aug 12 17:41:50 zulaxia, I don't have a problem with the method not existing. The list adapter doesn't go through its inflater process after notifydatasetchanged Aug 12 17:42:55 Oh, my bad Aug 12 17:45:01 FLeiXiuS: Then you're not updating the dataset the adapter has a reference to Aug 12 17:46:43 SimonVT, The dataset is generated when the adapter is first loaded Aug 12 17:46:48 Is the Play Game Services App State library a continuation of the old api-services-appstate library? Aug 12 17:47:37 Maybe, but you're not updating it Aug 12 17:47:46 Just curious, are any of you guys gonna do Google Cast development? Aug 12 17:48:18 why can't I use the variables created on lines 103-105 in the LocalDateTime() on line 109? http://pastie.org/private/sdfwmxvff62k33nxt4vveg Aug 12 17:51:05 str8uplinux: because they're scoped to the for loop Aug 12 17:51:45 evanc: what do I do to use them outside the for loop? - be kind, I am very much a beginner here... haha Aug 12 17:56:31 @romainguy, can you help clarify if the Google Play Game App State API is the same as the old platform independent api-services-appstate library? I'm trying to work out the process for syncing basic app data (not a game) but most documentation has been absorbed into the Game Services site now. I'm not even sure I can do this for a non game app now Aug 12 18:18:09 Hey all, I'm having some problems with Android studio 0.2.3. I have a project using a library project and also actionbar sherlock as AAR. I have the project compiling and running, but the R file isn't generated. Aug 12 18:19:01 since the app runs well, it's not throwing any errors, but I just can't get the R file to generate. I tried cleaning, building with gradle, restarting the Studio App, etc. Aug 12 18:29:54 if it compiles and runs, what is the problem? Aug 12 18:30:26 there's not R file, Studio is showing all layouts as broken Aug 12 18:31:39 If it compiles and runs then there's a R file Aug 12 18:32:11 I agree, then why is Studio having problems? Aug 12 18:32:18 sounds like gen/ isn't one of the module source folders Aug 12 18:32:34 Maybe the folder where R is isn't added to source folders Aug 12 18:33:24 shouldn't that be added automatically? Aug 12 18:33:24 well, I've had in tell j have issues with resources in aar Aug 12 18:33:40 just ignore and run Aug 12 18:34:18 intellij keeps saying my aar resources can't be found Aug 12 18:34:35 where should the R file be in the new gradle build? Aug 12 18:35:49 Somewhere in build/ Aug 12 18:36:39 I see. well this started after adding atcionbar sherlock as AAR. First time using AARs Aug 12 18:38:22 "using AARs"? It's just a single line in build.gradle, then it's pulled from maven central Aug 12 18:38:40 I hate Gradle Aug 12 18:38:43 cause when it works its fantastic Aug 12 18:38:52 but when it doesn't work, it feels like the end of the world Aug 12 18:39:04 yeah, I agree. Aug 12 18:39:36 It seems that the resources problem is coming from the AAR file?. Then something happens with my project? Aug 12 18:40:21 Maven ftw! if only it didn't take 2 years to compile and install apps with it. Aug 12 18:41:46 and if it didn't download 300 MB of java files at start Aug 12 18:42:12 when you download maven, you're just getting the dependency resolver Aug 12 18:42:23 it goes and gets the rest of itself Aug 12 18:42:38 but yeah, its still huge :D Aug 12 18:42:45 Maven is like the nazi officer that supervises the concentration camp. It enables the evil which is 100+ MB jar based applications Aug 12 18:43:20 if only people had to do it manually all applications would be beautiful like "Hello, world!". That's my favorite program. Aug 12 18:45:11 i think the idea of maven is obsolete Aug 12 18:45:35 compile time dependency management Aug 12 18:46:21 what do you view as "the idea of maven" ? As a cross-IDE project it seems still quite usable Aug 12 18:46:26 Thorbear, whaddyamean you don't have a 1Gbit fiber and 16GB of RAM in your machine to run maven? :P Aug 12 18:46:42 Hmm Aug 12 18:46:47 ivansf: have you tried deleting the .idea directory and all .iml files and re-importing your toplevel build.gradle? Aug 12 18:46:50 Does android have an efficient way to save/load bitmap files? Aug 12 18:46:53 Just curious Aug 12 18:47:18 Mavrik: the download-part of it never worried me, and giving it all the RAM it can eat doesn't appear to improve speed =) Aug 12 18:47:20 Brian|CS: BitmapFactory not efficient enough for you? Aug 12 18:47:31 codebutler: I will try that after trying to manually add the R folder to the source paths. Aug 12 18:47:50 you shouldn't have to do that. if you can compile fine with the command line, it's just an android studio problem. Aug 12 18:47:50 alankila: Can you store bitmaps with bitmap factory? Aug 12 18:48:00 Brian|CS: Bitmap.compress() Aug 12 18:48:02 Like let';s say I've got a bitmap that is huge so I don't want it in the apps memory, but I want to use it later Aug 12 18:48:04 Brian|CS: bitmaps can be saved to disk files if you like Aug 12 18:48:13 Thorbear i think java 8 jigsaw will move the goal post a bit; dependency resolution becomes a runtime behavior also Aug 12 18:48:37 Basically my issue lies in me wanting to have these custom made bitmaps right Aug 12 18:48:38 also BitmapFactory.Options has useful stuff and BitmapRegionDecoder is good for large images Aug 12 18:48:47 and I make them in one fragment, and then I want to use them again later in a much smaller scale Aug 12 18:49:06 so I was just curious if it would be reasonable to save the bitmaps I create in my image m aking fragment to a non RAM based location Aug 12 18:49:10 and then recall them later at a smaller scale Aug 12 18:49:15 idk if that makes sense to you guys or not Aug 12 18:49:20 i'm confusing myself more and more every minute Aug 12 18:49:20 lol Aug 12 18:49:59 g00s: that may very well be, I haven't looked much into the features of java 8 yet Aug 12 18:50:17 goofbye classpath Aug 12 18:50:36 native package manager Aug 12 18:50:57 @romainguy: So if I want to go down the path of compressing/saving bitmaps though I have to save them to the filesystem correct? Aug 12 18:51:12 You can compress the file in memory too Aug 12 18:51:16 there is no form of application storage such as the SharedPrefs or whatever it is for key/value storage where I can store application related bitmaps Aug 12 18:51:22 Hmm Aug 12 18:51:36 each app has its own reserved directory on the filesystem Aug 12 18:51:36 @romainguy: So you're saying I could just take these huge bitmaps and compress them in memory Aug 12 18:51:39 instead of storing them Aug 12 18:51:42 up to you Aug 12 18:51:44 that is actually an interesting thought Aug 12 18:51:47 depends what you're tying to do Aug 12 18:51:57 but at least you'd avoid issues related to I/O Aug 12 18:52:04 There obviously must be a limit to compression though Aug 12 18:52:27 make an estimate if it's faster to compress and load, or to recalculate the image, then that's your guide Aug 12 18:52:29 For example, a "full screen" bitmap on the N10(Not full, full screen, but like everything minus action bar stuff) takes up about 13 mb of RAM on my device Aug 12 18:52:34 how far should I be able to compress that? Aug 12 18:53:10 Brian|CS: it depends entirely on what is in the image you know. Aug 12 18:53:34 and how much visual error you can accept. You can in theory just say the entire image was black and claim you're using a "poor quality" but "efficient" compression scheme. Aug 12 18:54:00 True that Aug 12 18:54:03 THis is going to be a fun week lol Aug 12 18:54:14 in short you need to experiment. It's not unreasonable to expect that compression factors > 10 are acceptable and it'd still look pretty good as jpeg Aug 12 18:54:26 I'm fine tuning the android side implementation of this custom living UI Aug 12 18:54:56 built on the SVG document style and scalable to all screen sizes/densities as well as all environments(PC, web, android, iOS, etc.) Aug 12 18:55:08 line art like pictures, or pictures with vertical gradients also tend to compress very well in any algorithm. Aug 12 18:55:57 they're terrible with jpeg :P Aug 12 18:56:31 jpeg has minor issues with them but since they have so little entropy even jpeg would do quite well, you could tune the quality factor as high as it go and the image would still probably be small Aug 12 18:57:11 there are also fixed compression schemes like ETC1 which shrinks by a constant factor Aug 12 18:57:25 iirc 64 bits go in and 8 bits come out Aug 12 18:57:54 Speaking of images, does optimizing the png-files used for GUI improve anything but the application size and memory footprint? Aug 12 18:57:57 or was it 16 bits. I forget. Aug 12 18:58:22 Thorbear: load time should generally be cut down Aug 12 18:58:31 Thorbear: i doubt it improves the memory footprint any Aug 12 18:58:55 smaller images in memory == smaller memory footprint, no? Aug 12 18:59:36 which would also be why the load time would be lowered, there is less to load into memory Aug 12 18:59:40 Thorbear: they're the same size in memory. they're uncompressed to render them :) Aug 12 19:00:25 and while loading they come from disk to a buffer, are decoded within the buffer, etc. so there's no space saving during load time either. Aug 12 19:00:38 Hmm, I was under impression that optimizing wasn't simply compression Aug 12 19:01:09 Thorbear: nah, png optimization generally just tries several compression schemes and chooses the smallest, and also batches stuff in to bigger blocks Aug 12 19:01:20 I see Aug 12 19:01:42 yeah png has a bunch of encoding methods for each line iirc, if you spend time trying various ways to represent the data you could stumble on some particularly efficient encoding Aug 12 19:02:45 Has anyone used editTexts inside listviews? I haven't seen any samples with this approach and usually the array that feeds it is populated elsewhere, whereas here the edittext is supposed to populate the array dynamically Aug 12 19:03:21 I'm wondering if listview+edittext is a good idea, or should I use something else Aug 12 19:04:21 codebutler: It worked. Aug 12 19:04:43 I closed Studio, and went into finder and removed all IML and .idea folders from the project Aug 12 19:05:00 then reimported the project in Studio as "Gradle External" Aug 12 19:05:24 cool. You can also just do File > Open Project and select the top build.gradle Aug 12 19:05:31 and it worked. Aug 12 19:05:37 I see.. Aug 12 19:05:45 it magically builds all the sub modules for me Aug 12 19:06:17 It's a rather complex project we have here, with a few libraries and some library projects, and about 4 different apps as modules. Aug 12 19:06:24 can anyone clarify if the Google Play Game App State API is the same as the old platform independent api-services-appstate library? I'm trying to work out the process for syncing basic app data (not a game) but most documentation has been absorbed into the Game Services site now. I'm not even sure I can do this for a non game app now Aug 12 19:06:31 I hope this keeps working well. Aug 12 19:06:35 thanks for your help Aug 12 19:06:36 good luck Aug 12 19:06:38 ivansf, I still love watching it compile submodules Aug 12 19:06:39 np Aug 12 19:06:48 even after many months of using gradle Aug 12 19:06:53 hehe Aug 12 19:11:50 hmmmm, (listview + edittext) "...avoid them like the plague..." Aug 12 19:12:03 whats wrong with list views? Aug 12 19:12:12 porten, I've used edittexts inside a grid, which is just another variant Aug 12 19:12:30 I even got them working with custom fonts, outlines, the lot Aug 12 19:12:54 took a lot of work though, especially for them to update when you touched the screen, rather than hitting enter Aug 12 19:13:09 but it's simple enough, it's just lots to be careful of/catch Aug 12 19:13:23 custom fonts on Android are just awful Aug 12 19:13:23 D: Aug 12 19:13:53 zulaxia: yea, I'm wondering if the better route would be to use a scrollview instead Aug 12 19:13:59 I only use them to match a style that's already been dictated, otherwise I hate people varying them Aug 12 19:14:42 potentially. like with a lot, it depends how much of the extra things that a listview does for you that you actually need Aug 12 19:15:17 I just need 10+ edittexts that the user can change, also he can add/remove edit text fields Aug 12 19:15:26 so it's dynamic between 2-10 Aug 12 19:15:32 probably not worth the listview then Aug 12 19:15:41 yea, i'm starting to feel that Aug 12 19:15:47 I'd just do a custom linearlayout in a scrollview Aug 12 19:16:05 with some kind of add and remove method Aug 12 19:16:13 right... that was kind of question on suggested implementation Aug 12 19:16:24 It "works"... kind of... Aug 12 19:16:51 zulaxia: anyway, thanks Aug 12 19:16:59 The text in my textview refuses to be centred! Aug 12 19:17:35 heh, I think I had that once. sadly for you, my memory sucks, so I can't remember the incredibly obvious thing that solved it ;) Aug 12 19:17:50 I threw everything I have at it: android:layout_gravity="center_horizontal|top" android:layout_centerHorizontal="true" android:textAlignment="centre" Aug 12 19:18:13 porten, I need to go afk, but if you still can't hammer out a solution, ask me later and I'll see how much I can help Aug 12 19:18:13 center* for the textAlignment Aug 12 19:18:41 You need to use android:gravity if you want to center text inside the textview Aug 12 19:18:54 The two first are for centering the textview inside something else Aug 12 19:18:57 Ah thank you! Aug 12 19:19:31 It's in a relative layout so I guess I can remove the layout_gravity, right? Aug 12 19:20:53 I was confused, I thought I had it centred but obviously if the width is wrap_content this will seem as though the text is centred as long as there is only one line. Aug 12 19:22:50 marrrk: if you're using an IDE that previews your layout, it should be relatively easy to "try it and see" to find out what parameters you don't need =) Also http://developer.android.com/reference/android/widget/TextView.html will tell you exactly what all the different options does Aug 12 19:23:11 i have this layout, http://www.fpaste.org/31587/13763353/. I want that table to be centered. Aug 12 19:23:18 I am using such an IDE but almost no native views so it always fails. Aug 12 19:26:11 I see Aug 12 19:26:50 Orly? Aug 12 19:29:21 http://www.fpaste.org/31590/76335730/ is centered, but its over top of that button. I tried switching the RelativeLayout to a LinearLayout, but that didn't help Aug 12 19:29:57 is there any way to check if an EditTextPreference is empty and not allow it? Aug 12 19:51:37 mark murphy is writing for androidpolice now Aug 12 19:52:05 but anyhow, this protective sleeve is cool http://www.androidpolice.com/2013/08/11/user-defense-the-off-pocket-hiding-your-phone-in-plain-sight/ Aug 12 19:52:57 perhaps there's a lot of money to be made by exploiting paranoia Aug 12 19:53:36 and then when you use this pocket in order to dispose the body of your dead wife which you strangled, the prosecutor will be arguing that there's no reason you'd have hid the phone in this pocket except to conceal the place where the body would be buried. Aug 12 19:55:18 if i was taking my phone to defcon, i'd rather it be in that :D Aug 12 19:55:59 >taking phone to defcon Aug 12 19:56:01 >dies Aug 12 19:56:09 hehe Aug 12 19:57:04 Napalm: are you around? Aug 12 19:57:12 yes Aug 12 19:57:34 i see you updated the project 6 minutes ago Aug 12 19:57:50 I did. I've been working on it but am having a little trouble Aug 12 19:58:08 I got the keyboard working great on a Galaxy Tab 1 10.1 Aug 12 19:58:25 But it failed when I tried it on a Galaxy Tab 2 Aug 12 19:58:36 Both tablets are rooted and running 4.2.2 Aug 12 19:59:01 failed how? Aug 12 20:00:04 It keeps crashing on the BinaryDictionary. Aug 12 20:00:45 Here's one error: java.lang.UnsatisfiedLinkError: Native method not found: com.android.inputmethod.latin.BinaryDictionary.openNative Aug 12 20:02:27 ah, find out what cpu the Galaxy Tab 2 has Aug 12 20:04:52 Brendan55, you're trying to open a native library that doesn't exist. Aug 12 20:05:00 or is not compatible with th eplatform Aug 12 20:06:47 Brendan55: i will add the other compiled native libraries for you Aug 12 20:08:39 I have a canvas that I've drawn a path onto and would like to fill that path with transparency.. anyone know which Region.Op I should use? Aug 12 20:08:49 Napalm: Awesome! The only information I can find about the processor is that it is 1Ghz Dual Core. Mavrik: I figured as much but wasn't sure why. Obviously I used something different between the two but both the Tab 1 and the Tab 2 are running 4.2.2 Aug 12 20:09:18 its probably arm v7 Aug 12 20:09:30 will add that plus the rest Aug 12 20:10:33 Brendan55, the cause is easly the fact that those native libs need some dependencies in the OS that are of different versions. Aug 12 20:21:24 Brendan55: commited. you can pull them now Aug 12 20:21:40 sweet! Aug 12 20:22:24 Brendan55: to a fresh build and test on your Galaxy Tab 2.. let me know if it solves the issue. Aug 12 20:25:31 does anyone here use the appstate api at all? Aug 12 20:26:56 That moment when you realize ValueAnimator wasn't added until API 11 Aug 12 20:26:57 D: Aug 12 20:27:21 check out Nine Old Androids from JakeWarton Aug 12 20:27:23 Napalm: same problem Aug 12 20:27:32 is the moment when you try to convince yourself you can happily cut off users of older api levels ;) Aug 12 20:27:39 it backports the modern animation APIs to 2.x Aug 12 20:28:04 God damnit Aug 12 20:28:05 every tiem Aug 12 20:28:05 lol Aug 12 20:28:09 lol Aug 12 20:28:10 or what zulaxia said Aug 12 20:28:12 JakeWharton: Why are you around every corner. Aug 12 20:28:26 because the room is a circle Aug 12 20:28:31 because he made all the corners work for older versions Aug 12 20:28:51 Brendan55: pastebin your logcat/stacktrace Aug 12 20:29:01 Damnit, circles, why you so mathematically awesome Aug 12 20:29:23 Circles are just rectangles with large rounded corners Aug 12 20:29:53 lol. I can just see someone using that to justify a circular app launcher icon Aug 12 20:29:59 @romainguy: You're one of those people aren't you. http://qntm.org/files/trollpi/piequals4.png Aug 12 20:30:04 it's rounded corners, honest, I just like em big Aug 12 20:30:14 lol Aug 12 20:30:38 Brian|CS: no, just a graphics guy, so to me a circle and a rectangle are the same thing :) Aug 12 20:31:01 Napalm: This should have the relevant information: http://pastebin.com/3EYany8B Aug 12 20:33:33 Why are the default color schemes for LogCat in Android studio so terrible Aug 12 20:34:16 Brendan55: NI_OnLoad returned bad version (-1) <<< theirs the error.. one moment Aug 12 20:35:03 yiati why is logcat so terrible; ftfy Aug 12 20:35:50 wow… skipped right over that blue line amongst all my red lines. Agreed with yiati and g00s Aug 12 20:37:16 Napalm: I am getting your PMs but when I reply it says you're offline Aug 12 20:38:08 hey all Aug 12 20:38:31 so again my issue is a crash after an asynctask finishes during an orientation change and getActivity() is null in a fragment Aug 12 20:39:08 anyone know if there's an irc channel about all the various Google APIs? since they're not android specific, I'm assuming there's something more related? Aug 12 20:39:29 matt_j maybe you can use a loader instead ? Aug 12 20:39:37 a loader? Aug 12 20:40:11 matt_j or use hackbod's advice from here http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something Aug 12 20:40:31 you can always send the info to the application to hold ready for the activity to be remade Aug 12 20:40:38 since the application is guarenteed to be there Aug 12 20:40:48 that's what I generally do as a stopgap hack for stuff like that Aug 12 20:41:02 in fact, it's not that hacky in some cases tbh Aug 12 20:41:29 I could be like new Thread() {while(getActivity() == null) sleep(100) }; lolololol Aug 12 20:41:29 p.s. I hate spelling guaranteed :P Aug 12 20:42:26 it's not asynctask that is conceptually flawed but android Aug 12 20:42:33 hahaha yeah Aug 12 20:42:45 but hey, use fragments instead, and set their retainInstance property to true Aug 12 20:42:52 suddenly your fragment instances will hang around no matter what Aug 12 20:43:02 alankila: I found that to be a new can of worms Aug 12 20:43:17 solution: prevent orientation changes! Aug 12 20:44:22 I'm an iOS guy but I've been working hard with Android for about a year. I still hate this platform with a passion. Aug 12 20:44:32 it bugs me that it's getting so popular Aug 12 20:44:50 joe six pack has no idea what a PITA it is to develop for it Aug 12 20:45:29 i like iOS a lot. iOS 7 will be pretty killer Aug 12 20:46:00 because it resembles google Aug 12 20:46:02 cool Aug 12 20:46:18 What is the equivalent to _exit() on Android? I can't seem to find anything on Google Aug 12 20:46:24 matt_j i think different types of devs work on each platform. i read not long ago, the majority of android devs were hobbyists that had another type of job Aug 12 20:46:44 Also, would programmatically setting a white screen on full brightness make for a good flash for front camera? :P Aug 12 20:46:45 Vinnie_win: Object o = null; o.toString(); //hehehehehe Aug 12 20:46:45 Vinnie_win there is no exit Aug 12 20:47:00 https://github.com/vinniefalco/Beast/blob/master/modules/beast_core/native/beast_android_Threads.cpp#L63 What do I put on line 63 Aug 12 20:47:59 Brendan55: ive compiled and committed the native libraries with the debug flag turned on.. can you try again and copy me the log results Aug 12 20:49:44 hey everyone Aug 12 20:49:49 Would programmatically setting a white screen on full brightness make for a good flash for front camera? :P Aug 12 20:50:12 working on a camera app for the Samsung Galaxy Cam, and think i found a firmware bug, wondering if anyone else has seen it Aug 12 20:50:32 seems when i'm zooming using the zoom button, the camera will zoom the wrong way, even though i'm passing in the correct zoom level Aug 12 20:50:36 ie, its 0-15 Aug 12 20:50:38 ill be at 15 Aug 12 20:50:41 and setZoom 14 Aug 12 20:50:49 and it will zoom in more Aug 12 20:50:54 even though it doesn't actually exist Aug 12 20:51:08 its like its going to 16 or 17 even though that's not supported from getMaxZoom() Aug 12 20:52:00 ugh Aug 12 20:52:11 I'm just going to do if(getActivity() == null) return; Aug 12 20:52:20 so any api calls will just get cancelled Aug 12 20:52:35 SuperYeti: sounds like a FW bug to me.... Aug 12 20:52:41 y Aug 12 20:52:41 a Aug 12 20:52:43 Youre not doing anything with an array/looping right? Aug 12 20:52:53 ive tried a bunch of different solutions Aug 12 20:53:09 the cleanest i have now is using a semaphore Aug 12 20:53:43 SuperYeti: can you link a code example? Aug 12 20:54:46 Brendan55: you there? Aug 12 20:55:24 sorry, in a meeting for a few minutes. I'll try it out as soon as I get out Aug 12 21:00:22 sure, let me extract the code thats using it Aug 12 21:03:18 http://pastebin.com/F0tnu7yq Aug 12 21:03:24 that's the best i've gotten it to function so far Aug 12 21:03:43 if i use the volume up/down buttons on any other android device it works flawlessly Aug 12 21:04:16 Napalm: I don't see much more information but here's the log cat: http://pastebin.com/SnEWjUjb Aug 12 21:04:16 Hello folks. I have a question. I've given somebody a C library I've written, compiled with the android ndk, compiled with both profiling and debugging flags… The person is now having problems with the library that I gave them…. I'm wondering, what is the best way that I can get visibility into the problem. It would be nice if I had a log of the callstack, or something… I'm sure this is a problem that comes up Aug 12 21:04:17 frequently. Is gdbserver the only answer? It is the highest level way to get at what i'm looking for? Aug 12 21:04:18 but on the EK-GC100 it zooms in more when at max zoom and i set to a lower zoom level Aug 12 21:04:27 and zooms out more when at zoom level 0 and set to 1 Aug 12 21:04:58 Ownix, ^ Aug 12 21:05:34 i found looping and setting the zoom incrementally gives me the smoothest zoom Aug 12 21:05:42 of course the device doesn't support smoothzoom Aug 12 21:06:15 Thats really odd. Definitely a bug id say Aug 12 21:06:19 Can you report that? Aug 12 21:08:50 Brendan55: hey jump on PM Aug 12 21:12:29 I'm there Aug 12 21:16:48 Seems like there aren't many NDK kids here? Aug 12 21:18:32 i do my best to avoid the NDK Aug 12 21:18:42 its a 'use as last resort' kind of thing Aug 12 21:23:36 Ownix, where would i report it Aug 12 21:23:42 samsung directly, or to google? Aug 12 21:24:03 SuperYeti: honestly no one would do anything about it anyway lol Aug 12 21:24:13 sigh Aug 12 21:24:15 i know :( Aug 12 21:24:27 @LoneElf - use NDK plenty but run into the same problem you do ... logs and more logs (when it is in the wild) ... Aug 12 21:24:31 hmm Aug 12 21:24:39 i wonder maybe i can skip the first zoom level and it will work Aug 12 21:24:42 ie 0 to 2 Aug 12 21:24:49 and 15 to 13 or something Aug 12 21:26:13 http://developer.samsung.com/forum/board/thread/view.do?boardName=GeneralB&messageId=237660 well at least i'm not the first person to find it Aug 12 21:26:14 ... Aug 12 21:27:57 yep Aug 12 21:28:20 ballz Aug 12 21:28:48 LoneElf: what help do you need with NDK? Aug 12 21:37:28 hello. Aug 12 21:37:36 got a question regarding the communication from a dialogfragment created from another fragment. Aug 12 21:38:12 got that communication working so far via onactivityresult() + set/getTargetFragment() Aug 12 21:38:41 but struggle when passing parameters from dialog to parent fragment again Aug 12 21:39:04 cannot create a intent in my dialog-fragment Aug 12 21:39:14 any suggestions? Aug 12 21:40:16 to get that right - every intent i create, or try to get from parent/activity is null Aug 12 21:53:40 can I open an existing eclipse project android app in studio? Aug 12 21:56:57 for a device with a hardware keyboard, is it normal for EditText views to not pop up the virtual keyboard via the tag> **** BEGIN LOGGING AT Mon Aug 12 22:07:03 2013 Aug 12 22:15:02 oh, this is funny - Strachan on Groovy - "I can honestly say if someone had shown me the Programming in Scala book by by Martin Odersky, Lex Spoon & Bill Venners back in 2003 I'd probably have never created Groovy." Aug 12 22:15:34 sounds like gradle is built on shaky grounds Aug 12 22:19:50 Napalm: Hello folks. I have a question. I've given somebody a C library I've written, compiled with the android ndk, compiled with both profiling and debugging flags… The person is now having problems with the library that I gave them…. I'm wondering, what is the best way that I can get visibility into the problem. It would be nice if I had a log of the callstack, or something… I'm sure this is a problem that comes up Aug 12 22:19:50 frequently. Is gdbserver the only answer? It is the highest level way to get at what i'm looking for? Aug 12 22:25:16 Anyone knows what is going on when some users update apps and get a "package file invalid" error from Google Play ? Got 2 1-star reviews because of this Aug 12 22:25:34 bubbleguuum: YES Aug 12 22:25:39 users rating Google Play installer, that's great Aug 12 22:25:53 I do know this because I spent an entire day figuring out what caused it :-) Aug 12 22:26:03 can you give details ? Aug 12 22:26:16 yes, one sec. I'll grab you a link. Aug 12 22:26:49 The basic gist is that Android SDK Tools r22 is broken and produces APKs that don't work on (at least some) Froyo devices. Aug 12 22:27:11 One solution is to use SDK Tools r21 if you still have a copy. Aug 12 22:27:11 RyanM :O holy shit? Aug 12 22:27:36 i haven't had any problems deploying to my froyo device though Aug 12 22:27:40 https://code.google.com/p/android/issues/detail?id=56006 Aug 12 22:28:12 thanks! Aug 12 22:28:14 g00s: I don't think it effects debug builds from eclipse, if that's what you mean. Aug 12 22:28:26 RyanM no, have been using gradle Aug 12 22:29:05 i dont generally hear many people talk about it, but i thought somewhere in HC time, play store only gets diffs of your updated APK Aug 12 22:29:18 anyone here good with git? Aug 12 22:29:24 Pyuruku in #git, sure Aug 12 22:29:36 thanks didnt know that existed Aug 12 22:29:58 g00s: Problem was reproducible using the APK file and adb, but only on Froyo. I've been building using Ant, unsure if that's related. Aug 12 22:30:06 RyanM: the only fix is to revert to tools r21 ? Aug 12 22:30:52 Would programmatically setting a white screen on full brightness make for a good flash for front camera? :P Aug 12 22:31:06 CocoStorm no :| Aug 12 22:31:25 g00s, oh Aug 12 22:31:26 CocoStorm: only if you prevent it from ever turning off again :D Aug 12 22:31:37 and its like a 20 minute exposure Aug 12 22:31:41 actually someone complained about it even with our r21 build. Aug 12 22:31:42 lol Aug 12 22:31:43 great for hand holding :P Aug 12 22:31:54 grrrrr. building with r21 at least helped... Aug 12 22:32:38 another WTF bug... Aug 12 22:32:45 ahh okay, will not waste my time trying it then :P Aug 12 22:34:33 yeah if anyone figures it out PLEASE post a solution to that bug Aug 12 22:34:49 I'd be extremely grateful. Aug 12 22:34:55 RyanM bubbleguuum using proguard ? Aug 12 22:35:11 ys using proguard Aug 12 22:35:59 i would try disabling that , may as well give it a shot. if that fixed anything (doubt it) update your proguard to 4.10 Aug 12 22:36:14 i think the tools come with 4.7 Aug 12 22:36:46 it is a problem with signing and old market version, how could proguard have sth to do with it ? Aug 12 22:36:59 yeah, dumb idea Aug 12 22:37:01 g00s: Yes, but we'd rather not disable that. Aug 12 22:37:33 it's not entirely related to the old market version. I could reproduce it using only adb install and the APK. Aug 12 22:37:35 did teh signing stuff change to work with JDK 7 ? Aug 12 22:37:49 g00s: we're running JDK 6 Aug 12 22:38:03 just can't win :( Aug 12 22:38:24 that's how we feel trying to fix it ;-) Aug 12 22:39:10 what's annoying is that there is no input from Google since June 17th Aug 12 22:40:10 bubbleguuum one way to get googl'e attention on **truly** WTF bugs, is to write to androidpolice about it Aug 12 22:40:28 good idea Aug 12 22:40:40 they enjoy these kinds of WTFs Aug 12 22:43:04 bubbleguuum its assigned to xavd Aug 12 22:43:22 maybe also ask on adt-dev or something Aug 12 22:43:27 on google+ / tools Aug 12 22:45:11 on adt-dev that would change from a gradle topic for a change Aug 12 22:47:32 hm, java.util.jar.JarVerifier.verifyCertificate(JarVerifier.java:320) Aug 12 22:49:53 bubbleguuum that last comment seemed to have a manual workarounf though Aug 12 22:50:39 yes I've seen it. Not sure if the ADT keeps the unsigned jar somewhere though Aug 12 22:50:59 for release, i would always use the command line anyhow Aug 12 22:51:14 until now it has not been needed Aug 12 22:51:44 I'm still using the ADT despite people going gaga over AS / gradle Aug 12 22:52:18 bubbleguuum just do an 'android update project' or whatever it is to make some ant scripts Aug 12 22:53:37 my setup is a complicated mix of maven and ADT, there's no way that generated ant script could work out of the box Aug 12 22:53:48 oh, using maven ok Aug 12 22:54:12 has anyone gotten actionbarsherlock to work with gradle in a project that also uses the support library? Aug 12 22:54:50 I'm running into this error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl; Aug 12 22:55:06 because I have ABS + the support library listed as compile dependencies (and ABS has the support library as a dependency) Aug 12 23:15:00 huh, trying to add an extension to desktop chrome requires i sign in with my google account - never saw that before. fail. Aug 12 23:16:22 bubbleguuum the problem with that bug (56005) is that its status is 'needsinfo' so i bet they aren't paying much attention to it Aug 12 23:16:35 56006, rather Aug 12 23:16:56 bubbleguuum what platform ? Aug 12 23:16:57 they'd better because it is severe. Got 3 user reports Aug 12 23:17:11 Win7 Aug 12 23:17:45 I can't even jarsign manually, it fails on java.security.SignatureException: private key algorithm is not compatible with signature algorithm Aug 12 23:19:48 http://www.droid-life.com/2013/08/08/play-store-update-to-4-3-10-causing-package-file-is-invalid-error-for-many-during-app-updates/ . comments (or maybe another article? i saw it a few days ago) suggest it's not actually related to the play store update APK but something server side Aug 12 23:22:27 blargh needed -sigalg MD5withRSA Aug 12 23:26:49 jar manually signed and signed by ADT do not have the same size Aug 12 23:29:42 Use this with jarsigner: jarsigner -verbose -keystore /home/ben/testing.keystore -digestalg SHA1 -sigalg MD5withRSA test.apk testing Aug 12 23:29:54 replacing test.apk and test with the name of your apk and the alias respectively Aug 12 23:30:02 works with 1.7 Aug 12 23:40:39 poutine: yes. was just confused by the doc which mentions SHA1withRSA Aug 12 23:50:04 searching for "package file is invalid" on G+ is a gold mine... Aug 12 23:50:31 bubbleguuum a lot of stuff ? Aug 12 23:50:37 haha yes Aug 12 23:50:49 all related to this you think ? Aug 12 23:51:04 absolutely Aug 12 23:51:15 it is amusing seeing people making wild guess on the cause Aug 12 23:51:31 we don't know, there could be other causes Aug 12 23:51:42 in addition Aug 12 23:51:56 anyway I've sent 2 APK to a user having the problem, for testing: one manually signed, the other signed by ADT Aug 12 23:54:24 I love these "how to fix package is invalid" recipe. None of them worked for my users Aug 12 23:55:36 anyone know when T-mo is US will get JB 4.3? Aug 12 23:56:06 when one of their handset makers sufficiently stuffs the base system up with proprietary handset maker BS Aug 12 23:57:02 *shrugs* Aug 12 23:57:04 haha good answer Aug 12 23:58:36 *sigh* back to google Aug 12 23:59:20 would anyone here actually recommend any of the online privacy policy generator services? Aug 13 00:08:06 bubbleguuum: that's because most people who have the issue are using JDK7 and can't follow simple instructions :-) Aug 13 00:08:29 xav replied to the issue on google code, by the way Aug 13 00:16:50 Ryan: yes, after my post on this issue and a reminder on adt-dev :p Aug 13 00:19:40 Is there any reason that calling INSERT after CREATE TABLE would throw an error that the table does not exist if the CREATE TABLE is valid? Aug 13 00:20:45 what's the code look like Aug 13 00:21:08 Jesus, as usual, you realize how stupid you are once you ask for help. I had a stray ! in a conditional. Aug 13 00:21:33 we've all been there Aug 13 00:21:57 Though it doesn't explain why debugging was showing a thrown exception, running it does not. Very peculiar. Aug 13 00:22:23 Hi, anyone have experience using IsolatedStorage with Mono implmentation? Aug 13 00:23:58 Sorry, my only C# experience is Windows Phone and a little Unity. Aug 13 00:24:26 ThymeCypher: nice, I'm working with Unity Aug 13 00:24:47 I dont have permissins to make any folder in IsolatedStorage Aug 13 00:24:58 I wish I knew it well enough, the tutorials are so easy it's boring, but once you have to structure things yourself... Aug 13 00:24:58 it's path is : "/.config" Aug 13 00:25:21 I take it this is only an issue on Android at the moment? Aug 13 00:27:15 what do you by only? it's my current issue but it has lots of issues with android :) Aug 13 00:28:16 *do you mean Aug 13 00:30:12 GaVaR[RUS]: Does your IsolatedStorage code point to a specific directory? Aug 13 00:31:28 yea, the environment variables says that ApplicationData folder is located by path: '/.config' Aug 13 00:31:41 but IsolatedStorage cant make any file within it Aug 13 00:31:52 it says I have lack of permissions for doing that Aug 13 00:32:08 Yeah. If you're accessing anything there, you need superuser permissions. Aug 13 00:32:10 I'm using Mono implmentation of the IsolatedStorega Aug 13 00:32:21 strange thing Aug 13 00:32:29 why Mono have such path in it's code Aug 13 00:32:41 *its Aug 13 00:33:05 Typically, IsolatedStorage should be using your package, instead of root Aug 13 00:33:24 /data/app/your.package.name/ Aug 13 00:34:10 How would one determine an empty cursor due to an empty table vs a table not existing? Aug 13 00:34:46 That being said, since you're using Unity/Mono it might be best to seek out a channel dedicated to either Mono on Android (Xamarin) or Unity Aug 13 00:35:18 However, I would avoid using superuser level permissions on a game Aug 13 00:35:31 If your user does not have superuser installed, then it won't work Aug 13 00:35:56 so one last question Aug 13 00:35:59 Alternatively, if they have superuser installed but they don't let your game use superuser permissions, then it won't work either Aug 13 00:36:14 heh, jdk7 issues... such old news Aug 13 00:36:29 seitensei, usually apks are in /data/app, data goes in /data/data/your.package.name Aug 13 00:36:34 data/app/your.package.name/ is an internal storage, so it cant be accessed with other applications on non-rooted device? Aug 13 00:36:52 Right- I meant to say that. Aug 13 00:37:33 poutine: I have got strange path: /data/data/company/app_MyFile.txt Aug 13 00:37:41 is it normal? Aug 13 00:37:49 I mean there is nor forward slash after app Aug 13 00:37:55 GaVaR[RUS]: Are you using Application.dataPath? Aug 13 00:38:10 nah, its not what I'm looking for Aug 13 00:38:34 this is wrong path Aug 13 00:38:51 it will lead to Andoid/data/company/files folder Aug 13 00:38:59 which will be deleted with your apk Aug 13 00:39:09 Yes, that's normal. Aug 13 00:39:28 How do I set up GitHub with Android Studio? I did VCS - Import to - Github and I get fatal: remote origin already exists. Aug 13 00:39:32 that's normal until user see it Aug 13 00:39:39 they start to share save files Aug 13 00:39:46 A user isn't going to see it unless they want to see it Aug 13 00:40:34 I have thougth like that until I googled: "My Game - Unlimeted Money Mode" Aug 13 00:40:41 GaVaR[RUS]: In that case, you need to tie your save data to the device Aug 13 00:40:59 it's what I'm trying to do Aug 13 00:41:04 I will use salt as device ID Aug 13 00:41:16 but I still want to make it seemless for avarage user Aug 13 00:41:30 Then don't use anything that would require superuser Aug 13 00:41:43 got it Aug 13 00:41:47 GaVaR[RUS], I can guarantee whatever protection you make will get beaten Aug 13 00:42:10 poutine: sure things, but much harder ;) Aug 13 00:42:13 GaVaR[RUS]: Protection exists to keep honest users honest Aug 13 00:42:24 so that is i want to do Aug 13 00:42:28 If people want to hack/cheat/share your saves, there is nothing you can do Aug 13 00:42:47 Having data in your application's data folder is enough for most users Aug 13 00:43:43 This should be helpful for you: http://android-developers.blogspot.com/2011/03/identifying-app-installations.html Aug 13 00:43:46 what android version is the Galaxy S4 using currently Aug 13 00:43:51 yes, but not on external storage like its done at the time referencing Application.dataPath Aug 13 00:44:09 thanks Aug 13 00:45:34 need to sleep some time Aug 13 00:45:42 many thanks for helpin g Aug 13 00:45:52 GaVaR[RUS]: /data/data/company/file.ext should be internal storage, I think Aug 13 00:46:13 yes, it is, but I need to make JNI calls to access this path Aug 13 00:46:23 and Android dont let me do it from C# Aug 13 00:46:36 so it is quite heavy operations Aug 13 00:46:37 thankfully Aug 13 00:46:49 why so? Aug 13 00:47:00 GaVaR[RUS]: You sure? http://docs.unity3d.com/Documentation/ScriptReference/AndroidJNI.html Aug 13 00:47:13 How do I set up GitHub with Android Studio? I did VCS - Import to - Github and I get fatal: remote origin already exists. Aug 13 00:47:15 yes, its expensive operations Aug 13 00:48:26 zyngawow: I've never really figured it out. I know that git normally works from CLI, so you might try running it on CLI to see if there are any specific problems that the IDE isn't showing you Aug 13 00:49:14 seitensei, how can I remove all git data from my project so I can start over? Aug 13 00:49:22 Remove the git folder Aug 13 00:49:35 And any metadata that git created Aug 13 00:49:42 "The first thing to note is that any operation you perform on an AndroidJavaObject or AndroidJavaClass is computationally expensive " Aug 13 00:50:26 Android dont let just grab the path and use System.IO to write my data Aug 13 00:50:36 GaVaR[RUS]: My understanding is that Unity writes to internal storage by default Aug 13 00:50:42 I need to make JNI calls for FileReaders and Buffered readers =\ Aug 13 00:50:58 not really, it depends on permissions Aug 13 00:51:12 i have erite to external storage permission Aug 13 00:51:22 so it writes to external storage by default Aug 13 00:51:31 Are you using external storage for anything? Aug 13 00:51:32 and there is nothing I can make with it Aug 13 00:51:43 no, only for OBB files Aug 13 00:51:48 game is about 180 mb Aug 13 00:55:18 seitensei: just removed permission and Application.dataPath now is: "/mnt/asec/com.Company.ProductName-1/pkg.apk" Aug 13 00:55:40 it is not secured Aug 13 00:55:52 so I will use data/data ... Aug 13 00:55:54 thanks Aug 13 01:01:13 Hey guys, I'm getting an exception boolean cannot be cast to string in this method.. it's pointing to the sharedpreference.getstring() method. It doesn't make any sense though, I can't see anything wrong with it :\ http://pastebin.com/d69cPn7P Aug 13 01:02:12 CocoStorm: you must've saved it as a boolean once Aug 13 01:02:29 codebutler, very possibly Aug 13 01:02:38 codebutler, I'[ve tried cleaning the project though :S Aug 13 01:03:11 I like how all the documentation for android talks about not hardcoding values, yet HtmlToSpannedConverter uses hardcoded scaling factors for the headers Aug 13 01:04:00 CocoStorm: "Clear Data" in app settings? Aug 13 01:04:23 codebutler, I've tried using a different key and that solved it, but yeh will try clear data too next time! Aug 13 01:04:26 Thanks codebutler Aug 13 01:04:59 I must have saved it as a boolean once Aug 13 01:05:12 it's very annoying that there is no way to just get an object back regardless of type Aug 13 01:06:33 Maestro: It's like how Java documentation talks about how you shouldn't use checked exceptions for avoidable cases of programmer error, then proceeds to do it EVERYWHERE. Aug 13 01:08:12 anyone know what android version is the Galaxy S4 using currently Aug 13 01:08:21 4.2.2 I believe. Aug 13 01:08:41 heard rumors of 4.3 Aug 13 01:08:49 google edition has 4.3, i think Aug 13 01:09:25 Yeah, the Google Editions of the HTC One and GS4 are the only devices running 4.3 I believe, maybe the Nexus too? Aug 13 01:09:39 so GS4 does 4.3? Aug 13 01:09:53 Yes, the Nexus 4 and 7 both have 4.3. Aug 13 01:10:05 It does, but Google Edition devices are kind of lame. Aug 13 01:10:21 For all the reasons the MotoX won't be a "Google Edition" device. Aug 13 01:10:21 so not the normal GS4 Aug 13 01:10:38 I have T-Mo is the US Aug 13 01:10:42 in the US Aug 13 01:10:51 ask your carrier or samsung then Aug 13 01:10:52 No, not the normal one, however it's easy to slap 4.3 on the One, possibly relatively easy on the S4, but it's allegedly locked tight. Aug 13 01:11:17 but will come to all GS4s eventually? Aug 13 01:11:37 no one can answer that question Aug 13 01:11:55 was thinking of upgrading my GS3, haven't pull the trigger yet Aug 13 01:23:02 Hey guys, for some reason I can't start my service and I get a InstatiationException, and it wants an empty constructor. I have an empty constructor and it STILL crashes. Heres is the relevant code in the manifest, the service, and the stacktrace. If anyone could help me out that would be great. Thanks. http://pastebin.com/Rwf4HSnz Aug 13 01:23:14 Also worth noting that I have tried it with/without the super() and it still threw the same exception Aug 13 01:24:30 it's a non-static inner class? Aug 13 01:25:13 correct codebutler Aug 13 01:25:15 should it be static? Aug 13 01:25:37 how can that work? it's telling you there's no way to create the outer class. Aug 13 01:27:11 so who maintains AOSP now? Aug 13 01:27:15 codebutler: wait so should it be static? Aug 13 01:27:24 Sashi: I don't think it's been reassigned yet has it? Aug 13 01:27:43 codebutler you were using AS, right ? Aug 13 01:27:49 ollienx: dont think so Aug 13 01:28:10 reading Engadget article Sashi Aug 13 01:28:13 "Google will likely need a new AOSP overseer" Aug 13 01:28:37 i was reading the N10 4.3 AOSP stuff was missing GPU blobs ? Aug 13 01:29:10 ollienx: http://developer.android.com/guide/components/services.html Aug 13 01:31:25 g00s: isn't that the bit qualcom wanted to hide anyway, preventing them from putting it up in the first place? Aug 13 01:31:44 ollienx not sure http://www.androidpolice.com/2013/08/12/nexus-10-is-not-yet-supported-in-aosp-4-3-graphics-driver-looks-like-the-culprit/ Aug 13 01:32:14 * g00s doesn't have a n10; not so worried. i was going to get a N7 - still waiting on that Aug 13 01:32:28 i remember when the 2012 N7 came out, it had display issues Aug 13 01:32:37 maybe it's just me, but I don't see the point of a tablet Aug 13 01:32:37 seems like the same exact thing here http://www.androidpolice.com/2013/08/12/bug-watch-several-2013-nexus-7-units-suffer-from-erratic-and-jumpy-multi-touch-android-team-investigating/ Aug 13 01:47:09 bankai_: very funny. Of course I already read that. Aug 13 01:49:40 g00s: yes... Aug 13 01:49:50 ollienx: it tells you what to do... Aug 13 01:50:14 "That's all you need: a constructor and an implementation of onHandleIntent()." Aug 13 01:50:23 that's all I found related to the constructor in there Aug 13 01:51:47 that's an intentservice, you're not doing that, scroll a bit further down Aug 13 02:04:37 is there any way to have code meant for a NativeActivity to run in a service? Aug 13 02:05:09 you can run jni code from a service if that's what you're asking Aug 13 02:06:14 well I'm not really sure what I'm asking lol, I was just looking at the Xperia Play touchpad samples from SE and wondering how to convert inputs into keyboard inputs Aug 13 02:08:06 I keep getting these emails from seemingly compassionate people who are really keen to "help make my app flourish" with their service and making wonderful promises like it will be the next million dollar app for a "small" fee. Does everyone get this? And how does one filter out the crap from the serious? Aug 13 02:08:24 it's easy. All of it is crap Aug 13 02:08:25 CocoStorm: yes. and it's all crap Aug 13 02:08:40 anyone sending me unsolicited email is, by default, full of shit Aug 13 02:09:09 because all they're going to do is take money to spam more people. no thanks. Aug 13 02:09:12 dragorn, I see, yeah that's what i thought lol Aug 13 02:09:43 Yeah true! Aug 13 02:10:28 I'm thinking of using Admob though, is that one to avoid as well? Aug 13 02:11:08 I don't put ads in anything I do, so i wouldn't know. If it doesn't pollute the status bar or pop up other notifications/toasts with nonsense, it's probably tolerable Aug 13 02:11:40 admob is apparently legit, there's a lot of people who use their ads in their applications Aug 13 02:11:46 dragorn, ah I was thinking more promotion rather than to monetize my app Aug 13 02:11:52 it's also pleasantly easy to block though I don't use apps that have ads anymore it seems Aug 13 02:11:56 so there will be no ads in mine Aug 13 02:12:10 alankila, I see! Aug 13 02:12:31 at least 1-2 years ago it was enough to just send r.admob.com to 127.0.0.1 and never see another admob ad again Aug 13 02:12:34 my personal $0.02 is "write something cool and unique and it'll get noticed", but I tend to do weird limited-audience stuff so getting it noticed isn't per se the problem Aug 13 02:12:49 (having a limited market and doing OSS on the other hand is a big problem towards making it pay :P ) Aug 13 02:13:02 I write open source so even if it is noticed it doesn't help me financially. Aug 13 02:13:11 prefer to stay invisible in general though Aug 13 02:13:14 alankila: yup more or less Aug 13 02:13:48 alankila: heh. stealth field. it gets annoying after a while. friends at defcon this year said they were busting my stealth field and made me get up and talk about stuff; didn't really work :P Aug 13 02:14:44 I am afraid I don't know who's who on android anyway. I didn't even recognize JBQ. Aug 13 02:14:52 dragorn, yeah I totally related with the limited-audience apps Aug 13 02:21:47 bankai_: still trying here, read through it, can't find it, and in addition, tried an IntentService neither are working. SERIOUSLY confused. Could you please point in the right direction as opposed to linking me to a huge documentation page? Aug 13 02:22:14 you don't need to walk me through the api calls, but if you could be so kind as to even tell me where in the documentation page to look Aug 13 02:43:27 * pfn publishes android-sdk-plugin 0.9.0 Aug 13 02:43:28 weee Aug 13 02:44:43 nice! Aug 13 02:46:34 * pfn twiddles thumbs for his slow as shit upstream dsl Aug 13 02:46:44 I think I'm gonna switch over to uverse the next couple of weeks Aug 13 02:47:11 pfn: from? Aug 13 02:47:18 dsl Aug 13 02:47:23 I mean what ISP Aug 13 02:47:26 dslextreme Aug 13 02:47:29 ollienx: how are you starting this service? Aug 13 02:48:12 PendingIntent refreshPendingIntent = PendingIntent.getService(topContext, 0, intent, 0); then setting it with views.setOnClickPendingIntent(R.id.button, pendingIntent); Aug 13 02:48:25 several stackoverflow pages have indicated that that would work Aug 13 02:49:22 ollienx, have you made sure that you're waiting for your widget to finish loading? Aug 13 02:49:35 if you click a button on your widget before your provider has loaded, you will get no response Aug 13 02:49:42 I've mentioned this before already, iirc Aug 13 02:49:43 that doesn't get added to the button until after the widget has loaded Aug 13 02:49:58 that's the point, the widget can appear on-screen before the pendingintent can be set Aug 13 02:50:05 so if you tap the button before it's set, nothing will happen Aug 13 02:50:09 correct Aug 13 02:50:12 but that's not the problem Aug 13 02:50:16 then what is Aug 13 02:50:24 let me pull up the pastbein agian Aug 13 02:50:26 hang on Aug 13 02:50:31 http://pastebin.com/Rwf4HSnz Aug 13 02:50:38 Stacktrace is on the bottom there Aug 13 02:50:48 Worth noting that I have tried it without super() Aug 13 02:50:53 com.ollien.xkcdWidget.XkcdWidgetProvider$UpdateService; no empty constructor Aug 13 02:50:57 correct Aug 13 02:50:57 that seems pretty straightforward Aug 13 02:51:00 yes I know Aug 13 02:51:20 my constructor is literally public UpdateService(){} Aug 13 02:51:38 because you lack a basic understanding of java Aug 13 02:51:42 public static class UpdateService Aug 13 02:52:01 I don't lack a basic understanding of java, sir Aug 13 02:52:03 but you do Aug 13 02:52:06 explain why sir Aug 13 02:52:13 you nested UpdateService inside of XkcdWidgetProvider Aug 13 02:52:20 but you failed to mark UpdateService as static Aug 13 02:52:30 as a result, you have no no-arg constructor Aug 13 02:52:41 I've made nested classes that aren't static Aug 13 02:52:44 even though, it looks like you have one Aug 13 02:52:55 but it isn't no-arg like you think Aug 13 02:53:01 then what is it? Aug 13 02:53:21 it's implicitly public UpdateService(XkcdWidgetProvider outerTHIS) Aug 13 02:53:31 ok Aug 13 02:53:38 Thank you then Aug 13 02:54:33 a quick javap com.ollien.xkcdWidget.XkcdWidgetProvider.UpdateService would have revealed this Aug 13 02:55:23 Well I apologize for wasting your time then. Aug 13 02:55:55 are you trying to make an xkcd app? Aug 13 02:56:01 A widget for it yeah Aug 13 02:56:11 anyone have a good solution for this problem from the developers standpoint? http://www.droid-life.com/2013/08/08/play-store-update-to-4-3-10-causing-package-file-is-invalid-error-for-many-during-app-updates/ Aug 13 02:56:13 have you contacted the author of xkcd? Aug 13 02:56:21 One already exists, but I figured why not gain more experience and do it myself Aug 13 02:56:25 1. it's not going on the play store Aug 13 02:56:30 2. It's creative commons for no profit Aug 13 02:56:38 *non commercial rather Aug 13 02:57:00 From the bottom of xkcd.com "This work is licensed under a Creative Commons Attribution-NonCommercial 2.5 License." **** ENDING LOGGING AT Tue Aug 13 02:59:59 2013