**** BEGIN LOGGING AT Fri Jun 07 02:59:58 2013 Jun 07 03:05:24 Hey, anyone have experience with Android Studio and the Facebook SDK? Jun 07 03:52:16 hey guys… does anyone know how to decode the merchant-private-item-data from Google Checkout API? the transaction is generated through in app billing on android, so what is needed to decode that string? Jun 07 04:02:16 i know there's a way to have code trigger a breakpoint... but for the life of me I can't remember how Jun 07 04:02:19 anyone able to prompt my memory? Jun 07 04:04:11 vitriolix__: put a breakpoint on the line? Jun 07 04:05:23 not sure i understood Jun 07 04:05:48 but you set breakpoints in eclipse by clicking at the vertical bar left of the code, where error symbols also show up Jun 07 04:14:03 he means set a breakpoint from the code itself, not the ide Jun 07 04:16:56 vitriolix__: http://developer.android.com/reference/android/os/Debug.html#waitForDebugger() Jun 07 04:20:00 JesusFreke: thanks man Jun 07 04:51:09 hi Jun 07 04:53:01 private data can be stored in shared preferences and in internal memory and it will be persistent data even after phone reboots and battery plugged out. correct? now are both of these storages safe? I know applications cannot access each others data but what if the user plugs a usb cable into phone and copies and reads the data files in shared preferences and phone internal memory? Jun 07 04:53:53 then they can read it Jun 07 04:54:25 hm Jun 07 04:54:44 f2prateek, so is there a way to put some data in a very secure way? Jun 07 04:54:57 f2prateek, was my first statement correct? Jun 07 04:55:07 yes Jun 07 04:55:19 ok Jun 07 04:55:37 f2prateek, was my first statement correct? Jun 07 04:55:40 SORY ^ Jun 07 04:55:45 f2prateek, so is there a way to put some data in a very secure way? Jun 07 04:56:56 Quest: use that as the storage but encrypt it Jun 07 04:57:02 https://developer.android.com/training/articles/security-tips.html Jun 07 04:57:18 f2prateek, great answer Jun 07 04:57:24 that would be the easiest way Jun 07 04:57:33 f2prateek, shared prefs can also be encrypted? Jun 07 04:58:12 f2prateek, i observed that opening , writing and reading text files is different than that of in pure java Jun 07 04:58:22 by the way Jun 07 04:59:47 f2prateek, one last thing. If iam paranoid about my app. and i dont want my .apk to be source viewed by anyone for it to be tweaked or cracked up. as all java apps are in .class files. are there any tips to avoid or atleast make it difficult? Jun 07 05:00:55 proguard would help a bit Jun 07 05:01:00 *might Jun 07 05:03:38 f2prateek, thanks! Jun 07 05:03:51 I don't have enough experience with both to give a concrete recommendation Jun 07 05:04:06 f2prateek, signing or self signing would help? lke in .jar files? Jun 07 05:04:11 ok Jun 07 05:04:15 f2prateek: Do you have any experience with Android Studio? Jun 07 05:04:29 I have used it Jun 07 05:04:54 Ever managed to successfully add a library to it / gradle? Jun 07 05:04:57 yup Jun 07 05:05:48 May I require your assistance with importing a SDK? I've spent all day on it and got nowhere Jun 07 05:06:47 there's a sample on the build tools site Jun 07 05:07:05 http://tools.android.com/tech-docs/new-build-system Jun 07 05:07:44 the gps demos had one of how to have libraries Jun 07 05:08:11 and artifact dependencies Jun 07 05:15:51 f2prateek, i want to store some values in shared preferences, but in encrypted form, as suggested by you. how should i do that? is there a special way in android or just the normal java way? Jun 07 05:16:27 f2prateek, ref . https://developer.android.com/training/articles/security-tips.html#Crypto Jun 07 05:17:07 f2prateek, Cipher class. i gues? Jun 07 05:20:39 f2prateek: May I PM you? Jun 07 05:29:09 update your android studio! better gradle support now: https://plus.google.com/+TorNorbye/posts/FKVyYhsKwHU Jun 07 05:37:42 nice Jun 07 05:57:47 How does one handle a class implementing a runnable that continues to run while the app is active, then stops ondestroy but pauses/resumes on pauses resumes? Jun 07 06:07:11 decouple it from activity lifecycle, communicate over some other means (e.g., event bus, local broadcast manager) Jun 07 06:07:42 lasserix: from what i can see, you call handler.removeCallbacks(runnable); in onPause, and start it in onResume only (and not in onCreate) Jun 07 06:08:45 reference: http://stackoverflow.com/questions/13560243/how-to-stop-runnable-when-the-app-goes-to-background Jun 07 06:09:02 I'm not using a handler, I guess my question is more, when the activity is recreated, how do I regain the reference to the original thread the runnable is running on? Jun 07 06:09:39 can i call getExecutingThread in the runnable's run method (when going through unpause) and reset the assignment of the thread? Jun 07 06:12:05 or am i missing something, as it is, if I rotate the screen, the original thread used to run the runnable is still running, and hence a second one gets created Jun 07 06:13:54 is this thread for short operatinos (a few seconds) or do you need to keep it running for long periods of time? Jun 07 06:14:26 the later Jun 07 06:14:38 well know i only have two instances running ever :P Jun 07 06:17:18 the previous threads are stuck waiting when the activity finished being recreated Jun 07 06:18:28 lasserix: i'm new to this, but other than using a service, maybe you could manage your Runnable using an ExecutorService (http://developer.android.com/reference/java/util/concurrent/ExecutorService.html), "Method submit extends base method execute(Runnable) by creating and returning a Future that can be used to cancel execution and/or wait for completion." Jun 07 06:19:36 ahh this is for doing real time calculations that need to be fed into the ui thread Jun 07 06:20:48 so your concern would be how you would communicate the calculation results back to the UI? Jun 07 06:21:21 no Jun 07 06:22:01 ThreadPoolExecutor might be better for running calculations, it's designed for running many a bunch of tasks (each calculation could be a task?) http://developer.android.com/reference/java/util/concurrent/ThreadPoolExecutor.html Jun 07 06:22:03 i just want a class that implements runnable, whenever the activity is created i want to start that class's runnable, pausing when it goes into pause, resuming when it goes onresume, and finishes when the activity is destroyed Jun 07 06:22:54 why couldn't you achieve that by having an instance of an ExecutorService in your activity, and using it's cancel feature to stop the runnable at onPause, and start it up again onResume? Jun 07 06:23:21 i dont want to spawn a bunch of threads, just the one used by the class implementing runnable Jun 07 06:23:47 so only give it one task, which will be one thread Jun 07 06:24:19 where the task is your runnable Jun 07 06:24:29 hmm seems overly complicated and i haven't seen done in any of the patterns so far but thanks maybe i can use that till i can figure out the direct method :) Jun 07 06:25:17 yeah it might be overkill Jun 07 06:26:19 thanks for the suggestion Jun 07 06:26:23 np Jun 07 06:27:07 i'm going to have to do something similar myself, although i was planning on implemneting an actual service, and starting/stopping it when the app was in use or not Jun 07 06:28:41 apparently async options are: Thread, Executor, HandlerThread, AsyncTask, Service, IntentService, AsyncQueryHandler, Loader Jun 07 06:29:33 this is actually quite good, i think it even outlines the problem you are seeing on slide 17: http://www.slideshare.net/andersgoransson/efficient-android-threading Jun 07 06:32:24 sounds like you want a Loader Jun 07 06:34:19 this is for the logic of a game engine essentially Jun 07 06:35:30 lasserix: if you want to make use of multi-cores, etc, using something from the concurrent namespace is likely the way to go - that sounsd like a job for an Executor. A HandlerThread would be good if you just want a single thread Jun 07 06:36:52 oh nice, AsyncTask actually is like a HandlerThread that utilizes the executor framework, that sounds promising... Jun 07 06:41:56 ahh i figured it out: there's no way to reclaim the thread so you have to save state, stop it, start it again Jun 07 06:42:18 for the lifecycle, if i wanted to manually pause and unpause it i use a lock with wait and notify Jun 07 06:45:19 those were seperate: for the lifecycle you have to stop it, if you wanted to manually pause it you have to use wait/notify lock mechanism Jun 07 06:45:19 lasserix: so you save state when onPause occurs, or do you wait until onDestroy? Jun 07 06:45:28 onpause Jun 07 06:45:33 err Jun 07 06:45:55 in the view's class I stop it onPause, since it's going to be recreated if the activity is recreated Jun 07 06:46:12 i.e., in onResume Jun 07 06:46:22 but the runnable class itself has its own pause/unpause methods, that will use wait/notify method Jun 07 06:46:32 *wait/notify lock mechanism Jun 07 06:46:35 yeah Jun 07 06:47:05 interesting, ok good to know - the trick is this only works if you are ok coupling your thread to the lifecycle of a single activity Jun 07 06:47:14 which in a game, you would be Jun 07 06:47:39 in my case, i want a thread to be running the entire time the user is within my app, i think that will call for a slightly different mechanism Jun 07 06:48:17 definatly :) Jun 07 06:52:14 just read up on synchronized, and wait()/notifyAll(), looks like the perfect pause/unpause mechanism, but definitely not intuitive - i was looking for a mechanism implemented in the actual api, instead of in the threading implementation itself Jun 07 06:56:53 hey guys… does anyone remember how to allocated more heap size for Android Studio? or Intellij for that matteR? Jun 07 06:57:32 heap size for the IDE or for your app Jun 07 06:58:21 Jc_Dev: i've looked around, if you're looking for that you want to use loaders Jun 07 06:58:27 if you're talking about the IDE, i'm not sure why you would need to modify that, shouldn't it just work out of the box? Jun 07 06:58:50 Jc_Dev: one thing i did for my last app was to use a non-ui fragment with setRetainInstance I could pass everywhere in the same activity Jun 07 06:59:06 heap size for IDE… to compile faster Jun 07 06:59:18 with that you could use loader (the closest thing you can get to full blown api thread handling) Jun 07 06:59:52 i thought a loader is for observing data changes, and is typically coupled to the activity/fragment life cycle Jun 07 07:00:15 it is still confined within an activity, but with the nonui fragment you can hold state there Jun 07 07:00:21 dck28: Android Studio doesn't do any compiling, it uses gradle, maybe check the gradle docs Jun 07 07:00:46 lasserix: so you pass it around to whatever activity is currently active? Jun 07 07:00:48 Jc_Dev sounds like you want a service with its own thread? Jun 07 07:01:03 fragmentmanager (how to get fragment) only lives in activity domain i believe Jun 07 07:01:09 lasserix: i think so - it's a p2p client, so i'm thinking service, still looking into it Jun 07 07:01:19 ahh definatly Jun 07 07:01:39 ahh thanks Jc_Dev… there's a bar on the bottom right side of the IDE that shows how much memory was allocated and how much is currently using… that's why i thought it had a memory management built in. Jun 07 07:01:42 intentservice is handy for such things too, but doesn't live as long as you might need Jun 07 07:01:54 dck28: ah ok, good luck :) Jun 07 07:01:54 Jc_Dev: You've checked File->Settings->Compiler? Jun 07 07:02:18 lasserix: yeah, i think i'll have to micro-manage the service lifetime myself Jun 07 07:02:20 dck28 isn't that in your emulator configurations? Jun 07 07:02:44 kjeldahl: that was dck28 looking for that fyi :) Jun 07 07:03:50 Yeah, my screen was scrolled back a couple of pages it seems. Thanks. Jun 07 07:03:56 hehe np Jun 07 07:06:49 hmm… I totally forgot how i set it earlier.. but that was before I updated my IDE… it was the 1.0 back then maybe they changed some UI… I see I can set max heap within java, dx and groovy compiler preferences Jun 07 07:07:14 not sure how that correspond to the bar on the bottom right tho... Jun 07 07:07:28 in the area kjeldahl mentioned, there is a heap size for compiling, is that what you wanted? Jun 07 07:08:03 mine matches very closely, it's set to 700 and my bar says 61 of 710 allocated Jun 07 07:08:50 hey guys suggest me on this https://groups.google.com/forum/?fromgroups#!topic/android-developers/2RHvFm0tJP0 Jun 07 07:13:04 got it… i was looking for idea.vmoptions… Jun 07 07:13:19 Android03: that's not a valid layout directory Jun 07 07:13:44 @Jc-Dev which directory Jun 07 07:13:46 ? Jun 07 07:13:48 the syntax is: swdp where N is the screen width the layout wants, e.g. layout-sw600dp Jun 07 07:13:58 you can't just append a random resolution like that Jun 07 07:14:40 this is assuming you're using API level 13 or up, if not, you're limited to the size-specific qualifiers "small,normal,large,xlarge" Jun 07 07:14:50 reference: http://developer.android.com/guide/practices/screens_support.html Jun 07 07:16:07 but 360 is not the random resolution it is for nexus...AM i wrong? Jun 07 07:18:07 @Jc_Dev my API levels in manifest are android:minSdkVersion="10" android:targetSdkVersion="16" Jun 07 07:18:07 i don't understand what you're asking Jun 07 07:18:53 ok, so depending on what your device is running, will determine which layout folder terminology is respected (i think) Jun 07 07:19:58 @Jc_dev Ok can you tell me if i want some layouts to be rendered separately for google nexus device only what i should be doing ? Jun 07 07:22:42 Android03: that's exactly opposite the way you should be thinking, you do not design for specific devices, you design for a few different "minimum" resolutions and provide alternate layouts, and android itself will select the best option Jun 07 07:22:54 for example, you should not be using AbsoluteLayout Jun 07 07:23:32 i highly recommend reading http://developer.android.com/guide/practices/screens_support.html Jun 07 07:23:51 another concept you'll want to implement is Density Independance Jun 07 07:24:06 *Independence Jun 07 07:25:10 you'll find it difficult to make a layout for a specific device, because that's against best practices and the api tries to guide you towards these other techniques Jun 07 07:26:28 ok i ll look into this developer guide Jun 07 07:26:36 good luck! Jun 07 08:03:52 argh Jun 07 08:04:09 anyone here with experience submitting stuff to https://android-review.googlesource.com/ ? Jun 07 08:04:33 i'm trying to follow the instructions at https://gerrit-review.googlesource.com/Documentation/user-upload.html Jun 07 08:05:51 but they don't seem to be using the standard 29418 port Jun 07 08:11:47 hy everyone. does anybody know how launch a feature at the end of an asynctask but without start the feature in the onPostExecute code of the asynctask? thks Jun 07 08:15:54 minioim: Can you explain your question more? Jun 07 08:16:06 What do you mean by "feature"? Jun 07 08:17:15 You'll almost certainly have to do whatever you want to do from onPostExecute, though; that's what it's there for. Jun 07 08:27:14 pjdelport: feature-> a function for example. yeah I imagine I can use onPostExecute, but for example: my first AsyncTask has to be used oftenly during the lifetime of my app. and I want to use a second Asynctask which should be used once after the launch of the app BUT only after execution of my first AT Jun 07 08:28:28 so I don't want to code it into the onPostExecute of the first AT cause that would lauch it each time... exept if I use a if with a boolean but that's nor really beautiful... Jun 07 08:28:44 not* Jun 07 08:29:04 Well, there are many ways to orchestrate that kind of thing. Jun 07 08:29:16 What are the actual tasks? Jun 07 08:29:32 i suppose yes ^^ could you give me some keywords for my researchs please? Jun 07 08:29:46 almost calling a server with webservices Jun 07 08:30:15 http://developer.android.com/ has most of what you'd need to know Jun 07 08:30:25 have you looked at loaders and services? Jun 07 08:30:52 If you describe your actual tasks, i might be able to give you more useful advice; it really depends on the details of the tasks. Jun 07 08:31:23 What do you call the web service with, and what do you do with the results? Jun 07 08:31:58 Does the data stay static, or change, or what? Jun 07 08:32:29 ok, my first task is an easy one: I want to test if the server is responding. so I use ksoap2 lib to call an easy WS (sayHello) and if the answer from the server is the one I expect, my connexion is ok. Jun 07 08:33:32 all right Jun 07 08:33:43 if the connexion is ok, I call a second WS, sending in the same time few datas from the sqlite database. the server compares data with its own database and send me updates if necessary Jun 07 08:34:10 but of course, I must call the second WS only if the connexion is ok... Jun 07 08:35:02 and that's all my trouble, cause the second WS must be call only once during the lifetime of the app but I want to be able to reuse the first WS (testing connexion) Jun 07 08:35:18 That sounds like the kind of thing you'll want to put in a service. Jun 07 08:35:37 i love the fact, that google people are developing Andoroid studio, i think it will help improve quality of android apps in teh long run Jun 07 08:35:44 eclipse is just too flawed Jun 07 08:35:50 Well, if it's SOAP, it's probably not reusing the connection Jun 07 08:36:11 ok so i'll look for services. thanks a lot. Jun 07 08:36:20 (or if it is, it's not something you should observe or rely on) Jun 07 08:36:35 minioim: are you just using the updates to update the UI? Jun 07 08:36:55 if so, you'll probably want to implement it as a loader Jun 07 08:37:03 http://developer.android.com/guide/components/loaders.html Jun 07 08:37:05 (no, I mean, I want to reuse the asynctask in charge of testing connexion) Jun 07 08:37:34 ok so: I must look for services and loaders. thks a lot pjdelport. Jun 07 08:37:36 hmm, you probably don't want to do that Jun 07 08:37:46 ^^ what do you mean? Jun 07 08:38:01 if you're mainly delivering results to update the UI, then you probably want a loader Jun 07 08:38:46 you can do all the SOAP calls in the loader, and keep monitoring the service; if there are changes, then you deliver the results Jun 07 08:38:53 and the loader framework takes care of the rest Jun 07 08:39:03 (what is sure, it's that: I'm a mecanical engeneering student who is trying to become a dev on is own. so not easy :/ Jun 07 08:39:14 and thanks a lot for your help Jun 07 08:39:37 oh that's sound very good! Jun 07 08:39:51 ah, okay; yeah, it'll take some time to learn... things like the loader and service frameworks help a lot with taking care of the details for you, though Jun 07 08:40:37 Loaders are strongly bound to the UI: you use them if your data source only needs to be queried as long as the associated Activity or Fragment is active Jun 07 08:40:50 ok I have to go, but I'll check for it and you have my eternal gratitude ^^ Jun 07 08:40:56 okay Jun 07 08:41:24 Services can do a bit more... mainly if you need to do more complicated data management than just updating an activity / fragment Jun 07 08:41:33 so check that out if a loader isn't enough Jun 07 08:41:42 that's perfect. Jun 07 08:41:52 :) Jun 07 08:41:57 bye, or see you soon Jun 07 08:49:27 what's the difference between getFragmentManager() and getFragmenSupportManager() ? Jun 07 08:50:43 primski: former is native, latter the support library's version Jun 07 08:51:02 you should only be using one or the other, generally Jun 07 08:51:14 (and you should use each one in the same contexts as the other) Jun 07 08:51:20 aha ok great thanks Jun 07 08:52:48 pjdelport: http://source.android.com/source/submit-patches.html <--- did you follow that? Jun 07 08:53:41 Hello, I need a rich text edit view and im considering to use a webView. is there a way to make that editable? Jun 07 08:54:50 I don't think so Jun 07 08:54:58 p_l: yes, to a point; i'm trying to just submit the patch directly with Gerrit, first Jun 07 08:55:43 pjdelport: I think such approach might be a bit broken, but good luck :) Jun 07 08:55:47 it's a tiny change to the support library, already ready, and i don't want to download gigabytes of source code and set up the entire Android platform just for that Jun 07 08:56:14 p_l: it can't be broken; if repo can submit Gerrit reviews, then it obviously has to work :P Jun 07 08:56:17 hmmm.... couldn't you configure repo to check out just the support lib? Jun 07 08:56:28 pjdelport: yes, but this way you could extract the information :) Jun 07 09:00:49 anyone know if it's possible to disable interaction with the map fragment? Jun 07 09:02:19 nvm got it - getUiSettings().setWhatever Jun 07 09:08:27 so i'm trying to build a simple app using fragments for swiping left and right ... you think i should use support library or not? the only difference is frameworks version requires api level 11 ? Jun 07 09:09:04 primski: what are you planning on using? Jun 07 09:09:20 i am building a simple calendar, fragments are used for displaying a month using gridview and gridadapter Jun 07 09:09:37 guys, i need to display fractions (1 + 2 * 4x) over (27 + 3x) ; and i need that editable, do you have any idea how it can be done on android? Jun 07 09:09:38 Hey there - I am trying to send messages to gcm with an own implementation - I am getting success responses but the messages take 2h or more to get to the phone - sometimes they don't make it there at all..does anyone has experience with gcm? Jun 07 09:09:51 for the swiping, i mean; ViewPager? Jun 07 09:10:30 yea i was going to, i was following a tutorial i can no longer find ... but now am just learning about the difference in support library and frameworks version Jun 07 09:10:45 i used FragmentStatePagerAdapter Jun 07 09:12:37 viran: try http://stackoverflow.com/questions/1784786/mathml-and-java and http://stackoverflow.com/questions/5767409/math-or-latex-engine-for-droid-phones ? Jun 07 09:13:17 primski: ViewPager isn't actually available in the framework; it's just in the support library Jun 07 09:13:25 so you'll need it either way Jun 07 09:13:35 there are two versions of FragmentStatePagerAdapter, at least Jun 07 09:13:45 one for the v4 compatibility fragments, and one for native fragments Jun 07 09:13:50 both usable with ViewPager Jun 07 09:14:14 so you can include the support library and stick to native fragments Jun 07 09:14:23 so i should use the support library ... extend the activity instead of fragment and use ViewPager Jun 07 09:14:49 it will work on more devices as well, right, api level < 11 ? Jun 07 09:15:04 well, you'll use the support library for ViewPager, but not necessarily the support library's fragments Jun 07 09:17:55 Is there a way to set textwatcher in xml ? Jun 07 09:18:02 ok how about extending regular activity vs FragmentActivity ? Jun 07 09:18:39 bluesm: how would you "do" something when a condition is met ? Jun 07 09:18:44 oh and no there is not Jun 07 09:19:27 StingRay_: I mean set object name. Jun 07 09:19:57 StingRay_: like android:onClick Jun 07 09:20:02 dunno, not really lots of reason to try Jun 07 09:20:08 seriously doubt it Jun 07 09:20:52 dont quite get why you would want to Jun 07 09:23:04 also I think a click is a blind thing in that case Jun 07 09:23:22 a textWatcher is something that is persistantly "watching" Jun 07 09:23:45 StingRay_: Couse I have really "static" layout, and I created to my all buttons onClick Property. Jun 07 09:24:04 StingRay_: "blind" ? Jun 07 09:24:36 yes as in it will fire View > listener even if the listener is not there Jun 07 09:24:47 primski: regular activity is for using the platform's fragments; FragmentActivity is for using the support library's fragments Jun 07 09:24:58 but a textWatcher is more like tw > view > tw Jun 07 09:25:16 well actually probably more like view > tw > view > tw Jun 07 09:25:40 thanks pjdelport ...fragmentactivity it is then Jun 07 09:26:23 primski: in that case, you'll need to adjust all your code as necessary to use the support library versions of everything fragment-related Jun 07 09:26:38 everytime you use android:onClick https://lh3.ggpht.com/_ZkWt9IsMEqo/Rx5zxht1O2I/AAAAAAAAAsg/-STqdlIKObw/s400/normal_domokuns-kitten.jpg Jun 07 09:26:38 StingRay_: You mean that textwatcher watch the EditText, but "onClick" listener is build in view ? Jun 07 09:27:32 pjdelport: yea, i think i started off with this approach but was just confused how there are two versions of every class ... Jun 07 09:30:45 bluesm: what you want is a little wrong design wise and wont work neways Jun 07 09:31:30 StingRay_: Ok, I understand. Jun 07 09:31:42 a listener can take many views, a textwatcher unless you mod/extend it can't Jun 07 09:31:53 StingRay_: It is completely not flexible. Jun 07 09:32:02 primski: Ah, okay. Yeah, the whole API is mirrored, so it's something to be aware of. You don't want to mix them accidentally. Jun 07 09:33:06 Is there a way to make "done" button on the keyboard that will hide keyboard and trigger some event ? Jun 07 09:35:00 yes Jun 07 09:35:18 by intercepting/overide that "keypress/event" Jun 07 09:37:40 hi all Jun 07 09:38:19 is there a way to launch an installed activity (no my own activity but one on the installed activities) in a resized window ? Jun 07 09:39:54 i would like to have my activity occupying half of the screen and to launch one of the installed applications in the remaining space Jun 07 09:40:04 anyone know if this can be achieved ? Jun 07 09:45:19 ohmy: I don't think you can do that for an arbitrary activity. What are you launching? Jun 07 09:46:44 pjdelport: i have one map navigation activity and i created annother activity to send some positioning data to it, each time i launch the map activity it displays in full screen Jun 07 09:47:10 pjdelport: reason why i was to have two activities sharing the screen and haven't found any such api Jun 07 09:47:39 pjdelport: two view for the same activity ok, two activities sharing the same screen looks to be unnfeasable Jun 07 09:48:14 if one is not yours then yeah, that is a bit wrong Jun 07 09:48:26 cause your not on about an activity, your on about an app Jun 07 09:48:43 StingRay_: thank you Jun 07 09:49:37 ohmy: https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/MapFragment ? Jun 07 09:50:20 that's how you'd include a map in your layout Jun 07 09:50:25 pjdelport: thanks i know it already Jun 07 09:50:34 what's the problem, then? Jun 07 09:50:44 he wats to run some1 elses app Jun 07 09:50:48 in half the screen Jun 07 09:51:58 right, and MapFragment is how you'd do that for a map Jun 07 09:52:07 no Jun 07 09:52:18 an app Jun 07 09:52:30 that has a maybe a few frags and a mapFrag Jun 07 09:52:51 pjdelport: the map is just an example, i want to be able to drive the navigation app, launch someweb radio app also etc, the map was just one example Jun 07 10:05:34 Sorry, I got disconnected. Jun 07 10:06:49 has anyone down opengl for android? for a game loop, mostly goes update render so i'm assuming that means renderwhendirty is set to true and the render is requestrender? Jun 07 10:06:52 google appear to be taking money out of my account each month not adding it, any ideas? Jun 07 10:08:46 ideas about what ? Jun 07 10:08:57 about why google are taking money out Jun 07 10:09:04 ask them Jun 07 10:09:12 lol Jun 07 10:09:14 as if Jun 07 10:09:23 as if what ? Jun 07 10:09:30 any time a company gets sucessful, they dont answer emails! Jun 07 10:09:35 as if they would answer me Jun 07 10:09:43 depends how you ask Jun 07 10:09:50 doesnt Jun 07 10:09:54 they will never see the mail Jun 07 10:09:54 ok Jun 07 10:09:56 or respons Jun 07 10:09:59 ok Jun 07 10:10:01 respond Jun 07 10:10:16 if thats what you think :) Jun 07 10:10:22 accept it then Jun 07 10:10:24 :) Jun 07 10:10:27 well its been true with every company in my life Jun 07 10:10:33 so i dont see why google would be different Jun 07 10:10:43 like I said, depends on the context and how you ask Jun 07 10:10:53 hi Jun 07 10:10:58 yeh well i dont think so, but cheers :) Jun 07 10:11:25 Gaz`: mail the correct support channel, and you should get a response Jun 07 10:11:36 lol i love this planet u guys live on Jun 07 10:11:52 same here, earth aint too bad Jun 07 10:11:55 you should try it Jun 07 10:12:14 Or, you know, defeat yourself, if you insist. :P Jun 07 10:12:22 i should try it yeh Jun 07 10:12:26 just to vindicate :) Jun 07 10:12:28 one of us Jun 07 10:12:32 or at the very least, you should entertain the "possiblility" that some1 may have more of an idea than you Jun 07 10:12:50 not quite tho Jun 07 10:12:58 thats like saying go breath milk it will get your money back Jun 07 10:13:01 i know that isnt correct Jun 07 10:13:15 you know ? Jun 07 10:13:17 or think Jun 07 10:13:21 big difference Jun 07 10:13:22 jesus Jun 07 10:13:27 :) forget it! Jun 07 10:13:39 ok to prove a point Jun 07 10:13:52 cause you should at least entertain different ideas Jun 07 10:13:56 and consider you maybe wrong Jun 07 10:14:08 depends on context Jun 07 10:14:10 how do you think they prioritise information Jun 07 10:14:19 right now im just wondering why google keep taking ÂŁ2 from me Jun 07 10:14:24 but i dont care too uch Jun 07 10:14:26 much Jun 07 10:14:53 but have u really ever emailed a largwe company and had a response Jun 07 10:14:55 i havent Jun 07 10:15:05 depending on why, yes Jun 07 10:15:09 always :) Jun 07 10:15:18 and in your situation, yes Jun 07 10:15:42 well in the same context yes Jun 07 10:15:53 not your exact situation Jun 07 10:18:32 when communicating between a thread that does logic and a thread that renders, you cannot simply synchronize the threads, because this will inevitably cause a jitter since every so often the logic thread updating the state will block the rendering thread from drawing? Jun 07 10:20:08 lasserix: The UI thread is event-driven, so the golden rule is just that you don't block it, whatever synchronization or communication method you use. Jun 07 10:22:16 i'm not using the pjdelport to do either Jun 07 10:25:31 ? Jun 07 10:27:00 hehe sorry Jun 07 10:27:11 a little tired, i'm not using the UI in either Jun 07 10:27:27 oh? Jun 07 10:27:30 how are you rendering? Jun 07 10:28:11 and if not UI, what would be affected by jitter? Jun 07 10:30:30 i am using glsurfaceview Jun 07 10:30:38 which handles rendering in its own thread Jun 07 10:31:12 anyone know how to speed up the emulator on Windows? amd64 here Jun 07 10:31:32 I could do it in Ubuntu with kvm Jun 07 10:31:50 *have done Jun 07 10:32:02 get an intel proc Jun 07 10:32:11 and run the x86 image Jun 07 10:32:17 with hax Jun 07 10:32:22 only possible for Intel in Windows? Jun 07 10:32:28 haxm Jun 07 10:32:30 Does anyone use vim with syntastic, and know how to make it not complain about package R missing? Jun 07 10:33:03 razzledazzle: I'm running the x86 images on Ubuntu (with no hax) Jun 07 10:33:09 StingRay_: it sped up in Ubuntu, with kvm, yes with the x86 image Jun 07 10:33:26 pjdelport: there was some performance improvement with x86 Jun 07 10:33:40 but its soooo smooth on Ubuntu with kvm Jun 07 10:33:57 I didn't believe it was even possible on this system Jun 07 10:34:11 Harpyon: add your project's bin/classes to g:syntastic_java_javac_classpath Jun 07 10:34:23 just wanted to know if its possible here in Windows for AMD Jun 07 10:34:55 razzledazzle: no idea about Windows, sorry Jun 07 10:35:42 pjdelport: so you're running yours on Linux? Jun 07 10:36:06 with KVM + x86 image? or just the x86 image? Jun 07 10:36:32 lasserix: ah; well, what's your state? Jun 07 10:36:34 guys, i need to display fractions (1 + 2 * 4x) over (27 + 3x) ; and i need that editable, do you have any idea how it can be done on android? Jun 07 10:36:59 if you need the state to actually draw, you probably can't do any better than blocking / waiting for it Jun 07 10:38:10 you'll just want to minimize the window for updates Jun 07 10:38:47 or only check/update the local state after each frame finishes drawing Jun 07 10:39:03 (i'm not that familiar with the GL APIs, but I'm guessing there should be something like that in there) Jun 07 10:39:22 razzledazzle: just the plain x86 images Jun 07 10:39:31 with host GL acceleration, it's plenty fast for my needs Jun 07 10:39:41 viran: textView"s" ? Jun 07 10:40:13 pjdelport: could you give me the command for doing so? I can't seem to get it right Jun 07 10:42:25 StingRay_: using two textView's for one fraction is possible, but i have a long dynamic expression with a few different fractions in it. is there a way i could subclass textView and make it display fractions like objects? Jun 07 10:42:58 well would you not just draw the text yourself then you have total control Jun 07 10:43:04 over all elements ? Jun 07 10:43:16 Harpyon: no special command; i justed downloaded the x86 images and defined the AVDs to use them Jun 07 10:43:30 err, sorry, wrong response Jun 07 10:44:01 Harpyon: you can do it however fits your local config best, but i have it in .vim/ftplugin/java.vim Jun 07 10:44:17 StingRay_: i need to be able to edit the text, im using an EditView right now but it does give me enough functionality Jun 07 10:45:14 But what's the command? Just :let g:syntastic_java_javac_classpath += "bin/classes" ? Jun 07 10:45:54 Harpyon: http://pastebin.com/E0LEsuUn Jun 07 10:46:23 the syntastic plugin is a bit funny; it actually splits on newlines for whatever reason Jun 07 10:46:34 but the above works Jun 07 10:49:02 is it possible extend android.text.Html and add some html tags? maybe? Jun 07 10:53:10 probably not too easily Jun 07 10:53:44 pjdelport: I think that overrides the $CLASSPATH, since now all the android imports errored.. I added bin/classes to $CLASSPATH in the script that adds the android jar though, and now both javacomplete and syntastic works with R. Jun 07 10:55:28 Harpyon: hmm, it shouldn't override it Jun 07 10:55:51 i have my CLASSPATH pointing at the SDK Jun 07 11:00:07 Harpyon: oh, i actually have the SDK jar in g:syntastic_java_javac_classpath too Jun 07 11:08:09 hy all, I'm wondering if I can use loader to get data from a databases which is on a server. currently I use asynctasks and webservice but that's not enought. loader could be great but how using a distant database? Jun 07 11:11:39 You can use loaders with anything, really. Jun 07 11:12:37 if you already have an asynctask, there's a very similar AsyncTaskLoader Jun 07 11:13:03 that's exactly what I just found :) Jun 07 11:13:34 the main difference between the two is that you have to manage the AsyncTask's lifecycle entirely on your own, while AsyncTaskLoader is managed by the LoaderManager for you Jun 07 11:13:45 (cause the use of cursor was not really suitable since I use WS which can't return cursor Jun 07 11:13:54 ok Jun 07 11:14:03 I'm reading the doc ;) Jun 07 11:14:23 but you confirm that's a good way :)) Jun 07 11:14:27 Loaders are win Jun 07 11:14:33 ^^ Jun 07 11:14:49 yeah, you'll probably want AsyncTaskLoader Jun 07 11:15:01 great :) Jun 07 11:15:22 inside loadInBackground() you'll do everything you need to do Jun 07 11:15:32 and you can do blocking I/O without worries Jun 07 11:15:48 so you can do all your SOAP calls, and have a loop that periodically polls for updates Jun 07 11:16:39 that sounds great :) Jun 07 11:19:36 minioim: you can look at the example loader for packages Jun 07 11:19:45 at http://developer.android.com/reference/android/content/AsyncTaskLoader.html Jun 07 11:20:35 currently reading it ;) Jun 07 11:26:24 in FragmentStatePagerAdapter ... is item[0] always the first fragment displayed, or can i tell it which fragment is default .... in my calendar example, i'd like it to display current month and then swipe left for past and right for future months . Jun 07 11:28:42 the way i understand it ... getItemPosition should take care of that ... i have this function return month index ... is this good? Jun 07 11:29:10 my thinking was if i display month 5 (zero based June) i want it at 5th spot, si 4th spot is May and 6th spot is July Jun 07 11:30:15 the problem is this function isnt even getting called for some reason Jun 07 11:35:34 primski: you'll probably need to decide on some fixed number of months to support going back for Jun 07 11:35:53 it looks like ViewPager needs a bounded count Jun 07 11:36:41 i will always display one year , so 12 months is fixed number, you mean this? Jun 07 11:36:55 i have getCount return int 12 Jun 07 11:37:33 you could use e.g. a count of 120 to support a window of 5 years into the past or future, and just start it at the current month initially Jun 07 11:37:47 ah, so only one year? Jun 07 11:37:55 yea, currently just one year Jun 07 11:39:01 then you can setSelectedNavigationItem() for the initial month Jun 07 11:39:11 like in the ViewPager example Jun 07 11:39:49 ok thanks i'll check this out Jun 07 11:47:30 hmm my game has started jerking quite badly for the first 30 secs Jun 07 11:47:32 but this is an actionbar method .... i'm not even using actionbar .. have Theme.Holo.Light.NoActionBar .... is this going to work? Jun 07 11:47:33 what can cause that Jun 07 11:47:40 whoops wrong chan Jun 07 11:48:42 oh, doh Jun 07 11:49:32 setCurrentItem() is what you'll want Jun 07 11:49:55 great ... i'll try this Jun 07 11:59:07 this appears to work, but i need to explicitly tell it which month is currently active... how about method "setPrimaryItem" on FragmentStatePagerAdapter ... if this function always set current month as primary, would this work, but i'm not exactly sure how this function must look then. Jun 07 12:01:15 i'm not too sure offhand, sorry Jun 07 12:03:21 no worries, thanks for your help, wouldn't even come this far Jun 07 12:18:21 well i made it set the primary item of currently active month but it doens't seem to have any effect, it still displays january as first item, will just go with your aproach, thanks again much appreciated Jun 07 12:19:18 now i need to figure out why it crashed when i change orientation ... probably something to do with layouts eh? Jun 07 12:20:29 or not :-) Jun 07 12:20:32 with adb logcat you can find out Jun 07 12:20:52 what is the error msg? Jun 07 12:21:32 um, sec Jun 07 12:21:41 06-07 14:21:15.010: E/AndroidRuntime(9210): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.inueni.nhairkut3/com.inueni.nhairkut3.CalendarMonthActivity}: java.lang.NullPointerException Jun 07 12:21:58 null pointers!! Jun 07 12:22:09 just like a segfault Jun 07 12:22:41 hm Jun 07 12:22:56 lol Jun 07 12:23:04 kc8hfi_: I thought a seg fault was caused by memory access error Jun 07 12:23:05 yes, i'm a noob Jun 07 12:23:06 :D Jun 07 12:23:18 not by lack of an object Jun 07 12:23:38 as in segfault is low level, npe is high level, object is null kinda thing Jun 07 12:23:41 probably need to put some declaration in the onResume instead of onCreate ? Jun 07 12:24:06 initialization I mean Jun 07 12:24:11 I think ;-) Jun 07 12:24:11 lol Jun 07 12:25:08 StingRay_: ok, if you get down into the details, then yeah, thats right Jun 07 12:25:38 it works if i start the app in either orientation Jun 07 12:25:46 but chaning it during runtime it crashes Jun 07 12:25:59 if you look at c++ objects, if the object isn't initialized, you get a segfault. with java objects the object is not initialized, you get a NPE Jun 07 12:26:08 primski: read the exception, and realise that android kills the context/activity when rotating Jun 07 12:26:12 and re-creates it Jun 07 12:26:22 if you dont account for that, you will get probs Jun 07 12:26:58 and the error/strack trace is bigger than those 2 lines you pasted, and will have line reference to your code too Jun 07 12:27:01 StingRay_ ... so doing init in onResume might work for him right? Jun 07 12:27:34 well yeah, but the problem exists that he needs to track and keep states Jun 07 12:27:46 as in adapter and index states etc Jun 07 12:27:54 ah Jun 07 12:28:01 I dont want to be in december, then rotate and be in june Jun 07 12:28:11 I shoot the developer at that point Jun 07 12:29:21 http://developer.android.com/training/basics/activity-lifecycle/recreating.html#SaveState Jun 07 12:29:24 like that ? ;-) Jun 07 12:29:36 ya Jun 07 12:35:26 ok thanks will check it out a little later, something came up Jun 07 12:39:49 aloha Jun 07 13:00:00 hi. I have some objects I keep at application class. when the application is cleaned from the memory and reopened my objects gets null. what kind of approach can I take for this kind of problem? Jun 07 13:02:17 vudu: You generally have to initialize or restore your state at the appropriate places in the lifecycle, for example your Activity's onCreate(). Jun 07 13:03:09 pjdelport: I am not talking about application. I am talking about activity. Jun 07 13:03:12 screen Jun 07 13:03:49 :D sorry Jun 07 13:04:11 I am talking about application objects. not activity Jun 07 13:04:45 vudu: Right, that's just an example; the approach is the same. :) Jun 07 13:05:07 What state are you maintaining? Jun 07 13:05:43 pjdelport: application class does not have save instance state and restort Jun 07 13:06:24 I am keeping the user object that I get from server. Jun 07 13:07:16 vudu: well it has onTerminate and onCreate Jun 07 13:07:26 cache your objects to disk Jun 07 13:07:39 or do it the normal way with a service Jun 07 13:07:45 that if killed also saves to disk Jun 07 13:07:47 :) Jun 07 13:07:56 Hey, I'm trying to use the log, so I made a function for a button, when it is pressed, 'Log.w("TESTLOG", "Button Clicked");' is executed, but there's nothing at my logcat tab. Do you see any fault? Jun 07 13:08:33 MoeMorox: you have not selected the correct device Jun 07 13:08:35 or Jun 07 13:08:44 StingRay_: I t Jun 07 13:08:44 you have masked out "warnings" Jun 07 13:08:59 I selected Log Level: Warnings Jun 07 13:09:16 and it's the right device, I don't use any VMs and got only one android phone^^ Jun 07 13:09:20 do you get all other logcat warnings from os and other apps ? Jun 07 13:09:22 heya StingRay_ thanks for the help last time Jun 07 13:09:27 yup Jun 07 13:09:34 then your onclick is not fired Jun 07 13:09:34 e.g. there's my ownCloud Jun 07 13:10:03 hey guys, is there an easy way of detecting 3x two finger taps? gesture detector is not a very friendly api.. Jun 07 13:10:12 as in the view is not triggering the onClick Jun 07 13:10:18 debug and set breaks and find out Jun 07 13:10:40 StingRay_: one of the objects that I have is a facebook object which is not serializable. so I couldn't write it on the disk Jun 07 13:11:03 Does anyone here have an Evo 4G and is willing to run a method profiling of my project on it? Jun 07 13:11:08 vudu: Right, what StingRay_ said; the Application object is probably not the best place to maintain that kind of state. Jun 07 13:11:33 zeroZshadow: how did I help ? Jun 07 13:11:35 only state objects should be serializable - connections to external servers should be created/destroyed as the application is active and not Jun 07 13:11:48 that live background ? Jun 07 13:12:02 If it's a Facebook user handle, you'll want to acquire or re-acquire it in the activities that need access to it. Jun 07 13:12:13 pjdelport: so how I am going to keep my common obcets throguh the application? Jun 07 13:12:13 StingRay_, you tested it on your nexus ;P Jun 07 13:12:19 yes Jun 07 13:12:27 zeroZshadow: fixed it now ? Jun 07 13:12:31 sadly no xD Jun 07 13:12:34 tut Jun 07 13:13:04 someone with an HTC Evo 4G just commented it got a lot faster then before, but its still to slow to run propperly ... Jun 07 13:13:14 its always something Jun 07 13:13:22 vudu: It depends entirely on the state in question; there's no universal answer. In almost all cases, you'll probably want to associate the live state with activities and fragments, though. Jun 07 13:14:06 Potentially loading from and saving to preferences and/or SQLite, or something else, as approriate. Jun 07 13:15:23 StingRay_, The biggest optimizement left i can see, is changing the rendering i have atm, to VBO's Jun 07 13:15:54 but for 4 models, 3 of wich are just quads. i really dont see how this would give a speed improvement so huge Jun 07 13:16:15 pjdelport: in my case I have two activities. login activity and main activity. I do the login stuff at the login activity and keep it on the application. the user object gets used in the main activity . so if the main activity is started without login activity. I get null pointer exception Jun 07 13:16:26 anyways thank you Jun 07 13:16:27 its not like the HTC Evo and Galaxy Nexus are so crappy they cant handle that Jun 07 13:23:09 is the onCreateOptionsMenu function called every time, when it shows the options menu? Jun 07 13:28:42 MoeMorox: no offence Jun 07 13:28:44 but Jun 07 13:28:45 http://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu(android.view.Menu) Jun 07 13:29:22 "This is only called once, the first time the options menu is displayed" Jun 07 13:34:44 okay Jun 07 13:36:25 hello guys Jun 07 13:36:35 how do you make the settings button appear on the system bar? Jun 07 13:36:57 *status bar Jun 07 13:37:12 I've set the theme/style to go fullscreen Jun 07 13:37:16 that means no action bar Jun 07 13:37:28 system bar? Jun 07 13:37:30 no problem on older devices with the menu button Jun 07 13:37:39 Mavrik: status bar Jun 07 13:37:59 but the newer devices don't have that button Jun 07 13:38:19 so let me get that straight Jun 07 13:38:24 you've hidden the action bar Jun 07 13:38:33 I developed on my emulator, and it worked fine, I found out about the problem when I started it up in the tablet Jun 07 13:38:34 yes Jun 07 13:38:36 and now you're wondering how to show the menu overflow button… instead of the action bar? Jun 07 13:38:44 which is always on action bar? Jun 07 13:38:47 yes Jun 07 13:38:56 you got it Jun 07 13:39:13 well Jun 07 13:39:17 don't hide the action bar. Jun 07 13:39:22 that's pretty much all you can do. Jun 07 13:39:26 the only solution? o.o Jun 07 13:39:26 skin it if you must. Jun 07 13:39:33 hmm.. Jun 07 13:39:52 well, you can rethink your approach and not hide options in the menu :) Jun 07 13:39:55 can I not take control over the status bar? like force it to have buttons of some sort Jun 07 13:40:11 um Jun 07 13:40:14 what status bar? Jun 07 13:40:15 haha, well I think it looks better fullscreen and I want it that way Jun 07 13:40:43 how do you invoke these bots? >.> Jun 07 13:40:45 I don't get it Jun 07 13:40:51 ~status bar Jun 07 13:40:55 why do you want to force the buttons into the status bar on top Jun 07 13:41:05 when you have an ACTION BAR which is meant to be exactly what you need Jun 07 13:41:09 because the action bar is invisible Jun 07 13:41:10 and is a standard UX pattern? Jun 07 13:41:37 it is the only button that the app will have which will be used rarely Jun 07 13:41:46 and? so is the actionbar in the Play Music app and they still have the buttons there ;) Jun 07 13:41:49 so I don't think that will be a problem at all Jun 07 13:42:19 you've used the terminal emulator right? Jun 07 13:42:33 which one? Jun 07 13:42:40 hmm.. >.> Jun 07 13:42:57 I would like to show you but I'm low on RAM Jun 07 13:43:23 the terminal emulator I have has the action bar on top Jun 07 13:43:42 hold on Jun 07 13:44:52 http://developer.android.com/design/get-started/ui-overview.html Jun 07 13:45:01 you can see here Jun 07 13:45:32 the tablet has a combined bar Jun 07 13:45:42 I've seen applications have buttons there Jun 07 13:46:07 or maybe I should rethink >.< Jun 07 13:46:10 um Jun 07 13:46:26 combined bar? you mean old pre-JB tablet status bar on the bottom? Jun 07 13:46:27 but always good to know Jun 07 13:46:32 yes Jun 07 13:46:42 yeah, you couldn't but buttons there Jun 07 13:46:52 and that pattern isn't used anymore in 4.1+ stock Jun 07 13:47:02 oh really? Jun 07 13:47:08 you can hide the status bar if you want though Jun 07 13:47:35 you're probably right, the table I used was pre 4.1 Jun 07 13:48:18 razzledazzle, anyway, if you compile for devices before 4.x you'll get an overflow menu in that bar yes Jun 07 13:48:25 but that's just the compatibility mode that's going away Jun 07 13:48:40 and makes your app look like shit on newer devices (like HTC One where a bar appears on the bottom) Jun 07 13:48:50 I see Jun 07 13:49:17 I didn't consider about 4.2s Jun 07 13:49:38 and well the table I used was an ICS Jun 07 13:50:27 mhm Jun 07 13:50:55 you get that menu only if you have a device with on-screen buttons (nexus, HTC one…) and your app is compiled for 2.x Android Jun 07 13:51:14 yes, the problem Jun 07 13:51:37 Mavrik: I better rethink the design Jun 07 13:51:52 I just realized things sorta changed Jun 07 13:51:56 razzledazzle, check how the new Play Music app does it Jun 07 13:51:58 on 4.x Jun 07 13:52:04 thank you for your time Jun 07 13:52:06 they have this really neat effect with actionbar buttons Jun 07 13:52:11 What marketshare do BlackBerry's Android phones have compared to the other popular Android phones? I wonder if it would worth to pack my Android apps for BlackBerry. Jun 07 13:52:19 oh I will Jun 07 13:52:28 but only after I reboot though ;) Jun 07 13:52:34 the tablet is this netbook lol Jun 07 13:56:10 hey guys, is there an easy way of detecting 3x two finger taps? gesture detector is not a very friendly api.. Jun 07 13:56:46 Hi, if I use the support library V4 for my fragments, from which api level is this working? Jun 07 13:56:52 4... Jun 07 13:57:26 and are there differences with other support libraries? Jun 07 13:57:48 there's v13 for 13+ .. but that is also contained within v4 Jun 07 13:58:15 are there more classes available in v13 then in v4 or not? Jun 07 13:58:19 i think people are allergic to google today Jun 07 13:58:19 http://developer.android.com/tools/extras/support-library.html Jun 07 13:58:24 or reading the docs Jun 07 13:58:43 coupled with me wanting to start smoking again, tis a bad situation all round! Jun 07 13:59:45 StingRay_: tnx and sorry ;) Jun 07 14:00:22 only mind when it's the 1st google result and the answer is very apparent in the the link Jun 07 14:00:41 or when I haven't had a smoke for 1.5 weeks after 20 years Jun 07 14:00:47 of smoking Jun 07 14:03:42 srry but if i use the V4 library, then my application build target to level 15 and my minSDKLevel on 4, is this good/possible? Jun 07 14:04:01 irrelevant/yes Jun 07 14:04:27 better to use something like 10 as min Jun 07 14:04:43 cause 4-10 there is lots of depreciated thingys Jun 07 14:05:34 ok tnx :) i have to know those thing for a presentation for school project Jun 07 14:06:13 well go research and learn, getting answers outright is probably the lowest effective way to learn anything Jun 07 14:06:53 true Jun 07 14:22:58 hi all, I'm having some trouble with JB's UPnp service discovery, using WifiP2pManager, I seem to be doing the right steps, but I'm getting no M-SEARCH packets from the android device -and so onUpnpServiceAvailable() from UpnpServiceResponseListener never gets called Jun 07 14:25:24 here is the actual pastebin: http://pastebin.com/fzcTKN7t Jun 07 14:26:04 all steps are run, but I'm getting nothing -and I know I'm running a UPnP service as I'm testing it with other software Jun 07 14:27:14 I've added all the proper permissions in the manifest, INTERNET, ACCESS_WIFI_STATE, CHANGE_WIFI_STATE, CHANGE_NETWORK_STATE, ACCESS_NETWORK_STATE and even added there as I've read it elsewhere Jun 07 14:27:44 I'd appreciate any help, otherwise I'm thinking of just dumping JB's API and just go with Cling instead Jun 07 14:28:12 I think I must be missing something pretty obvious and trivial but I can't figure out what Jun 07 14:58:42 when i add stuff to a layout, its wanting to overlap the items Jun 07 14:58:55 Code review in 2 minutes Jun 07 14:58:56 wish me luck Jun 07 14:59:32 here is what i have, http://www.fpaste.org/17214/17164137/ Jun 07 15:00:56 kc8hfi_: why wouldnt it overlap them ? Jun 07 15:01:13 it is overlapping them, i would like for it not to do that Jun 07 15:01:24 you using a relative(Relational)Layout, but not giving it any relationships Jun 07 15:01:37 do you know what the different viewGroups do ? Jun 07 15:01:48 no Jun 07 15:01:48 Sooooo apparently these ZTE tablets with honeycomb are sending the IP address instead of FQDN on SMTP HELO from the email app... Is this due to Honeycomb or due to our email server's setup? Jun 07 15:01:49 and how they are used ? Jun 07 15:02:30 kc8hfi_: you should look at what all the viewGroups are (relative, frame, linear) etc Jun 07 15:03:26 StingRay_: nothin is ever easy is it? Jun 07 15:03:38 not sure what you want me to say Jun 07 15:04:05 other than whyTF are you using a relativeLayout for that ? Jun 07 15:04:08 :) Jun 07 15:04:15 StingRay_: nothin really. that was just a random comment. Jun 07 15:04:43 either use a relativeLayout with relationships defined how you want, or use something else that fits Jun 07 15:04:51 StingRay_: I got more learnin to do Jun 07 15:05:06 as have we all Jun 07 15:05:52 anyone who claims otherwise is a bit….dense :) Jun 07 15:06:22 its not too often that you see amateur radio callsigns on IRC... CQ de DO1GL ;) Jun 07 15:06:50 yeah, i may have chosen the wrong name to use.... Jun 07 15:07:15 Ge0rG: 73rds! Jun 07 15:17:10 is there some manner to know how many children can fit into a View with all children visible? Jun 07 15:17:46 somethign like View.maxVisibleChildren(childrenSize) Jun 07 15:17:57 is that no just maths ? Jun 07 15:18:01 not* Jun 07 15:18:28 StingRay_, No, because it depends of the size the view can have at the moment of the allocation Jun 07 15:18:48 so how would the system know ? Jun 07 15:19:07 and thus you Jun 07 15:20:04 if you know the parent view height and the children heights (if they are not fixed get the height onLayout) Jun 07 15:20:05 etc Jun 07 15:21:09 StingRay_, um ok, it's true, you can know the parent size before allocation...um... Jun 07 15:21:22 define allocation Jun 07 15:21:28 if you mean layout then no Jun 07 15:21:39 unless it's a constant Jun 07 15:21:54 as in dimension resource or like all the screen etc Jun 07 15:23:56 StingRay_, so...if it depends of the screen size (and it is not a constant), and you can't know the size of the layout that will contain the children, how can you know how many children a view can fit with all children visible? Jun 07 15:24:14 is it possible before allocation, isn't it? Jun 07 15:24:18 impossible* Jun 07 15:24:21 is the screen size not a constant ? Jun 07 15:24:34 at the activity start ? Jun 07 15:24:46 I know of no displays that change size Jun 07 15:24:50 although that would be cool Jun 07 15:24:55 yeah....haha Jun 07 15:24:56 ok... Jun 07 15:24:56 so Jun 07 15:25:01 after I know screen size as a cosntatn Jun 07 15:25:04 I dare say they would not increase pixel res if they did Jun 07 15:25:04 you recommend me Jun 07 15:25:09 to do the math on my own Jun 07 15:25:12 to calculate it Jun 07 15:25:13 no? Jun 07 15:25:22 well do you know the child heights ? Jun 07 15:25:24 yes Jun 07 15:25:31 and they are homogeneous Jun 07 15:25:34 and any other heights of any other elements Jun 07 15:25:44 that may cause the parent to resize Jun 07 15:25:52 or is it the only view Jun 07 15:25:53 ? Jun 07 15:25:56 only view Jun 07 15:26:01 simples then Jun 07 15:26:11 math on my own then? Jun 07 15:26:42 ya Jun 07 15:27:12 if your comfortable with division :) Jun 07 15:27:22 and remainder Jun 07 15:27:25 :) Jun 07 15:27:44 oh ok =) I was asking becaouse I thougth there would be something to calculate that automatically, and not calculate on my own taking into account padding, spacing, etc Jun 07 15:28:20 padding is an inward thing Jun 07 15:28:23 but ok, is the answer I was searching for :) Jun 07 15:28:30 so you would not need that Jun 07 15:28:32 true Jun 07 15:28:35 only spacing then Jun 07 15:28:38 or you would only need it once on the parent Jun 07 15:28:46 but getPadding aint too hard :) Jun 07 15:28:49 Hmm.. is there a channel for batch scripting? :P Jun 07 15:29:37 StingRay_, thanks a lot! Jun 07 15:29:50 np Jun 07 15:30:01 last question, after knowing that...where I can found the source code of the view and its allocation? Jun 07 15:30:11 i search on git of android Jun 07 15:30:21 but I don't know which package I have to search for Jun 07 15:31:15 searching here https://android.googlesource.com/ is a little dificult Jun 07 15:32:30 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/view/View.java#View Jun 07 15:34:07 StingRay_, thanks a lot! you just speed up my gsoc proyect start hehe Jun 07 15:38:58 why would ContentResolver#query() return null Jun 07 15:39:07 if i want a dialog box that gives the user the ability to edit 3 textfields, should i be using the AlertDialog for this? Jun 07 15:39:13 csoriano: you can download the source code with the SDK manager Jun 07 15:39:21 seems like alertdialog wouldn't be the one to use in this case... Jun 07 15:39:43 kc8hfi_: consider fragmentDialog and put what you want in it Jun 07 15:39:45 :) Jun 07 15:40:42 i'm extending DialogFragment to make it, but using the AlertDialog.builder to set the stuff inside it, and returning create() Jun 07 15:41:26 I wouldn't use alertDialog for any of that Jun 07 15:41:44 it didn't seem right after i thought about it.... Jun 07 15:41:59 your using a complete customizable view fragment to use a restrictive dialog builder to attempt to do something non-restrictive Jun 07 15:42:20 replace alertDialog.build crap with inflate your own view Jun 07 15:42:26 just like an activity Jun 07 15:43:38 pjdelport, yeah, I knew it, thanks :) But the main problem was I didn't know where the code of the View class and related classes were; to which StingRay_ answered me well. Thanks anyway! :) Jun 07 15:43:58 StingRay_: hmm, ok, that makes better sense Jun 07 15:52:34 SUp guys Jun 07 15:53:09 What marketshare do BlackBerry's Android phones have compared to the other popular Android phones? I wonder if it would worth to pack my Android apps for BlackBerry. Jun 07 15:54:12 aleb: go google if your that bothered Jun 07 15:54:46 stop asking the same thing over and over, you could have search, found, and decided by now (2 hours) Jun 07 15:55:49 StingRay_, how many times did I ask? Jun 07 15:55:56 2 or 3 Jun 07 15:56:07 is that unreasonable? Jun 07 15:56:08 possibly a 1 hour gap between Jun 07 15:56:11 no Jun 07 15:56:13 the question is Jun 07 15:56:15 :) Jun 07 15:56:59 if during that 1 hour, you could not be arsed to enter the keywords in google, what makes you think someone can be arsed answering ? Jun 07 15:57:09 seems like a really simple thing to look up Jun 07 15:57:19 and the decision is subjective and only you can make Jun 07 15:57:34 hence it is the question that a bit silly :) Jun 07 15:58:00 2 times, 2h ago, I have other things to do so I'm just trying my luck here ;) Jun 07 15:58:52 omg dont start fighting about such a non-issue Jun 07 15:59:11 just google it Jun 07 15:59:24 it obvious you're not going to get the answer here Jun 07 15:59:36 I tried but I did not find any number Jun 07 16:00:08 I thought other android devs would be interested in launching their app in multiple stores, so somebody knows Jun 07 16:00:21 most are interested in how to code apps Jun 07 16:00:38 like you, I suppose :)) Jun 07 16:00:43 I just tried Jun 07 16:00:48 interesting figures Jun 07 16:00:55 but the point is it took about 5 seconds Jun 07 16:01:04 right Jun 07 16:01:07 what search terms did you use? Jun 07 16:01:30 erm "mobile market share 2013" Jun 07 16:01:40 the obvious ones :) Jun 07 16:02:30 interesting that here in the UK, we are apparently big BB users Jun 07 16:02:48 like really big big Jun 07 16:03:24 US BB users 2.57% here in UK 22% Jun 07 16:03:30 thats very odd Jun 07 16:04:04 but neways aleb, 5 seconds, thats all it took, you spent more time typing your question here and checking for responses ;) Jun 07 16:04:16 here in South Africa we're apparently a blackberry hotspot Jun 07 16:04:27 70%, or something ridiculous Jun 07 16:04:53 pjdelport: your not on this chart :( Jun 07 16:04:54 http://connect.icrossing.co.uk/wp-content/uploads/2013/01/iCrossing_2013_Mobile_Market_Share.gif Jun 07 16:05:09 heh Jun 07 16:05:14 everybody forgets about SA Jun 07 16:05:30 korea and china really dont like iphone do they :) Jun 07 16:07:13 http://blogs.blackberry.com/2012/12/blackberry-markets-africa/ Jun 07 16:07:40 Why we be talkin about blackberry yo? Jun 07 16:07:46 THey're gonna be gone in like a year or two Jun 07 16:07:59 that's why an SA app won BB's app of the year, i guess. Nobody else is developing for it. :P Jun 07 16:08:29 Brian|CB, because some of those BBs run Android apps. We are trying to find how many :) Jun 07 16:08:57 that's just BB10, isn't it? Jun 07 16:09:02 yes Jun 07 16:09:06 Honestly blackberry is a bigger joke than windows phones right now Jun 07 16:09:12 For reals though, windows phones are actually really nice Jun 07 16:09:14 they just got to the market late Jun 07 16:09:28 it's hard to be worse than BB Jun 07 16:09:36 i have a coworker developing an app for it Jun 07 16:09:46 Oh god Jun 07 16:09:47 It's pretty terrible. Jun 07 16:09:49 sounds awful Jun 07 16:10:06 so like, I'm exceeding expectations right now by like double that I should have done Jun 07 16:10:20 I'm thinking maybe asking if they want me to work on a windows phone version of my app Jun 07 16:10:23 or maybe trying to learn iOS Jun 07 16:10:54 with quality production, seems easier to make much more money on iOS Jun 07 16:10:56 cause I'm fairly confident that I'll have 3-4 weeks leftover once this app is finished Jun 07 16:10:59 don't waste your time with either one Jun 07 16:11:15 alternatively, I'd like to port my companies previous projects to more tablet friendly UIs Jun 07 16:11:54 i think at the moment if you want control "go android" if you want to make money "go ios" Jun 07 16:12:09 if you want to "go down in flames" go bb Jun 07 16:12:25 || windows phone Jun 07 16:12:28 if you want to "be METRO sexual" go WM Jun 07 16:12:40 StingRay_: Thats why I do android Jun 07 16:12:43 I'm not in the business to sell apps Jun 07 16:12:45 same :) Jun 07 16:12:48 I sell quality application development Jun 07 16:13:04 which I find very fun, exciting, and rewarding to do on Android Jun 07 16:13:05 morning Jun 07 16:13:20 People who think they're going to make money in the play store are monetizing the android market entirely wrong Jun 07 16:13:25 I want to start selling quality/unique dev services Jun 07 16:13:31 the real money is going to be in consultancy firms Jun 07 16:13:38 but need to get my show app done Jun 07 16:13:46 StingRay_: If you want, you can steal my idea Jun 07 16:13:50 but give me credit when you do it Jun 07 16:13:50 :P Jun 07 16:14:14 I have too many ideas, too little time and not enough skillz Jun 07 16:14:16 :) Jun 07 16:14:17 what about ppl who actually make money? Jun 07 16:14:51 StingRay_: This is an idea that Ithink you'd like Jun 07 16:14:58 adq look at it this way, 98% on android probably consider their apps a failure (financially) Jun 07 16:15:00 actually, screw it, I think everyone should have this idea so I'll just put this out there Jun 07 16:15:25 on ios thats probably more like 60% ish Jun 07 16:15:30 98%, i don't know where you took that from, but it's a bit too high Jun 07 16:15:43 doubt it Jun 07 16:15:44 for sure with time, it will be like itunes store, totally saturated Jun 07 16:15:53 but we're still a bit far from that, i think Jun 07 16:16:04 adq I would put money that it's like 95-98% Jun 07 16:16:18 So you know how web developers/designers build their own websites to be a "portfolio" for their other projects? I think that Android developers need to start building their own portfolio apps that display data and screenshots about their various apps, and let you launch said apps, and all look nice on some sort of small tablet, like a N7 that you can carry with you to career fairs and show to recruiters Jun 07 16:16:26 that was the idea I've been working on StingRay_ Jun 07 16:16:45 I started making my months back when I first had the idea Jun 07 16:16:49 but I haven't finished it yet Jun 07 16:17:07 when I have it finished, I'm gonna publish it and share on /r/android and /r/androiddev and whatnot and try to get other developers to adopt the idea Jun 07 16:17:45 since most devs blindly follow the design guides, then you probably just need the 1 app showcased ;) Jun 07 16:17:55 they all look the same lol Jun 07 16:19:06 StingRay_: But having a variety of apps that utilize different functionalities and APIs shows that you're good with multiple toolkits Jun 07 16:19:11 also it shows that you have experience wiht multiple apps Jun 07 16:19:25 also you can scroll through and then launch the app you want to show that particular person Jun 07 16:19:30 hmmm maybe, but I challenge recruiters to know that Jun 07 16:19:48 like if you're scrolling through the app descriptions/titles/screenshots or whatever, and they seem intrigued by a certain one, you can launch that one to show them Jun 07 16:19:57 how different is it to (market link + dev name (other apps bby dev)) ? Jun 07 16:20:53 StingRay_: Just looks better and you can carry it around with you on a tablet device Jun 07 16:20:54 Idk Jun 07 16:21:03 the mockup I started on just looked really nice on my N7 Jun 07 16:25:24 product showcases can always come across good Jun 07 16:25:40 * thegman54 says good afternoon Jun 07 16:25:54 i am trying to figure out a way to send a string across all the receivers that are listening to an event... Jun 07 16:26:07 i have tried getResultExtras and setResultExtras and setting a string that i name inside of it.. but that is always empty in the other apps broadcast receiver when i get it Jun 07 16:26:28 is getting a string by getResultsExtra even getting the SAME bundle from previous receivers? Jun 07 16:34:03 a customer complains that google play payment does not work... tried different credit cards, and the reply is “The card is not valid”. anything I can do as a developer? Jun 07 16:34:26 """On May 31, Pacific Crest's James Faucette mentioned that he believed that combined Z10/Q10 sell-through was "well below 500,000 units per month." """ http://seekingalpha.com/article/1476211-blackberry-10-demand-estimated-at-1-5-million-units-per-month; """BlackBerry 10 predicted to hold less than 5% market share through 2016""" according to Gartner; Not negligible, I guess. Jun 07 16:34:47 Ge0rG: give him your card details ? Jun 07 16:35:04 StingRay_, so wise Jun 07 16:35:09 * aleb bbl Jun 07 16:35:29 Ge0rG: another way of saying, not a thing Jun 07 16:35:57 they have changed all the card processing things in the last few months though Jun 07 16:36:11 and had hickups here in the UK I think Jun 07 16:36:11 I want Java code to play wma files. I've seen various ffmpeg libraries proposed, some using OpenCV. What is the best approach to playing wma on Android? Jun 07 16:36:52 <|Agent> Hey, are there any tools to version-check APIs? Jun 07 16:37:23 is there a doc somewhere that tells how things fit together? for example in java, you have a jframe, and jpanels go on jframes, and text boxes go on jpanels. something that describes the hierarchy Jun 07 16:38:21 kc8hfi_: Are you talking about the GUI hierarchy? Jun 07 16:38:36 Brian|CB: yeah Jun 07 16:38:57 google isn't helping because i'm not using the right words... Jun 07 16:39:19 kc8hfi_, d.google.com describes how view layouts work pretty well Jun 07 16:39:26 er, d.android.com, sorry Jun 07 16:39:47 <|Agent> Don't know if the proper names would help much. All the classes are very generically named: View, Window, etc. Jun 07 16:39:56 kc8hfi_, http://developer.android.com/training/basics/firstapp/building-ui.html Jun 07 16:40:13 kc8hfi_, that site should be your first resource for everything, most of the things are very well explained there. Jun 07 16:40:33 |Agent, what do you mean by version checking APIs? Jun 07 16:41:11 <|Agent> e.g. to ensure you aren't calling a level 11 API when you are developing for level 8. Jun 07 16:41:41 kc8hfi_: So like, there are a lot of different ways in which views can interact Jun 07 16:41:52 so honestly you're best off just reading about each view you want to use individually in my opinion Jun 07 16:43:01 what i'm trying to do is build a custom dialog box, and the ui for it will be done in code, not in xml. Jun 07 16:44:20 i have a linearlayout, and should it go on the view, and stuff like that Jun 07 16:44:34 or does the view go on the linearlayout, those kinds of things Jun 07 16:44:37 kc8hfi_: read through those docs Jun 07 16:44:41 they explain it all Jun 07 16:44:47 even a diagram there Jun 07 16:48:04 |Agent, lint usually gives you that warning Jun 07 16:48:12 if you didn't annotate it or sorround it with an if Jun 07 16:49:42 anyone here is good with NDK? it just cannot find #include at all!! Jun 07 16:51:02 superlinux-hp, doh Jun 07 16:51:05 :) Jun 07 16:51:13 Mavrik, i am serious Jun 07 16:51:35 yes, did you read the docs? Jun 07 16:51:43 the part that talks about using C++ istead of C? Jun 07 16:51:53 plus, using iostream on android is just silly :) Jun 07 16:51:54 yep! Jun 07 16:52:16 so, are you linking your library with C++ STL? Jun 07 16:52:23 yes! Jun 07 16:52:47 well, if it doesn't find iostream… you're not. Jun 07 16:52:50 there is STL cos i am using SymbolicC++ Jun 07 16:52:57 or you have an old NDK. Jun 07 16:53:12 well i have NDK 8d Jun 07 16:53:24 i am downloading it at moment Jun 07 16:54:52 http://stackoverflow.com/a/9722190 Jun 07 16:55:07 and as I said, using iostream on android is silly, use Android logging facilities if you must output debug log Jun 07 16:55:35 Mavrik, i already tried it!! Jun 07 16:56:44 I am NOT logging using iostream but it's good also for a starter to test it. Jun 07 16:57:11 well, instead of forcing console output on a platform that doesn't have any Jun 07 16:57:12 but i am just including that library Jun 07 16:57:19 rather go do something useful like use android log ;) Jun 07 16:57:32 and make sure your paths are ok Jun 07 16:57:41 and go step by step Jun 07 16:57:53 use C only, use only log to see if your environment is ok, etc. Jun 07 16:58:06 solving 15 problems at time will just make sure you won't be able to tell what the heck went wrong Jun 07 17:05:40 Hi there! Jun 07 17:06:59 Is it possible to get the size of the back button stack? I would like to know how many time the back button can be clicked before the app is closed? Thanx Jun 07 17:15:38 ... stack? Jun 07 17:15:42 what stack? Jun 07 17:19:59 GNUton, no, there's no access to task stak Jun 07 17:20:10 GNUton, what's your usecase? what are you trying to do? Jun 07 17:22:30 stack of waffles! Jun 07 17:22:47 smoke stack! Jun 07 17:22:53 anyone having problems with android-studio and archlinux with the recent filesystem update? Jun 07 17:23:02 i can't launch AS anymore :( Jun 07 17:23:11 android studio does not run on my win8 machine. does that help? Jun 07 17:23:16 no Jun 07 17:23:24 billybigrigger, try running it from terminal, see the error Jun 07 17:23:30 it probably messed up paths to your java install Jun 07 17:23:42 archlinux recently update the filesystem package which moves all binaries from /bin /sbin Jun 07 17:23:45 i like not being chained down to an IDE Jun 07 17:23:54 i ran it from term, it just exits with no errors Jun 07 17:24:00 ill pastebin to prove it :P Jun 07 17:24:47 http://pastebin.ca/2392447 Jun 07 17:24:49 billybigrigger, does your java -version work? Jun 07 17:25:03 also, is your JAVA_HOME valid? Jun 07 17:25:07 yeah i run openjdk Jun 07 17:25:48 billybigrigger@arch ~ » java -version Jun 07 17:25:49 java version "1.7.0_21" Jun 07 17:25:49 OpenJDK Runtime Environment (IcedTea 2.3.9) (ArchLinux build 7.u21_2.3.9-4-x86_64) Jun 07 17:25:51 OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) Jun 07 17:25:54 billybigrigger@arch ~ » echo $JAVA_HOME Jun 07 17:25:56 /usr/lib/jvm/java-7-openjdk Jun 07 17:25:59 sorry for flood Jun 07 17:26:01 yuck Jun 07 17:26:06 don't run those things with openjdk :P Jun 07 17:26:11 but that's probably not your problem Jun 07 17:26:17 no, it has run before Jun 07 17:26:31 until the recent (few days ago) filesystem update Jun 07 17:26:57 don't you see? it has PERFORMANCE and GRAPHICS ISSUES!!!!!!!!!!1 Jun 07 17:29:29 billybigrigger: have you tried invalidating its cache? Jun 07 17:29:37 billybigrigger, hmm, I'm out Jun 07 17:29:57 didn't deal with that much :( Jun 07 17:30:04 that being ArchLinux Jun 07 17:30:05 if it doesn't start so you can access the menu option see http://devnet.jetbrains.com/docs/DOC-181 (android studio has .AndroidStudioPreview instead of .IntelliJIdea Jun 07 17:32:16 hmmm Jun 07 17:32:20 wonder if i have an old package or something Jun 07 17:32:41 that link shows everything should be in my home dir, ie ~/.IdealCXX Jun 07 17:32:48 but its located in ~/.AndroidStudioPreview Jun 07 17:32:53 oh Jun 07 17:33:02 yeah Jun 07 17:33:03 just finished reading the rest of your line :P Jun 07 17:33:05 thats what i said.. Jun 07 17:33:18 * billybigrigger pulls out the "whoops" card and shows everyone Jun 07 17:34:43 http://pastebin.ca/2392447 Jun 07 17:35:08 have you tried running it with oracle sdk :) Jun 07 17:35:11 jdk* Jun 07 17:35:14 you should do that Jun 07 17:38:40 I'm testing my application on Nexus 4, and I'm using Android Design Icons to support hpi, mdpi and xhpi screens. During testing, I've noticed that the icons are displayed smaller than it should be on an xhpi screen. I made sure that I have all the icons set properly in the right drawable folders. Does anyone has a clue? Jun 07 17:39:07 you made a mistake? Jun 07 17:39:14 compengi: what makes you come to that conclusion ? Jun 07 17:39:28 as in why do you think "smaller than should be" Jun 07 17:40:02 and, where are these icons placed ? Jun 07 17:43:04 because xhpi icons are 64x64, the icons that are displayed on the screen are definitly smaller than that. Secondly the android studio design tool loads a bigger icon for that resolution. I've placed the icons in res/drawable-hdpi,-mdpi,-xhdpi respectively Jun 07 17:43:16 StingRay_, ^ Jun 07 17:44:46 and where are these icons placed on-screen and in what kind of container ? Jun 07 17:45:05 ImageButton on actionbar etc ? Jun 07 17:45:05 StingRay_, I'm using a universal icon like 6_social_send_now.png where other apps have this icon displayed bigger. I'm just looking from this perspective as well Jun 07 17:45:22 hmm Jun 07 17:45:33 I love the new take on pull-to-refresh in Gmail app Jun 07 17:46:02 compengi: are you setting explicit dimension resource etc px on whatever the view is ? Jun 07 17:46:14 if not are you using the correct scaleType ? Jun 07 17:46:27 I don't Jun 07 17:46:36 I don't think pull to refresh belongs on android Jun 07 17:46:43 although I haven't seen the GMail implementation Jun 07 17:46:47 so maybe google found a way to make it work Jun 07 17:47:33 I just looked at it Jun 07 17:47:37 fk me thats horrid Jun 07 17:47:39 lol Jun 07 17:47:40 StingRay_: http://cyrilmottier.com/2012/03/28/the-pull-to-refresh-an-anti-ui-pattern-on-android/ Jun 07 17:47:45 woops Jun 07 17:47:50 I should have pinged Mavrik lol Jun 07 17:47:58 I dint realize you weren't talking about the same stuff as us Jun 07 17:48:04 mhm. Jun 07 17:48:07 they hacked the actionbar Jun 07 17:48:17 I hate how they removed the split actionbar in the new gmail Jun 07 17:48:18 Brian|CB: no I just tried the gmail app Jun 07 17:48:20 so now if you try to scroll over the top the actionbar changes to "Checking new mail..." Jun 07 17:48:24 it's total horridness Jun 07 17:48:28 I do however love the style on the new Google Play Music app Jun 07 17:48:32 yeah Jun 07 17:48:42 I'm so inspired I want to attempt to implement a copy of that UI Jun 07 17:48:46 the fade-in actionbar with scrolling images looks pretty gorgeous Jun 07 17:48:49 and try to use those elements and design styles in my apps Jun 07 17:48:51 Yeah Jun 07 17:48:59 the problem with the split actionbar going away is that there's no longer any easy access to the delete button Jun 07 17:49:00 I'm gonna try to find an app I've done that can use the fading action bar Jun 07 17:49:04 friggin' delete button should be front and center Jun 07 17:49:30 StingRay_, this is my view http://pastebin.com/H1LjXj2y the Image is placed in the ImageButton Jun 07 17:49:49 pfn, hmm, I think the pattern they're targeting is swipe-to-archive Jun 07 17:49:50 Honestly I think more navigation and global utility should be featured in the action bar Jun 07 17:49:53 so you just swipe mails away Jun 07 17:50:05 I don't want to archive Jun 07 17:50:06 I want to delete Jun 07 17:50:08 I feel like google just needs to go hand JakeWharton a check and put action bar sherlock in the support library by default lol Jun 07 17:50:22 they wrote their own Jun 07 17:50:46 Brian|CB, I think Google's stance is pretty much: "Would you STOP supporting 2.x already?!" Jun 07 17:51:05 Mavrik: I know, but I used to have a Droid 2 until this past December Jun 07 17:51:07 Hey, I just ripped 2.x support out of my app last night! Jun 07 17:51:12 so I feel pity for those who live with bad devices Jun 07 17:51:12 It felt good. :-) Jun 07 17:51:16 or at least that's what they told us directly when we were talking to them about having an app featured :P Jun 07 17:51:18 lol Jun 07 17:51:38 Also I have friends who have older devices, like one of my friends had an original Motorola Droid up until a month ago Jun 07 17:51:38 yeah, we killed 2.x support after we found out Camera API is shit as well Jun 07 17:51:44 just not worth it anymore Jun 07 17:52:46 StingRay_, The normal_action_btn is just a selector where I change the color on android:state_pressed="true" Jun 07 17:54:41 I should pick up a nexus 7 for testing Jun 07 17:54:57 they're quite light Jun 07 17:55:02 Brian|CB, yep, but you said yourself "up until a month ago, last december…" :) Jun 07 17:55:14 our stats show about 28% of pre 4.x devices and falling Jun 07 17:55:20 my galaxy nexus is so often slow :( Jun 07 17:55:21 not worth rebuilding whole app for that really Jun 07 17:55:28 pfn, N7 isn't a fast device :) Jun 07 17:55:29 pfn: same here Jun 07 17:55:40 pfn, N10/N4 have those sick Kraits in them :) Jun 07 17:56:41 Where could I find a list of all the android: attributes used in xml? Jun 07 17:57:05 Mavrik, faster than my GN Jun 07 17:57:42 I guess an N4 would be reasonable to get, but a phone device is so useless for me, since I don't have gsm service Jun 07 17:57:46 maybe for travel, it'd be useful Jun 07 17:59:30 pfn, N10 then Jun 07 17:59:46 don't wanna spend $400 for an n10 Jun 07 18:00:02 I've been noticing quite alot of slowdowns on N7 latelty Jun 07 18:00:08 Mavrik: I DCed earlier, but the "in december" example was me, the "a month" example was my roommates GF Jun 07 18:00:14 $200 for N7 or $300 for N4 are all extremely reasonable Jun 07 18:00:16 also after switching user profiles it takes ages for it to get ready Jun 07 18:00:26 Mavrik: Mine still runs fine, but that is probably because I dont use it for much of anything Jun 07 18:00:32 my galaxy tab 10.1 is so useless Jun 07 18:00:33 so its stress is really low Jun 07 18:00:40 pfn: Does it have the nice stylus? Jun 07 18:00:43 if so its not useless Jun 07 18:00:53 Brian|CB, no, original model they gave away at I/O a couple years ago Jun 07 18:00:54 cause those stylus things on the Samsung tablets rock Jun 07 18:01:03 pfn: Ah. Poo. Jun 07 18:01:09 only "Note" branded models have styluses Jun 07 18:01:21 We got my little brother a Galaxy Note 10.1 tablet for his graduation, he previously had an Asus Transformer Jun 07 18:01:27 and they would be awesome if not for Samsung destroying the performance with touchwiz Jun 07 18:01:32 and I tried the stylus out, and it is legit Jun 07 18:02:05 I was unsure of it when I heard the idea of it, but after using it it seems like something reallynice to have Jun 07 18:02:15 if they put one on the next N7 I'll be excited Jun 07 18:02:19 but what I really REALLY want Jun 07 18:02:25 is a microSD slot on the nexus 7... Jun 07 18:02:29 that seems like a large oversight lol Jun 07 18:02:57 I usually don't care much for datacards, I rarely use theme Jun 07 18:03:14 Brian|CB, it's not an oversight Jun 07 18:03:21 pfn: It's super nice to be able to back up stuff and get a new device and just plop it in Jun 07 18:03:28 I doubt you'll see an SD card on official nexus devices in the near future Jun 07 18:03:35 you'll probably see more and more devices without one Jun 07 18:03:37 Mavrik: I maybe used the wrong word to describe that, I just mean like it disappoints me Jun 07 18:03:39 Brian|CB, I just plug it into a computer and copy over Jun 07 18:04:00 I like the idea of the SD slot, I understand they cut a lot of costs making the devices, and the cut SD slot probably cut some cost Jun 07 18:04:01 but still Jun 07 18:04:05 Brian|CB, SD cards are a huge problem for usability on Android Jun 07 18:04:10 users just don't get the split storage Jun 07 18:04:13 pfn: That brings back the dependence of tablets on computers Jun 07 18:04:19 I think tablets hsould be isolated from computers Jun 07 18:04:20 that's fine for me Jun 07 18:04:22 so getting rid of them was a rather good idea Jun 07 18:04:39 my computers have a dependence on other computers when I do certain things Jun 07 18:04:48 you can store data elsewhere, as well Jun 07 18:04:49 on the cloud Jun 07 18:04:51 pfn: Thats a computer depending on other computers, I find that ok Jun 07 18:04:56 or a shared fileserver Jun 07 18:05:02 but I think devices of a type should be in their own realm and not dependent on other types of devices :S Jun 07 18:05:05 so, you can have your tablet depend on another tablet Jun 07 18:05:08 i made an animation that "flips" a view to show a different view on the backside (like a card flip)... I used objectAnimator at the time but now objectAnimator is not used and must be done via tween animation. Is there any way to easily convert my old animation to tween? (ps... i Jun 07 18:05:16 i'm not very good w/ android anim) Jun 07 18:05:17 transfer files directly using something like wifi file transfer Jun 07 18:05:33 plopping a card in/out is orthogonal and mostly useless Jun 07 18:06:08 i don't think that answers the question Jun 07 18:06:15 when's google releasing the N4 with LTE in them... Jun 07 18:06:22 pfn:But like, I also like to be able to do file backups on a schedule, that way if my device crashed I can just pop out the card and slap it in a new one Jun 07 18:06:25 and voila, good as new Jun 07 18:06:38 now obviously, with all this pushing towards cloud computing, that isn't something they want to see happen Jun 07 18:06:43 But meh Jun 07 18:06:46 "they" ? Jun 07 18:06:46 I like that ability Jun 07 18:06:54 oh Jun 07 18:06:57 misread your statement Jun 07 18:06:58 pfn: Big corporations, including/especially google Jun 07 18:07:07 google is all up on the cloud push Jun 07 18:07:11 thought you were saying they don't want to see cloud computing happen Jun 07 18:07:17 I mean the chromebook that I'm using right now is the epitome of that I think Jun 07 18:07:26 the original ads for this were just cloud circlejerk Jun 07 18:13:20 oh no, new version of AS Jun 07 18:47:27 anyone using android studio yet. Been away for a while and coming back to development. Wondered if I should go eclipse and adt or android studio Jun 07 18:47:59 epsilonorion, IDEA12 until Android Studio gets out of pre-alpha Jun 07 18:48:17 no noticable difference except some cosmetics anyway Jun 07 18:49:15 got it Jun 07 18:49:43 so you think IDEA12 is better then eclipse? Jun 07 18:50:43 epsilonorion: my win8 machine refuses to run android studio :( Jun 07 18:50:53 even though it runs eclipse and adt just fine Jun 07 18:50:58 strange Jun 07 18:51:18 i don't suppose anyone knows the default padding inside an EditText? Jun 07 18:51:39 I have always used Eclipse and ADT, but haven't worked on android since feb. Need to come back to it, but wasn't sure if I should go with Eclipse, IDEA, or studio. I do mainly work in Ubuntu land Jun 07 18:52:29 I don't see currently any reason to move out of eclipse. But, of course, that's because I CAN'T RUN ANDROID STUDIO ON MY MACHINE :( :( Jun 07 18:52:59 i started working with Android Studio and I like it more than Eclipse Jun 07 18:53:26 hmmm, I did just notice that android studio and the future idea13 have gradle support Jun 07 18:53:42 Izhido: lol, sorry Jun 07 18:54:05 Zaknafein: what do you feel is different? Jun 07 18:54:21 faster in everything, better auto-completion and code analysis Jun 07 18:54:30 Mavrik: are there a lot of major issues with the pre-alpha. I thought it was mostly built off of IDEA12 Jun 07 18:54:38 http://www.youtube.com/watch?v=e0fXuyL0xVU Jun 07 18:54:58 6minute video that shows some features of android studio Jun 07 18:55:39 thanks, I will check it out Jun 07 18:57:59 hmm, interesting. you can set the theme of an activity so it'll look like a dialo Jun 07 18:58:00 g Jun 07 18:59:59 Anyone know how I could view the resources of an apk, specifically the strings Jun 07 19:00:34 look for the strings.xml file in the res/values directory Jun 07 19:01:35 apk file is just an archive, use your favorite un-archive tool on it Jun 07 19:02:43 kc8hfi_: Ah I totally forgot about that. Thanks mate! Jun 07 19:03:01 ignore what i said, the strings.xml gets compiled into something else, you won't have a strings.xml in there Jun 07 19:04:33 Yeah I just realized :\ Jun 07 19:05:37 I decompiled the app into a jar, and am using jd-gui to view it, and I can see the strings, but just the IDs associated with them, nothing more Jun 07 19:05:52 use apktool to extract the apk, not a zip tool Jun 07 19:07:07 JakeWharton: Yeah I've done that. Jun 07 19:07:36 Now I'm seeing ".field public static final key:I = 0x7f060005", which I'm assuming is the memory location to find the strings? Jun 07 19:07:39 string* Jun 07 19:07:41 get the integer ID, compare that to R.java's string class which will give you the name, and then look in res/values/strings.xml Jun 07 19:08:49 I don't have a res/values/strings.xml anywhere, at least no that I can find... Jun 07 19:08:52 hi, how can I find on the device which java runtime version is running ? Jun 07 19:09:50 API 9+ it's Java 6 APIs, anything before that is Java 5 APIs Jun 07 19:10:08 JakeWharton: thanks. Jun 07 19:10:09 none of them are running a Java runtime. It's all Dalvik Jun 07 19:10:18 anyone on Linux. Which java are you using for android development (possibly android studio) Jun 07 19:13:46 Jc_Dev: wanted to say thank you for your assistance yesterday, I was able to successfully set-up a map app in android studio and gain a better understanding of the gradle set-up Jun 07 19:15:29 In which versions of android is RelativeLayout supported? Jun 07 19:15:37 JakeWharton: where would I find the res/values/strings.xml ? Where apktool decompiled everything to? Jun 07 19:15:37 1 Jun 07 19:15:53 1? Jun 07 19:15:58 http://developer.android.com/reference/android/widget/RelativeLayout.html <--- read Jun 07 19:16:04 easy to lookup Jun 07 19:16:19 StingRay_, did that. couldnt find Jun 07 19:16:34 top right 3 lines down Jun 07 19:16:42 Added in API level 1 <--- Jun 07 19:16:51 like all things in the docs Jun 07 19:16:57 it says there, always Jun 07 19:17:53 can even use the dropdown on the left to show you whats new/not in etc.. Jun 07 19:18:11 denelius: great to hear, you're welcome :) Jun 07 19:18:27 mainly, I am wondering if linux users are using openjdk or oracle and which version Jun 07 19:18:46 denelius: the good news is the patch for android studio yesterday day now includes a sync button to sync gradle with your IDE Jun 07 19:21:36 If only they could fix it so that its reasonably easy to add libraries Jun 07 19:24:29 StingRay_, lols. thanks. whats api level 1? i though 2.3. is gingerbread Jun 07 19:24:39 StingRay_, lols. thanks. whats api level 1? i though 2.3. is gingerbread and its i think 10 Jun 07 19:25:06 the 1st api Jun 07 19:25:10 the 1st android Jun 07 19:25:30 oh. so i can use relative layout in ANY android version then Jun 07 19:25:32 StingRay_, thanks Jun 07 19:26:31 Quest: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Jun 07 19:26:35 look at the chart Jun 07 19:26:46 api (to) version Jun 07 19:26:54 all in the docs Jun 07 19:26:59 is anyone working in linux. Have any ideas about java and version. Trying to get some input on the current state before I install openjdk Jun 07 19:27:17 epsilonorion: I did setup linux env to try Jun 07 19:27:34 had few path errors with openjdk Jun 07 19:27:48 then had some xml parse errors with formats Jun 07 19:27:50 epsilonorion: I installed everything on Ubuntu and Mint and some other Linux distros relatively easily Jun 07 19:27:56 then decided, right, oracle Jun 07 19:27:57 :) Jun 07 19:28:16 then had no problem Jun 07 19:28:18 StingRay_: so you went oracle? Jun 07 19:28:28 yes Jun 07 19:28:33 well was only as a test Jun 07 19:28:34 I'm running on Ubuntu 12.04 and 13.04, using Oracle Java (both version 6 and 7); everything works fine. Jun 07 19:28:40 I work on OSX normally Jun 07 19:28:42 Brian|CB: I have in the past. Currently running Ubuntu, but need to install Java. I have used openjdk in the past, but wasn't sure which to go with this time around Jun 07 19:28:46 StingRay_, thanks Jun 07 19:28:56 StingRay_: got it Jun 07 19:29:37 kjeldahl: I assume to just switch versions when needed? Which one are you mostly using. I was going to download both and just use update-alternatives to chose, but wasn't sure which to start with Jun 07 19:29:58 epsilonorion: You should be apt to apt-get and install the JDK pretty easily Jun 07 19:30:24 Now I prefer Ubuntu 13.04 with Oracle Java 7 (8 is too new, didn't work). Jun 07 19:30:26 Brian|CB: agreed. Just about did. Like I said, just was curious what everyone was using before I jump onto one of them. Jun 07 19:31:47 kjeldahl: ok, so I will try Oracle java 7 then and see how it goes. I am stuck with Ubuntu 12.04 for now Jun 07 19:32:43 Thanks for the info guys Jun 07 19:34:15 you can run ant debug install to install an apk. how do you specify which device though? Jun 07 19:34:22 supposing you had more than one available? Jun 07 19:35:05 kc8hfi_: adb -s Jun 07 19:35:41 Ge0rG: oh, so you can't specify the device from ant Jun 07 19:36:18 kc8hfi_: no ide about ant. I always install with adb... Jun 07 19:36:44 hi2all Jun 07 19:37:26 how could i print dmesg output to screen in cwm recovery Jun 07 19:37:27 ? Jun 07 19:38:50 Ge0rG: i haven't figured out how to uninstall by using adb, adb -s uninstall and it aalways returns "Failure" Jun 07 19:39:29 kc8hfi_: you need to pass it the package name. also, "adb install -r package.apk" allows to re-install over the existing app Jun 07 19:41:08 Ge0rG: oh, i see. using the package name worked to remove it Jun 07 19:41:53 kc8hfi_: would I lie to a fellow ham? :D Jun 07 19:42:01 Ge0rG: nope! Jun 07 19:43:05 Ge0rG: what if your package was called com.blah. if you had multiple apps that had the same package of com.blah, and you removed com.blah, you would nuke them all? Jun 07 19:43:31 Ge0rG: or is it even possible to have multiple apps with the same package? Jun 07 19:43:35 kc8hfi_: package names are unique, you can not have two installed with the same name Jun 07 19:43:59 Ge0rG: that answers that question. i think i need to go read up on packages.... Jun 07 19:44:12 The Gmail app uses a light grey on it's menudrawer. Is this color a android system color accessible by using @android:/ ? Jun 07 19:44:21 Is it possible to use the NDK with a static library I created? Specifically to build the library into a .a file and then use that in my app? Jun 07 19:45:00 (I already created the '.a' file via cmake) Jun 07 19:45:12 hi, I am using an external jar file, I have copied inside the Libs folder, I can use it on my code (it finds everything) but when I run on the device I receives java.lang.NoClassDefFoundError, why is that ? Jun 07 19:45:23 Ankhers, you would build a .so in the ndk that links the .a Jun 07 19:45:37 Ankhers, and your app will load the .so (which includes the .a) Jun 07 19:46:34 pfn: Is there a tutorial on how to do this? I'm still new to Android dev.. Jun 07 19:46:51 Ankhers, there should be an ndk development guide on d.android.com Jun 07 19:48:10 pfn: Many thanks. Jun 07 19:48:33 but linking the .a into a .so works the same as with any other C-based project throughout history :p Jun 07 19:48:52 I'm assuming you built the .a using the appropriate target abi compiler Jun 07 19:53:06 pfn: That is what I am looking into, making sure we can implement our library on Android. So I may not have. Jun 07 19:53:43 if you don't know that you built it cross-compiled, you probably didn't Jun 07 19:55:44 It is cross-compiled, we have it working on X86 and ARM (specifically for iOS). I am just researching the procedure to place it in an Android application. Jun 07 19:56:55 ok, for ios, it's easy, you just link it into your app... Jun 07 19:57:12 for android, yeah, java -> ndk -> .so -> .a Jun 07 19:58:16 THanks. Jun 07 20:04:36 whats the best way to do declare many final static values and maintain different values ? I mean is there any tools in an IDE that aid in this ? Jun 07 20:05:51 you made no sense Jun 07 20:05:57 configurations? Jun 07 20:06:06 manage them in resources or source-control branches Jun 07 20:06:49 well I have to store Resouce identifiers to db Jun 07 20:07:00 so R.drawable.something etc Jun 07 20:07:14 but thats an int and obviously auto generated Jun 07 20:07:32 and I have many many many of these to store etc Jun 07 20:07:44 how should I approach that ? Jun 07 20:08:06 I dont suppose anyone uses eclim to develop for android? Jun 07 20:08:49 Izhido thats not strange search a video on youtube about the PATH variable thing Jun 07 20:09:12 wtf are you doing... Jun 07 20:09:36 there are times I want to screw with eclim, but it doesn't really fit my workflow, so I don't Jun 07 20:09:57 Izhido https://www.youtube.com/watch?v=FdHcXjpLSpw around 2:11 it starts installing :) Jun 07 20:11:10 Mavrik, hi Jun 07 20:11:50 pfn: it seems pretty sweet... I just cant seem to get code completion to work properly Jun 07 20:12:06 pfn: although I did install NERDTree which seems to serve as a nice way to explore your project Jun 07 20:12:20 tnzr, usually, if I want code completion, I get lots of it out of stuff like exuberant ctags Jun 07 20:12:36 and I just run ctags on my code and on the android code Jun 07 20:13:11 yeah Jun 07 20:13:22 what about for xml? Jun 07 20:14:16 also how do you run ctags on the android code? Jun 07 20:18:26 repo sync aosp Jun 07 20:24:37 Any idea why my HelloWorld app wont run on my Note 2? Jun 07 20:25:19 Standard IDEA tutorial, done in Android Studio, runs fine on the emulator but the apk doesnt seem to be accepted Jun 07 20:27:42 find logs Jun 07 20:27:44 then get back to us Jun 07 20:28:55 Hi guys, what can you say about about android "App Intentor" compare to THE REAL android SDK/Studio, aside from "App Inventor" limitation. Jun 07 20:30:06 Hi! Any way to enable display zoom or pinch zoom on a spesific url/domain inside a webview? Jun 07 20:31:12 For some reason all of my elements in a relative layout are stacking on top of one another. Here's what my XML looks like Jun 07 20:31:13 http://pastie.org/pastes/8020696/text?key=y8qdqzjxnoo8dz5xlhvg Jun 07 20:31:18 I quote ¨Now tap of Build number several times until you see a small popup with text You are now a developer.¨ Jun 07 20:31:23 androidnewb: erm, there is no comparison really Jun 07 20:31:25 Damnit.. I was search for over an hour.. Jun 07 20:31:29 very different things Jun 07 20:32:20 Psygohn: if your suprised at a relativeLayout doing that, you should read more Jun 07 20:32:49 StingRay_, : Even with haviong "above" and "below" configured, it's still typical behaviour? Jun 07 20:32:52 StingRay_: i know "App Inventor" cannot make complex project but atlest good for quick and dirty projects, do you agree? Jun 07 20:33:07 androidnewb: no Jun 07 20:33:49 Psygohn: my appologies Jun 07 20:33:58 didnt look at your paste Jun 07 20:34:07 tis the include Jun 07 20:34:16 I think at the point of building the view Jun 07 20:34:43 the relationships above below etc, are tagged before includes maybe Jun 07 20:34:47 Ahh Jun 07 20:35:04 cause I think if you put the includes in a frameLayout it would work Jun 07 20:35:13 Right, in most others it has been working. Jun 07 20:35:17 StingRay_: no? have tried "App inventor" yourself by the way. Jun 07 20:35:20 I dont know the exact reasons why Jun 07 20:35:38 may have to do with layoutParam orders or something Jun 07 20:36:19 oh hang on, maybe that the include is directly replaced with the root of the src Jun 07 20:36:25 that could be it Jun 07 20:36:35 actually no that cant be it Jun 07 20:36:45 It looks like it's a bug where you have to re-declare the layout_width and layout_height with includes in relativelayout Jun 07 20:36:47 One sec, let me see if that's the case. Jun 07 20:37:20 androidnewb: when I 1st wanted to start yes Jun 07 20:37:34 and then even back at that time thought … this is a silly idea Jun 07 20:37:57 if I want a cat picture that I can press and make a sound though… was ideal for that :) Jun 07 20:38:59 StingRay_, Looks like that fixed it. Just had to set the layout width and height when I include it. Frustrating hack, but at least it works. Jun 07 20:40:37 StingRay_: I'm thinking "App Inventor" is like a bootstrap or a framework aside from building it from scratch, but if "App Inventor" is like wordpress if you know html then I won't f**ing use it, lol. Jun 07 20:41:22 na, the comparison would be more extreme than that Jun 07 20:41:24 :) Jun 07 20:42:25 appInvetor is to sdk what a skateboard with no wheels is to an F1 Race car Jun 07 20:43:07 utterly awesome in the hands of the masters of the trade? Jun 07 20:43:26 StingRay_: lol, the "app inventory" by the way is like "scratch" same developer MIT, I was like is this really a real deal> Jun 07 20:43:55 it may have changed and have a few more wheels now Jun 07 20:44:04 since when I looked at it seriously Jun 07 20:44:42 and that skateboard with no wheels would be better on deep snow than an F1 car Jun 07 20:44:44 so dunno Jun 07 20:44:46 try it Jun 07 20:44:59 StingRay_: I'm mean "app inventor" can access camera and has some database features Jun 07 20:45:06 Yes, i'm gonna try it myself Jun 07 20:45:10 * StingRay_ has to think of better solid analogies Jun 07 20:45:29 you not know it's capabilities until you try Jun 07 20:45:34 *you won't Jun 07 20:45:41 do you not know? Jun 07 20:46:07 indeed, but being a web front ended restrictive interface to an open platform, you can make an educated guess ;) Jun 07 20:46:08 I just wanna get some reviews before I try. Jun 07 20:48:00 androidnewb: why not try the html5 app route if you want to do something crap ? Jun 07 20:48:07 like this phonegap thing Jun 07 20:48:15 they even have an irc channel Jun 07 20:48:23 and they have examples on their website Jun 07 20:48:52 that make you think, well if these are your showcase, just how bad can you make an app in this stuff :) Jun 07 20:48:57 probably missing the context, what's wrong with phonegap Jun 07 20:49:17 budz: it's use mainly Jun 07 20:49:21 besides that nothing Jun 07 20:49:40 I'm speaking as a consumer here btw Jun 07 20:49:45 not even a dev Jun 07 20:49:48 how so? (not being defensive, just curious) Jun 07 20:50:00 I would want a seperate market catagory for apps Jun 07 20:50:13 well you can just tell when you d/l an app Jun 07 20:50:21 it's a glorified web page thing Jun 07 20:50:25 slow Jun 07 20:50:27 clunky Jun 07 20:50:33 and most bad design Jun 07 20:50:34 StringRay_: good idea, but I wan't the app to still run offline. Jun 07 20:50:43 androidnewb: it does Jun 07 20:50:47 local web pages Jun 07 20:50:50 ewww Jun 07 20:51:04 you mean just store it as normal files in android? Jun 07 20:51:11 and open it on the android browser Jun 07 20:51:13 go to the site and read about it Jun 07 20:51:14 no Jun 07 20:51:22 they hide it in an app Jun 07 20:51:27 * StingRay_ shudders Jun 07 20:52:14 androidnewb: it runs a browser so you use html/js. it provides apis for accessing device functionality Jun 07 20:52:39 budz, mostly stems from the fact the webkits running on Androids are pretty bad Jun 07 20:52:51 i personally like it, you can't deny the number of free js libraries is helpful Jun 07 20:52:52 and not using native widgets usually results in a pretty bad user experience Jun 07 20:53:12 gotcha. Jun 07 20:53:21 budz: I personally never used it, but I have experienced it as a consumer Jun 07 20:53:27 * StingRay_ shudders again Jun 07 20:54:28 budz: so developing apps in HTML5 there is no IDE to used, just your notepad and save the files in your android. Jun 07 20:54:40 sure. you can use an IDE if you want, though. Jun 07 20:55:30 probably faster to develop on a computer until you need to access device functionality Jun 07 20:56:47 ok so it like, HTML5 will like layouts and Javascript will be Java in HTML5 development? Jun 07 20:57:02 androidnewb: go to #phonegap Jun 07 20:57:18 you will get better info there Jun 07 20:57:48 StingRay_: cool, I will go there now Jun 07 20:57:56 ty for the info Jun 07 21:02:45 so whats the trick to removin the frame around your app launcher icon? Jun 07 21:03:10 do not use eclipse to design it? Jun 07 21:04:35 is there a standard library for the ui seen in stock sms/chat applications? Jun 07 21:04:50 QbY, what part of the ui? Jun 07 21:05:11 canadiancow: like the baloons of text Jun 07 21:05:15 <|Agent> I am looking at the docs for CursorLoader, etc., and I cannot figure out how a CursorLoader is preserved across Activity restarts. There's LoaderManager, but it ought to die when the Activity dies. Jun 07 21:05:18 <|Agent> Anyone know? Jun 07 21:05:36 balloons? Jun 07 21:05:45 are we looking at different apps? Jun 07 21:06:21 canadiancow: http://www.geek.com/wp-content/uploads/2010/06/textplus_android_app_2.jpg Jun 07 21:06:35 that's not a stock app Jun 07 21:06:39 |Agent, IIRC the loaders are preserved via "onConfigurationChanged" handler Jun 07 21:06:46 would have to dig in the code to remember for sure Jun 07 21:07:20 over onRetainNonConfigurationInstance exactly. Jun 07 21:07:22 QbY: they are the apple balloons, or a bad rip of them Jun 07 21:08:51 StingRay_: I'm not really looking for specifically the baloons, i'm just takling about an library so i wouldn't have to write the chat ui Jun 07 21:09:03 so you want a listview? Jun 07 21:09:34 canadiancow: that's it? (sorry, not very familiar with the ui, i do more backend) Jun 07 21:12:16 <|Agent> Mavrik, the sample code describing how to use loaders does not include those methods. It is something in the Activity superclass? It automatically finds its LoaderManager, goes through each of the Loaders, and serializes them somehow to be restored later? Jun 07 21:13:00 |Agent, loaders are automatically retained over configuration changes Jun 07 21:13:07 that's the whole (and only) point to them Jun 07 21:13:25 so just invoke the loader with same ID and you'll get it back when your activity recreates Jun 07 21:13:41 in the implementation they use onRetainNonConfigurationInstance to pass the existing loader over to the new instance Jun 07 21:16:02 <|Agent> Okay. That gives me a mental model. I wasn't sure if loaders had a lifecycle independent of Activity, or if their state was persisted then reloaded. Jun 07 21:22:15 <|Agent> In order to load an image from a server, you'd need a new subclass of Loader or AsyncTaskLoader. Couldn't use CursorLoader. And the new loader shouldn't actually try to persist actual images, since the system can't persist binary data very well. Instead, it should probably persist loaded filenames and still-loading URLs or something. Jun 07 21:22:33 mhm Jun 07 21:22:53 |Agent, or you could just use Picasso or Volley and save yourself a headache reimplementing things others have done it several times :P Jun 07 21:23:01 depends if you're learning or not Jun 07 21:23:07 <|Agent> I am learning. :) Jun 07 21:28:50 hey all Jun 07 22:33:56 is synchronized(this) wait() / notify() broken on android? Jun 07 22:34:34 doubtful Jun 07 22:35:34 then I must be having some dumb bug in my code :D Jun 07 22:36:24 likely. log statements and debugging are your friend! Jun 07 22:36:37 like, uhm, calling this.notify() in an anonymous inner class *facepalm* Jun 07 22:37:53 Hi there... I was thinking that we dont have "little devices" to test our apps... Jun 07 22:38:01 and doing it on the emulator is a pain in the ass Jun 07 22:38:20 so, is there a way to "change" the resolution/size of my android-device Jun 07 22:38:24 there is! Jun 07 22:38:35 like a s3 simulate a little screen? Jun 07 22:38:40 https://plus.google.com/+AdamWPowell/posts/cz5TxuoNDfG Jun 07 22:39:21 Nice.... how do I know the size and DPI of mi device... Jun 07 22:39:30 or it will reset when I disconnect ADB? Jun 07 22:39:43 It will reset when you reboot Jun 07 22:39:51 OK, thx JesusFreke Jun 07 22:44:04 Ge0rG, why would they be broken Jun 07 22:44:11 and yeah, heh Jun 07 22:44:19 anonymous inner's this is wrong Jun 07 22:44:25 Ge0rG, go back to scala :p Jun 07 22:44:36 java makes me sad Jun 07 22:45:00 pfn: it makes me sad as well Jun 07 22:45:30 google play also makes me sad. "Google cancelled a recent purchase from your store. Please do not process or ship this order." Jun 07 22:45:46 and I just finished burning the APK for delivery. Jun 07 22:47:24 daku or DaKu, decisions decisions Jun 07 22:48:18 dAkU Jun 07 22:49:11 lol Jun 07 22:50:11 I've got problems with opengl on devices ( all devices act the same ) where my texture rendering is black, but my app works fine on the emulator. Can someone give me some pointers on debugging -- feeling a bit lost with opengl Jun 07 22:50:25 http://stackoverflow.com/questions/16975423/opengl2-0-textures-black-on-device-android if code helps Jun 07 22:50:58 Are we allowed to thank users for their reviews in the Play store? Jun 07 22:52:17 "Thanks for the review. Your cheque is in the mail." :) Jun 07 22:52:36 j/k - i'm not familiar with play store policies, sorry Jun 07 22:52:46 hehe that would be an interesting response :) Jun 07 22:54:10 bankai_: i haven't done any opengl stuff, but wow does that api look a bit ridiculous Jun 07 22:54:23 hard-coded strings out the wazoo Jun 07 22:54:57 hard to get compile time correctness checks with an api like that Jun 07 22:55:21 heh. yep Jun 07 22:57:41 JesusFreke: i'm looking into have a p2p client active while the user is within my app. So far it looks like Service whose start/stopping is micro-managed by the app would be the way to go, does that sound about right? Jun 07 22:57:43 Jc_Dev: hard to debug too, unfortunately Jun 07 22:58:27 Jc_Dev: instead of start/stop service, maybe bind to the service instead Jun 07 22:58:44 bind? hmmm hadn't seen that i'll check it out, thanks Jun 07 22:58:48 which causes the service's lifetime to be tied to the lifetime of the activities that binded to it Jun 07 22:59:14 oh ok - basically i want it running while any activity in my app is active Jun 07 22:59:28 so i assume i would bind it to all my activities? Jun 07 23:00:40 That seems reasonable to me, but I'm not an expert :) Jun 07 23:00:47 fair enough Jun 07 23:01:03 Hey, I'm on http://developer.android.com/training/basics/firstapp/running-app.html running 'ant debug', and I'm getting a file not found exception for build-tool/17.0.0/aapt. But that file exists in my system. How do I fix this? Jun 07 23:01:44 ravster: fyi, if you're just starting out with android development, you should consider using Android Studio (which uses gradle for its build system) Jun 07 23:02:45 Jc_Dev: hmm, I'll look into that. thanks for the tip. Jun 07 23:03:04 ravster: I think their tutorials might be slightly behind, they should really be guiding you to use Android Studio instead of eclipse - to answer your question though, are you sure you're in the root directory of your project? Jun 07 23:03:43 ravster: also - there's really no need to use the command line, you can debug directly from eclipse by clicking the debug button Jun 07 23:03:47 yup, I'm thinking that it might be because I'm on a 64-bit system. Looking into archlinux 32-bit libs right now. Jun 07 23:04:17 fair enough Jun 07 23:16:25 i'm getting a lot of files in my main layout directory, is it typical to try and group them with sub-folders or is that a bad idea? Jun 07 23:19:09 I was urged to switch from Eclipse to IntelliJ. Should I be using Android Studio instead? Jun 07 23:19:35 roadfish: yes - that's what they would have meant, Android Studio is the android development environment based on IntelliJ Jun 07 23:20:06 http://developer.android.com/sdk/installing/studio.html Jun 07 23:20:35 Jc_Dev: Thanks. I saw you mention Android Studio so I googled it. So I just skip installing IntelliJ first ... just snag that tar ball and go. Jun 07 23:21:03 yep, follow the download and instructions in that link, it installs everything you need in one go Jun 07 23:21:52 although to be fair i already had a java sdk installed - you may need that separately, but it will likely be obvious if studio won't start up Jun 07 23:22:25 I assume Stallman would prefer Eclipse to Android Studio. But then I guess he'd be developing for MeeGo and not Android anyway. Jun 07 23:23:27 yeah, possibly - at least the actual Android Studio part is open source i believe (it's an IntelliJ plug-in or somethnig like that) Jun 07 23:23:36 who cares what crazy people would prefer Jun 07 23:25:07 I'm mostly kidding. Although I do have respect for FSF/RMS. Jun 07 23:35:51 hey I have a simple tween animation applied to a view...all it does is scale the view... how can I keep the view to at it's final size or position, whatever, at the end of the animation...instead it go thru the animation and once it has ended the view returns back to it's original state... Jun 07 23:36:50 I have an animationlistener attached to it. Jun 07 23:42:19 KillmeSoftly: i haven't played with animations, but from a quick look at an example it looks like you set your end state explicitly in onAnimationEnd Jun 07 23:42:47 so for example, if you're transitioning from image A to B, you have to hide image A and show image B at the end Jun 07 23:50:32 When adding things to CLASSPATH, do you have to add jars specifically? It doesn't seem adding the folder containing them worked Jun 08 00:14:40 anyone able to help me get adb working with my ouya? Jun 08 00:14:42 Harpyon: are you talking about the environment variable CLASSPATH? Jun 08 00:14:47 i'm connected via usb, but ./adb devices shows nothing connected Jun 08 00:16:08 if i plug my phone in, it shows up exactly as expected Jun 08 00:16:17 timmmaaaayyy: have you seen https://devs.ouya.tv/developers/docs/setup Jun 08 00:16:37 oh no. awesome! Jun 08 00:16:40 thank you so very much! Jun 08 00:16:45 hope it helps :) Jun 08 00:22:40 Hi. Jun 08 00:23:54 i'm in. awesome stuff Jc_Dev Jun 08 00:24:20 nice! good to hear Jun 08 00:26:00 what the heck : /system/bin/sh: find: not found anyone know where xbmc's folder is on android? Jun 08 00:26:38 fyi i don't think you can see the private storage of an app unless your device is rooted Jun 08 00:26:49 the ouya is rooted out of the box Jun 08 00:26:52 oh ok Jun 08 00:27:45 are you looking for the xbmc userdata folder? Jun 08 00:27:49 yes Jun 08 00:27:58 check the table at the top of this page: http://wiki.xbmc.org/?title=Userdata Jun 08 00:28:12 probably is Android/data/org.xbmc.xbmc/files/.xbmc/userdata/ Jun 08 00:28:45 i'm in root and i don't have an Android directory Jun 08 00:29:06 I would like to commission a piece of software for my Galaxy S3. A simple (there seem to be hundreds of them) video / audio recording app to my exacting specifications. Jun 08 00:29:08 do you have a data dir? Jun 08 00:29:15 ahhh its under sdcard Jun 08 00:29:27 you sir are awesome! Jun 08 00:29:33 \o/ Jun 08 00:31:50 Raccoon: does the Galaxy S3 run 4.2.2? Jun 08 00:31:51 i just can't win with this thing. of course scp isn't a command out of the box. why would it be. lol Jun 08 00:32:02 Jc_Dev: Mine came with 4.0.4 stock Jun 08 00:32:14 timmmaaaayyy: be thankful you have cp Jun 08 00:32:20 lol Jun 08 00:32:24 for a long time, there wasn't even cp :) Jun 08 00:32:35 you had to cat blah > new/blah Jun 08 00:33:11 is there a text editor? no vim, vi, nano Jun 08 00:33:17 nope Jun 08 00:33:20 lol Jun 08 00:33:23 SWEEEET! Jun 08 00:33:35 adb pull -> edit locally -> adb push Jun 08 00:33:36 this is fun Jun 08 00:33:36 heh Jun 08 00:33:43 oooohhhh you smaaaaaht Jun 08 00:34:11 If you want a better terminal environment, you can try installing busybox Jun 08 00:43:09 Question: Can you enable/disable a receiver with a api-level qualified resource boolean? https://developer.android.com/guide/topics/manifest/receiver-element.html Jun 08 00:43:11 If so, why isn't it indicated in the docs? Jun 08 00:43:48 to elaborate on that, is this/should this be supported? Jun 08 01:08:06 where do you go in London (UK) for tips in getting developer jobs Jun 08 01:08:33 hi Harrowed Jun 08 01:09:46 Anyone done opengl / game engine type stuff. I am just curious if using a seperate thread for doing simulation (so the logic/physics update is not inside the onDrawCall of the opengl thread), is the best way to handle the synchronization to use (or do you have to) RENDER_WHEN_DIRTY mode? Jun 08 01:10:12 I done OpenGL Jun 08 01:10:56 how did you find to handle the rendering request and the update physics request? Jun 08 01:11:55 I don't think there is an easy answer Jun 08 01:12:29 uhh did you end up rendering in CONTINOUS mode or WHEN DIRTY ? Jun 08 01:13:02 because if i am going off of convention of a gaim loop while(runn) { update draw } it seems you'd have to use WHEN DIRTY and requestRender as the draw call Jun 08 01:14:53 lasserix - you are more advanced than me Jun 08 01:16:22 i know how to draw shapes Jun 08 01:16:49 i only render when dirty Jun 08 01:19:13 nickbp yeah thats what seems to be better, just because saves on battery i imagine Jun 08 01:19:29 thanks Jun 08 01:19:34 droidboi np Jun 08 01:19:53 i am learning Jun 08 01:25:40 droidboi: hello Jun 08 01:26:00 hi Jun 08 01:26:05 how are you Jun 08 01:26:21 droidboi: Your new to android dev.? Im good and you? Jun 08 01:26:40 I am looking for a job in London, UK Jun 08 01:26:58 Android Developer - with OpenGL would be nice Jun 08 01:27:11 how many experience you have? Jun 08 01:27:26 Only demos Jun 08 01:27:33 No comercial Jun 08 01:28:30 "Astrosphere" is on Play Jun 08 01:30:12 Not so new - looked at Android years ago Jun 08 01:31:15 androidnewb: Working on a game right now Jun 08 01:34:08 droidboi astrosphere worked well on my nexus 7, good work Jun 08 01:34:46 it resets when you rotate it I believe Jun 08 01:35:08 indeed Jun 08 01:35:13 :) Jun 08 01:35:58 not the best demo Jun 08 01:36:35 well i gave it 5 stars for you anyway Jun 08 01:37:17 hehe - wkd Jun 08 01:38:04 you get to listen to me tune Jun 08 01:38:22 myb you can get the most from the app where your portfolio is concerned Jun 08 01:39:29 I don't get any visuals on my deside hd, only the music :| Jun 08 01:40:18 Harpyon: Wow Jun 08 01:40:34 droidboi worked fine on my n7 too Jun 08 01:40:36 cool demo Jun 08 01:40:53 you might make sure you are not using legacy menu button Jun 08 01:42:12 i avoid legacy when I can Jun 08 01:42:50 hi all how to develop my first app? any tutorial? Jun 08 01:43:16 droidboi: oh i get the legacy menu button in the corner on my n7 Jun 08 01:43:32 jak2000: d.android.com Jun 08 01:43:35 jak2000: http://developer.android.com/training/index.html Jun 08 01:43:43 droidboi, myb you could turn it into a WallPaperService too Jun 08 01:44:02 (just the gfx) Jun 08 01:44:12 ^^ brx_ ++ Jun 08 01:44:23 I thought of that Jun 08 01:44:42 intersting: http://developer.android.com/training/index.html Jun 08 01:44:43 :) Jun 08 01:45:07 i really need to get into some 3danimation stuff on android Jun 08 01:45:14 wheresa good place to start? Jun 08 01:45:39 brx_ you asking me? Jun 08 01:45:55 ye, and lasserix Jun 08 01:46:05 learn opengl Jun 08 01:46:35 roger that Jun 08 01:46:46 :) Jun 08 01:49:04 lasserix: http://www.eclipse.org/downloads/ wich IDE download? Jun 08 01:50:16 jak: http://stackoverflow.com/questions/3792306/which-eclipse-version-should-i-use-for-android-app Jun 08 01:50:31 looks like eclipse classic 4.2.2 but i dont remember Jun 08 01:51:10 classic ye Jun 08 01:51:39 but the recent version i installed on this computer came with adt bundled in with it, it was just 1 download and everythig worked Jun 08 02:01:09 is there a limit on google game service's use at all Jun 08 02:01:23 like how many users of the same app can connect Jun 08 02:30:16 Unpack the ZIP file (named adt-bundle-.zip) and save it to an appropriate location, such as a "Development" directory in your home directory wich directory recommend me? c:\eclipse\Development ? Jun 08 02:31:41 ye,it doesnt matter its arbitrary **** ENDING LOGGING AT Sat Jun 08 02:59:58 2013