**** BEGIN LOGGING AT Tue Oct 01 02:59:58 2013 Oct 01 03:03:13 to answer my own previous question: https://github.com/derekbrameyer/android-betterpickers Oct 01 03:42:17 anyone came across the same problem? > http://stackoverflow.com/questions/19107507/genymotion-allow-su-access-permanently Oct 01 04:01:58 gradle + eclipse for android development - good times? Oct 01 04:19:28 jedir0x: since I've wasted about 5 hours trying to get gradle to work? I doubt it. Oct 01 04:21:25 well, i'm sure i can get gradle to work - it's more of the IDE integration that i'm worried about. Oct 01 04:21:38 I like eclipse for java code, and the debugger as well. Oct 01 04:25:03 god, now that llckfan's b een banned from the #android* he goes and infests #sbt-android Oct 01 04:25:05 ahole.... Oct 01 04:25:42 that assholes in android-dev too Oct 01 04:25:58 err #android Oct 01 04:26:12 is he still? not banned yet? Oct 01 04:26:15 or was. he timed out Oct 01 04:26:21 so yeah not vbanned yet Oct 01 04:27:58 I'm getting a handle on Android Studio, but I have to ask if it's more efficient to manually code out the UI design than to use the XML layout. Oct 01 04:33:16 sbt-android is sbt for android? Oct 01 04:33:26 android and scala i presume Oct 01 04:54:32 yes Oct 01 05:07:56 why does the button handler get a view? public void sendMessage(View view) I am following http://developer.android.com/training/basics/firstapp/starting-activity.html Oct 01 05:17:02 How can I call an action with a string Oct 01 05:17:46 What i'm trying to achieve is make a call to a server over gcm, the server processes and sends a response that gets picked up by the broadcast receiver Oct 01 05:18:12 The problem is that the original request has no relation to the response on the client side Oct 01 05:18:46 my first thought is to pass along an action reference and execute that with the response Oct 01 05:19:01 like my_action: 'com.google.android.gcm.demo.app.ECHO_NOW' Oct 01 05:19:35 but I don' tknow how to turn a string into a command that can be run on the client without a ton of switch/case Oct 01 05:40:05 Hello all, we are developing a bookshelf application which contains few books(with animation and audio). We are planning to make the first book free for downloading and from second book we want users to pay for accessing. What is the best way to do this? I am thinking of implementing this by uploading separate apk files for each book on Google Play and make it available via In App Purchase. Any suggestions are highly appreciated. T Oct 01 05:40:05 hanks a lot Oct 01 05:40:24 Map Oct 01 06:04:11 Mrono: Clearly what you want to do is write a VM. Oct 01 06:04:19 * Nilium says after writing a VM for fun. Oct 01 06:15:55 hello in here Oct 01 06:16:22 do we have nice apis to get the macadress of the connected device on a android running on api 8 ? Oct 01 06:18:42 i was looking around and only found approaches, which seem to read a sys file .... since api 9 getMacAdress or some smilar instruction is available but what can i do for api 8 ? Oct 01 06:18:57 Icbytes, did u try through device ids ? Oct 01 06:20:47 device id's ? Oct 01 06:20:48 no Oct 01 06:21:31 it is like : a connection of all three is always "preferred", one can set that. And this usually is used, if more are available prior to the others. Oct 01 06:22:09 Meaning, all devices have macs, but i must get the mac of those device, which is really connected.... with Android 2.3 Oct 01 06:22:32 "there has been at least one widely-observed bug in a popular handset from a major manufacturer, where every instance has the same ANDROID_ID." … anybody remember who this was ? Oct 01 06:24:43 i encounter other problems now, somehow i cannot open my project anymore.... ( .prpoerties missing, though existent, and so on )..... Oct 01 06:27:23 really, either eclipse or adt........ Oct 01 06:27:41 It should be the id way Oct 01 06:28:25 id way ? Oct 01 06:29:04 so, there is no api, i have to probe each device for "being connected"..... by NAME ? Are You serious ? Oct 01 06:30:01 Nilium: a VM? Oct 01 06:30:08 Nilium: as in a virtual machine? Oct 01 06:35:50 hm, i'm wondering if i can turn ContentObserver + HashMap into an eventbus; even better MVStore for persisted sticky messages Oct 01 06:36:07 saw something like this with redis Oct 01 06:37:56 mornings Oct 01 06:38:13 mornings Oct 01 06:39:06 empty listview Oct 01 06:39:25 how to give a listview a special view when its empty and not a listactivity? Oct 01 06:40:07 setEmptyView() :P Oct 01 06:41:31 awesoem :) Oct 01 06:41:52 what can i do now, in order to get macadress of connected device for android 2.3 and above ? Oct 01 06:42:02 does nobody ever needed that ? Oct 01 06:45:09 Try to ask all devices installed on the device with network flags, that is the long when there is no function under 9 Oct 01 06:45:56 can my app make a custom calendar and stuff things into it? Oct 01 07:00:12 sadolino ? this is like i do it at home, with c under linux in a project of mine,,,,, so reading /sys/class/net line for line and then check the device for flags ???? Oct 01 07:01:57 g00s Oct 01 07:02:02 question Oct 01 07:02:02 g00s, droid2 or something like that Oct 01 07:02:09 morning pfn :) Oct 01 07:02:19 hello Oct 01 07:02:41 oh nvm g00s lol i am stupid Oct 01 07:03:23 you should all code your android apps in scala .. Oct 01 07:03:26 convert the world Oct 01 07:03:31 lemonxah and you're not using ArrayAdapter , right ? right ? Oct 01 07:03:31 i hate java :/ Oct 01 07:03:37 lol never Oct 01 07:03:42 good lemon Oct 01 07:03:53 only cursorAdapters and baseAdapters Oct 01 07:03:59 \o/ Oct 01 07:04:01 hi, I have the following layout, but the textview isn't showing on my 4.1.2 device, it shows on the android preview though http://pastebin.ws/cz3wr0 Oct 01 07:04:03 as for api8,who cares? Oct 01 07:04:20 there's only one api8 device left in the world, or something Oct 01 07:04:28 thats mine Oct 01 07:04:30 * pfn points fingers Oct 01 07:04:43 is api14 too new to require? some new calendar stuff there Oct 01 07:04:50 ok yeah i wasn't stupid just a quick question then .. :/ Oct 01 07:04:56 nah, i use api 15 minsdk :) Oct 01 07:05:13 hmm Oct 01 07:05:30 api14 and newer is present on more than 66% of devicez Oct 01 07:05:38 ok Oct 01 07:05:38 make of that what you will Oct 01 07:05:38 i need it with api8 because bluestacks supports this and all other emulators suck. Oct 01 07:06:03 any ideas? Oct 01 07:06:36 icbytes try genymotion ? Oct 01 07:06:57 genymotion ? Oct 01 07:07:02 never heard of that.... Oct 01 07:07:04 x86 emulator images work beautifully Oct 01 07:07:07 lt me look Oct 01 07:07:51 hmm, sounds good, does genymotion have a api, to which it is limited ? Oct 01 07:08:29 its basically androVm + vbox Oct 01 07:08:52 faster that any HAXM stuff ? Oct 01 07:08:57 much Oct 01 07:09:27 very nice Oct 01 07:09:37 same speed as haxm for me Oct 01 07:09:40 are YOu aware of a maximum api ? Oct 01 07:09:58 it is not limited Oct 01 07:10:05 genymotion > haxm crap Oct 01 07:10:05 cool cool. Oct 01 07:10:17 it's just an x86 android image Oct 01 07:10:20 so i can get rid of haxms and bluestacks..... Oct 01 07:10:27 http://pastebin.com/0ugLm2XE Oct 01 07:10:30 oh, it is haxm ? Oct 01 07:10:37 no Oct 01 07:10:40 that is my setEmptyView question Oct 01 07:10:41 it's a vm Oct 01 07:10:48 it's a vm with a UI that doesn't make you want to stab your face Oct 01 07:11:01 and it has useful controls that actually allow you to test Oct 01 07:11:29 i dont think any of the x86 images have play services, or do they now? but genymotion has that Oct 01 07:11:45 dunno. it's always been an adb pull/push away Oct 01 07:12:03 my only real problem is, that i am restricted now to api 8, because bluestacks supports it, and i can test and even debug on blue. And i need macadress of connected device.... i would usually now have no need to rely on api 8 ( though i still would like to know, how to obtain macadress on api 8, just for completeness )..... Oct 01 07:12:28 that is abysmal Oct 01 07:12:44 bluestacks seems worthless Oct 01 07:12:46 get Genymotion, develop for an API level that was released this decade Oct 01 07:12:47 icbytes you're even more masochistic than i am , heh Oct 01 07:12:52 why even test with it Oct 01 07:13:00 blue tests very fast. Oct 01 07:13:23 Genymotion is faster. Don't look back Oct 01 07:13:26 directly deployed, it surely has its advantages as its disadvantages ( api 8 ). Oct 01 07:13:49 sure.... what my application would be restricted to run on api9 miminum then..... Oct 01 07:13:53 bluestacks its an app player - genymotion is better suited for testing since you can mock gps, etc Oct 01 07:13:59 aha Oct 01 07:14:02 hmmmm.... Oct 01 07:14:08 API 8 isn't a disadvantage, it's a terminal disease Oct 01 07:14:11 sure sure sure.... good argument Oct 01 07:14:19 terminal disease ? Oct 01 07:14:22 :-) Oct 01 07:14:43 yeah. it kills your app Oct 01 07:14:55 what about debugging and integration in adt ? no extra affort ? Oct 01 07:14:58 effort ? Oct 01 07:15:01 zero Oct 01 07:15:03 * pragma- continues to support froyo in his app -- has about 12 froyo users still hanging on. Oct 01 07:15:14 has eclipse / intellij plugins -but i don't even use those Oct 01 07:15:22 seems to work fine without Oct 01 07:15:23 don't use the plugins Oct 01 07:15:25 wait, api8 is android 2.3 isnt it ? Oct 01 07:15:28 no Oct 01 07:15:30 it's 2.2 Oct 01 07:15:31 it's 2.2 Oct 01 07:15:31 2.2 Oct 01 07:15:36 it's 2.2 Oct 01 07:15:37 oh that bites :/ Oct 01 07:15:37 oh, sorry. Oct 01 07:15:54 does it also chew? Oct 01 07:15:58 you can only use setEmptyView if that view is in the same layout file that the listview has Oct 01 07:16:00 pragma-: time for multi-apk. leave them on a working version! Oct 01 07:16:03 i'm more interested if it swallows Oct 01 07:16:06 * Zharf also supports 2.2 in his current apps, but not future ones Oct 01 07:16:08 thats not going to work :/ Oct 01 07:16:14 though bluestacks has restriction somewhere there. Oct 01 07:16:27 so i will get genymotion then, Oct 01 07:16:39 and there i have getHardwareAdress :-D Oct 01 07:16:57 uninstalling bluestacks was extremely painful on mac - it put shit *everywhere* Oct 01 07:17:07 and had some crap run on startup Oct 01 07:17:20 that itself, was not in the normal place Oct 01 07:18:20 JakeWharton: well, it's not a big deal. just some minor corner-cases to deal with. for the most part, abs and viewpager have made it tolerable. Oct 01 07:19:03 (and the support library, of course) Oct 01 07:19:39 indeed Oct 01 07:19:56 and viewpagerindicator! Oct 01 07:20:23 by the way, a friend told me, that ui elements on fragments at runtime is only possible in constructor of fragment.... is that true ? Oct 01 07:20:49 that "placing ui elements"....... Oct 01 07:20:50 mostly in my case it's been some features that just aren't available in older platforms because of missing platform support Oct 01 07:21:23 @Zharf : for me ? Oct 01 07:21:32 icbytes, no :) Oct 01 07:21:48 ok. Oct 01 07:22:28 icbytes, and the answer to your question is also 'no'... unless I'm missing something here Oct 01 07:22:32 ha, looking forward to install genymotion Oct 01 07:22:59 ok, all lifetime cycle of the fragment one can place / remove other views on it ? Oct 01 07:23:06 i got bit one time because i accidentally used android.content.ClipboardManager instead of android.text.ClipboardManager Oct 01 07:23:16 pragma-, I have 13 2.2 users... Oct 01 07:23:34 1 3.1 user -.- Oct 01 07:23:49 android.content.ClipboardManager is the api 11+ version that supports copying objects other than text whereas android.text.ClipboardManager does text-only since api 1 Oct 01 07:24:19 since my app only deals with text copy/paste, it was easy enough to go with android.text.ClipboardManager. Oct 01 07:24:25 oh my other app has 17 2.2 users.. Oct 01 07:25:46 hmmy, what a pitty. Oct 01 07:25:55 there are only high api versions. Oct 01 07:26:14 i would prefer to have 10 at least Oct 01 07:26:19 does not matter Oct 01 07:26:23 thx so far. Oct 01 07:26:43 it would be nice to drop support for everything older than api 16 so I don't have to test in all those emulators to make sure everything is consistent Oct 01 07:27:18 I have api8 phone I run my apps on just before updating the one on the store Oct 01 07:28:04 Is there a legal way to update to 4.3 without manufacturer, through sdk 4.3 ? Oct 01 07:28:12 my phone is stuck with api 15 though, and it's not likely that I'll be getting a new one anytime soon Oct 01 07:28:13 Mrono: Yes, as in a virtual machine. Oct 01 07:28:23 sadolino: What do you mean? Oct 01 07:28:50 sadolino: you can unlock your phone and use a custom rom Oct 01 07:29:21 without to miss the huarantee ? Oct 01 07:29:28 Guarantee Oct 01 07:29:57 On the ofgicially way there is no update Oct 01 07:30:04 Offic... Oct 01 07:30:15 you'll probably lose your warranty, if it still has one Oct 01 07:31:14 and when i make it through sdk also ? Oct 01 07:31:42 sadolino: If you modify your device to run unsigned code, yeah Oct 01 07:32:03 Which is what a bootloader unlock typically will do Oct 01 07:33:00 I'm creating an android app that essentially lets people post advertisements for stuff they want to sell, and lets other people view them. I'm a bit confused about how to go about managing the data (I'm still new to Android dev). Should I use an online database (like MongoHQ)? And then should I create a simple REST API to access the data from my app or should I access the database directly? And do I need to use ContentProvide Oct 01 07:33:00 r? Oct 01 07:33:10 http://pastebin.com/Y3H3CskB why this doesn't work? I want to show some points on the map, but I see sea insted. The bounds are fine according to log, and the code is called, because I see those logs. Yet, it doesn;t work. I remeber it worked a couple of months ago, but now, after lot of upgrades, it doesn't. Oct 01 07:33:14 For example, i use the global device id to combine it with jelly bean 4.3 from android studio and play it in through a official update way Oct 01 07:33:46 oh, and If i comment out line 10, it works, but the maps is blinking like hell (obviously). Oct 01 07:34:11 always use ContentProviders its a decent seperation of models and views Oct 01 07:34:31 Anyone familiar with porting ROMs? I'm looking for a little help porting Ubuntu Touch to my phone... The project was started in February by someone else, who no longer maintains the project... but I have no idea where they left off, which leads me to no starting point... Oct 01 07:34:41 but you should populate this ContentProvider from somewhere so havinga REST API to get data from would be great Oct 01 07:34:45 @android , is there any collabo with android database manufactures ? Oct 01 07:34:55 oh that is @ spinningarrow Oct 01 07:35:15 Sry @spinningarrow :) Oct 01 07:36:32 this isn't twitter Oct 01 07:37:24 any solution for my issue ? Oct 01 07:37:31 lemonxah: thanks! using ContentProvider, is consuming a REST API more work than directly connecting to a database? Oct 01 07:37:40 Anyone know when t-mo GS3 might get 4.3? Oct 01 07:38:35 sadolino: You're trying to update your hardware to 4.3, right? Oct 01 07:38:37 not really spinningarrow its the prob the same about of work .. but an API gives you some other control like "long runnin tasks" you do in transactions Oct 01 07:38:57 but what if your direct connection to the DB gets interupted by connection loss on the android? Oct 01 07:39:17 lemonxah: ah, so it's actually better? Oct 01 07:39:57 yes its never a good thing to directly access a remote db if you have a case where connection loss is common Oct 01 07:40:15 Yh seitensei Oct 01 07:40:29 from a webapp its ok to access it directly cause you can be almost certain the webapp will have connectivity Oct 01 07:45:04 I see. That clears things up. Thanks lemonxah! Oct 01 07:48:19 no worries Oct 01 07:54:25 Nilium: that's what I thought, then I have no idea how you relate that to my question lol Oct 01 07:58:00 hi everyone Oct 01 07:58:22 There are some resources from the android action bar icon pack that I want to include in my app. Is there a way to include the directory of action bar icon pack so that it is searched for resources in addition to my project's res folder? Or is this a bad idea to begin with and I should just hand-pick the icons I need? Oct 01 07:58:23 hallo Oct 01 07:58:28 I am using SQLiteDatabase in my application and I want to send a query to my DB. For that, I use the 'query' method Oct 01 07:59:17 it looks like the WHERE clause is not created correctly because I always receive a Cursor with no datas in it. If I check the mQuery member of the returned Cursor, I get this: Oct 01 07:59:31 SELECT _id, studied, favorite, jlpt, kunyomi, onyomi FROM entries WHERE _id>? and _id quantalrabbit put the ones you want into your project Oct 01 08:00:12 the documentation says that i must put '?' in the selection field and add the arguments as a String[] parameter, that's what I do. Oct 01 08:00:29 Any idea why these '?' are not replaced by the arguments?? Oct 01 08:01:35 http://pastebin.com/xHzzyaFC Oct 01 08:02:03 g00s: thanks! just wanted to make sure that was the correct approach. i guess the other idea if it were possible would mean all the action bar icon pack resources would also be packaged in the apk wasting space? Oct 01 08:02:19 sorry, I commented the 'selectionArgs in the paste, but in fact the result is the same Oct 01 08:03:32 quantalrabbit if for some reason you want to split them, you could add extra resource directory in your gradle file Oct 01 08:05:53 g00s: if i'm not using Eclipse nor Android Studio but building from command-line, is gradle applicable to me (building with ant)? Oct 01 08:06:14 yes, its easy with gradle Oct 01 08:06:31 but f everything works right now, easiest past is stick with ant and just copy the icons ;) Oct 01 08:06:37 ugh Oct 01 08:06:42 easiest path Oct 01 08:07:19 g00s: got it. thanks! Oct 01 08:09:31 if i make a style with a white text color and apply that style to a linear layout Oct 01 08:09:44 will all the child textview's textColor be white? Oct 01 08:10:59 try it :) Oct 01 08:34:17 TIL about taskwarrior Oct 01 08:48:39 i have an android library project and if i compile i get the debug aar. but now, how do in include my library in another project (using android studio btw)??? Oct 01 08:49:03 hi all Oct 01 08:49:15 skullcrasher you have to publish it to a local .m2/repository Oct 01 08:49:24 can anyone help me with this? Oct 01 08:49:29 http://stackoverflow.com/questions/19090488/turn-camera-flash-led-on-off-with-sl4a-python Oct 01 08:49:45 g00s: uh Oct 01 08:50:06 skullcrasher there are examples on the android site Oct 01 08:51:20 skullcrasher get the examples, last line of the page http://tools.android.com/tech-docs/new-build-system Oct 01 08:52:37 you know, this may have changed based on the changelog for AS Oct 01 08:52:52 0.2.10 had some interesting tidbit tucked away Oct 01 08:54:13 ok, i will see what i can find :) Oct 01 08:54:13 thx Oct 01 08:54:14 skullcrasher after you get the file, look at the repo/ example Oct 01 08:54:26 notice uploadArchives task Oct 01 08:54:42 maybe it wold be easier to setup a project with 2 modules (1 library 1 app) Oct 01 08:54:44 in your app, you can use i think mavenLocal() as a shorthand for yours Oct 01 08:57:10 hi all Oct 01 08:57:12 can anyone help me with this? Oct 01 08:57:16 http://stackoverflow.com/questions/19090488/turn-camera-flash-led-on-off-with-sl4a-python Oct 01 09:05:16 good idea to use google's Guava in android? Oct 01 09:05:53 you can … beware it contributes a lot of methods to the 65k limit tho Oct 01 09:06:11 Tmokgu , is hrre something with python ? Oct 01 09:07:15 http://stackoverflow.com/questions/15413053/android-led-doesnt-turn-on-off Oct 01 09:08:35 Sry timkofu :) Oct 01 09:22:24 g00s: i think i go for a new project as i said with 2 modules. is it possible to have a separate git for every module? Oct 01 09:22:50 hm Oct 01 09:23:00 i dont know how modules work in AS now with gradle Oct 01 09:23:21 my problem for now is, i have my api that is used in many activities Oct 01 09:23:38 if your library will be used by other projects, i would pub it to your local maven repo Oct 01 09:23:39 but in the current project is only in an own branch ... Oct 01 09:23:50 so i have to merge in every branch if i update it ... Oct 01 09:23:57 O.O Oct 01 09:24:07 that's why i thought of outsourcing it in an own project as library :) Oct 01 09:24:07 i'm not terrific with git eiather Oct 01 09:24:50 it's only for this project Oct 01 09:25:31 but every activity has its own feature branch, so it can be changed independently Oct 01 09:25:39 but all should use the same api level Oct 01 09:32:24 skullcrasher i dunno, maybe it would be better to use gradle variants than all the special branches ? Oct 01 09:34:50 the work with branches works well Oct 01 09:35:29 the only thing is my api that is uses in all branches. thats why i thought i could just do a library/module project for it Oct 01 09:35:40 and import Oct 01 09:38:17 salve a tutti c'è qualche italiano che mi possa dare un suporto? Oct 01 09:38:58 salve a tutti c'è qualche italiano che mi possa dare un suporto???? Oct 01 09:40:20 akhilleus, you're probably not going to get very far without english in here, sorry. Oct 01 09:56:04 hello guys, I have a strange problem on some of the devices (my min sdk is 9) I got java.lang.NoClassDefFoundError: android.media.audiofx.Equalizer Oct 01 09:56:18 but most of them the Equalizer works fine Oct 01 09:57:34 tu.no Oct 01 09:57:37 sry Oct 01 10:00:20 tagrudev, sounds weird, whcih devices? Oct 01 10:02:17 Zharf, Optimus One , Galaxy Mini, Desire, M835 Oct 01 10:04:22 tagrudev, apparently there's some audiofx apps on the market that list optimus one as one that doesn't work Oct 01 10:04:31 possibly broken platform, wouldn't be surprised :) Oct 01 10:04:53 can you share a link ? Oct 01 10:05:13 https://play.google.com/store/apps/details?id=net.cacheux.soundboost&hl=en Oct 01 10:06:17 not sure really why... could be just that the developer of that app is crap too :p Oct 01 10:07:27 I don't have the devices to test it really but there is nothing fancy Oct 01 10:07:37 that I am doing Oct 01 10:07:48 and it works on the devices I've tested it on Oct 01 10:08:23 I am getting this error from my crash reports in crittercism Oct 01 10:10:12 hmm Oct 01 10:10:29 it would be great if you could tell critercism : if you see this exception, add the device to my Play listing blacklist :D Oct 01 10:10:37 apparently there's no gingerbread for htc desire Oct 01 10:10:50 so how the hell did it crash on that if the min sdk is 9 Oct 01 10:11:50 rooted maybe ? Oct 01 10:12:08 sounds more like people are somehow using it with api8 device, which you can't be blamed for Oct 01 10:13:45 android:minSdkVersion="9" Oct 01 10:13:50 it's 9 Oct 01 10:16:19 is it possible to access a bluetooth packet's timestamp recorded at the system level? Oct 01 10:16:38 or where can i ask that? Oct 01 10:40:51 tagrudev, by the way, check that the min sdk is also the same in developer console Oct 01 10:41:08 tagrudev, I found http://stackoverflow.com/questions/18776153/android-uses-sdk-minsdkversion-being-ignored-by-play-store Oct 01 10:42:13 API levels 7+ Oct 01 10:42:14 oh boy Oct 01 10:42:15 wtf Oct 01 10:42:39 -.- Oct 01 10:43:07 fuck you android studio yeah in the gradle file Oct 01 10:43:10 it's 7 Oct 01 10:43:13 in the manifest Oct 01 10:43:15 it's 9 Oct 01 10:43:57 fun Oct 01 10:46:06 API levels 9+ (previously 7+) Oct 01 10:46:15 Zharf, ty a lot mate that saved me a lot of time Oct 01 10:48:00 no problem Oct 01 10:50:21 tagrudev what happened ? Oct 01 10:50:48 the gradle file will override the manifest Oct 01 10:50:55 (as documented) Oct 01 10:50:59 seems silly Oct 01 10:51:04 yes Oct 01 10:51:05 so take it out of the gradle, and leave it in the manifest Oct 01 10:51:29 there is a good reason, for using variants Oct 01 10:51:39 you may have one variant minSdk = 7, the other minSdk = 14 Oct 01 10:51:45 its well thought out, actually Oct 01 10:52:41 I wouldn't know, I never used gradle Oct 01 10:54:05 whats the deal with textsizes? do they scale linearly or is something else going on? Oct 01 11:07:19 What? Oct 01 11:09:10 please tell me, is it wise to pass Activity/FragmentActivity to ctor of own class, in order to use ApplicationContext and other stuff in it ? ( i remember to have read, this can cause memory leaks ) ..... Oct 01 11:14:13 g00s, at least a conflict should be raised Oct 01 11:14:25 I disagree that "it's well thought" Oct 01 11:14:45 and how come that the IDE reads the manifest and the store reads the gradle Oct 01 11:14:48 tagrudev what is the conflict? gradle overrides manifest Oct 01 11:15:54 store doesn't read gradle, it reads the apk prepared by gradle or whatever Oct 01 11:15:55 so either (1) dont have in gradle, have in manifest or (2) specify in gradle, but not manifest, or (3) override Oct 01 11:17:13 Zharf right … prepared by gradle by deterministic transformations ;) maybe i don't understand the problem Oct 01 11:18:24 could this be right not to pass Activity reference to own subclass..... ? Oct 01 11:18:25 it's a bit weird to suddenly start using a different place for the info, and no doubt a lot of people will run into this problem Oct 01 11:19:12 since i'm not using variants, i dont have anything like minSdk in my gradle Oct 01 11:19:15 I think the IDE should response to that Oct 01 11:19:26 a duplication error maybe or something Oct 01 11:19:33 I don't have gradle at all so I can't really relate Oct 01 11:19:40 no clue how the variants even work :) Oct 01 11:19:56 respond* Oct 01 11:22:08 There's no duplication error. Manifest entries aren't necessarily set by every flavor or build variant Oct 01 11:23:18 this is PEBKAC Oct 01 11:23:22 :) Oct 01 11:23:53 hehe Oct 01 11:25:08 mh, I could try gradle with my xmms2-android but my native compilation procedures have special needs -.- ... maven can't handle them so I resorted into having it in a shell script instead :p Oct 01 11:25:50 that's a real problem though g00s maybe not all of the developers have your significant genius brain Oct 01 11:26:17 * g00s doesn't have a genius brain; infact pfn thinks i'm so dumb i should change careers Oct 01 11:27:18 ugh, this sucks … i have a tcp client library for a specific protocol but its not very friendly with android. man, this is going to be hairy Oct 01 11:27:47 does gradle handle the version number properly for store filtering with these variant things Oct 01 11:28:26 Zharf, I really don't know I am glad that you point that out so I didn't loose more time on this Oct 01 11:29:01 Zharf it should Oct 01 11:29:18 I can't find anything on its behaviour in the documentation Oct 01 11:29:37 seems like with the latest version, the gradle plugin is getting decent. its a good time to try it out Oct 01 11:29:51 If you set a versionCode in your build.gradle, it will use that version number Oct 01 11:29:57 Just like any other manifest entry it support Oct 01 11:30:11 (Such as minSdkVersion) Oct 01 11:30:19 SimonVT, but it doesn't automatically make me a version number Oct 01 11:30:24 Oh, no Oct 01 11:30:37 so that armeabi-v7a would be bigger than armeabi Oct 01 11:31:24 SimonVT you can have that call a function Oct 01 11:31:28 if it could do simple calculations in the versionCode entry it'd work.. Oct 01 11:31:30 You could probably create a method that generates version numbers for you Oct 01 11:31:35 minSdk buildMyMinSdk() Oct 01 11:32:02 bad example, but you get the idea ;) Oct 01 11:32:32 Set a variable to the new version code. Do +1, +2, etc in the different variants :p Oct 01 11:32:59 Or some other scheme Oct 01 11:33:00 this is where the gradle stuff is nice ;) Oct 01 11:33:22 http://eclipser.xmms2.org/git/xmms2-android.git/tree/AndroidManifest.xml only time I've had to write myself a memo on how to do this version code thing :p Oct 01 11:33:44 there was a maven plugin that did this, but stored a monotonically increasing number in a properties file Oct 01 11:34:09 some grab by commit # like if using svn Oct 01 11:34:18 one thing i like about svn, those commit numbers Oct 01 11:35:15 well changing one number manually and then having it calculate the versioncode for each abi from that would be sufficient for m Oct 01 11:35:18 e Oct 01 11:41:21 is it normal ,that i get width and height of my host, instead of virtual guest in debugger ? Oct 01 11:45:39 must leave now, see ya later ,thx so far,. Oct 01 11:51:41 Zharf if you still want to use your shell scripts you can also call them from gradle Oct 01 11:52:15 hi i need to see interaction of android ui with wifi driver .i want the parameters called to the driver . i have entire source can someone help me where to look Oct 01 11:52:41 in working directory Oct 01 11:53:17 maiatoday, if I can rename files after ndk-build is done, I won't need to Oct 01 11:55:06 http://www.gradle.org/docs/current/userguide/working_with_files.html there is a section on renaming files Oct 01 11:57:06 yeah I saw that, I'll need to try it Oct 01 11:57:32 is it possible to access a bluetooth packet's timestamp recorded at the system level? Oct 01 12:00:10 jeppy u need to access chip phy registers to get timestamp check if ur fw and driver support access to those registers Oct 01 12:08:37 What is the best way of unit testing sqlite database ? Oct 01 12:09:03 johannn, what do you want to unit test? Oct 01 12:09:04 The connection? Oct 01 12:09:07 The queries? Oct 01 12:09:57 test the queries are correct Oct 01 12:10:30 If you are using a content provider, use ProviderTestCase2 Oct 01 12:11:24 if you aren't and are just using SQLiteOpenHelper, then you should be able to get away with AndroidTestCase which provides getContext() Oct 01 12:13:14 (and your tests just insert test data and then do the queries you want make sure are correct) Oct 01 12:13:51 thx Kegsay Oct 01 12:27:05 <[A3G1S]> Hi Oct 01 12:27:19 <[A3G1S]> Any one can help me with Taking android screenshots ? Oct 01 12:27:30 <[A3G1S]> I have my own ROM Oct 01 12:27:34 sure, hold the volume down button and power button at the same time Oct 01 12:27:41 <[A3G1S]> and i wanna use READ_FRAME_BUFFER Oct 01 12:27:49 <[A3G1S]> via code Oct 01 12:28:14 just use the screencap binary Oct 01 12:28:57 no need to reinvent the wheel when it's already done for you Oct 01 12:30:30 <[A3G1S]> i dont wanna use any hacks… Oct 01 12:30:45 screencap is official Oct 01 12:31:03 it's built into the operating system Oct 01 12:31:10 adb shell and type screencap Oct 01 12:31:11 done Oct 01 12:31:15 do it from an app too Oct 01 12:31:59 <[A3G1S]> http://stackoverflow.com/a/12615793/938012 Oct 01 12:32:13 <[A3G1S]> u meant this… and it doesn't require any special permissions Oct 01 12:32:13 <[A3G1S]> ? Oct 01 12:32:23 correct, it's a binary Oct 01 12:32:33 make you're app a system app Oct 01 12:32:40 or use root Oct 01 12:32:56 <[A3G1S]> no please... Oct 01 12:33:11 <[A3G1S]> do u know abt READ_FRAME_BUFFER ? Oct 01 12:33:17 <[A3G1S]> any example on it ? Oct 01 12:33:21 yes, it's a system level permission Oct 01 12:33:30 <[A3G1S]> yes I know that… Oct 01 12:33:44 install your app as a system app in your "custom rom" and you can get that permission Oct 01 12:33:44 <[A3G1S]> I have system certificates Oct 01 12:51:01 <^cheeky> Morning Oct 01 13:05:36 what does android's MapFragment class offer that couldn't be achieved by using a regular fragment with MapView as the root node in its layout? Oct 01 13:06:56 Likely comparable to how useless a ListFragment is compared to a Fragment with a ListView in it Oct 01 13:12:36 Hi. It doesn't seem to be possible to configure the android SIP client to send the P-Asserted-Identity or Remote-Party-ID headers. Am I wrong about that? Should I add that feature? My voip provider just passes along whatever it gets from the client, so since android doesn't send one, the people I call do not get a caller-id from me. Oct 01 13:13:46 Prime326, a MapView must be a root element, iirc Oct 01 13:14:20 i.e. it requires hackery to not be full screen Oct 01 13:15:12 nseidm1: that's what I was thinking, it doesn't really make sense but I was assuming there must be some reason to have a separate fragment just for that Oct 01 13:15:16 That was the reason for the hubbub surrounding the MapFragment update about a year ago. Maybe things are different now... Oct 01 13:15:53 jeppy: what if the fragment is just a portion of an activity's layout? Oct 01 13:16:05 I think that is how you get around that issue Oct 01 13:16:09 That is its purpose Oct 01 13:16:24 you couldn't put a mapview in a fragment before Oct 01 13:16:28 hmm, there are several apps in the market which overlays over an existing app. Example: Whatsapp-Online-Status-Faker or similar which needs to be started and uses the existing whatsapp app but adds an icon. How does it work? I thought its not possible to modify others activitys? Oct 01 13:16:30 Prime326, it's just a convenience fragment, like ListFragment, etc. Oct 01 13:16:40 ah ok Oct 01 13:17:22 I think one difference is that in a regular fragment with a mapview you need to put in the mapview's callbacks for onResume, etc. explicitly or it won't work Oct 01 13:20:17 so I guess that means I couldn't put a mapview inside of a drawerlayout without creating a separate fragment Oct 01 13:20:30 and putting the mapview in that Oct 01 13:22:29 how to go about adding headerview in list that has a merge tag in it? Oct 01 13:22:41 *ListView Oct 01 13:24:20 header = LayoutInflater.from( getBaseContext() ).inflate( R.layout.layout_header, root, true ); Oct 01 13:24:39 I think this is responsible for the stackoverflowerror Oct 01 13:27:08 hello Oct 01 13:27:34 does anyone know of a rtsp streaming library other than libstreaming ( https://github.com/fyhertz/libstreaming ) ? Oct 01 13:33:26 I'm trying to add some views to a ListView with addHeaderView and addFooterView methods Oct 01 13:34:05 those views have tags, they're intended to be attached to the root view that the ListView is under Oct 01 13:34:31 Where can I find that default bookmark icon for the action bar? The one with the star? Oct 01 13:34:32 I'm doing this for the sake of little improvement in performance Oct 01 13:34:41 but I'm getting stackoverflow error :| Oct 01 13:35:03 RedNifre, have you download the Android Designs pack? Oct 01 13:35:06 *downloaded Oct 01 13:35:38 Header views can't be merge tags Oct 01 13:36:04 RedNifre, here http://developer.android.com/downloads/design/Android_Design_Downloads_20130814.zip Oct 01 13:36:14 When you pass true to attachToRoot, root is returned.. Dunno why you're calling it header Oct 01 13:36:16 SimonVT, why not? Its not possible at all? Oct 01 13:36:31 Because each header view is a single view Oct 01 13:36:47 merge is intended when you have several views under the merge tag Oct 01 13:36:57 but the view gets contained in some other view Oct 01 13:37:16 I want to eliminate the intermediary view such as the LinearLayout Oct 01 13:37:47 Mkay. Each header view is still only a single view. Oct 01 13:38:03 well, I want the whole screen to be scrollable and I can't use ScrollView because a ListView is already there Oct 01 13:38:05 That can be a viewgroup that holds more, but each header is one view Oct 01 13:38:17 You can add multiple headers if you want Oct 01 13:38:25 and so I have to add the rest of the other items as header and footer to make the components accessible Oct 01 13:38:32 that can be done? o.o Oct 01 13:38:49 The methods are called add, not set Oct 01 13:38:49 I didn't know multiple headers were possible Oct 01 13:39:04 thanks :P Oct 01 13:39:58 Headered GridView my fav Oct 01 13:41:16 I haven't tried GridView at all Oct 01 13:47:59 thanks razzledazzle, but it seems those are the same icons i can find in my sdk. Can't find the bookmark icon there :/ Oct 01 13:49:28 RedNifre, this maybe? http://stackoverflow.com/questions/10518845/name-of-the-androiddrawable-bookmark-favorites-icon Oct 01 13:53:33 razzledazzle No, I'm talking about the top right icon here in the design guideline: http://developer.android.com/design/patterns/pure-android.html Oct 01 13:54:03 I'd really like to make the app pure android, but how am I supposed to do this if these icons are hidden from me? :/ Oct 01 14:03:06 getSupportLoaderManager() will return appropriate LoaderManager. Oct 01 14:05:25 It is just the abstraction, for the platform that supports LoaderManagers after Android 3.0 and platforms that doesn't... this is : before android 3.0 Oct 01 14:05:27 right ? Oct 01 14:27:20 does anyone know if google has a native file chooser like dropbox? Oct 01 14:31:33 hi! i have an app with several activities. is it true that every activity in that same app are able to access the sharedpreferences? Oct 01 14:33:52 yes Oct 01 14:34:05 <^cheeky> oh nice !! Oct 01 14:39:24 My fellow Americans Oct 01 14:39:34 Freedom is temporarily closed Oct 01 14:39:41 you have the day off Oct 01 14:42:59 <^cheeky> http://www.youtube.com/watch?v=9PmGYtoUtMg Oct 01 14:45:08 hello Oct 01 14:46:19 is more correct app 'author' or 'creator'? Oct 01 14:46:40 author Oct 01 14:47:15 thanks Oct 01 14:47:19 Writing code is just like writing a book (kinda) Oct 01 14:47:51 What is the best way to add a play button to a thumbnail/Bitmap? Oct 01 14:48:14 in xml of course Oct 01 14:48:32 I'm using a gridview to display images Oct 01 14:48:44 and I want a little play button on a "tile" if it's a video Oct 01 14:49:48 Bas_, depends on what kind of performance do you want to have Oct 01 14:49:54 and how do you load images Oct 01 14:51:08 Bas_, for most cases just creating a canvas from bitmap works Oct 01 14:51:09 <^cheeky> Bas_: creat an individual gridview item Oct 01 14:51:15 <^cheeky> in xml Oct 01 14:51:29 Bas_, for fast performance you could probably extend ImageView and draw the play button in onDraw after the super is called Oct 01 14:52:15 hi guys. is there any way to diagnose permissions issues? I'm getting "Permission denied: checkComponentPermission()" on logcat when i try reading from a Datagram, even though I have the right internet permissions set in my manifest. what's worst, it only happens *some* of the time i start my app. any ideas as to what's going on here, and what would be my first step in debugging it? Oct 01 14:52:39 (okay, to clarify i think it's on receiving a datagram from a socket) Oct 01 14:55:50 Mavrik: I'm already using an ImageView and I'm loading in images from file Oct 01 14:56:12 what would be the best way to draw it over the bitmap Oct 01 14:56:30 the problem is that the images are loaded dynamicly so they are not static :/ Oct 01 14:56:46 did you read what I wrote_ Oct 01 14:56:46 ? Oct 01 14:57:07 yea Oct 01 14:57:13 I want to have great preformance Oct 01 14:57:19 It needs to run on older phones Oct 01 14:57:53 So I need to Create a Canvas? Oct 01 15:00:33 Bas_: he said that for good performance you need to extend ImageView instead of using a canvas Oct 01 15:01:51 I'm using a gridview at the moment Oct 01 15:02:04 and I'm populating that using my imageadapter Oct 01 15:02:32 So I should change that to an imageview? Oct 01 15:02:41 (I'm osrry I'm verry tired atm) Oct 01 15:02:51 I dunno, ask Mavrik Oct 01 15:02:56 I'm new to android dev Oct 01 15:03:12 is there any way to see exactly what permission problem an app is tripping up over? Oct 01 15:03:13 Bas_, your questions really make no sense Oct 01 15:03:35 Will123456, try stepping over the code with Android source attached to your project? Oct 01 15:03:35 I'll go and take a nap then :/ Oct 01 15:03:51 you'll see quickly where the Android framework kicks you Oct 01 15:05:08 Making stuff work on older phones Oct 01 15:05:56 Does someone hae a recommendation for an app to read/send debug logs from a device? Oct 01 15:06:27 define debug logs Oct 01 15:06:37 and how much do you want to pay fo rit Oct 01 15:06:52 debug logs meaning the log that apps send messages to Oct 01 15:07:07 like if you use the android Log class Oct 01 15:07:11 so logcat Oct 01 15:07:15 Mavrik: i'll give that a go, though i've never done that before (or even have android source on me? ) so i may be some time :) Oct 01 15:07:22 Mavrik thx Oct 01 15:07:32 mandric, check out ACRA if you have the skill to setup your own server Oct 01 15:07:40 mandric, or HockeyApp if you don't Oct 01 15:07:46 Crashlytics is cool as well Oct 01 15:08:03 ah yes I've used that before Mavrik problem is the app isn't crashing, it just doesn't work... Oct 01 15:08:06 on some phones i think Oct 01 15:08:41 and i have a user who wants to help debug on a specific device so was going to try to use aLogcat Oct 01 15:09:03 hmm, I'll try again with my question... is there a RTSP streaming library that works well? I'm trying with https://github.com/fyhertz/libstreaming and it has sync issues Oct 01 15:09:23 or... is there a RTP/RTSP channel? Oct 01 15:09:25 i'll try that Oct 01 15:09:32 Mavrik also ACRA cna work with google apps so you don't even need your own server Oct 01 15:09:33 I doubt it Oct 01 15:09:50 mandric, that's useless for any serious debugging. Oct 01 15:10:33 well i guess if you think stacktraces are useless Oct 01 15:11:15 mandric: logcat provides stack traces Oct 01 15:11:24 or rather the Log class Oct 01 15:11:48 i'm going to try this https://play.google.com/store/apps/details?id=org.jtb.alogcat Oct 01 15:11:51 yeah, no RTP channel Oct 01 15:11:53 dammit Oct 01 15:12:06 i think that was what i used before Oct 01 15:12:07 how are we in 2013 and video streaming is still a problem? Oct 01 15:13:01 Voicu "the last place i live was in a ghost town until the gov't push it down" Oct 01 15:13:38 video needs to be *owned* Oct 01 15:13:40 I don't get the reference Oct 01 15:13:45 ignore me Oct 01 15:13:47 Voicu, because it's a hard problem. Oct 01 15:14:03 Mavrik: I'm not saying it's trivial to do streaming Oct 01 15:14:08 but still Oct 01 15:14:08 and RTSP is a painful enough protocol I want to gouge my eyes out every time I see it Oct 01 15:14:14 Mavrik: yeah, me too Oct 01 15:14:20 Voicu, what are you trying to achieve? :) Oct 01 15:14:47 that would be my second complaint - how are we in 2013 and still using protocols like RTSP for streaming Oct 01 15:15:07 Mavrik: well I want a streaming application for android that can send the stream to a wowza server Oct 01 15:15:22 the library I linked does all of that (kind of) but there are sync issues Oct 01 15:16:27 it's actually pretty well made, the rtsp protocol implementation is decent, the classes and comments are intuitive Oct 01 15:16:38 mhm Oct 01 15:16:39 so far I couldn't find any real bug in the code Oct 01 15:16:54 I usually used either MPEG2-TS over UDP or RTMP to send data to wowza Oct 01 15:17:19 Mavrik: on android? Oct 01 15:17:25 so I can't help you there much… how are you getting video from camera to the streaming library? are you sure you're not messing up timestamps there? Oct 01 15:17:32 no, not on android :) Oct 01 15:17:42 Mavrik: yeah, I figured not on android Oct 01 15:17:52 the library does mostly everything Oct 01 15:18:13 it sets up a MediaRecorder with the output set to a LocalSocket Oct 01 15:19:03 hmm Oct 01 15:19:13 that is to make it usable for devices that didn't have the MediaCodec capability Oct 01 15:19:31 mhm Oct 01 15:19:44 it reads from the LocalSocket as if from network and puts everything in RTP packets Oct 01 15:20:04 it also implements RTCP for syncing Oct 01 15:20:06 the question is how it retrieves stream timebases and metadata Oct 01 15:20:15 yeah, that's the issue Oct 01 15:20:19 there is not parsing of the data Oct 01 15:20:21 timebase and PTS timestamps are usually the issue Oct 01 15:20:35 and the Android camera when it records to MP4 will write those at the end of recording usuall Oct 01 15:20:35 y Oct 01 15:20:57 actually for audio it does something like read the sample rate from teh packets and then it updates timestamps based on that Oct 01 15:21:02 for video it does a funny thing Oct 01 15:21:22 it calculates how much time a NAL packet took to receive and averages over multiple packets Oct 01 15:21:31 to get the frame duration Oct 01 15:21:49 which is weird because the phone seems to send multiple frames at once and then block for like 1second Oct 01 15:21:58 instead of sending 1 frame each 40-50ms Oct 01 15:22:54 Mavrik: it writes all the time data at the end? Oct 01 15:25:05 yep, MP4 is a header format that requires MOOV atom to be written at the end of recording Oct 01 15:25:20 and yeah, that algorithm for writing data to RTSP will almost certanly cause sync issues Oct 01 15:26:16 I wonder if configuring the recorder with private APIs to output MPEG2-TS muxed stream would help remuxing Oct 01 15:30:22 Hey guys, would you give me an advice? I have an activity, that displays albums of the user from one of the social networks. Items (photos) are being loaded in a special task (each social network has it's own loadtask). So the problem is how to make an Activity receive tasks from outside (from caller Activity) so it can be reusable for all kind of social networks? Is there's any convinient design patern? (here's the code http:// Oct 01 15:31:38 defuera, receive tasks from outside?! Oct 01 15:32:09 Marvik , from another activity Oct 01 15:32:15 Anbody have logs of thi channel ? Oct 01 15:32:47 Around 1:30 hour ago i posted the question, and i unexpectedly disconnected Oct 01 15:32:56 from the caller Activity, cause caller knows what SN it is gonna be Oct 01 15:33:59 bluesm_: this thing? It is just the abstraction, for the platform that supports LoaderManagers after Android 3.0 and platforms that doesn't... this is : before android 3.0 Oct 01 15:34:28 defuera, stuff a flag into extras Oct 01 15:34:42 defuera, intent.putExtras("SocialNetwork", "Facebook") Oct 01 15:35:02 Mavrik: it uses 3gp for video recording Oct 01 15:35:02 and then choose the task with switch-case? lame.. Oct 01 15:35:24 Mavrik: or am I confusing something? Oct 01 15:35:42 defuera, you can of course restructure your code to make a better solution Oct 01 15:35:53 Voicu, 3gp and mp4 are practically identical :) Oct 01 15:36:06 I cannot find the better one Oct 01 15:36:59 you could use fragments and pass it as a parameter Oct 01 15:37:13 anyway, passing random objects around in parcelable containers is a bad idea in most cases Oct 01 15:37:40 you could also use an event bus design where you fire off a service that loads data and the activity just receives loaded data Oct 01 15:37:41 etc. Oct 01 15:40:03 Marvik, thx, Ill keep looking Oct 01 15:41:08 Mavrik: well damn... there was a way I saw on a similar iphone library Oct 01 15:41:44 Mavrik: it's starting 2 recordings - one for reading the data and one that it closes soon after to just read the MOOV thingies Oct 01 15:42:08 mhm Oct 01 15:42:19 and that one works well Oct 01 15:42:22 that should probably be enough if the camera is always configured identically Oct 01 15:42:29 do you think it's feasible on android? Oct 01 15:43:08 Mavrik: meaning it would only break if the camera settings change during the stream? Oct 01 15:43:16 <^cheeky> hello , if it bad practice to use UUID to be used in the CompareTO function ? Oct 01 15:43:19 that probably won't happen, right? Oct 01 15:43:44 Can someone help me where to look for wifi code in working directory .I need to know wat parameters are passed to driver when wifi is used in gui Oct 01 15:44:38 Voicu, you can't change settings midstream anyway Oct 01 15:44:48 Voicu, the SPS/PSS data and timebases should always stay the same Oct 01 15:44:55 I see Oct 01 15:46:47 lol, now that I looked more carefully, this library does that too Oct 01 15:47:03 it does a test recording first and reads SPS and PPS data from the resulting file Oct 01 15:47:14 this is officially driving me crazy Oct 01 15:47:25 if it does everything properly why doesn't it work Oct 01 15:47:34 well Oct 01 15:47:40 you're gonna have to get your hands dirty Oct 01 15:47:48 hi guys, when i use my android app for an extended period of time, it suddenly restarts itself. i couldn't find a very useful cause in logcat. does anyone know a good way to debug this kind of problem ? Oct 01 15:47:48 I did :D Oct 01 15:47:50 grab the stream on the other end, check out frame timestamps and see what's goin on Oct 01 15:48:03 see if it's a network problem, stream problem or something else Oct 01 15:48:31 janmayan77, what do you mean by restart? does the activity reopen? Oct 01 15:48:43 Mavrik: well vlc for one keeps complaining about "late frames" Oct 01 15:48:49 video frames that is Oct 01 15:48:53 the app closes and the main activity starts Oct 01 15:49:09 Mavrik: I looked very carefullly at RTCP packets and their corresponding RTP timestamps Oct 01 15:49:12 <[A3G1S]> guys, can any 1 help me with screenshot ? I am trying to use READ_FRAME_BUFFER permission, as I have system certificates… Oct 01 15:49:21 there is no dialog about stopping unexpected. Oct 01 15:49:22 Mavrik: everything seems to check out Oct 01 15:49:23 Voicu, one of the issues I had when writing encoders was that audio frames were late in stream Oct 01 15:49:34 meaning, they had proper timestamps but were late on the network Oct 01 15:49:40 so player ran out of buffer to compensate Oct 01 15:49:48 unexpectedly* Oct 01 15:49:54 Mavrik: mhm Oct 01 15:50:11 Mavrik: I tried setting a huge buffer for vlc and still didn't solve the problem Oct 01 15:51:04 my app has several activities… when the issue happens, it doesn't open the activity i was on. it just opens the main one Oct 01 15:51:23 any help appreciated :) Oct 01 15:51:50 i'd guess it's memory related if it happens consistently after a long time Oct 01 15:51:54 janmayan77, hmm, are you sure you're not triggering the intent for your main activity anywhere? Oct 01 15:52:02 because nothing in Android restarts activities when apps crash Oct 01 15:52:09 they usually just die Oct 01 15:52:11 Mavrik, that's not true Oct 01 15:52:14 also true Oct 01 15:52:18 i'm sure i'm not Oct 01 15:52:22 (well, in my experience) Oct 01 15:52:29 i understand that if the phone runs low on memory it can start killing processes Oct 01 15:52:39 Mavrik, if your application has a task stack, it will pop off the crashed activity and restart your application from the last "known good" activity Oct 01 15:52:45 also if you're using native code you can definitely nuke your activity Oct 01 15:52:51 pfn, hmm, you're right Oct 01 15:52:53 w/ no visible report to the user Oct 01 15:53:12 and restarting them Oct 01 15:53:14 (try debugging a native lib someone threw an exit() in sometime, you'll kill them once you find it) Oct 01 15:53:16 Mavrik, which can be annoying if you don't have your app coded correctly to handle this... heh Oct 01 15:53:22 then you get like 5 force-closes in a row... Oct 01 15:55:34 i'm not sure if there's a memory leak somewhere in the app causing this Oct 01 15:56:00 janmayan77, by looking through logcat much more carefully Oct 01 15:56:01 and if there is, i'll like to know how to find it Oct 01 15:56:06 you aren't looking carefully enough Oct 01 15:56:18 and the activity just gets dismissed right in front of your eyes? Oct 01 15:56:26 yes Oct 01 15:56:41 yes, look in logcat again Oct 01 15:56:45 especially around the time this happens Oct 01 15:56:55 pastebin the entirety of logcat for the 300 lines before and after this occurs Oct 01 15:57:26 alright. i'll have a closer look at logcat Oct 01 15:57:36 no filters Oct 01 15:57:40 thanks Oct 01 15:57:49 yes, that's what i'm doing Oct 01 16:00:23 Mavrik: I tried something else - I made wowza record instead of restream and the resulting file also has sync issues Oct 01 16:00:41 Mavrik: that should mean the timestamp are broken from the start, right? Oct 01 16:00:52 *timestamps Oct 01 16:02:08 probably yea :/ Oct 01 16:15:14 Hi guys, I'm using actionbarsherlock and testing on android 2.3. I am using splitActionBarWhenNarrow and android:layout_marginBottom="?attr/actionBarSize". This works find on android 4.3 but in 2.3 the margin isn't enough and the bottom actionbar overlaps some of the content. I have confirmed this is happening because the size of the bottom bar is too big when I use an icon. I am using the standard ic_launcher icon and it makes Oct 01 16:15:33 used text and the share icon which comes from the actionbarsherlock library Oct 01 16:16:19 What do I need to do with my icons to make them fit properly like the the default share one ? Oct 01 16:21:34 i put the logcat output at http://pastebin.com/UmZNR303 Oct 01 16:21:55 i noticed there were a few messages about low memory Oct 01 16:22:39 something like: ActivityManager(138): Low Memory: No more background processes Oct 01 16:23:23 and then a message that the current activity had died Oct 01 16:23:50 so i figure the phone must have been running low on memory when using the app Oct 01 16:24:23 so where in the log does it exit Oct 01 16:25:38 around the beginning of the message Oct 01 16:25:59 what happened to 300 lines before Oct 01 16:26:01 Can someone tell me why the actionbarsherlock library has images that are 48x48 in the hdpi section when the docs say it should be 72x72? Oct 01 16:26:38 72x72 is too big for action icons in hdpi Oct 01 16:26:53 that's the same size as launcher icons Oct 01 16:27:15 those are copied from platform sources Oct 01 16:27:28 complain to AOSP Oct 01 16:27:34 pfn: oh, sorry I didn't realize I was reading the guide for the launcher icons Oct 01 16:27:52 JakeWharton: not complaining just trying to figure out why my icon sizes were different :) Oct 01 16:28:18 JakeWharton: btw your library is a life saver Oct 01 16:29:57 I've been reading a bit about the Android platform, and I'm curious how you design 'good-looking' user interfaces without a graphical interface builder native to the platform ala iOS.. are there any third-party tools devs use? Oct 01 16:33:01 a gui builder has never been a necessity for building good looking ui, regardless of platform Oct 01 16:33:22 E.g. html Oct 01 16:34:25 yes the new icon sizes fix everything! Oct 01 16:34:56 indeed, don't use 72x72 on hdpi for action icons Oct 01 16:35:19 pfn: gotcha Oct 01 16:49:41 <^cheeky> JakeWharton: i wish i could write code like u Oct 01 16:50:05 just download IntelliJ IDEA Oct 01 16:53:07 <^cheeky> LOL nice Oct 01 16:54:18 <^cheeky> i use AS Oct 01 16:54:25 yeah same thing Oct 01 16:55:24 <^cheeky> i use so i can help the devs make it better Oct 01 16:58:57 it looks like the app loads some sounds and inflates a few views before the crash Oct 01 16:59:07 here's a new pastebin output http://pastebin.com/cM4PTMu7 Oct 01 17:02:11 around the last line in the logcat output at the link i just posted, my app just restarts at the main activity Oct 01 17:03:25 with no clear reason why the app process got killed Oct 01 17:03:44 i'll like to know how to fix it Oct 01 17:03:46 navetz: http://petrnohejl.github.io/Android-Cheatsheet-For-Graphic-Designers/ Oct 01 17:04:25 janmayan77, this is an app you're developing or someone else's? Oct 01 17:04:40 it's one i'm developing Oct 01 17:04:49 com.google.android.gms seems to be crashing a lot Oct 01 17:04:50 kakazza: man this is really helpful thank you! Oct 01 17:04:52 are you on some crappy rom? Oct 01 17:05:10 possibly. i'm testing on a samsung galaxy s Oct 01 17:05:14 JakeWharton: I read a lot in the Picasso G+ Community about caching. The general consensus is that there is no (and there will be no) disk cache for local images. Any suggestions on how to (elegantly) still cache transformed images (read: thumbs). Oct 01 17:05:23 it's quite old, i know Oct 01 17:05:46 local images are already disk cached Oct 01 17:05:48 janmayan77, device sucks then Oct 01 17:05:51 since, you know, they're on disk Oct 01 17:06:01 I know, I'm talking about caching the transformed images. Oct 01 17:06:04 <^cheeky> kakazza: can i have the link about the cacheing Oct 01 17:06:10 Like thumbnails. Oct 01 17:06:37 the disk cache lives below picasso (inside the HTTP client), not inside of it. there's no way to do this even if we wanted to Oct 01 17:06:41 ^cheeky: Search for "cache" in the Square G+ Community. There's not one article which has all the information. Oct 01 17:06:52 <^cheeky> oh ok Oct 01 17:06:54 <^cheeky> thank you Oct 01 17:07:06 I know, I read the code (and basically your answer 20 times over on G+, heh) Oct 01 17:07:17 indeed. i agree. it would be great to prevent the crash from happening though Oct 01 17:07:46 But if I would load the pictures from the gallery (say, 8MP), wouldn't there be a performance hit if I would only use the memory cache and fill that again and again? Oct 01 17:08:01 Instead of caching the transformed (e.g. 100x100dp) thumbnails. Oct 01 17:08:26 indeed there would Oct 01 17:09:18 That's what I'm asking, how would you approach this. With Picasso. Oct 01 17:09:26 If you'd use picasso for that, at all. Oct 01 17:12:31 I mean, you can't really do anything other than the normal behavior Oct 01 17:12:34 at least with Picasso Oct 01 17:13:59 Any suggestions on how to tackle this problem, though? I'll look at Android-BitmapCache by cbanes and see if it caches transformed images. Oct 01 17:14:23 I saw the (at least HTC Sense 3.0) gallery had a .thumbnail directory. Oct 01 17:16:17 yeah you can request thumbnails Oct 01 17:16:19 i'll try looking for a way to recover from low memory conditions… Oct 01 17:16:25 maybe that will help Oct 01 17:16:35 thanks any way Oct 01 17:17:37 https://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails.html Oct 01 17:17:41 oh boy, sweet Oct 01 17:17:55 And there's already a PR for picasso. Oct 01 17:24:55 JakeWharton: But before I hit the source again, does Picasso (memory) cache the transformed images or the full size? Oct 01 17:30:49 - No enclosing instance of type MainActivity is accessible. Must qualify the allocation with an enclosing instance of type MainActivity (e.g. x.new A() where x is an instance of MainActivity). Oct 01 17:30:56 transformed Oct 01 17:31:03 how do i fix this? Oct 01 17:33:56 the error tells you how to fix it Oct 01 17:34:23 alternatively (and probably much wiser) make the inner-class static Oct 01 17:41:32 hi like in css we have firebug where in if we hover over an element in dom it will show element highlighted do we have similar tool for android. I have UI and need to know what the id of a portion of it. Oct 01 17:41:59 DDMS has that Oct 01 17:42:15 Click on your device and then on uh... the apropriate icon. I forgot. Oct 01 17:43:09 ok I run the emulator and launch the app on it and ddms. then when I click on device on that element will ddms tell id of it ? Oct 01 17:44:02 may be I can run code on device and will it get shown fine ? Oct 01 17:44:05 in ddms Oct 01 17:44:21 I have only apk installed on device Oct 01 17:45:10 No, I mean in the list of devices where you can track the heap, take screenshots etc Oct 01 17:45:27 <[A3G1S]> can any one help me ? READ_FRAME_BUFFER is driving me nuts Oct 01 17:45:28 there"s an icon which will dump the current screen hirarchy Oct 01 17:45:48 ok Oct 01 17:49:00 gradle seems too much effort, will try again some other time ;) Oct 01 17:53:48 hello, are there any freelancers available in London here? Oct 01 17:54:26 Anyone have trouble using DrawerLayout on older android devices (I'm testing on 2.2 and 2.3) basically the list flashed colors whenever I try and scroll. Might be because I have a selector? Oct 01 18:01:50 look up cachecolorhint Oct 01 18:02:36 Thanks, I'll give it a try Oct 01 18:03:06 Im trying to have a fragment which has a listview and then present three of these fragments in a viewpager to go from one to the other Oct 01 18:03:34 is it possible to share a file that is inside the Google Drive Application Data folder with another Drive user? Oct 01 18:03:38 am i wrong to think that I need a adapter to feed these views, and within this adapter to have another adapter that supplies the listviews with their content? I cant seem to get it to work. Oct 01 18:03:41 SimonVT: that was it. Damn, never even heard of that before. Thanks again. Oct 01 18:06:10 anyone can tell me if im completely on the wrong track or if theres an example of this somewhere? I can get each feature working individually but am having a terrible time combining Oct 01 18:14:34 if the all elements of navigation drawer are not displayed (eg landscape) and if I scroll it, I can't get some textview (nav.drawer element) with findViewById method, this is the code http://pastebin.com/nAj76Hqs , I use BaseAdapter Oct 01 18:44:36 thx guys Oct 01 18:44:38 bye Oct 01 18:52:19 Yo does anyone know why the MediaPlayer skips forward when changing the display: http://stackoverflow.com/questions/19106212/mediaplayer-skips-forward-about-6-seconds-on-rotation ? Oct 01 19:04:46 I hear that seeking is really bad in the media player Oct 01 19:05:04 probably stop video and save time -> rotate -> seek to saved time -> is wrong Oct 01 19:05:33 yeah, probably using a textureview as target without restart is something you wanna do Oct 01 19:06:42 I'm not sure I follow Oct 01 19:08:18 ashooby, Mavrik: If you look at the youtube app, the audio plays consistently and the video does not skip. Either they retain the activity and don't destroy the SurfaceView, or they detach, destroy, create, and reattach a SurfaceView. I'm inclined to think it's the latter. Oct 01 19:08:34 yoyo Oct 01 19:08:41 dcow, they probably use TextureView since you don't lose it on reconfiguration Oct 01 19:08:50 surfaceview will get randomly trashed though Oct 01 19:08:53 no one answered my question earlier and im still stuck on it... im trying to make a viewpage to page through various listviews Oct 01 19:08:56 any1 ever do g+ itegration into there apps Oct 01 19:09:29 i made the code for the listviews, and i made the pageview as well, they both work seperate but i cant seem to intergrate them together Oct 01 19:09:48 im trying to Manage app activities in Google but none of them seem to be posting Oct 01 19:09:50 im trying to set the adapter for the listview in the code of the pageview adapter Oct 01 19:10:31 Am I stupid or is the USB I put into the powercord the same usb i put into my computer? Oct 01 19:10:54 Mavrik: yeah I know I can't hold onto a SurfaceView, which is why I detach it and let it be destroyed in onDestroyView. ashooby nowhere in my code do I call seek. Plus the MediaController uses seekTo to seek (not sure I see how it's bad). Oct 01 19:11:05 Mavrik: I'll look at a textureview Oct 01 19:11:08 dcow, yeah, that's what trashes your mediaplayer as well Oct 01 19:11:25 Mavrik: no I retain the reference to the mediaplayer Oct 01 19:11:28 my experience shows that mediaplayer on most devices doesn't handle recreation of surfaceview well Oct 01 19:11:35 usually lagging, skipping etc. Oct 01 19:11:36 I don't really get it either dcow, but I know from people asking about it in here before that seeking just doesn't work Oct 01 19:11:47 ny1? Oct 01 19:11:50 Mavrik: interesting Oct 01 19:12:10 im huessing noon does any social stuff in there apps here Oct 01 19:12:14 guessing Oct 01 19:12:51 S_J: that is correct. although it's possible to have a "power only" usb cord, that won't work for plugging in to a computer Oct 01 19:13:11 but any usb cord you use to plug into a computer can be used to plug into a power adapter Oct 01 19:15:35 Mavrik: what were you saying about not loosing a TextureView on reconfiguration? From the docs it seems to be a view just like any other Oct 01 19:15:42 nobody here does any social stuff? Oct 01 19:16:16 dcow, well obviously you can't allow it to be recreated Oct 01 19:16:27 but while you will lose surfaceview even if you manually handle reconfiguration of views Oct 01 19:16:36 textureview usually stays, even after activity pauses Oct 01 19:17:08 right. But textureview needs a context so I can't retain it. I'll have to let it be destroyed and recreated. Oct 01 19:17:19 unless I handle configuration changes manually in my activity Oct 01 19:17:43 I'm trying to do this with a retainInstance == true Fragment Oct 01 19:33:23 ha Oct 01 19:37:22 if my device is connected to my computer, shouldnt it show in computer as a usb device? Oct 01 19:38:50 and I dont need a SIM+ Oct 01 19:38:52 ? Oct 01 19:41:16 S_J: SIM has nothing to do with that Oct 01 19:41:21 S_J: depends, but you shouldn't need SIM Oct 01 19:42:00 so now I see the device n Computer but I Eclipse cant find it. Oct 01 19:42:10 I did enable USB debugging. what else do i need to do? Oct 01 19:43:36 S_J: http://developer.android.com/tools/device.html Oct 01 19:43:54 depends Oct 01 19:47:31 when I connected the phone the first time it installed something, i thought this was the OEM USB drivers but maybe thats not the case? Oct 01 19:48:34 I would guess that if you can mount it as USB that is ok Oct 01 19:48:41 what version of Android is the device running? Oct 01 19:49:21 4.2.2 Oct 01 19:49:31 samsung galaxy s4 mini Oct 01 19:49:50 Did you get a dialog on the phone asking you to accept the RSA signature of the computer? Oct 01 19:50:14 no? Oct 01 19:50:43 I use win8 btw, instructions on the android home page is just listed for up to win7 Oct 01 19:51:47 yeah I can't really help you then, but you should get a dialog on the phone asking you to accept USB debugging from that PC Oct 01 19:54:07 mmarklar quick q; does that happen for each computer you plug a device into these days ? Oct 01 19:54:37 if the all elements of navigation drawer are not displayed (eg landscape) and if I scroll it, I can't get some textview (nav.drawer element) with findViewById method, this is the code http://pastebin.com/nAj76Hqs , I use BaseAdapter. UPDATE: I solved not-checking if convertView is null, I always inflate. Is anyone able to explain me why now works? Oct 01 19:54:50 g00s: I'm pretty sure it happens for any adb connection over USB in android above 4.2.2 Oct 01 19:55:00 you can mark a checkbox to always allow a particular pc though Oct 01 19:59:14 heh, how can the samsung note 10.1 (2014) get sluggish performance review with 1.9GHz Exynos 5420 quad-core processor and 3GB of RAM. Oct 01 20:00:21 shitty android customization Oct 01 20:04:39 also, shitty apps tested :> Oct 01 20:06:21 shitty tablet Oct 01 20:06:24 the galaxy tabs have been terrible Oct 01 20:09:01 mike one we had was awesome Oct 01 20:09:08 till last update for it made it shitty Oct 01 20:09:22 I plan to try root it and put cm 10 or something. Oct 01 20:18:11 p_l reading here that moz bad good progress on minimizing memory usage on image-heavy pages ff25/26 Oct 01 20:18:22 uh, made Oct 01 20:22:49 how do i check adb version? Oct 01 20:23:18 adb version Oct 01 20:24:16 its not in my path Oct 01 20:24:26 from eclipse Oct 01 20:25:14 find where it is Oct 01 20:25:20 open console/prompt Oct 01 20:25:27 ./adb version Oct 01 20:31:39 S_J try putting your phone into ptp mode when you connect it to the computer if you're still having trouble getting adb to connect Oct 01 20:32:06 something like settings -> storage -> menu -> usb connection Oct 01 20:36:39 http://www.fcc.gov/ < can someone explain this to me Oct 01 20:37:21 federal goverment has shut down in usa Oct 01 20:37:33 why does samsung ask me for a cell phone provider? isnt samsung the samsung cell phone providser?!?!? Oct 01 20:37:39 US govt has pissed itself Oct 01 20:37:39 I gathered, but its like whaattt? Oct 01 20:37:45 good thing i wasn't camping in the grand canyon XXCoder1 :) Oct 01 20:37:50 lol Oct 01 20:40:36 as always jon stewart is hilarious Oct 01 20:40:53 how would I go about syncing a content provider such as mediastore.audio to a web service? Oct 01 20:41:08 S_J: no, it's phone vendor, not cellular network provider Oct 01 20:41:52 is there a way to display a progressbar in a listfragment? Oct 01 20:42:13 sure, add a ProgressBar and display it Oct 01 20:42:30 put it in your layout that you inflate Oct 01 20:42:34 add it programmatically Oct 01 20:42:42 possibilities are endless Oct 01 20:43:14 lol Oct 01 20:44:52 I wonder how much money it took to post a shutdown notice instead of just letting the site run as-is Oct 01 20:44:53 .... Oct 01 20:44:58 seriously, making work for no reason at all Oct 01 20:45:33 notice for what site? Oct 01 20:45:43 any us govt site Oct 01 20:46:07 its probably so people know they can't get in touch, emails or whatever stop working Oct 01 20:46:10 I cant find my phone on the samsung homepage, i found the non us products tab but still my model nbr is not there Oct 01 20:46:12 phone #s Oct 01 20:46:25 apparently, it's a "fuck you" from the administration Oct 01 20:46:35 "can't do our shit, we'll waste more money in this bullshit" Oct 01 20:46:40 i.e. it was mandated Oct 01 20:47:46 because, really, all they needed was to insert this into their front page, or as an include in every page, and let services run as-is Oct 01 20:48:23 that doesn't generate the required amount of public rage Oct 01 20:49:06 of course Oct 01 20:50:06 "U.S. spy agencies face big layoffs in government shutdown" its not all bad :) Oct 01 20:50:12 hahaha Oct 01 20:50:24 I wonder if there are any 3.5mm male-male audio extension cables that also have an in-line remote button Oct 01 20:50:26 pfn: you were right, was very easy :P Oct 01 20:50:32 hi Oct 01 20:50:34 like the phone headsets, but with just male-male connectors Oct 01 20:50:48 useful for car audio that only has aux-in but no remote capabilities Oct 01 20:50:49 pfn I've never seen one Oct 01 20:51:06 * pfn ponders getting a pioneer appradio Oct 01 20:51:08 are you talking about the apple style remote? Oct 01 20:51:08 https://lh6.googleusercontent.com/-AjqrvVyRoD4/Uksm6QhZ2KI/AAAAAAAABVs/knKQKDhLQSc/w460-h252-no/1381879_667692973249011_1573756575_n.jpg Oct 01 20:51:22 I'm looking for a library that I create a Dashboard. Does anyone know her? Oct 01 20:51:23 dcow, no, just the headset button Oct 01 20:51:32 pfn oh Oct 01 20:51:33 is she hot? Oct 01 20:51:42 http://www.amazon.com/Apollo23-3-3-Volume-Control-Samsung-Smartphones/dp/B00COXA8Y4 Oct 01 20:51:43 not sure if i should click on this link from this Napalm character Oct 01 20:52:00 i foolishly clicked it right away g00s Oct 01 20:52:02 it's good Oct 01 20:52:04 rather Oct 01 20:52:06 it's sfw Oct 01 20:52:29 JesusFreke, almost, it has the attenuator, but not a button Oct 01 20:52:29 or http://www.amazon.com/Griffin-Technology-Auxiliary-Inline-Control/dp/B001UGXC8K/ref=pd_sim_sbs_e_4 Oct 01 20:52:57 that's about right, thanks Oct 01 20:52:58 g00s: its SFW just a joke about apple Oct 01 20:52:58 ^ that's apple style Oct 01 20:53:06 also discontinued Oct 01 20:54:46 Are there any good replacement media players for android? Oct 01 20:55:41 dcow: I like MX Player Oct 01 20:55:50 Napalm: me too Oct 01 20:55:56 MX Player is good Oct 01 20:55:58 I mean api players Oct 01 20:56:10 I use vlc player Oct 01 20:56:12 define "api player" Oct 01 20:56:13 dcow, not free Oct 01 20:56:14 Something that would replace the built in one. Oct 01 20:56:26 if you want to roll your own Oct 01 20:56:30 pfn the VLC sources are free Oct 01 20:56:32 anyone know if admob already uses the keywords you can send them in an AdRequest? Oct 01 20:56:37 it's not difficult to compile ffmpeg/libavcodec/libavformat on android Oct 01 20:56:38 you can compile VLC for android Oct 01 20:56:54 dcow, feel free to see how vlc does it and do it yourself Oct 01 20:57:02 you just answered your own question :p Oct 01 20:57:14 dcow: that's a change of default intent handler away... "app internal" stuff is not really a player, but you can modify the components Oct 01 20:57:35 well I was wondering if there were any good solutions to replace the drop in one that don't require me to use GPL code Oct 01 20:57:36 there are some devices out there that despite not bearing the samsung make run around with samsung's h265 codec ;D Oct 01 20:57:50 dcow, not free Oct 01 20:57:51 :p Oct 01 20:58:56 p_l: really? interesting Oct 01 20:59:29 dcow: it involves adding an extra codec library to the media framework, library taken from samsung's s4 rom iirc Oct 01 20:59:29 dcow: if you only need to decode a specific codec you might be able to find an apache licensed decoder for it Oct 01 21:00:40 Napalm: sure. It seems like the resounding answer is "no" unless you want to roll your own. I'm talking about the android MediaPlayer api and replacing it. Oct 01 21:00:48 which is fine. Oct 01 21:00:51 I was just curious Oct 01 21:01:30 I have a suspicion that the internal media player jumps forward to the next key frame when a surface is set. Oct 01 21:01:58 dcow: majority of players will jump to keyframe Oct 01 21:02:02 I need to dive in to see if that's the case, but it would explain why my video is skipping forward when I set the surface Oct 01 21:02:12 p_l: the convention is to jump back Oct 01 21:02:18 not forward Oct 01 21:02:59 dcow: the android media player might be oriented toward streaming sources, where jumping back might be impossible Oct 01 21:03:24 p_l: a valid point. Oct 01 21:03:58 In that case, does anyone know how to remove a Surface from the player and then attach a new one without the audio/media skipping? Oct 01 21:05:39 to use geofence, does one need to keep a client connected all the time, using PRIORITY_HIGH_ACCURACY? Oct 01 21:05:57 client = LocationClient Oct 01 21:06:05 dcow: i found on most devices changing MediaPlayer's surface once set and started will cause an error, even if the media is first paused Oct 01 21:07:06 Napalm: which, according to the docs, shouldn't be the case. Oct 01 21:07:41 setSurface is valid in 'any' state according to the MediaPlayer page Oct 01 21:07:45 yea, and i'd find it unlikley you'll find one developer here that truely trusts the MediaPlayer documentation Oct 01 21:08:43 brb Oct 01 21:08:45 Napalm: I've had trouble trusting a lot of the Android documentation Oct 01 21:10:23 Hi guys, I currently have an arrayList of strings which contain urls and it needs to be serializable. In my app users can choose to favourite certain urls. What would be the best way to add a favorite variable to my array list? Should I create a new arrayList that has corresponding keys? Or should I create my own object that is serializable? Oct 01 21:11:53 has anyone here used JavaCV on android? Oct 01 21:13:40 navetz: Object, or maybe start thinking about using a database or something similar Oct 01 21:14:28 I've always had problems re-setting the surface in mediaplayer Oct 01 21:14:32 mmarklar: okay thanks Oct 01 21:14:33 usually from onPause/onResume Oct 01 21:20:33 uh, wish instead of govt shutdown there would be a 'idiots with leaf blower' shutdown Oct 01 21:22:39 they finally figured out 'shutdown -halt now' Oct 01 21:22:55 * JimmyCarter chants "Government by crisis is social meningitis" Oct 01 21:24:00 the breaking bad ending was so powerful the gvmt shutdown Oct 01 21:24:18 lol Oct 01 21:27:02 haha Oct 01 21:51:27 is it possible to use ashmem_create_region() from the NDK? Oct 01 22:12:35 Anyway it worked after I installed Kies... Oct 01 22:13:06 first app installed! yeahh! Oct 01 22:36:48 is there a development environment for eclipse and android JNI development? Oct 01 22:37:09 ie: where i can step through my native code with the eclipse debugger, and also edit the code with the debugger? Oct 01 22:38:13 hey guys, im new to android dev.. i have a bunch of text files with information that i need to import into the application. Where should i put those files? inside /res? Oct 01 22:39:12 Rajni: if you want to just access them as plain text, you should put them in assets Oct 01 22:39:51 RyanM, yes i will access them and create objects based on their information. Thanks :) Oct 01 22:42:26 RyanM can i also save image files there? i mean what i do really have is a directory for each video game, inside this directory i have the corresponding image and various text-files to describe some information Oct 01 22:42:53 yeah, that sounds fine Oct 01 22:43:04 great, thanks again :) Oct 01 22:43:13 unless you want to store the images and text as resources Oct 01 22:43:27 it depends on exactly what you're doing Oct 01 22:43:59 but if you have a bunch of files and want to keep them that way, then assets is the way to do that Oct 01 22:45:15 RyanM i dont think res will fit the purpose because i need to import at runtime Oct 01 22:46:40 you know how the editText comes up with a hint and then when you start typing it goes away? how can I bring back the hint? Oct 01 22:47:45 (and clear the typing) Oct 01 22:51:45 setText(""); Oct 01 22:51:55 oh heh thanks Oct 01 22:52:39 when i go to http://developer.android.com/develop/index.html there is "DEVELOPERS LIVE" and "VIDEO PLAYLISTS". Going to video playlists lets you select a list, and then there is a "more>>" so see the rest. But I dont see anything like that on Developers Live - just 4 videos (but I know there is more) . how do i see the rest ? Oct 01 22:56:50 Go to the youtube channel Oct 01 22:57:46 ty Oct 01 22:58:19 i hardly spend any time at all on youtube; if there isn't a link on a page i get lost Oct 01 23:04:45 has anyone here worked with Dropbox API before? Oct 01 23:12:38 my phone is in ddms screen but I can run my app to it from eclipse right now, not showing up in run configurations. I've done it before Oct 01 23:12:46 I mean I can't run it Oct 01 23:12:52 from eclipse Oct 01 23:13:14 now it shows up. nevermind Oct 01 23:13:25 takes a couple minutes I guess Oct 01 23:16:11 only runs for one app, that is what it is. not my other app. just added debug to manifest, what else am I missing? Oct 01 23:28:56 anyone know how to change location of debug.keystore in IntellJ? Oct 01 23:29:41 Is there a place with android Icons that contain different colours? I am looking for a star icon that is normal holo theme and that turns yellow when you click it. Are there any google holo icon sets that contain normal and coloured icons? Oct 01 23:31:40 navetz you'll probably have to grab the psd and do that yourself Oct 01 23:31:55 g00s_: okay thanks Oct 01 23:32:09 https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/colors.xml Oct 01 23:32:33 you could perhaps use the colors in there Oct 01 23:32:39 to do your icon Oct 01 23:33:30 and make it #holo Oct 01 23:45:21 hmm Oct 01 23:45:22 holder.title.setText(video.getTitle()); Oct 01 23:45:28 keep getting a null pointer exception Oct 01 23:46:04 Hello all, we are developing a bookshelf application which contains few books(with animation and audio). We are planning to make the first book free for downloading and from second book we want users to pay for accessing. What is the best way to do this? I am thinking of implementing this by uploading separate apk files for each book on Google Play and make it available via In App Purchase. Any suggestions are highly appreciated. Oct 01 23:46:39 ah forgot to setTag on my holder Oct 01 23:46:44 shah0516 separate apks for each book? that sounds TERRIBLE Oct 01 23:47:15 desmin88: thanks! Oct 01 23:47:26 navetz: no prob bud! Oct 01 23:47:42 agree with g00s_ on this one. apk per book is just so Oct 01 23:47:43 bad. Oct 01 23:48:17 whats hte ideal way to play a video w/ the latest? mediaplayer+surfaceview? Oct 01 23:48:38 is there a way I can check to see if the icon in my actionbar is star.png or star_yellow.png? Oct 01 23:49:29 g00s_ , desmin88: actually I'm new to android development. Can you please suggest any best practice for my app? Oct 01 23:50:40 i'm pretty sure you can have in app purchases without separate apk Oct 01 23:50:42 or am i wrong Oct 01 23:50:55 you can Oct 01 23:51:00 but you can also sell books directly on Play Oct 01 23:51:01 so whatever Oct 01 23:57:01 if I use MenuItem getIcon how can I compare it to a R.drawable.icon ? Oct 01 23:58:35 so is it better to deliver all the books in a single apk and use InApp V3 to make books available to users on purchase? Oct 02 00:05:46 shah0516, yes Oct 02 00:07:35 navetz, im not sure but menuitem.geticon then create a drawable with the icon? Oct 02 00:07:39 then compare? Oct 02 00:08:07 thats really crappy Oct 02 00:08:08 but idk Oct 02 00:08:11 desmin88: I am trying to compare using equals: http://pastebin.com/6sJ4jksM Take a look at line 13 Oct 02 00:08:15 but that doesn't work Oct 02 00:08:33 make a new drawable Oct 02 00:08:54 Hum that seems like a lot of overhead. I think I'll just edit the title Oct 02 00:09:09 yeah thats the issue Oct 02 00:11:22 navetz, cast to bitmap, compare bitmaps? Oct 02 00:11:41 navetz: R.drawable.ic_action_star is an integer. item.getIcon() returns a drawable Oct 02 00:12:11 JesusFreke: thats why i suggested make a new drawable Oct 02 00:12:14 JesusFreke: right, I thought the implementation of equals might have got the int value of the drawable and compared it. Oct 02 00:12:37 desmin88: I think the easiest way with least overhead will be to change the titles Oct 02 00:13:19 compare their constant states? Oct 02 00:14:04 staricon.getDrawable().getConstantState().equals Oct 02 00:14:04 (getResources().getDrawable(R.drawable.icon).getConstantState()) Oct 02 00:14:40 i dont think theirs much overhead on a simple getDrawable. Oct 02 00:20:06 ah okay that'll work Oct 02 00:20:26 i'll look into it more I don't really know what a constantstate is Oct 02 00:21:57 there is some fine literature to be read then Oct 02 00:22:15 :) Oct 02 00:30:52 is there anyway to change the menu icon in an onclicklistener? Oct 02 00:31:04 I have to prepare an application- where user can switch between one image to other image. For this I have used fragment and pageviewer. And I am reading one image and removing other from array (when user clicks next or previous). But still I am not able to reduce heap memory size. Could someone tell me what is the best procedure to be followed to prepare this kind of applications?? Oct 02 00:31:23 or does it have to happen OnOptionsItemSelected Oct 02 01:09:34 can I set a menu item to have an actionviewclass that is com.actionbarsherlock.view.MenuItem and then do MenuItem item = ((com.actionbarsherlock.view.MenuItem) findViewById(R.id.favorite)); ?? Oct 02 01:09:49 no Oct 02 01:10:23 JakeWharton: is there any way to get access to that menu item? I'm trying to change the menuitem icon depending on what view i'm on in a viewpager Oct 02 01:10:33 keep a reference to it when you create it Oct 02 01:10:41 from onCreateOptionsMenu Oct 02 01:10:56 JakeWharton: fuck i'm retarded. I'm actually mad at myself for not thinking of this Oct 02 01:10:59 JakeWharton: thank you Oct 02 01:11:01 or just call invalidateOptionsMenu when the page changes and check what page you're on in onCreateOptionsMenu Oct 02 01:11:56 gotcha thanks Oct 02 01:13:52 does hte mediacontroller have a listener to report to me the time/% until the video is ready to play.. something i can give more detail w/ in the progressdialog? Oct 02 01:33:40 For anyone that's interested, I've updated my SO question with more information that I think points pretty heavily to the source of the skipping problems I (and apparently others) have been having with the MediaPlayer: http://stackoverflow.com/questions/19106212/mediaplayer-skips-forward-about-6-seconds-on-rotation Oct 02 01:35:56 if your main thread tries to update the UI and it skips frames, does that mean it might also skip the part of code that updates the UI ? Oct 02 01:40:07 Howdy all. Just looking for a bit of guidance here. Transitioning to Android Studio is going a bit rock... to say the least. Oct 02 01:40:39 A bit rock? Oct 02 01:40:48 AS > * itll be worth it Oct 02 01:40:51 Any URLs on where to get good rock solid tutorials on how to do the basics? I mean ctrl+n doesnt make files for cryin out load. Oct 02 01:40:51 I don't follow this vernacular. Oct 02 01:41:23 you can change your keybindings if you want Oct 02 01:41:32 crying out load. Oct 02 01:44:34 sirajperson I have a handy intellij keybindings thing but I have no idea where I got it Oct 02 01:45:27 but basically the only keys you need to remember are [crtl/cmd] + shift + a Oct 02 01:45:35 the omnikey Oct 02 01:45:44 you can then search for anything Oct 02 01:52:07 from urimatcher docs, "Starting from API level JELLY_BEAN_MR2, paths can start with a leading slash". hm, not sure what this means though Oct 02 01:52:19 i mean, whats the significance Oct 02 01:56:42 i have a background thread in a service doing intensive work (lot of db inserts) and when the orientation changes, the activity is only recreated after the background's finished. meanwhile it's blank Oct 02 01:58:28 g00s_: probably means that there's a change so you don't end up with an absolute path Oct 02 01:59:03 it's like the thread is running in the UI thread Oct 02 01:59:46 ... I wonder if somehow a reference leak could cause that... Oct 02 01:59:55 hm, maybe the activity is stalled waiting for the db writes to finish ? Oct 02 02:00:04 maybe tables are locked, etc Oct 02 02:02:50 g00s_: it means you can prefix paths with slashes Oct 02 02:02:58 whereas before you could not Oct 02 02:14:47 g00s_, i moved the inserts out of the transaction and the activity was recreated Oct 02 02:15:08 check the yieldIfContended Oct 02 02:16:05 you may need this http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#yieldIfContendedSafely%28%29 Oct 02 02:36:11 g00s_, thanks. i'll take a look later. i'm putting the kids to sleep right now :) Oct 02 02:36:31 ;0 Oct 02 02:36:44 ;) Oct 02 02:45:03 what is the best way to analyze heap memory?? Oct 02 02:54:59 jhat and mat Oct 02 02:56:43 hi Oct 02 02:57:38 I have 3 textviews in a tablelayout, and one button is meant for updating them. What happens though, is that I need 3 clicks for all of them to update. Oct 02 02:57:43 pfn Thanks for your reply. I have to prepare a gallery like application. For this I have used fragment and pageviewer to display images. And I am reading one image and removing other from fragment (when user clicks next or previous). But still I am not able to reduce heap memory size. Could you please tell me what is the best procedure to be followed to prepare this kind of applications?? Oct 02 02:57:51 any idea on what to look at or check out? Oct 02 02:59:47 quit holding references **** ENDING LOGGING AT Wed Oct 02 02:59:58 2013