**** BEGIN LOGGING AT Sun Oct 27 02:59:58 2013 Oct 27 03:02:46 (truinstinct) Hey guys I have a little java knowledge but I'm decent in python. Any suggestions on fastest way to lwarn how to get an app to the market? Oct 27 03:03:29 go though the gettings started guides Oct 27 03:03:43 you should be quick if already knowing oop etc Oct 27 03:03:46 z Oct 27 03:03:50 truinstinct: do you know what your app will be like ? Oct 27 03:04:24 I just want to make a hello world app to understand the process Oct 27 03:04:59 you can mimick someone doing it on youtube Oct 27 03:05:18 hello world app makes itself :) Oct 27 03:05:32 Lol Oct 27 03:07:11 seriously, the dev tools make a hello world app for you as a framework when you create a new project Oct 27 03:08:11 truinstinct: have you installed the IDE and SDK ? Oct 27 03:08:38 Nope nothing yet Oct 27 03:08:49 start there Oct 27 03:08:57 Ok sir Oct 27 03:09:05 Yeah get the ADT bundle Oct 27 03:09:08 it has everything Oct 27 03:09:35 You should register your developer namespace before you post any APKs for people to test, just a suggestion. Oct 27 03:17:50 Would it be possible to keep my listview data stay across screen rotations? Oct 27 03:23:17 where does it come from ? Oct 27 03:47:19 StingRay_: outside api source Oct 27 03:47:29 that loads kinda slow Oct 27 03:47:32 so its a bitch to reload Oct 27 03:47:42 outside api ??? Oct 27 03:48:26 the listview data Oct 27 03:48:31 yes Oct 27 03:48:35 what outside api ? Oct 27 03:48:47 I dont follow Oct 27 03:48:47 just a json source Oct 27 03:48:57 wordpress api. Oct 27 03:49:12 cache it then Oct 27 03:49:25 weakrefs Oct 27 03:49:45 ok Oct 27 03:50:03 good idea Oct 27 03:50:04 thx Oct 27 03:51:40 StingRay_: changed all my fills to matchs and my listviews to match aswell Oct 27 03:55:29 man Oct 27 03:55:39 i'm kinda considering using just ADT tools and no IDE Oct 27 03:55:58 Android Studio seems to use 20 different build systems that each make their own mess Oct 27 03:56:28 <^cheeky> StingRay_: elli , did you get mavericks :)) Oct 27 03:56:40 on mbp yes Oct 27 03:56:47 no way is it ever going on my workstation Oct 27 03:56:49 ever ever Oct 27 03:57:17 <^cheeky> nice , yeah i am about to do a clean install again heh Oct 27 03:57:26 ok... Oct 27 03:57:37 Rager, you said to use Gradle to manage dependencies... Oct 27 03:57:41 I think I figured it out... Oct 27 03:57:47 Gradle already was managing it Oct 27 03:57:53 hence why it compiled and worked fine Oct 27 03:58:10 but IntelliJ won't see the library that Gradle compiled Oct 27 03:58:19 and shows errors and I can't autocomplete and stuff for it Oct 27 03:58:28 there's a button to sync the two Oct 27 03:58:45 ^ Oct 27 03:58:47 it's usually to the left of the button to open the emulator manager Oct 27 03:58:59 a little down arrow Oct 27 03:59:11 also, "Tools > Android > Sync project with Gradle files" Oct 27 03:59:20 <^cheeky> looking @ design, i like , but am i being bias here dunno myself, android Design UI, is much more appealing not sure, if it is to me just cause, its new but osx, don't get me wrong i really like, but kinda gotten used to it kinda feeling Oct 27 03:59:26 aha Oct 27 03:59:27 thanks Oct 27 03:59:28 well, it's a gradle logo with a down arrow coming from the bottom Oct 27 03:59:49 ^cheeky: dat sentence Oct 27 04:00:32 i cant tell what ur trying to say Oct 27 04:00:38 <^cheeky> is rubbish .. Oct 27 04:01:12 <^cheeky> sorry, blaah long day, its 12 AM i need to try to sleep but can't so , was trying to take a break Oct 27 04:01:38 <^cheeky> just saying .. the new UI for the new mac os, is really nice and i am wow'd by it Oct 27 04:01:39 ok...it did something :P Oct 27 04:02:56 maybe if i restart android studio... Oct 27 04:03:14 <^cheeky> osx == really clean,appealing and all , but android UI == refreshing,hope, newness, Oct 27 04:03:42 ios7 is an inconsistent ui Oct 27 04:03:46 I like how OSX can now be compared with a mobile OS xD Oct 27 04:03:51 <^cheeky> well i don't have it, Oct 27 04:04:02 im just sayin Oct 27 04:04:02 yeah...iOS 7 is pretty bad :| Oct 27 04:04:12 I have to say...I like iOS 6 and lower better Oct 27 04:04:27 <^cheeky> i mean from what i am experiencing from mac osx, i like it, but now kinda wish i could use Android as like a desktop OS, Oct 27 04:04:40 <^cheeky> maybe i am just bias, !sure Oct 27 04:04:47 android-x86? Oct 27 04:04:51 ^cheeky: go to bed pls. Oct 27 04:05:27 <^cheeky> can't, :( , but i will Sshhh heh, sorry Oct 27 04:05:37 so, many, commas, lol Oct 27 04:08:36 ok so Oct 27 04:08:48 i see Appcompat in build/exploded-bundles Oct 27 04:09:03 and build happens to be an excludeFolder for IntelliJ Oct 27 04:09:34 wait but Oct 27 04:09:57 ProjectName/AppName/ Oct 27 04:10:09 there's a build folder in both of those levels Oct 27 04:10:16 and appcompat is in AppName/build Oct 27 04:10:22 which means it's /not/ excluded Oct 27 04:10:32 but still...it won't add it to the "External Libraries" section Oct 27 04:10:42 so to IntelliJ, appcompat doesn't exist Oct 27 04:10:54 intellij or android studio' Oct 27 04:12:25 Android Studio Oct 27 04:12:36 but I mean the IDE part of it... Oct 27 04:12:45 like...Gradle and the compiler and stuff see it fine Oct 27 04:12:53 I just can't do IDE-ish things with it Oct 27 04:13:22 https://gist.github.com/0788bdcb49083a2e082b Oct 27 04:13:27 that's in .idea/libraries Oct 27 04:13:44 so i dunno why it's not showing up in "External Libraries" Oct 27 04:14:11 can you take a pic of it Oct 27 04:14:15 i cant visualize what ur saying Oct 27 04:16:02 hmmm Oct 27 04:19:40 imgur and pastebin are your friends Oct 27 04:20:35 i like pastie Oct 27 04:20:48 * frankdrey was trying to set up vnc :P Oct 27 04:20:51 but blah Oct 27 04:21:12 i'm working from VNC already but I wanted to set up a view-only VNC to this X display too :P Oct 27 04:21:51 wait wati :D Oct 27 04:21:55 got it :D Oct 27 04:22:22 desmin88, can i PM you the VNC IP?:P Oct 27 04:22:40 i dont vnc Oct 27 04:22:42 teamviewer? Oct 27 04:22:47 Linux :/ Oct 27 04:22:50 o. Oct 27 04:23:04 hold on Oct 27 04:23:18 pm me Oct 27 04:23:54 here's a standalone java viewer Oct 27 04:26:50 i got it Oct 27 04:27:37 oh ok Oct 27 04:28:11 Okay genymotion, pls download image correctly. Oct 27 04:30:14 and i cant use haxm because it blue screens on 8.1 Oct 27 04:31:37 sorry Oct 27 04:31:41 internet went weird Oct 27 04:31:45 pm me? Oct 27 04:41:02 Thanks :D Oct 27 04:41:06 yw Oct 27 04:43:10 wait... Oct 27 04:43:28 blargh :P Oct 27 04:43:47 desmin88, can you look again?:P Oct 27 04:46:09 umm Oct 27 04:46:09 ok Oct 27 04:46:46 Anyone know how to get 150grand? Oct 27 04:46:54 truinstinct: working? Oct 27 04:47:21 Yea but not all work is equal Oct 27 04:51:41 sell drugs yo Oct 27 04:56:17 GENYMOTION PLEASE. Oct 27 05:03:26 well dammit it went back to it's old shenanigans lol Oct 27 05:03:48 i guess i'll just live without autocompletion for that library Oct 27 05:03:53 :p Oct 27 05:05:00 desmin88: do you want $3 over paypal for the time you spent helping me?:P it's all i have in my paypal and i owe you for wasting your time lol Oct 27 05:05:44 no man thanks for the gesture but im good :) Oct 27 05:06:09 alright :p Oct 27 05:06:30 okay, time for me to go home Oct 27 05:06:41 i'll probably hop back in on my phone later tonight Oct 27 05:24:04 i'm having an issue adding google play services to my android app, although i have added the .jar as a dependency and checked export, it isn't being found at runtime. during compilation it seems to be fine Oct 27 05:24:36 even tried adding it to the build.gradle file and no dice Oct 27 05:24:37 playservices is a lib project ? not a jar ??? Oct 27 05:24:48 perhaps im looking at some outdated info Oct 27 05:24:55 well, from what I read in the docs Oct 27 05:24:59 iirc Oct 27 05:39:55 turns out i was indeed looking at outdated info, however i have added the entire library as an imported module in android studio and when i add it as a dependency for my app, it disappears Oct 27 05:40:07 i apply the settings, save the project, close it and open it and the entry is gone Oct 27 05:42:34 AS is very beta Oct 27 05:42:40 not production ready Oct 27 05:44:00 that has been a thought in the back of my head Oct 27 05:44:08 that this might just be some error Oct 27 05:44:26 thanks i guess it's time to go back to eclipse Oct 27 07:29:56 what makes you determine AS is not production ready? Oct 27 07:30:40 the IDE has been production ready for a decade Oct 27 08:01:01 <^cheeky> JakeWharton: hi, how could i use inBitmap to re-use images in picasso Oct 27 08:01:09 you can't Oct 27 08:02:52 <^cheeky> :( yeah i read that post where the d00d was trying to. Oct 27 08:03:44 <^cheeky> could you perhaps, give me a suggestion, since my grid view creates images all the time, at least clear the cache or something, and when using it in gridView, it really jump to like 67 mb :S Oct 27 08:05:14 RAM is fast. that's why we store a bunch of things there Oct 27 08:05:26 if you want to use less memory, make the LRU smaller Oct 27 08:06:31 <^cheeky> so it just puts it in the disk cache Oct 27 08:06:35 <^cheeky> ok ill give it a shot Oct 27 08:06:37 <^cheeky> thank you Oct 27 08:46:44 <^cheeky> is 48dp x 48dp good practice for a contact detail icon size ? i just think it looks really small on a nexus 10 Oct 27 08:49:47 so use a larger size for sw720dp Oct 27 08:53:40 <^cheeky> i set it to 72 dp still kinda small Oct 27 09:01:28 hello does default arrayadapter has a filter ? Oct 27 09:08:37 hi all Oct 27 09:30:18 gingerbread ui sucks Oct 27 09:30:27 Hey guys. I have a question about JNI Oct 27 09:32:11 I'm using gradle and have a .so file in jni/ Oct 27 09:32:32 but when I try to System.loadLibrary() it, I'm getting an exception that the file is not found Oct 27 09:33:32 Is there a way to determine whether a pointer has been moved out of a custom view without listening for ACTION_MOVE? Oct 27 09:39:18 ProgramMax: gradle doesn't support native libraries yet Oct 27 09:39:29 lasserix: ACTION_CANCEL Oct 27 09:39:42 JakeWharton: ahh thanks! Oct 27 09:44:36 <^cheeky> guys, whats a good colour, for text over an image ? Oct 27 09:44:39 <^cheeky> black .. Oct 27 09:44:49 Jake oh bummer. Yeah, I see some google posts about how to make a custom rule in gradle to put the .so in there Oct 27 09:45:02 I also renamed the .apk to .zip to look inside and sure enough, the .so isn't included Oct 27 09:45:11 so now I have a way to test if it is at least in the .apk somehow :D Oct 27 09:45:13 thanks Oct 27 10:07:43 hrmmmm still having problems Oct 27 10:07:46 I now see it there Oct 27 10:08:00 inside the apk it is under lib/armeabi/libmylib.so Oct 27 10:08:13 I'm calling System.loadLibrary("mylib"); Oct 27 10:13:34 I have implemented my own service and I'm successful in starting it, too successful: It seems as if the service remains running even if I push a new version of the app onto the device. Oct 27 10:13:38 I'd rather have my new version of the service class running. Oct 27 10:15:57 The "old version" of the service doesn't keep running.. That code doesn't exist anymore Oct 27 10:17:10 SimonVT: The service sets a field in its onStartCommand, if it isn't null (i.e. the first call to onStartCommand), it also uses a Toast to communicate the first start when the field was still null Oct 27 10:17:29 I saw the Toast exactly once, now it doesn't show anymore when updat Oct 27 10:17:33 updating the app Oct 27 10:21:23 You're mistaken, something else is going on Oct 27 10:25:31 SimonVT: Yes, I'm stupid, the condition read != null instead of == null, of course the first time is when the field is still on its default value, i.e. null head -> wall Oct 27 10:59:54 JakeWharton: is ACTION_CANCEL supposed to be triggered if a user starts ACTION_DOWN inside a custom view and drags their pointer outside the boundaries of the view? Oct 27 11:04:56 it's really hard debug an adapter Oct 27 12:10:23 <^cheeky> in a Gallery app, when the user clicks on a grid view item, whats the scale type for large image to be centered and nicely presented , i used centerCrop but it takes the screen, is it right just hack it up buy setting layout margins on the top and bottom ? **** BEGIN LOGGING AT Sun Oct 27 12:14:10 2013 Oct 27 12:40:20 I've upgraded my SDK this week, and now my signed APKs won't get installed on devices any more :/ Oct 27 12:42:28 I'm using "ant release", looks like google is stopping support for it now Oct 27 12:43:43 and the error when installing via adb is INSTALL_PARSE_FAILED_NO_CERTIFICATES Oct 27 12:45:29 ouch. "Do not use JDK7 jarsigner command to sign apk" Oct 27 12:50:20 Guys, question: Why do the docs say that you should only start an AsyncTask from a UI thread? Oct 27 12:50:30 Because I'm starting it from a service, and it just works fine? Oct 27 12:50:33 the system requirements clearly say "JDK 6" not "JDK6 or newer" Oct 27 12:51:29 Is it considerd bad practice? Can it cripple the app somehow? Oct 27 12:51:43 Leeds: yeah, with my last debian update, java7 tools crept into the default path :( Oct 27 12:52:15 though having a proper error message instead of broken binaries might have helped with that :> Oct 27 12:52:17 allard: where does it say that? Oct 27 12:53:44 http://developer.android.com/reference/android/os/AsyncTask.html Oct 27 12:53:50 The AsyncTask class must be loaded on the UI thread. This is done automatically as of JELLY_BEAN. Oct 27 12:56:22 Or does a service run on the UI thread? Sorry for being so nooby, haha Oct 27 12:57:53 I think maybe it does Oct 27 12:59:09 need help resizing lockscreen's clock. ive been changing xml attributes on framework-res.apk but no changes seems to be made.. can someone help me ? Oct 27 12:59:18 how to get the default background of listview item ? Oct 27 13:15:58 I'm starting an activity from another using startActivity(). When I call this, my overridden onSaveInstanceState() is called. I call outState.putLong(...) ... but when I come back from the other activity and I'm in onCreate(), savedInstanceState is null. Surely as I saved state, I should get it back? Oct 27 13:16:38 :( Oct 27 13:16:45 my colors are dissapearing Oct 27 13:17:05 Perhaps I should be overriding onPause()? If so, where should I save my state? Oct 27 13:18:22 What I'm storing is the ID of the row of the database table that this activity is viewing data relating to. Oct 27 13:19:07 I see stuff about using SharedPreferences, but this isn't a user preference - it's just an ID which tells the activity its current state Oct 27 13:21:08 in a listview i set backgroundcolor and becomes white after i scroll Oct 27 13:21:31 what is the best android development book at the moment? Oct 27 13:23:31 there isnt Oct 27 13:26:45 Hi, coding for a widget button Oct 27 13:26:54 pressing a button advise all the widgets on the desktop Oct 27 13:26:59 and no the only one pressed Oct 27 13:27:04 some good tutorial? thanks Oct 27 13:28:28 i define the pendingIntent in a service so i think is a service coding problem!! Oct 27 13:35:50 getIntent().getExtras().getLong("whatever") .. in the Expression Evaluation windows in IDEA... Oct 27 13:35:57 returns what looks like nothing Oct 27 13:36:06 Wrap it in String.valueOf, you see the number. Oct 27 13:36:09 * rikkus shakes head Oct 27 13:37:15 Ok so I start a new activity, my onSaveInstanceState is called, but when I return, my onRestoreInstanceState isn't called - and my onCreate has a null savedInstanceState. What do I have to do? Oct 27 13:42:48 hello Oct 27 13:46:15 hello Oct 27 13:47:46 i am using drawerlayout and i want to add two fragments side by side in the framelayout Oct 27 13:47:51 how can i do this? Oct 27 14:51:29 anyone knows how to change lockscreen's clock font-size? tried on framework-res.apk but no changes seems to be made... Oct 27 15:15:48 How can I update gradle? Details... https://gist.github.com/tonsV2/6e8a13cea57fdb351906 Oct 27 15:21:39 any idea what to do when "build project" is grey in eclipse? Oct 27 15:24:44 hi all. Is there a value that specify the text size "text size large" as defined in ICS, i.e. 22sp? I would like avoid having to create that value hardcoded to 22sp, but instead i would like to use the current value in the current android system Oct 27 15:27:43 hi Oct 27 15:28:52 groton: android:textAppearance="?android:attr/textAppearanceLarge" Oct 27 15:29:02 i am trying to use nested linear layouts to arrange 6 buttons in a 2x3 grid that is filling out the whole screen, but whatever i do, either one of the inner LinearLayouts is not showing, or the buttons don't expand to the full width or height of the screen Oct 27 15:29:45 is there any way to do this with linear layouts? Oct 27 15:31:16 i kind of miss a way of saying "This Layout should fill half of its parents width" Oct 27 15:32:03 why not use a gridlayout or relativelayout? Oct 27 15:32:41 with gridlayout i feel unflexible and relative layout is even harder to understand Oct 27 15:32:57 also it just bugs me that i don't figure out how to do it with LinearLayouts as i think it should be possible Oct 27 15:34:29 also i usually do it with swing and java also like that Oct 27 15:35:31 is there any detailed description how the layouting works, because from what i have read i only get pieces of the puzzle that don't make sense to me Oct 27 15:36:56 http://developer.android.com/guide/topics/ui/index.html Oct 27 15:38:35 yes, i have seen that one Oct 27 15:38:38 did i got any reply to my previous answer? I got disconnected just after i asked it Oct 27 15:39:41 16:28 < seand> groton: android:textAppearance="?android:attr/textAppearanceLarge" Oct 27 15:40:01 LtRipley: thanks a lot Oct 27 15:40:47 dettox: especially i try to find something that explains gravity and weight Oct 27 15:41:21 i would search in that site Oct 27 15:41:46 that's how i spend my saturday :) Oct 27 15:41:57 the same, i'm looking for something on widget buttons Oct 27 15:42:15 when i press on a button every buttons are clicked Oct 27 15:42:21 and not the only pressed Oct 27 15:42:40 clickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,WidgetId); Oct 27 15:42:47 is not working Oct 27 15:42:59 but clickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS,allWidgetIds); Oct 27 15:43:01 sounds like they have the same onClick-action? Oct 27 15:43:04 is working Oct 27 15:43:06 !!!! Oct 27 15:43:24 the action is specified for the widget id Oct 27 15:45:38 specifying only one widget id don't click Oct 27 15:45:45 clickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,WidgetId); Oct 27 15:46:06 appWidgetManager.updateAppWidget(WidgetId, remoteViews); Oct 27 15:46:30 putExtra for all the widgets works Oct 27 15:46:39 clickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS,allWidgetIds); Oct 27 15:46:47 appWidgetManager.updateAppWidget(WidgetId, remoteViews); Oct 27 15:47:02 refreshing only one id, works too Oct 27 15:47:21 some tutorial? Oct 27 15:47:53 the onClick action is the same Oct 27 15:48:09 but they are different widget with differents settings Oct 27 16:03:37 Hi all Oct 27 16:04:16 May I ask if anyone has an Acer Iconia A1-810? Oct 27 16:07:02 anyone talking? Oct 27 16:13:59 GeorgeBush: are you doing a survey of device ownership? Oct 27 16:14:25 oh, root stuff Oct 27 16:15:14 newp Oct 27 16:15:33 need someones preloader_and_dsp dump from their A1-810 Oct 27 16:15:44 and that fits into app dev how? Oct 27 16:16:54 Fair question :P Oct 27 16:16:58 it doesn't Oct 27 16:17:17 I'm in #android too, but just asking about for A1-810 owners... Oct 27 16:25:45 how can i start a listview's context menu on a normal press? i don't want to have to longpress Oct 27 16:26:04 When I am playing sounds in Android I keep getting "AudioFlinger could not create track, status: -12". Would anyone know what's wrong? Oct 27 16:29:59 I changed my application to use the support libraries v4 and v7. In the menus, there are some options that use a checkbox. When I click on the menu, the action behind the menu item occurs, but the menu item isn't updated (the checkbox isn't toggled). Do I need to change something here? Oct 27 16:35:46 everyone know some tutorial or example for button widgets with many differents instance? Oct 27 16:51:12 Hello all, what's the best way to create a Sliding Menu supported in all (or almost all) Android versions? Oct 27 17:02:56 how do I find circle borders at X if if I know where y is? Oct 27 17:03:29 say if y is at some point within radius, I want to know border points at X at left and right Oct 27 17:04:16 do you know the radius Oct 27 17:04:21 yeah Oct 27 17:06:10 try sin(acos(y/r)) Oct 27 17:06:43 idk you may need to swap sin/cos so it's cos(asin(y/r)), also java may or may not call them arccos/arcsin :P Oct 27 17:06:52 lol ok Oct 27 17:07:27 hopeully it will allow me to not check every point in square around circle Oct 27 17:07:35 may be suffecent cpu savings Oct 27 17:07:39 uh, what are you trying to do Oct 27 17:08:01 well my app requires rather unusual drawing method Oct 27 17:08:33 WHAT ARE YOU TRYING TO DO Oct 27 17:08:36 :P Oct 27 17:08:41 draw stuff lol Oct 27 17:08:44 if you're trying to draw a circle Oct 27 17:08:48 there are far far more efficient ways Oct 27 17:09:11 yeah like somedrawable.drawCircle(whatever) Oct 27 17:09:18 i mean, manually Oct 27 17:09:30 yeah? whats it Oct 27 17:13:11 Is it normal that looped sounds are only played 5 times in the emulator? Oct 27 17:13:19 3 Oct 27 17:13:23 sorry :) Oct 27 17:13:48 XXCoder: equation of the circle is (x)^2 + (y)^2 = r^2; but why do you want to draw it manually? you shouldn't Oct 27 17:14:02 XXCoder: http://en.wikipedia.org/wiki/Midpoint_circle_algorithm though the code given is for the border, not filling it Oct 27 17:14:23 well it does require rather unusual drawing effect. no such effect exists in library Oct 27 17:14:32 XXCoder: anyway, yeah, you shouldn't really need to draw it manually either.. what effect? Oct 27 17:15:05 lol well basically dent color between two pictures Oct 27 17:15:12 'dent'? Oct 27 17:15:28 difference? if so, OpenGL can in fact do that Oct 27 17:16:02 basically circles push colors one way or other towards certain picture and draw effect Oct 27 17:17:00 so you're essentially drawing grayscale circles, then using that as a blend between two pictures Oct 27 17:17:15 yeah sorry, but i don't see why this can't be done with built-in primitives :P Oct 27 17:19:29 I tried that, it was so computually expensive Oct 27 17:19:38 and effect wasnt still right Oct 27 17:20:44 do you guys think it's better to be a self employed android developer or to work for a dev shop? Oct 27 17:21:12 if you repeatively draw color at alpha 1, it will not evenually add up to 255 of that color Oct 27 17:21:47 if it was computationally expensive, you're doing it wrong Oct 27 17:22:12 repeatedly drawing a color at alpha 1 is an example of doing it wrong :P Oct 27 17:22:16 what I did orginially is use red color for creating alpha mask Oct 27 17:22:23 then use colormatrix Oct 27 17:22:55 thing is its not just draw once effect, its dynimatic and constantly changing Oct 27 17:23:12 it would help if i knew the full scope of what's intended to be drawn, and why Oct 27 17:23:22 i see Oct 27 17:23:31 oh its just live wallpaper. the effect is the point :) Oct 27 17:24:02 so you're drawing moving circles that slowly blend one picture to another? Oct 27 17:24:03 also why I wanna keep cpu low. it dont run while covered by some app but I want it to not eat battery too much Oct 27 17:24:37 almost. it tries to blend both ways with some pushing one way and some other way Oct 27 17:24:41 how many pictures are there, how many circles are drawn per frame Oct 27 17:25:24 3 pictures, including final result picture. # of circles is selectable Oct 27 17:25:44 are we talking 10 or are we talking 3000 Oct 27 17:26:04 it matters :/ Oct 27 17:26:06 oh max 20 Oct 27 17:26:26 i think you can do this with renderscript, let me see Oct 27 17:26:32 ok Oct 27 17:27:50 well, in any case i know you can do it with OpenGL Oct 27 17:27:59 hmm got idea on avoiding square root and powers :) simply just pre-calculate edges Oct 27 17:28:09 its not like it changes at all. Oct 27 17:28:30 pre-calculate each time setting is changed Oct 27 17:29:02 thanks for this idea, even though you didnt directly suggest it lol Oct 27 17:32:30 trying to implement a phoneStateLIstener in a Service, getting strange lifecycle problems Oct 27 17:32:30 http://pastebin.com/JAeKXtgU Oct 27 17:33:19 onCreate() is calling just fine, but onStartCommand (started in an activity from startService) is hanging Oct 27 17:33:43 suggestions on what is going wrong with the service lifecycle are greatly appreciated Oct 27 17:34:09 does anyone know of a coverflow/carousel library that doesn't extend the deprecated Gallery? Oct 27 17:36:37 XXCoder: too lazy to figure out the details, but I'd definitely use OpenGL ES for this, rendering the circles to a temp buffer/texture, then using that to draw the pictures blended Oct 27 17:37:15 yeah I did something like that. dynimatic alpha using red channel Oct 27 17:37:19 Hi, my webview is not loading my url https://gist.github.com/jrm2k6/46db680650fe86f2d1bc any idea what is wrong with it? permission for internet are in the manifest so it is not because of this Oct 27 17:37:39 XXCoder: how did you render the circles? Oct 27 17:38:07 I have array of colors and I just directly modify em then bitmap.setPixels Oct 27 17:38:16 XXCoder: 'cause you should be doing them with OpenGL, probably just a polygon Oct 27 17:38:39 XXCoder: temp buffer being memory on the graphics card, not in your program Oct 27 17:38:54 problem theres no history with that Oct 27 17:39:03 yes tehre is, you don't ever clear the temp buffer Oct 27 17:39:29 the fb should be doublebuffered, so you just draw the whole images every time Oct 27 17:39:45 hmm gonna reserach later, eat time :) thanks for help! Oct 27 17:39:45 it's actually faster to blit a texture from graphics memory to graphics memory :/ Oct 27 17:39:57 than it is to update just the changed portions Oct 27 17:40:40 i'm fetching a user's timeline from twitter, in the tweet's text i get things like "bla & bla2". What's the proper way of fixing that to "bla & bla2" ? Oct 27 17:41:32 slice that string osxorgate Oct 27 17:44:31 Lemminkainen: what do you mean slice? Oct 27 17:45:18 <|0xD34D|> osxorgate: something like this http://stackoverflow.com/questions/17893043/removing-html-tags-and-converting-special-characters-in-rss-feed-from-facebook perhaps? Oct 27 17:45:34 ugh Oct 27 17:45:42 :( Oct 27 17:45:57 <|0xD34D|> I could have sworn there is some class that has a method to do just that Oct 27 17:46:05 maybe the textutils thing Oct 27 17:46:23 <|0xD34D|> I know TextUtils can encode a string and replace & with & Oct 27 17:47:37 Html.fromHtml((String) htmlCode).toString(); lets try that Oct 27 17:52:59 http://developer.android.com/reference/android/text/Html.html will do it, with the caveat that HTML tags will be parsed too Oct 27 17:54:33 Hey, can someone do me a huge fav and take a look at an example on line and tell me if they're doing it wrong or if i'm loosing my mind? :) Oct 27 17:54:38 kind of silly that TextUtils has a htmlEncode, but not htmlDecode Oct 27 17:54:40 Example is... http://mossila.wordpress.com/2011/05/10/android-dialog-single-choice-items/ Oct 27 17:55:10 Tryingj to use setSingleChoiceItems() and the example is feeding it a String[] as its first option but the android docs say it will take a CharSequence Oct 27 17:56:12 Eclipse is saying that I can't do this... Im reading that String implements CharSequence so i'm thinking i may simply need to convert it? But want to make sure i'm not missing something from the example... Oct 27 17:57:11 Specifically in the example i linked to, line 17 in the first chunk of code. Oct 27 17:59:21 phutchins: there are 4 variations of setSingleChoiceItems() Oct 27 17:59:44 none of which have String[] as a first param Oct 27 18:00:27 osxorgate: Yeah, And i see that one of them doesn't take an int as the first argument, and takes a CharSequence, which is the closest i think to what im trying to do Oct 27 18:00:34 osxorgate: ok right. so thte example is wrong? Oct 27 18:00:58 idunno, it uses CharSequence[] choiceList as first param Oct 27 18:01:36 which seems to be ok, looking at the 4 options Oct 27 18:01:44 so whats your problem exactly Oct 27 18:02:08 Oh, my problem is that i pasted the wrong link :) Oct 27 18:02:11 http://tracker.aripuca.com/blog/2011/09/restore-sqlite-database-from-external-file/ Oct 27 18:02:29 line 17 on the first chunk there... The other link is me trying to find a correct example. Oct 27 18:03:11 I guess if the example is wrong I can figure out how to get the results of File blah.list() which is a string, converted to a CharSequence[] Oct 27 18:03:15 and i should be good Oct 27 18:04:37 how about you write "final CharSequence[] importFiles" Oct 27 18:04:53 final CharSequence[] importFiles = importFolder.list(); Oct 27 18:04:55 yeah thats what i did Oct 27 18:05:01 thx :) Oct 27 18:05:24 didn't realize i could output .list to a charsequence[] Oct 27 18:05:45 was just seriously thrown off trying to learn from an incorrect example... Oct 27 18:07:34 FYI, i'm trying to import a sqlite db dump from a previously exported backup Oct 27 18:07:42 I got the backup working... just have to do the import Oct 27 18:15:52 JakeWharton: Are you guys staying with Maven for the moment or is a transition to Gradle in progress or planned? Oct 27 18:16:23 I'm currently pondering myself if I should stick with Maven (because I have a few Java-only projects too on the server side) or jump onto the Gradle wagon. Oct 27 18:20:32 i get warnings for using nested layout_weights, but i want my inner LinearLayout being stretch horizontally and its elements vertically Oct 27 18:20:46 how to circumvent that? Oct 27 18:22:47 LtRipley, well, it IS a warning Oct 27 18:23:00 is your layouting slow because of it? Oct 27 18:23:49 Mavrik: i interpreteted it in away that it was avoidable Oct 27 18:23:59 but most of the warnings don't really say me anythin Oct 27 18:24:06 i usually treat warnings like errors Oct 27 18:24:25 I think that warning is a mistake Oct 27 18:24:46 if the orientations of the linearlayouts are different, obviously they aren't reducible to one linearlayout Oct 27 18:25:15 LtRipley, mhm, basically it's telling you that that computation may take a long time Oct 27 18:25:25 that is, layout computation Oct 27 18:25:38 usually avoiding linear layouts nested like that is one way Oct 27 18:25:51 the other way is to write your own viewgroup if you want maximum speed Oct 27 18:26:04 or ignore the warning if layout speed is good enough in your use case Oct 27 18:27:07 ok thanks, i will just try with ignoring the warning Oct 27 18:27:14 layout speed won't be a problem Oct 27 18:28:31 is there a description of the layouting algorithm somewhere? Oct 27 18:32:53 hi guys Oct 27 18:33:00 LtRipley, in the source :) Oct 27 18:33:10 for LinearLayout Oct 27 18:33:18 for general documentation see reference on d.android.com Oct 27 18:33:23 there's a guide about how layouting works Oct 27 18:34:18 why do we need to extend the application class sometimes ? Oct 27 18:34:59 is there a way to define horizontal weight and vertical weight seperately? Oct 27 18:35:13 i guess that would all my needs without the yellowish lines in eclipse :) Oct 27 18:35:49 but it works with having nested weights, so I a am good for now Oct 27 18:36:03 LtRipley, no, but it sounds like you might need only one RelativeLayout ;) Oct 27 18:36:22 tonyMontana9099, usually if you have to do some (VERY FAST!!!!!) setup when app starts Oct 27 18:36:37 which has to be done for any activity Oct 27 18:37:17 well, Mavrik in my case, I will be using it for global sync.. Oct 27 18:37:26 Mavrik: i am glad i kind of understood how linear layout works, RelativeLayout seems so hard to grasp to me Oct 27 18:37:52 ah :) Oct 27 18:37:52 it might be intuitively understandable, unfortunately my intuition is broken Oct 27 18:37:54 Mavrik i want my sync (with a back end server) to run as long as the app is alive (at least has 1 activity visible) and stop when there are no visible activities. Oct 27 18:38:03 LtRipley, it's not, it's a rather complicated viewgroup Oct 27 18:38:14 is this possible using Application class ? Oct 27 18:38:21 but it's useful for alot of those wierd cases where'd you need a ton of LinearLayouts to do things right Oct 27 18:38:33 tonyMontana9099, not really Oct 27 18:38:47 i just need three :) Oct 27 18:39:01 LtRipley, leave it then, optimize when you find out there's the problem ;) Oct 27 18:39:09 Mavrik how is that possible ? Oct 27 18:39:11 sound advice :) Oct 27 18:39:19 tonyMontana9099, how is what possible? Oct 27 18:39:41 Mavrik an application level sync, until the app is running. Oct 27 18:39:59 the problem you're having is, there's no real concept of "my app is now running" on Android Oct 27 18:40:24 probably the easiest way is to create a sync service Oct 27 18:40:37 and bind to it in each activity you need it to run Oct 27 18:40:52 Android will make sure the service stops when it's not bound to anything anymore Oct 27 18:41:01 or you can roll your own reference counted solution Oct 27 18:41:11 (using onStart()/onStop() pairs) Oct 27 18:41:41 Mavrik exactly. thats the issue I am having. Oct 27 18:42:28 Mavrik can u be more specific for the second part ? 'you can roll your own reference counted solution' Oct 27 18:42:56 have a singleton class that keeps a sync thread Oct 27 18:43:08 and in each onStart increase a counter and with each onStop decrease counter Oct 27 18:43:18 kill the thread when counter == 0 Oct 27 18:43:36 that's what bound service does as well Oct 27 18:44:09 honestly, i want to apply this without a service. Oct 27 18:44:22 why would you want to? Oct 27 18:44:31 overhead ? Oct 27 18:44:36 what overhead? Oct 27 18:44:42 using service. Oct 27 18:44:43 it's all single process in single VM Oct 27 18:44:47 i changed keyguard_screen_unlock_portrait.xml on framework-res.apk but no changes are seemed to be made. can someone help me where do i mod my lockscreen's clock poisition? Oct 27 18:44:48 Service is just a class. Oct 27 18:44:59 Android isn't your desktop os :P Oct 27 18:45:08 Mavrik hehehe true Oct 27 18:45:33 anyway, service or no, concept is the same :) Oct 27 18:45:39 gotta run, bbl :) Oct 27 18:46:16 ok Mavrik thanks ! Oct 27 18:51:11 can someone help a noob to set this up? https://github.com/jfeinstein10/SlidingMenu it says to import the project as an android library project, but the only option in Eclipse I get under android is "Existing Android Code into Workspace" Oct 27 18:51:40 That will do. Oct 27 18:53:04 kakazza: thanks. Then I'm prompted with this: http://note.io/17mcnxj there seems to be doubles of each one. I'm not sure what to select Oct 27 18:53:57 bin/ isn't whay you want. It contains the compiled source. Oct 27 18:54:30 So I just want the one called "library" ? Oct 27 18:55:07 And maybe the example one, if want to try it out and look at its code. Oct 27 19:00:33 why use slidingmenu instead of drawerlayout? Oct 27 19:02:00 That's also a good question. Oct 27 19:03:38 pfn: is the other better? Oct 27 19:04:15 pfn: to specifically answer your question. I didn't know about drawerlayout, so that's why slidingmenu Oct 27 19:05:34 why appWidgetManager.updateAppWidget(widgetId, remoteViews); update all the instance and no the only one called?thx Oct 27 19:06:40 how can I make a method run every X amount of time in android ? Oct 27 19:06:50 I do not want the thread/handler approach Oct 27 19:07:00 there was a time related method that did the trick. Oct 27 19:07:20 pfn: it looks like DrawerLayout it is a google library meant to solve the navigation drawer. It also looks like it's in their Support Library which would, I assume, make it compatible with earlier versions. Is this all correct? Oct 27 19:08:31 Is this the best place to ask for android related opengl help or is there a better channel? I'm stuck on orthographic projections and I can't see what I am doing wrong. Oct 27 19:09:01 iirc it only goes back to api 10 Oct 27 19:09:02 tonyMontana9099: maybe http://developer.android.com/reference/android/app/AlarmManager.html Oct 27 19:09:53 dettox actually http://developer.android.com/reference/java/util/Timer.html Oct 27 19:10:33 hello, I'm new to programming/Android. I'd like to "register" a device when it's online using my app. Something like whatsapp, the user is online and can communicate with others Oct 27 19:10:38 tonyMontana9099: i read that info, don't know if useful in your code Oct 27 19:11:32 tonyMontana9099: instead i'm looking for something about click events and more instance of the app Oct 27 19:14:55 i am going to make some android apps, probably won't release anything before 2014. is it a reasonable idea to just target android 4.0 and above? Oct 27 19:15:24 occ, yes Oct 27 19:15:46 Absolutely Oct 27 19:16:20 cool. because then i wont have to buy old phones to test on etc.. and want to reduce the size of my sdk too Oct 27 19:16:33 <|0xD34D|> you'd be wasting your time if targeted anything less than api 14 Oct 27 19:16:56 i see Oct 27 19:17:54 i deleted my whole sdk and re downloading everything again now... because i cant remember what platforms i downloaded before.. and not sure i trust the sdk manager Oct 27 19:24:34 occ go 4.0.x and above Oct 27 19:24:41 occ pointless to write before those. Oct 27 19:25:47 hey guys Oct 27 19:25:58 Do any of you know if there's a filterable, searchable, drop-down, expandable listview? Oct 27 19:26:05 basically, what I want to make is a listview that contains "Users" which have "Items" underneath. I want to have 2-3 static options listed and a list of 'n' "Items" per user. Oct 27 19:26:12 and then I'd like to be able to organize items using drag n' drop Oct 27 19:26:17 and have a filter button and search bar at the top Oct 27 19:26:26 search filters down based on "User" name Oct 27 19:29:45 How do I add a library as a dependency to a project? Oct 27 19:32:50 eydaimon, yes Oct 27 19:32:50 eydaimon in eclipse or general ? Oct 27 19:33:04 eydaimon, and yeah, you can use slidingpanelayout or drawerlayout, depending on what you want Oct 27 19:33:11 for support-v4, just drop the jar in Oct 27 19:33:13 pretty easy Oct 27 19:33:19 particularly if you're using eclipse/ant Oct 27 19:33:59 Whenever I move from an activity A to another B , the onPause() of the A is called, followed by the onCreate() of B, followed by the onStop() of A ? Oct 27 19:34:20 maybe Oct 27 19:34:31 tonyMontana9099: eclipse Oct 27 19:37:09 http://stackoverflow.com/questions/2912272/adding-referenced-libraries-to-lib-folder-in-eclipse eydaimon Oct 27 19:37:14 try that eydaimon Oct 27 19:39:55 tonyMontana9099: thanks much tony Oct 27 19:40:44 hm, it didn't help much for me though Oct 27 20:00:51 need to mod lockscreen's clock position. modded keyguard_screen_unlock_portrait.xml from framework-res.apk but no changes are seem to be made :/ Oct 27 20:01:06 any tip? Oct 27 20:01:13 Go to #android-root Oct 27 20:01:25 You've been told this before Oct 27 20:03:57 is it possible to find out if a statusbar notification is still pending or was cancelled by the user? Oct 27 20:05:06 Ge0rG: notification listener service http://developer.android.com/reference/android/service/notification/NotificationListenerService.html Oct 27 20:05:32 Ge0rG: there are callbacks for when notifications are posted and removed. it was added in 4.3 Oct 27 20:05:57 seand: what about pre-sdk18? I just want to know if my own app's notification is still there or not Oct 27 20:06:15 actually I want to make a notification update silent, unless the old notification was gone Oct 27 20:06:27 Ge0rG: not possible. you can listen for when notifications are posted with an accessibility service but not when dismissed, AFAIK Oct 27 20:06:47 seand: ok, thanks Oct 27 20:07:46 guys, is it advisable to use sync adapter to send and receive data (and add to local sqlite db) Oct 27 21:03:12 Hi guys, any idea why shouldOverrideUrlLoaded is never called? https://gist.github.com/jrm2k6/4a36813b11d952116aef Oct 27 21:03:18 I know it is called only once Oct 27 21:03:25 but in my case it is never called. Oct 27 21:18:04 do i want to just download platform tools for the latest jellybean(api 18) and the latest ics(api 15), or i should also test on api 14, 16, and 17? Oct 27 21:19:00 occ: i think you only need to download tools for whichever version you're targeting Oct 27 21:19:12 that's the version it will compile against Oct 27 21:19:27 ok. so i guess my question should be which version should i target? Oct 27 21:19:33 if i want to target jellybean Oct 27 21:19:45 there is api 16, 17, 18 Oct 27 21:19:46 18 Oct 27 21:20:25 ahh... but the dashboard says api 16 is 30% and api 18 is 1.5% Oct 27 21:20:43 but they are pretty much the same thing right? Oct 27 21:24:31 no Oct 27 21:30:19 hi Oct 27 21:30:54 i have a question about android app developement Oct 27 21:31:09 occ: which one you use really depends on which API you want to support. for example, in my app i targeted 16, then when 18 was released there was a new class i could use, so i changed my target to 18 and updated my code Oct 27 21:31:42 occ: my minSdk value didn't change though, so i still support previous versions. but if the device is using SDK 18 then they have extra app features Oct 27 21:33:30 how can i catch phone calls with my app and choose dependend of the nummber to accept or to refuse the call? Oct 27 21:33:46 i see that makes more sense now thanks Oct 27 21:38:14 darman96: check out http://developer.android.com/reference/android/telephony/PhoneStateListener.html Oct 27 21:38:22 for listening to phone calls Oct 27 21:38:33 thanks Oct 27 21:42:49 I have a back stack problem: imagine I have the following backstack A1,A2,A3 not I start a new Activity A4. After this is done I want a back stack to look like A1, A4 ... any idea? Oct 27 21:43:05 *now I start Oct 27 22:00:43 okay i can listen the calls now but how can i cancle it? Oct 27 22:25:02 guys i played a bit with android and development for it seems not that much of fun for me and I am courios if I missed something. For example it uses configuration over convention , uses tons of xml. you have to repeat your self (casting views, thanks god for annotations libs) Oct 27 22:26:01 you can do a lot of the xml in java programmatically Oct 27 22:26:13 I want to develop an android app, i've used titanium and phonegap, but now i want to try straight java, any suggestions? Oct 27 22:27:29 relipse: suggestions for what Oct 27 22:27:46 relipse: get the IDE and SDK and start with Hello World Oct 27 22:27:49 android devs use eclipse? Oct 27 22:28:03 eclipse, intellij or android studio Oct 27 22:28:35 there's also some idiots in here that use vi(m), but let's just gloss over that for now Oct 27 22:28:44 shmooz: yes but isnt that considere a bad practice? Oct 27 22:29:18 Trudko: why would it be considered bad? It's useful to let you know the minimum you need to get an app started Oct 27 22:29:41 bankai_, if i get android studio, do I need to get the adt bundle and all that too or is it all included? Oct 27 22:30:10 relipse: http://developer.android.com/sdk/installing/studio.html Oct 27 22:30:49 shmooz: well at least design shouldnt be done programatically right? Oct 27 22:31:26 how do i record using the microphone and save to file on sdcard? Oct 27 22:32:42 use XML where you can Oct 27 22:33:33 Trudko: I said that to let you know you can do a lot of xml in java if you hate xml so much, but normally you'd declare the static initializing stuff in the xml file, and can do dynamic stuff in java with those things you declared Oct 27 22:38:29 i see Oct 27 22:38:30 Guys, is anyone coding for android using SDL ? If yes, do you have a link to a tutorial on how to set it up and run the test app on the device ? Oct 27 22:38:57 from what I am reading android dev is more complex because of complexity of developingon mobile apps( in general Oct 27 22:39:23 ANN-TechCoder, yes Oct 27 22:40:03 Ologn: would you mind sharing a link ? Oct 27 22:40:27 ANN-TechCoder, are you going off an existing code base or you're programming a new SDL app from scratch? Oct 27 22:41:15 First one. I am in the middle of some app I am working on. Just wanted to see If I could make it run on Android Oct 27 22:41:51 ANN-TechCoder, I've ported a few SDL apps to Android Oct 27 22:42:04 ANN-TechCoder, there are two ways to do it Oct 27 22:42:16 Ok... ? Oct 27 22:43:02 The official SDL team completely rewrote SDL, I think they even may have thrown out the API Oct 27 22:43:13 You can do it their new way, which I know nothing about Oct 27 22:43:27 My Codebase runs SDL 2 with OpenGL Oct 27 22:43:51 what is the second way ? Oct 27 22:44:08 Oh yaa, that's the new SDL...I don't know about that Oct 27 22:44:58 Everything I do is SDL 1.2 Oct 27 22:45:00 The thing is, there is nothing on the net about it Oct 27 22:45:32 SDL 2.0 has nothing to even do with SDL 1.2 so I don't know why they kept the name Oct 27 22:45:41 The same stuff. Just a little improvements here and there Oct 27 22:45:51 My codebase originally was 1.2 as well, ported it to 2.0 in 5 mins Oct 27 22:46:00 They threw out all the code and completely changed the API - so why say it went from 1.2 to 2.0? It's a new codebase, change the name... Oct 27 22:46:56 Here's a simple SDL game I ported - https://github.com/dennis-sheil/commandergenius/tree/circuslinux Oct 27 22:47:02 It's a good example since it is so simple Oct 27 22:47:45 The whole game is in one C file Oct 27 22:48:16 I ported more complex stuff as well, but that is a good start Oct 27 22:48:38 There are some simple pelya games at https://github.com/pelya/commandergenius Oct 27 22:48:50 He did most of the work of putting SDL in the JNI etc. Oct 27 22:49:27 To bad I have to use Java and not Visual Studio :( Oct 27 22:49:44 I guess the ballfield app is his simplest Oct 27 22:50:00 Well we did it all on Linux, I'm not even sure how to do it with Windows Oct 27 22:50:24 This is an SDL game I ported: https://play.google.com/store/apps/details?id=com.panaceasupplies.android.games.math Oct 27 22:50:44 over 100,000 downloads Oct 27 22:51:16 I could probably fix it up some Oct 27 22:54:13 Actually Pelya's code might do SDL 2.0 also Oct 27 22:55:03 There is only 1 tutorial on the net: http://www.dinomage.com/2013/01/howto-sdl-on-android/#comment-3934 Oct 27 22:55:03 I'm trying to find a solid way of takign a twitter api timestamp and get a Date object or w/e. An example would be "Sun Oct 27 18:08:56 +0000 2013" . What's a good way to parse it? Oct 27 22:55:24 and it is not clear if I will be able to run SDL with OpenGL Oct 27 22:56:12 ANN-TechCoder, you can't run OpenGL on Android, Android uses OpenGL ES Oct 27 22:56:12 Ologn: it looks like a linux desktop with that penguin ;) Oct 27 22:56:57 No glBegin, no glEnd, no GL_QUADS Oct 27 22:57:22 shmooz, yaa, I didn't change it from the upstream much...they call it TuxMath Oct 27 22:57:49 nice app, I can see how it would motivate one to solve the problem Oct 27 22:59:03 shmooz, yaa, people like it. I can fix some of its problems too, such as the white background behind the comets. Maybe some of the sizing problems. I'm not sure how to monetize it though. My games don't seem to make ad money like my non-game apps make. Oct 27 22:59:19 I guess that's why people do freemium games Oct 27 23:00:04 can you ask for donations, so if they liked it donate any amount ... Oct 27 23:00:33 Hi :) Oct 27 23:01:26 I could try that Oct 27 23:01:59 yeah you'd get something Oct 27 23:04:26 I need help from somebody who create custom rom. The issue is that i replace digitizer to new one, but i had no luck and its different uC. For initializing it i need plug in boot time old one, then replug new one and then it work. The idea is to debug why original driver is not able to initialize new digitizer and change it.What i need to know is it required to build whole rom or can i just prepare new kernel and compile this driver as a Oct 27 23:04:27 module ? Oct 27 23:05:14 hetii, read the channel topic Oct 27 23:05:33 ok i switch # Oct 27 23:08:31 Hey all, I have a question more related to UX on Android than programming, I hope it's okay. Can someone give me some best practices on displaying labelled data in Android? I have to have labels for the various fields (name, phone number, country, about 10-15), so the user knows the name, address of the person they are viewing. However, I'd like to place more emphasis on the data than the... Oct 27 23:08:33 ...labels. I was thinking of maybe overriding a tablelayout and setting each row to have the label at the top in a muted colour, and the data in a solid colour. Is this wise? Here is an example of what I mean: http://snag.gy/8JqCh.jpg Oct 27 23:12:23 Ologn: have you played the arcade game Kick, or KickMan? it has similarities to Circus Oct 27 23:13:13 but its a clown on a unicycle that kicks balls that pop balloons, one of my favs :) Oct 27 23:13:40 shmooz, I think I did play it a long time ago...Circus Linux is an open source SDL game, and is very, very simple (all in one C file), so it was easy for me to port to Android Oct 27 23:14:09 nice job Oct 27 23:14:10 Then I just built up to more complex ones... Oct 27 23:14:31 But they didn't make money so I put them aside Oct 27 23:15:22 My upstream is the guy who did this: https://play.google.com/store/apps/details?id=ws.openarena.sdl Oct 27 23:15:33 It still has some kinks to work out but was an impressive port Oct 27 23:17:35 wow, that's a huge project Oct 27 23:19:50 too bad there's no GTA 4 or 5 on Android, if I were microsoft I would release Windows RT tablets with those on them Oct 27 23:20:22 hahaha brilliant idea Oct 27 23:20:24 that would kill android Oct 27 23:28:15 have anyone got problems with wifi ? Oct 27 23:28:24 i seem to have problems with power save mode Oct 27 23:32:06 shmooz: off-topic, but I don't think GTAV's engine (RAGE?) works on ARM, it would be a large task. Oct 27 23:32:15 Baluse: Explain what 'problems' are? Oct 27 23:32:28 *should be a period, not question mark Oct 27 23:33:54 Factory reset brand new phone samsung galxy Oct 27 23:34:31 http://i.imgur.com/FXG6oLL.png Oct 27 23:35:04 this was happening with power save on at one access point.At my other access point worked correctly but got disconnected after a while Oct 27 23:35:31 other phones (apple and my lg android dont have issues nor any laptop with my access points) Oct 27 23:36:08 MarkyC: they can do it with Intel based tablets Oct 27 23:37:56 shmooz: Windows RT is ARM, GTAV should work on Intel based tablets (Acer Iconia comes to mind) when it's released Oct 27 23:44:00 Baluse: I don't have solution for you, but it appears your question might be device specific, and not related to development. I'd try XDA-developers Oct 27 23:45:10 Baluse: (though if I may add some experience: Samsungs Power Save Mode sucks, at least on my GSII LTE. Try JuiceDefender or another battery saving app) Oct 27 23:49:13 so anyone here try out Samsung's Galaxy Gear yet? Oct 27 23:49:22 I was wondering if it was programmable. Oct 27 23:50:47 What happens on android if your app is recording audio and then you get a phone call? does the recording stop? Oct 28 00:01:14 relipse: I suspect the onPause() event will get called. That's a good time to check if you are recording, and pause the recording, to be later resumed when onResume() is called Oct 28 00:01:51 My intuition tells me the recording would continue in the background otherwise. Oct 28 00:01:52 ok good point Oct 28 00:01:58 oh really? Oct 28 00:02:00 neat Oct 28 00:04:17 Shaba1: Yes, though it's kinda hackish, you can sideload apps: http://arstechnica.com/gadgets/2013/10/microscopic-android-how-to-get-real-apps-running-on-the-samsung-galaxy-gear/ Oct 28 00:26:58 Thanks MarkyC I am looking at that now Oct 28 01:38:37 how can i set a view's height depending on another view's height, when they're not in the same viewgroup? i want them to adapt once, and as soon as possible. the height depends on 1 view's drawable (which varies on dpi at runtime) Oct 28 01:43:15 osxorgate why not set the height as a constant for both and have the drawable adapt? Oct 28 01:44:25 g00s what do you mean by having the drawable adapt? Oct 28 01:44:43 scale, etc Oct 28 01:46:48 basically whats happening is that i have an icon for googlemaps, and i put this on a button. i have another button with android.R.drawable.sym_action_call Oct 28 01:46:58 which has.. unknown size Oct 28 01:47:05 or rather, i do not want to know that size Oct 28 01:47:19 but i do want those buttons to have the same height Oct 28 02:20:50 interesting, the guy at best buy said the only thing that gets more complaints than Windows 8 are the Chromebooks Oct 28 02:21:11 * g00s picked up a N7 Oct 28 02:21:56 did he say why ? Oct 28 02:22:21 no he didn't Oct 28 02:22:54 it was one of those "omg, don't get me started on those things" Oct 28 02:23:17 also said the n7 sells well with hardly any returns ;) Oct 28 02:23:49 i'm kinda worried they only have a 15 day return period tho; i better make sure this thing works in that time frame Oct 28 02:27:05 Like, I have a UITableViewCell subclass that gets its .cxx_destruct method called, and then further in the stacktrace it gets an exception for what I believe to be an exception in a different object's dealloc method Oct 28 02:27:27 otiose: try #iphonedev ? Oct 28 02:27:35 oh crap, wrong window sorry Oct 28 02:27:37 lol i thought i was in the wrong channel for a second Oct 28 02:27:40 hehe Oct 28 02:27:47 lol Oct 28 02:28:03 not that we dont also do that, the q is just too hard :) Oct 28 02:28:26 heh, i've been doing android for the past 2 weeks that i forgot where i was Oct 28 02:28:42 no kidding, i dont really know whats happening in memory here... Oct 28 02:28:48 i really wanna give ios dev a try... just for shits and giggles Oct 28 02:28:50 g00s i think it has a one year warranty Oct 28 02:28:57 and ive been enjoying mine :) Oct 28 02:29:16 canadiancow :) if you buy a device from Play, do you get a better return window ? Oct 28 02:29:29 or same deal, have to work with asus after 15 / 30 days Oct 28 02:29:51 no idea Oct 28 02:29:58 i didnt get mine from play Oct 28 02:29:58 you got yours from amazon right ? Oct 28 02:30:04 uhhh no... Oct 28 02:30:09 oh Oct 28 02:30:30 the last device i paid for was a galaxy nexus Oct 28 02:30:41 hi, if the device goes asleep a service with start_sticky will stop ? if yes, the user turning it on the screen the service will start again ? Oct 28 02:30:43 ah, right ;) Oct 28 02:30:45 oh wait maybe an original n7 Oct 28 02:31:23 canadiancow how has your usb port been? my friend has been having a problem with his Oct 28 02:31:29 if you're using a service and asking a question liek that, there's like a 95% chance you're doing it wrong Oct 28 02:31:41 s/it/application lifecycle/ Oct 28 02:32:08 chromebooks is awesome... to install linux or android on. lol Oct 28 02:32:33 bankai_ i like it quite a lot; the only thing that gives me pause about their ecosystem is the App review process, which seems like BS to me Oct 28 02:32:41 my usb port is fine Oct 28 02:33:00 i hope mine is fine too :) Oct 28 02:33:13 g00s: yeah ... the other thing that makes me uneasy is the app store is the 'only' store. it seems difficult to be a hobbiest coder Oct 28 02:33:39 i want a universal microusb desk dock. just a basic stand to hold up a device, and a usb port at the bottom Oct 28 02:33:51 none of these fitted docks that only work on one device Oct 28 02:34:01 that would be awesome Oct 28 02:34:08 I hate unique sockets Oct 28 02:35:08 only have 65535 to choose from ! Oct 28 02:37:02 bankai_ i'm porting one of my apps to iOS now, its interesting as a comparison when you take the same project and rewrite it. coming from c / c++, java frustrates me a lot in the embedded device space because many things, which are usually good practice, are also hard on the GC like immutable objects Oct 28 02:37:14 canadiancow: I am trying to understand about sleep mode and services, if the device goes to sleep mode the service stops ? Oct 28 02:37:16 i found it much easier to "be efficient" with obj-c, c , c++ in iOS land Oct 28 02:37:50 also more error prone if you don't know what you're doing though ;) Oct 28 02:38:03 do you know what you're doing? :P Oct 28 02:38:16 thats … a good question :D Oct 28 02:38:16 i don't have a mac else i'd get stuck into it Oct 28 02:38:29 which is another thing that pisses me off about it Oct 28 02:38:42 g00s: do you have allocate your own memory with malloc ? Oct 28 02:39:03 there's ARC in objc/ios Oct 28 02:39:17 g00s: I'd say that the immutable objects in general might be bad thing on embedded ;) Oct 28 02:39:31 altough it depends on the type of embedded Oct 28 02:40:38 so whenever i order food online, it always asks for a cross street. do delivery people really not have google maps or something? Oct 28 02:41:15 oh this is rich. select your tip when you order! Oct 28 02:41:22 i dont think they understand what a tip is for Oct 28 02:41:27 canadiancow, smartphone penetration isn't 100% against the minimum wage peoples Oct 28 02:42:02 and they dont have something at the pizza place that they can use to look up an address? Oct 28 02:42:29 canadiancow: I think that's a case of how broken tipping in USA is? :P Oct 28 02:42:40 p_l isn't it broken eveyrwhere? Oct 28 02:42:44 i dont really like the whole concept Oct 28 02:42:59 US is probably the only place where it's mandatory Oct 28 02:43:00 if you do a good job, your ocmpany should give you a bonus/raise/whatever Oct 28 02:43:04 canada too :P Oct 28 02:43:11 canadiancow soon they will want GPS coordinates to deliver by drone Oct 28 02:43:19 g00s yesplz Oct 28 02:43:22 canada is pretty much the same place *ducks* Oct 28 02:43:25 hahahah Oct 28 02:43:26 canadiancow, online access isn't ubiquitous either Oct 28 02:43:29 read about a little company in Australia, i think , thats doing that with text books Oct 28 02:43:51 tipping isn't mandatory... you'll just get really ugly looks Oct 28 02:43:56 it's customary Oct 28 02:44:11 pfn, i'm in san francisco. i'm pretty sure the pizza place has internet access Oct 28 02:44:35 g00s: what's the AU company doing ? Oct 28 02:44:39 canadiancow: in EU, a tip is an extra "thank you", not something that is essentially required because the tipped employees earn less than minimal wage Oct 28 02:44:59 i dont think pizza delivery people earn less than minimum wage Oct 28 02:45:22 canadiancow: but that's what forms the tipping culture in USA, I guess. Oct 28 02:45:26 if it's minimum wage, how can anyone earn 'less than' that ? that doesn't make sense to me Oct 28 02:45:32 bankai_ +1 Oct 28 02:45:39 bankai_ http://www.theverge.com/2013/10/15/4840706/zookal-will-deliver-textbooks-with-drones-in-australia Oct 28 02:45:57 in canada, there's a minimum wage, and a minimum wage for workers who serve alcohol, which is less than the standard minimum wage Oct 28 02:45:59 canadiancow, I wouldn't agree Oct 28 02:46:00 not sure about usa Oct 28 02:46:00 bankai_: because certain industries (read: restaurants etc.) got exemption from minimal wage Oct 28 02:46:10 weird ... Oct 28 02:46:13 canadiancow, minimum wage is minimum wage regardless of occupation Oct 28 02:46:23 bankai_: the idea is that they recoup it through tips ;) Oct 28 02:46:26 but there is a difference in federal vs. state vs. local minimum Oct 28 02:46:30 g00s: that's awesome!!! Oct 28 02:46:32 and it's successively bigger Oct 28 02:46:50 bankai_ don't try to hold on to the thing when it goes home :) Oct 28 02:47:18 g00s: nice, but what will happen if the gps gets f*** on the way... free book for someone ? :D Oct 28 02:47:35 another pet peeve that I'd hate if I haven't failed a certain job interview - ffs, who got the idea to not include sales tax on price labels? Oct 28 02:47:50 that's actually an interesting one Oct 28 02:47:58 g00s: a possibly criminal court for zookal Oct 28 02:48:26 i can think of many reasons Oct 28 02:48:31 well, several Oct 28 02:48:38 1. stores want to advertise the lowest price they can Oct 28 02:48:44 s/g00s/daivyk/ Oct 28 02:48:53 2. if i sell X across the country, i dont want it to be labelled a different price everywhere Oct 28 02:49:23 p_l: yeah.. Oct 28 02:49:35 canadiancow: I can understand the latter in case of places like amazon (that don't care about it anyway), but when you're physically in local shop, and the fscking price labels on shelves don't include sales tax? Oct 28 02:50:01 daivyk: Depending on how the drone reacted... maybe even 5y in prison? ;> Oct 28 02:51:27 * p_l doesn't want to be close when the inevitable happens with drone startups Oct 28 02:51:45 p_l: hehehe.. if the drone hits someone.. omg!! But the ideia is awesome. Oct 28 02:52:53 in europe and other places, the price include tax Oct 28 02:53:53 afaik EU regulations require you to state the full price (or both without and with tax) + price per unit (in case of things sold in several different size containers or bulk) Oct 28 02:54:16 p_l a drone fell out of the sky a week ago in NYC and almost hit somebody; police recovered it and memory card Oct 28 02:54:33 the video was online, the pilot didn't seem to know how to control it Oct 28 02:54:39 flew it into a high-rise building Oct 28 02:54:43 and it dropped from there Oct 28 02:54:53 daivyk: many of those startups are actually operating semi-illegally. I wouldn't like to see their reaction when they end up treated as aviation entity instead of a kid with RC plane Oct 28 02:55:10 g00s: it will be probably treated the same as "idiot kid/parent with RC plane" Oct 28 02:55:38 ... that won't, ahem, fly with commercial entity Oct 28 02:55:41 p_l never underestimate the influence of special interest groups in the US to get things done against what is right / sane Oct 28 02:56:03 now that all the iraq work is done, those drone manufacturers want to sell things for domestic use Oct 28 02:56:05 g00s: I think FAA might have a bit more bite than some people think Oct 28 02:56:15 i can only hope Oct 28 02:56:20 but .. yeah Oct 28 02:56:39 g00s: the manufacturers that sell to military know a bit better about what they are doing and pretty much stay out of those issues, afiak Oct 28 02:56:42 *afaik Oct 28 02:57:00 http://www.theatlanticwire.com/national/2013/10/drone-fell-out-sky-over-midtown-manhattan/70125/ Oct 28 02:57:06 same for prospective civilian clients (mostly companies already involved with aviation in some form, usually) Oct 28 02:57:09 i have to go, night! Oct 28 02:57:49 g00s: otoh, you have silicon valley yuppies with their ridiculously unsafe quadrotors Oct 28 02:58:13 and then the rednecks that have drone hunting licenses Oct 28 02:58:25 was it Indiana ? Oct 28 02:58:43 this place is crazy man, maybe i can get on that trip to Mars Oct 28 02:58:55 on .. way Oct 28 02:59:00 and there'll be some script kiddie tool to intercept and hijack it Oct 28 02:59:39 g00s: if it's classified as RC plane, they can shoot it and at most get in trouble for destruction of property. If it's classified as normal plane, they are SOL Oct 28 02:59:45 oh, the drone hunting license is in Colorado **** ENDING LOGGING AT Mon Oct 28 02:59:58 2013