**** BEGIN LOGGING AT Tue May 20 02:59:59 2014 May 20 03:54:31 could somebody please point me at a good example for layerdrawable May 20 04:03:59 i need help, im trying to extend SimpleAdapter so when a list item is selected the background is changed to blue, exactly like setting android:background to "?android:attr/activatedBackgroundIndicator" in the item layout. but because of what view recycling its all messed up!! May 20 04:04:12 does anybody have some pointers? May 20 05:07:40 What cross platform cloud sync options do I have for syncing app settings, custom data for users of my iOS and Android app? So far I've found, Google Cloud Save and Google Drive SDK, any other options? May 20 05:18:44 Does an iOS user of my app need a Google account to use Google Cloud Save? May 20 05:25:24 I know this questions has probably been asked before but, is there a way to maintain a global tab bar that sits ontop of all activities or do you have to create an activity nav bar and make all view fragments? May 20 05:50:05 i'm trying to write a method which pushes some data into a FIFO buffer (or a stack -- order isn't really relevant), and then have another method which drains the buffer in the background either when something is present in the buffer or when the first method signals it to May 20 05:50:09 how would i go about doing this? May 20 05:50:54 what have you tried? May 20 05:52:19 havent tried anything May 20 05:52:24 i'm just wondering what my options are May 20 05:52:34 i dont know much about java or android May 20 05:52:36 trying to learn May 20 05:53:00 fifo, but order isn't relevant? May 20 05:53:23 as in, i dont care if its a stack or fifo May 20 05:53:29 i am pushing in a list of data May 20 05:53:38 and i want the other method to pull it out May 20 05:53:44 as long as it gets all the data out May 20 05:53:57 the order of retrieval isn't necessarily relevant May 20 05:54:18 (or it might be, not sure yet) May 20 05:54:26 then push it in&drain it May 20 05:54:50 yes, how would i set it up to do that May 20 05:54:51 that may be what she said May 20 05:54:57 You have quite the road in front of you May 20 05:55:04 canvs, i do May 20 05:55:08 i am quite proficient at C May 20 05:55:21 but Java and Android seem like an alien and hostile world May 20 05:55:29 that doesn't mean anything :/ May 20 05:55:39 sooooo high level May 20 05:55:49 very scary that i have no idea what the machine is actually doing May 20 05:55:52 you have to learn coding for android May 20 05:56:33 yes, which is why i'm here May 20 05:56:39 i'm hoping you could educate me May 20 05:56:44 on how to set something like that up May 20 05:57:10 What you gonna do if i throw an onDestroy() @you? May 20 05:57:38 well, the polite thing to do would be to leave May 20 05:57:41 but i'm not polite May 20 05:57:52 so I'd probably ignore it May 20 05:57:59 you have to learn how to setup the setup of the setup to setup the setup that sets up sets May 20 05:58:08 check out the docs May 20 05:58:23 and find what you need as you go from a skeleton app May 20 05:58:24 canvs, are you going to actually say anything helpful or just give me a hard time? May 20 05:58:26 is there anybpdy awake who could help me adapters? May 20 05:59:52 JustMe2: Do you know how to get a basic hello world app going? if so you need to start reading about android apis that deal with getting you where you wanna be. There is no 1 answer to give you. you have alot of bridges to build May 20 06:00:05 yes, i have a basic hello world app going May 20 06:00:09 in fact more than that May 20 06:00:42 you are gonna have to start pasting code, and questions with what you've tried and why it isn't working May 20 06:01:33 canvs2321, if you'd like to help, perhaps you could write me a code snippet that does what i'm asking about May 20 06:01:42 otherwise i will go May 20 06:03:54 that does what you are asking? push data from some mysterious source, put it into a FIFO buffer, or a order irrelevant stack, then have a method drain this through a hose, or only if i find something shiny, then do something that makes snakes fly? i'm just saying you are to vague, with no real question May 20 06:05:29 i agree my question was a little vague, because i dont know how to do it May 20 06:05:45 the exact details of what i'm doing really aren't relevant to the question May 20 06:05:46 okay lets take all try and stay hiv positive May 20 06:05:58 you have to have a source of data, a reason to parse it, and a place to display it? May 20 06:06:11 lets say i have an array of integers May 20 06:06:33 and i want to push integers into the array May 20 06:06:51 and then either signal the other method that there is stuff in there for it to empty or for it to automatically detect it May 20 06:07:10 i will let you decide how best to push data in or pop data out May 20 06:07:12 (or FIFO it) May 20 06:07:17 if you prefer a circular buffer May 20 06:07:50 i think i'd prefer a FIFO actually May 20 06:08:04 then you just need an array of integers, a thread monitoring it, then do what you want May 20 06:08:24 sure, and i'm asking how would i implement that May 20 06:09:14 Create your array. Create your monitor. Add to array. Monitor notices change. Do what you want May 20 06:09:30 How do you "create your monitor" May 20 06:10:02 you have alot of learning to do first. My level of abstraction stays with yours May 20 06:10:52 canvs, could you please answer my question... if i am talking in abstract terms then i already have all the answers, my problem is i dont have the specifics which is why i am asking May 20 06:20:18 ok, so you use the AsyncTask, I guess that was really tough for you to answer May 20 06:39:06 hey JustMe2, sorry canvs2321 was so unhelpful, but yeah, for multithreading stuff you can either use AsyncTask in Android, or you might want to have a look at the Handler class May 20 06:39:27 or Java stuff like Threads and Executors May 20 06:39:44 yeah, that might work as well :) May 20 06:40:49 you could have one thread that checks the stack/queue for data, and then sleeps when it's empty. then, when another thread adds something to the stack/queue, it wakes up the first thread May 20 06:41:02 I seem to remember doing something like that in the past... May 20 06:58:41 Does Google Maps on iOS utilize Google Drive SDK? May 20 07:03:28 google maps on ios? May 20 07:03:42 there is chrome for ios, google earth … May 20 07:11:50 how can I get drawable id from imageview ? want to test if the right value is set May 20 07:16:07 ok i cannot May 20 07:16:24 anyone mind helping me with session management/logging into an https server with php backend? May 20 07:16:39 I seem to remember reading somewhere in the Android design guidelines to avoid using splash screens, but I can't seem to find where I read it. Does anyone happen to know? May 20 07:16:41 feeling a little lost May 20 07:17:32 barbs: http://developer.android.com/design/patterns/help.html May 20 07:18:25 hmmm...I saw that before, and thought that might've been it, but I thought I read something a bit more direct. Thanks though May 20 07:32:56 squ: Yes, Google Maps May 20 07:42:38 is there a way to see exceptions while the application i developed is running on my phone ? May 20 07:42:54 ufk_: lolcat May 20 07:43:52 i check for this on play store and i just find lol-cats :) May 20 07:44:26 aka logcat May 20 07:44:57 ok i found catlog :) May 20 07:50:00 ufk_: that used to be the way to go, but I'm not sure it'll work properly if you're using android 4.0 and up. You might want to consider bundling a library like AndroLog or something May 20 07:58:39 huh May 20 08:13:16 ahh ok thanks May 20 08:24:21 quit May 20 08:46:55 hello May 20 08:47:02 im trying to record a video using MediaRecorder May 20 08:47:18 CamcorderProfile picks up that QUALITY_480P is available May 20 08:47:26 so i set that as my profile May 20 08:47:39 as soon as i try record, mediaserver crashes and dies May 20 08:47:52 QUALITY_720P works fine May 20 08:47:58 same with *_HIGH and *_LOW May 20 08:48:30 lemonxah: bump May 20 08:49:15 i have not yet recorded video kevel only audio May 20 08:49:18 sorry May 20 08:50:04 =( May 20 08:51:00 surely there is somewhere here that has :/ May 20 08:56:53 Kevel, yeah, that happens :) May 20 08:57:03 Mavrik: please tell me more May 20 08:57:03 what's your question? :) May 20 08:57:13 Does the app need to request access to user's account when using Google Cloud Save ? May 20 08:57:21 Mavrik: trying to set QUALITY_480p on a camcorder May 20 08:57:43 Mavrik: i need to take a decent quality video, that is about ~10mb a minute May 20 08:58:00 Mavrik: struggling to apply the correct config May 20 08:58:28 Mavrik: only res that works is 720P or like, some super slow sub VGA config May 20 08:58:32 Kevel, there's nothing much you can really do May 20 08:58:37 on some devices it'll just crash May 20 08:58:44 I found that QUALITY_HIGH is the only one reliable May 20 08:58:59 Mavrik: yes that works but like May 20 08:59:00 ish. May 20 08:59:15 video becomes like 20mb for 12 seconds May 20 08:59:25 thats completely retarded May 20 08:59:27 and unacceptable :( May 20 09:00:43 yeah, because you'll get fullHD recording on some devices May 20 09:00:49 those video encoders on devices aren't very good May 20 09:01:05 ye May 20 09:01:18 ive looked into writting a small ffmpeg wrapper May 20 09:01:21 but that would take a bit of time May 20 09:01:30 setting up the ndk and all that May 20 09:01:35 Hi. A Service is trying to access a sharedpreference value, which was stored by an Activity. But after the Activity is destroyed I can't access the value? May 20 09:01:52 byt89: if it was saved, you can access it... May 20 09:02:07 Kevel, that's what I had to use the last time May 20 09:02:15 Kevel, ffmpeg transcode does take some time tho May 20 09:02:30 just compiled ffmpeg for arm and ran it from /data May 20 09:04:42 Mavrik: just tested QUALITY_480P May 20 09:04:48 LG G2 works perfectly May 20 09:04:53 samgsung literally shits its pants. May 20 09:04:59 and crashes May 20 09:05:11 yes. May 20 09:05:15 welcome to world of Android recording. May 20 09:05:19 also May 20 09:05:26 don't record video with different preview resoultion May 20 09:05:31 doesn't work on alot of devices. May 20 09:05:52 well May 20 09:06:13 im using https://github.com/commonsguy/cwac-camera/blob/master/ May 20 09:06:32 720p has a different preview size but works fine May 20 09:06:42 its just this 420p thats shitting bricks May 20 09:06:43 on which device? ;) May 20 09:06:51 because it'll record garbage on S4 :D May 20 09:06:55 and some other devices May 20 09:06:58 including m7 May 20 09:07:13 ive tested on the S3mini and LG G2 so far May 20 09:07:27 it even has 420p in the supported Camprofiles May 20 09:07:49 can i can record that also in the camera application on the device May 20 09:07:55 so i have no idea why its behaving like it is May 20 09:08:24 is it possible to setMax() on ProgressDialog after call show() ? May 20 09:08:27 Kevel: you probably have to reverse engineer the samsung camera app May 20 09:08:47 Kevel, look May 20 09:08:48 as I said May 20 09:08:59 only reliable thing you get is to set preview to recorded video size and try 720p May 20 09:09:03 S3 works fine May 20 09:09:08 then fallback to QUALITY_HIGH if you don't have 720p available May 20 09:09:13 but if you want May 20 09:09:17 you can of course learn all those lessons yourself May 20 09:09:20 by 1-star reviews :D May 20 09:09:33 Mavrik: i want to target 480P May 20 09:09:40 i can check if it exists and then use it May 20 09:09:43 else use quality high May 20 09:09:49 but the problem im facing is that it DOES exist May 20 09:09:55 it IS allowed May 20 09:10:12 the camera is literally telling me "come bro, use 480P, im ready" May 20 09:10:13 again. May 20 09:10:18 you can learn those lessons yourself. May 20 09:10:19 :D May 20 09:10:23 or you can save time and give up on that May 20 09:10:24 ČD May 20 09:10:55 Mavrik: setting it to quality high is defeating the whole purpose of me implementing the recorder myself May 20 09:11:09 else i could use the camera app with intent May 20 09:14:52 Morning May 20 09:14:54 How to import ActionBar from a layout? May 20 09:21:30 Mavrik: 480P works for front facing and not back facing :/ May 20 09:33:21 What is the convention prefixing class variables with m about? May 20 09:33:34 Like private final Handler mHandler = ... ? May 20 09:46:27 m = module? May 20 09:47:52 anyone got a suggestion on how i connect an android device that doesn't come with any drivers to adb? May 20 09:47:55 http://www.ute.com/products_info.php?pc1=1&pc2=3&rbu=0&pid=1226 <-- this one May 20 09:49:12 Which OS are you on? May 20 09:49:14 wait May 20 09:49:21 windows 7 May 20 09:49:36 ok, my network is a bit spotty May 20 09:50:14 http://developer.android.com/tools/help/adb.html#wireless May 20 09:50:22 oh wait May 20 09:51:45 you may want to connect it to a linux vm, and then set adb into wireless mode May 20 09:53:16 it does show up in windows as a disk drive, shouldn't the debugger then be able to connect? May 20 09:53:24 well, you need the adb composite device May 20 09:53:29 the disk drive is just mtp iirc May 20 10:23:38 Hi all, currently I have a ViewPager to swipe between Fragments. Now, one of my fragments contains a map. I think I should change the Viewpager swipe to the tabs on Play Store app. So I need to have swipable tabs + disable swipe between Fragments, what do I need to make this work? May 20 10:23:49 and is it possible to have icon + text on the tabs on top? May 20 10:24:53 FrancescoV: Implement tabs in the actionbar, a tablistener that performs the viewpager switch on click and disable swiping for viewpager May 20 10:26:13 danijoo: does your solution looks like this? http://i.stack.imgur.com/KsQBF.jpg May 20 10:26:37 I'm in a sort of predicament. There's this activity that implements an adapter to show several rows of things, each row has a button, and on press of that button, a thread is initiated. The implementation of what happens when the button is pressed is inside the adapter May 20 10:26:59 if I press that button and then go back, the thread is still running May 20 10:27:24 is it even correct that I am forced to have the implementation of that button be inside the adapter? May 20 10:27:36 FrancescoV: yes May 20 10:27:56 exactly thats what it looks like May 20 10:29:07 see this tutorial http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ May 20 10:29:23 hmm May 20 10:29:23 danijoo: I'm looking at this too: https://github.com/astuetz/PagerSlidingTabStrip does both solution have the possibility to add icons? May 20 10:29:27 hmm May 20 10:29:33 oopsy May 20 10:29:35 better May 20 10:30:42 FrancescoV: yes you can set icons on tabs May 20 10:31:00 im just not sure how. there should be some method like setIndicator(Drawable) or something like that May 20 10:32:08 If you want further customization, you should try jakeWarthons viewpagerindicator library May 20 10:32:31 I'm going to make a static method inside the adapter that interrupts that thread, and call it from the parent activity's onPause May 20 10:34:36 well that didn't stop the thread.. May 20 10:34:37 lol May 20 10:36:02 cause stop() is deprecated and is not even allowed May 20 10:36:17 should be interrupt().. May 20 10:37:28 danijoo: thanks for your help, will check it out May 20 10:39:08 you are welcome May 20 10:42:49 many answers here http://stackoverflow.com/questions/8505707/android-best-and-safe-way-to-stop-thread May 20 10:45:18 aaaaand none work. May 20 10:46:46 hi May 20 10:52:22 ah mHandler stands for messageHandler, probably because it is in the context of a looper May 20 10:52:30 Sicp what about extending runnable and implement some kind of variable (boolean isInterrupted), then in your actual task implement several checks like if(isInterrupted) return;) May 20 10:53:19 not the best way but should work May 20 10:57:30 it didnt May 20 10:57:44 I had if (!Thread.isInterrupted) at every while() May 20 10:57:55 and sent the interrupt from the activity's onPause May 20 10:58:39 at one point, while is going to see that thread is not yet interrupted, goes into the while, interrupted becomes true, while is not done yet, exception May 20 11:00:08 maybe something's wrong with the rest of your code. Post it somewhere and show us May 20 11:00:37 I can't do that May 20 11:00:45 I'll keep looking May 20 11:00:47 mh okay May 20 11:03:32 I don't understand what the difference between thread = new Thread(new Runnable() and thread = new Thread{} May 20 11:03:36 the fuck's a Runnable May 20 11:03:46 so much ignorance, so much pain..... May 20 11:03:48 haha May 20 11:06:55 Easy said: A Runnable is something that can be run in a thread. May 20 11:07:49 primary purpose is not to freeze my UI May 20 11:07:50 so if you implement runnable in a class, it gets the run() method that is called by the thread when starting May 20 11:07:58 if this can be done with new Thread{}, don't want a runnable May 20 11:08:08 and if you extend a class with Thread, you can run it as a thread itself, because thread already implements runnable May 20 11:08:09 there's a run method to the thread as well, without runnable May 20 11:08:13 public void run May 20 11:08:17 yea May 20 11:08:57 in theory, everywhere were you put new Thread(new Runnable()), you could also create a class that exrtends thread and instantiate that one May 20 11:09:29 but in much cases you dont need that because all you want to do is run some code in a new thread and therefore make an anonymous runnable class May 20 11:10:03 I just removed the new Runnable, and the behavior is exactly the same May 20 11:10:16 same unresponsiveness to interrupt, same unresponsiveness to nulling of the thread variable May 20 11:10:23 that thing just keeps charging May 20 11:10:30 let me implement the checks again May 20 11:10:43 ^^ hard to help without code :/ May 20 11:10:51 dude it's huge audio code May 20 11:10:57 you're not going to understand it May 20 11:11:05 and there is no purpose to understand it even.. May 20 11:11:16 you could simplyfy it and post an abbreviation of it. May 20 11:11:18 what's important that there are many do whiles inside and that's where Im placing the checks May 20 11:11:38 let me see what I can do May 20 11:12:48 I would much rather get an answer to the thing that is causing me this pain May 20 11:13:04 namely, defining this huge code inside my baseAdapter May 20 11:13:26 cause the activity is showing several rows, and on the press of a button inside each row, the above code executes, in a thread May 20 11:13:38 it doesn't smell right..inside the baseAdapter to do this May 20 11:14:17 I'd much rather have it be implemented inside the activity itself, on the list's listener or something May 20 11:14:49 so I won't have to reach out to StringsAdapter.stopThread() from Activity's onPause() May 20 11:14:59 yeah maybe it would be easier in the activity with a callback. May 20 11:15:37 http://pastebin.com/vTLU7rpJ May 20 11:15:52 can anyone tell me why the wait gets interrupted on the touch event? May 20 11:16:32 day of Threads it seems May 20 11:16:33 lol May 20 11:16:51 alowaniak: what do you want to archieve here? May 20 11:17:15 there is no need to synchronize, and if you dont want the thread to get interruped on touch, remove the touch event May 20 11:17:49 well I dont necessarily want to achieve anything, it's some code someone else gave me May 20 11:18:03 then your code is perfect May 20 11:18:15 proceed May 20 11:18:30 and yea I figured theres no need to synchronize, I just dont get why the wait gets interrupted? May 20 11:18:33 and what shall it do? only wait some time and start the next activity May 20 11:18:57 wouldnt it get locked on the synchronize block? May 20 11:19:02 it gets interruped because on touch, you call notifyAll() May 20 11:19:12 yea but it's in a synchronize block... May 20 11:19:22 and? May 20 11:19:33 it should get locked there right? both the synchronize blocks are on the thread May 20 11:19:40 no May 20 11:19:56 synchronize only sais that the method is threadsave and cant be called from 2 threads at the same time May 20 11:20:12 much better May 20 11:20:17 that has nothing to do with locks May 20 11:20:25 it listens to interrupt May 20 11:20:48 s May 20 11:20:52 it is more like: if you would touch it twice at the same time, the touches would be executed one after one (synchronized) and not at the same time May 20 11:20:58 What would cause data to be null in onActivityResult? May 20 11:21:14 huh... I always thought putting something in a synchronize block causes it to only be callable from one thread at a time? May 20 11:21:28 how else do you create dead-locks with synchronized blocks... May 20 11:21:40 alowaniak, well, the block has to be synchronized to the same object instance ;) May 20 11:22:02 yea and they are Mavrik synchronized(this) and synchronized(mSplashThread) May 20 11:22:18 and mSplashThread is the same object as the this inside the Thread right? May 20 11:22:23 Tobbi: no data set? :) May 20 11:22:59 Hi im getting error while trying to compile curl for android can someone help me with this facing issues with url.c looks like some cpp compiling with c or vice versa May 20 11:23:00 danijoo: I am calling current.putExtra("contents", contents); before finish(); so it ought to be set. May 20 11:23:19 alowaniak, is it? May 20 11:23:20 :) May 20 11:23:21 Tobbi: post the code please May 20 11:23:45 alowaniak, I don't know how your code looks like but you can easily mess up synchronization by not having blocks synchronized to the same object instance May 20 11:23:56 Uhm, it"s kinda long, but Ill try to find the relevant parts. May 20 11:24:03 http://pastebin.com/vTLU7rpJ Mavrik May 20 11:24:19 Hello everybody / Bonjour tout le monde May 20 11:24:31 I don't find how use ZXING Library May 20 11:24:47 Do you have some tutorials ? May 20 11:25:06 Isnt there an example on zxings site? May 20 11:26:53 danijoo: Hope this helps? http://pastebin.com/ekqmrQRU May 20 11:27:30 last time I looked, zxing were pretty keen on people Intenting to their app to scan, rather than embedding May 20 11:28:26 alowaniak: May 20 11:28:36 http://www.mysamplecode.com/2011/09/android-barcode-scanner-using-zxing.html IvelfanFr May 20 11:29:27 alowaniak: So I juste need to install ZXing application ? May 20 11:29:36 And use the Intent May 20 11:29:38 ? May 20 11:29:48 ok yea so definitely has to do with where the checks are implemented, so it has to do with the code May 20 11:29:51 yea pretty much May 20 11:30:21 cause interrupt is being sent and its responding, but then it goes on again and then another exception on something else that needs yet another check May 20 11:30:39 and some other words that I'm going to type here for the sake of typing May 20 11:32:16 hi @all ... i try to change the wallpaper of my lockscreen on my new android 4.2.2 smartphone, but i don't have a "lookscreen" option in the settings, and i cant choose "loockscreen" on an picture with any gallery app ... so, what i can do to change it? May 20 11:32:39 hello guys May 20 11:32:56 this is not the channel for such a question, ThePuppetMaster May 20 11:33:00 try #android May 20 11:33:09 so .. list view items like a chat screen with chats and then you make them autolinks in a textfield inside that May 20 11:33:29 then the list item is no longer clickable nor does multiselect or long press work May 20 11:33:35 only the url click works May 20 11:33:38 :/ May 20 11:33:47 has anyone encountered this problem before? May 20 11:34:10 seems like one overrode the other May 20 11:35:24 yes linkify / autolink=all overrides all other click actions May 20 11:35:56 then there you go May 20 11:36:10 that auto link = all is really messy May 20 11:36:28 encountered it not long ago May 20 11:37:38 not just autolink May 20 11:37:47 aboutTV.setMovementMethod(LinkMovementMethod.getInstance()); May 20 11:37:58 clickable spans in the textview inside a layout inside a listview May 20 11:38:08 yes the linkmovement messes it up May 20 11:38:24 i know what is messing it up what i want is a best of both worlds May 20 11:38:24 This is a link Facebook. May 20 11:38:31 and then assign that string to the text value of the textview May 20 11:38:35 with no auto link involved May 20 11:38:36 it works May 20 11:38:55 cant do that cause this is a chat message not hardcoded May 20 11:39:46 lemonxah: you could write your own custom parser/link converter May 20 11:39:48 how many actions does one row have? May 20 11:39:58 long click, normal click and link click? May 20 11:40:11 shmooz, i have a custom parser to parse other stuff in my chat message like emoji and emoticons and the likes May 20 11:40:23 Im out May 20 11:40:24 don't know May 20 11:40:42 if it parses links and makes them clickable links, isn't that what you want ? May 20 11:40:59 but to make a url span in spannablestringbuilder clickable the textview has to have a linkmovement May 20 11:41:10 Can any one help me with libcurl for android May 20 11:41:35 and putting a span into a textview with linkmovement enabled overrides all other click / long press behavior of that item in the listview May 20 11:42:33 lemonxah: maybe you need some other surface instead of textview May 20 11:44:18 shmooz, like? this view needs to be in a layout that is in a listview and contain chat messages May 20 11:48:49 is there no "Theme.AppCompat.Light.NoActionBar" ? May 20 11:49:32 Hi.. May 20 11:50:28 May I know, is there anyone to help? May 20 11:50:55 As I'm new and wondering how freenode.net works? May 20 11:51:26 Hi, just ask and whoever is (a.) around (b.) willing to help (c.) can help, will answer ;-) May 20 11:52:14 Thanks PrathickBic May 20 11:52:17 freenode.net is an IRC server May 20 11:52:24 what do you mean how it works? May 20 11:52:46 it relays chat to all connected and subscribed clients May 20 11:54:19 Actually, i want to develop an application, which has to receive the audio signal from audio jack and send across to the server in streaming mode.. May 20 11:54:24 it works like a charm until it splits May 20 11:54:24 ok yea so definitely has to do with where the checks are implemented, so it has to do with the code May 20 11:54:30 was that directed at me Sicp ? May 20 11:54:36 May I know the best practice to workout? May 20 11:54:39 no it was about something I was facing May 20 11:55:04 ah May 20 11:55:47 so Mavrik you saw what the code looks like? May 20 11:56:23 Actually, i want to develop an application, which has to receive the audio signal from audio jack and send across to the server in streaming mode.. May 20 11:56:29 May I know the best practice to workout? May 20 11:56:36 can any one help me? May 20 11:56:50 have no one any idea for me? May 20 11:56:57 Mohanraj: don't worry soon you'll be swearing at android just like whats his face May 20 11:57:47 I told you ThePuppetMaster, this is not the channel to ask your question May 20 11:57:50 go to #android May 20 11:58:04 this is for development May 20 11:58:07 well .. on the regular chan, no one cant answer on this May 20 11:58:10 so i try it here May 20 11:58:17 no one will answer here May 20 11:58:20 dev: i know ;) May 20 11:58:28 I can guarantee that May 20 11:59:16 until someone actually answers his question May 20 11:59:36 yes, no one will answer your question until someone actually answers your question May 20 12:00:12 lol May 20 12:01:05 well .. it looks like, no one can answer on this question ... not the internet, not the #android, and not the #android-dev ... so, its looks like an unsolvable BUG May 20 12:01:50 ThePuppetMaster: your answer is, you hold the volume down key and the power button at the same time May 20 12:02:19 ^^ don't May 20 12:02:21 haha May 20 12:02:34 If I need one my activities to have no actionbar, while other two activities to have ActionBarCompat, how can I do it in the manifest? Seems like there is no Fullscreen theme(?) for actionBarCompat? May 20 12:02:37 shmooz, ;) .. but, will not solve my problem May 20 12:02:46 https://www.youtube.com/watch?v=ev9JhOrZNCE May 20 12:02:52 at least the title is exactly what you want May 20 12:03:50 shouldn't be answering that May 20 12:03:55 it encourages silly questions May 20 12:04:01 rageeeeee May 20 12:04:05 delete dota May 20 12:04:10 @ PatrickBic yeah, this YT i have found to, but, sry for my repead, i DONT have a lockscreen option in the settings!!! May 20 12:04:19 we don't care!!!!!! May 20 12:04:31 an no option to choose "lookscreen" in any picture gal-app May 20 12:05:17 there are plenty of lockscreen apps, try one of those. and yes Sicp is right, this is a dev channel. May 20 12:05:21 ThePuppetMaster: you swipe right when your phone is locked if there's a + sign you can add stuff May 20 12:05:33 WantToCode, Theme.Black.NoTitle May 20 12:05:55 something along those lines, I just read something like it yesterday May 20 12:06:29 I have a ListView where the items contain a Button. The button should be aligned to the right of the screen. Which works with when used RelativeLayout. But the button should also fill the item, which it doesn't work. Using a LinearLayout solves this problem. But now the Button is on the left side and moving it to the right side doesn't align it to the right. May 20 12:07:22 @Sicp Then it gives error, something along the line of "the theme should be from AppCompat.." Let me try it again May 20 12:13:44 shmooz, yeah, i can add somting, but how this can help me? May 20 12:14:01 byt89: what do you mean moving ? use gravity and layout_gravity May 20 12:19:01 shmooz: Sry forgot to mention that on the left side of the button is a relativelayout with textviews. Moving to the right of the RL doesn't work with LL. I tried gravity and layout_gravity. No change. The Button is still to the left of the other RL. May 20 12:24:45 i wish to use custom views for the rows in my SearchView in the actionbar. How can i achieve this? May 20 12:24:57 well .... thx??? May 20 12:34:00 Hi, how can i make android:calendarViewShown="false" backward compatibility please help May 20 12:35:28 so .setMovementMethod(LinkMovementMethod.getInstance()) how to have that on a textview inside a listview and still have the listview's onclick work? May 20 12:38:46 danijoo, you still up for that code? May 20 12:39:10 I cannot seem to figure out a structured way for checking isInterrupted(). I keep escaping exception in one area and then get caught in another area May 20 12:39:25 there's no one check that can avoid all accidents, it's like I have to check at each line! May 20 12:39:35 i have a ListView with filter, but, when i filter and click in my ListView, it get the position from initial ListView, how i can solve this? May 20 12:39:52 halp May 20 12:41:24 look at the state of the code right now, it's horrendous http://pastie.org/9192611 May 20 12:41:30 checks everywhere, redundant checks everywhere! May 20 12:43:11 Hi I want to remove the calender view from the datepicker but still want to have backward compatibility to API level 8, how would i do it please help, i tried adroid:calendarViewShown="false" but it just only till API level 11 May 20 12:45:14 any? May 20 12:52:10 meadhikari: tried any library? https://github.com/derekbrameyer/android-betterpickers May 20 12:52:58 meadhikari: or this https://github.com/flavienlaurent/datetimepicker May 20 12:54:00 WantToCode, thanks for the link will look into it, are you suggesting that it is not possible without library? May 20 12:54:04 i have a ListView with filter, but, when i filter and click in my ListView, it get the position from initial ListView, how i can solve this? May 20 12:55:15 meadhikari: I dont know. I have never tried calendarView, just remembered these two libraries. Good Luck :) May 20 12:55:44 thanks will see those May 20 13:05:35 hi May 20 13:08:48 Hey. I got a basic bluetooth question: When I am calling connect() on a bluetooth device, but want to cancel the connection request, how would I do that? It seems like connect will not cancel... May 20 13:18:47 you could probably try calling "close" but really bluetooth is kind of a shitshow :( May 20 13:20:29 lov: I know. :) I am calling close already but it seems like I am not able to cancel this prematurely. May 20 13:20:56 is there a way to get our process name from a method? May 20 13:21:01 yeah, you might just be stuck. Consider doing this on a thread that checks for cancellation and can be discarded, etc. May 20 13:21:45 lov: It is on a thread, but still, I cannot cancel this... :D May 20 13:21:49 It might be by design. May 20 13:22:27 Right, what I'm saying is that you may need to architect your app such that "cancelling" just discards the thread. The thread's runnable should check to see whether it's been cancelled after trying to call connect, etc. May 20 13:28:07 facing same problem here May 20 13:28:32 sending interrupt() and instead check constantly check isInterrupted() May 20 13:39:27 Does there need to be anything in the code for the xml layout to be used, or is it included automatically at compile time? May 20 13:39:34 i have a ListView with filter, but, when i filter and click in my ListView, it get the position from initial ListView, how i can solve this? May 20 13:40:58 too primitive of a question, jamesson. read docs first May 20 13:42:37 Hey guys, If I am to use XmlPullParser to read a XML tag called "" <- is this what I reference as tagname string withinthe : parser.require(XmlPullParser.START_TAG, nameSpaces, "tagname string"); ? May 20 13:42:58 as the third parameter? May 20 13:43:07 even though the name includes a colon? May 20 13:48:28 has there been any posts about actual watch face design for android wear? May 20 13:58:57 Is there a library for "Speed Dial" like gridlayout view, the one like Dolphin Browser uses? Boxes of imageButtons and a plus sign to add more buttons. May 20 14:27:39 Hey all. Does Android have any multi-sim support whatsoever? May 20 14:34:41 Lachezar: I haven't the faintest idea. Have you done a search for "Android multi-sim" yet? May 20 14:35:09 it does actually May 20 14:38:11 sure it does May 20 14:38:15 there's that phone that came out May 20 14:38:20 S something May 20 14:38:23 dual sim May 20 14:38:27 and Samsung May 20 14:38:44 * Lachezar is asking for the AOSP android, without quirks. May 20 14:39:23 well, it's undocumented iirc May 20 14:39:39 Simon will know May 20 14:39:43 no one else..... May 20 14:39:53 #android-dev bus factor is 1. May 20 14:42:15 Lachezar, the APIs are private May 20 14:42:40 he's not asking about APIs May 20 14:43:07 what is he doing on #android-dev then :P May 20 14:43:54 everybody asks about AOSP here May 20 14:44:02 not getting a quick enough answer on #android May 20 14:46:53 hi May 20 14:46:56 i have this: http://pastebin.com/yqHSfq1U May 20 14:48:00 yes, running "ack SIM1" over android source was a mistake May 20 14:48:08 how i can put the @+id/pessoa_txt_local in left and @+id/pessoa_txt_data_des to right? May 20 14:49:28 t0th_ aligned to the very left and right edge? it shoudl already be oriented left and right because of how you layed out the linear layout right? May 20 14:49:31 hi May 20 14:50:29 how can i record the audio stream from an external device connected via 3.5mm audio jack May 20 14:50:31 ? May 20 14:51:42 Mohanraj: http://developer.android.com/guide/topics/media/audio-capture.html ? May 20 14:52:44 hmm, yeah, no official dual-SIM support in AOSP May 20 14:53:23 @ will this work if we connect the android device with the audio out from pc or laptop? May 20 14:54:09 is there a site where i can get official android icons? need the "settings" icon May 20 14:54:16 Mohanraj: if connected correctly it should. If I'm not terribly mistaken when a 3.5mm connector is connected to the device it is hardwired to replace the MIC. May 20 14:54:53 Mohanraj, you just need a proper connector, but yeah, it'll work May 20 14:54:56 Gaz`: Actionbar or App Icons? May 20 14:55:22 mattblang: can help me? May 20 14:55:24 Mohanraj: also: MIC is MONO, out is STEREO. You'll probably need something to mux/mix them. May 20 14:55:26 app May 20 14:55:44 Probably in the official sources. May 20 14:55:46 t0th_ are they not oriented left and right already? May 20 14:56:32 no May 20 14:56:50 they are together... May 20 14:57:06 in left May 20 14:57:15 t0th_ oh, don't give them both fill_parent width May 20 14:57:39 t0th_ I usually give 0dp width and use layout_weight May 20 14:59:00 first textView android:layout_width="0dp" May 20 14:59:20 gravity left, layout_weight =1 ? May 20 14:59:47 t0th_ yeah, try that May 20 15:00:44 not working.. May 20 15:01:09 now i have this: http://pastebin.com/AfUjZUMa May 20 15:01:13 Hi : what is the best practice to send those audio signals to the remote server in realtime? May 20 15:01:21 t0th_ do it for both May 20 15:01:34 0dp and weitgh, testing... May 20 15:02:44 same... together.. now i have this: http://pastebin.com/kajFwrDz May 20 15:03:33 t0th_ gotta make your width of the linear layout something other than wrap_content May 20 15:03:42 working... May 20 15:03:57 LinearLayout with fill_parent May 20 15:04:11 thanks man May 20 15:04:14 np! May 20 15:04:41 Hi.. may i know what is the best practice to send the audiostream to the remote server in realtime? May 20 15:05:05 how can i change the textcolor of the searchview in the actionbar? May 20 15:05:52 Mohanraj: have you considered searching for a solution using a search engine, like google.com? May 20 15:06:00 Mohanraj: streaming? May 20 15:06:02 if that doesn't work, try binging it! May 20 15:06:26 Lachezar: ya streaming May 20 15:06:38 Mohanraj, that, of course, depends on how your server infrastructure looks like May 20 15:06:41 and what your objective is May 20 15:06:45 and what network are you targeting May 20 15:06:48 Mohanraj: yes, streaming is the answer. May 20 15:06:49 and what device are you targeting May 20 15:06:53 and what usecase you have. May 20 15:07:00 in short: not enough info May 20 15:08:19 Is there a library for "Speed Dial" like gridlayout view, the one like Dolphin Browser uses? Boxes of imageButtons and a plus sign to add more buttons. May 20 15:08:46 have to send the audio recording to the remote user who is using pc or laptop (opening a web page on browser). May 20 15:09:06 @Mavrik May 20 15:09:32 android -> server May 20 15:09:39 server -> web client May 20 15:09:53 Mohanraj: I think you would use a socket I assume but I am not sure May 20 15:10:26 Mohanraj: ... yeah, there's a lot more here than you think there is. May 20 15:10:35 I think you need to research streaming audio codecs, etc. May 20 15:10:54 is there any benefit to having a free/demo app and a seperate paid app with more features? instead of having a single app with in app purchases May 20 15:11:24 You don't give the impression of being freemium May 20 15:11:28 which is nice. May 20 15:11:32 but that's about all I can think of. May 20 15:11:42 most developers seem to use in app purchases for some reason May 20 15:11:57 njcomsec, it's way more convenient for user when you have IAP May 20 15:12:09 hmmm May 20 15:12:11 njcomsec, because otherwise they lose data and have to deal with uninstalling demos, etc. May 20 15:12:26 it's a pointless hassle May 20 15:12:28 I see May 20 15:12:36 ^^ May 20 15:12:45 of course, some dumbasses will bitch if there's a "contains IAP" text in play store next to an app May 20 15:12:49 Mavrik yeah, but if I buy a premium app I ahve it. I now that I don't have to deal with lots of microtransactions tog et all functionality May 20 15:13:01 Mavrik *know May 20 15:13:07 mattblang, hmm, I don't see your point? May 20 15:13:37 is it worth doing IAP if I would just have a single unlock for all features? May 20 15:13:44 Mavrik when I think IAP, I am thinking microtransactions. With a premium app I just pay it once, and I know I have all the features May 20 15:13:59 njcomsec I perseonally don't see the point May 20 15:14:00 mattblang, well... you're thinking too much May 20 15:14:08 njcomsec, well, again May 20 15:14:20 njcomsec, if you want to explain your users that they have to uninstall your free app, lose all data May 20 15:14:25 and reset everything with new app May 20 15:14:31 instead of just pressing a button ... May 20 15:14:40 and deal with having to release two separate apps :) May 20 15:14:43 go ahead. May 20 15:15:28 ok May 20 15:17:07 ahhh. but what if I have a single IAP unlock, but I want to add new features to that unlock, is that allowed? May 20 15:17:29 ... May 20 15:17:36 go check out the API c'mon May 20 15:17:44 ok May 20 15:17:56 API will just tell you the status May 20 15:18:02 what you do with that is up to you May 20 15:18:27 Mavrik, njcomsec I wish android would just let you change the pricing of your app. why don't they? May 20 15:18:36 dunno May 20 15:18:46 I don't have access to merchant account at all May 20 15:18:50 so *shrug* May 20 15:19:35 mattblang: uh, you can change the pricing of your app? May 20 15:19:44 you can't make a free app paid, however. May 20 15:19:46 lov sorry, meant from free to paid May 20 15:19:47 (iirc) May 20 15:19:49 right. May 20 15:19:54 love yeah, you are right, thanks for the correction May 20 15:20:00 * lov May 20 15:21:41 I'm a total noob. I'm trying to create a test app that plays a certain mp4 from the sdcard when it loads. Can I just put something like this http://pastebin.com/kb4txeYb in MainActivity.java and call it from onCreate? May 20 15:22:04 I am wanting to do a view pager for a detail fragment that corresponds to an entry in a ListView, like the gmail app does for emails. I was thinking a FragmentPagerAdapter would work well, but I would have to set it up in multiple activities (using fragments to handle landscape orientation in master / detail). So, I am thinking that maybe I should do a pageradapter in my fragment that just updates the information? May 20 15:23:01 d0de: yes, pretty much. May 20 15:23:07 You need permissions to access the storage of course May 20 15:23:33 (also, use Environment or Context to get external storage paths) May 20 15:24:06 lov: thanks. I'm getting a problem where the call from onCreate complains: Unhandled exception type IOException May 20 15:24:52 ... ok? May 20 15:24:55 so handle it? May 20 15:27:56 ah yes. I didn't know how to do that but I found a resource, thanks May 20 15:29:44 is it enough to catch it and not do anything with it, just for testing? May 20 15:30:15 I'm going to say yes. May 20 15:30:28 so, uh May 20 15:30:29 http://docs.oracle.com/javase/tutorial/ May 20 15:30:39 You should probably do http://docs.oracle.com/javase/tutorial/java/index.html before you go any further. May 20 15:31:15 also, http://docs.oracle.com/javase/tutorial/essential/exceptions/index.html May 20 15:31:46 you're probably right, but I did try that and it seems like the docs spend a great deal of time explaining obvious things and often completely gloss over the unintiutive formal bits May 20 15:32:12 d0de: which docs are you talking about? May 20 15:32:27 * lov shrugs May 20 15:32:30 Leeds, http://docs.oracle.com/javase/tutorial/java/index.html May 20 15:33:16 hi i am using ShareProvider, but when i send to facebook mey EXTRA_TEXT is not going, why? May 20 15:33:28 in other, like twiiter work fine May 20 15:33:48 blame facebook May 20 15:34:47 have you tried turning it off and on again? May 20 15:35:09 Also, facebook app or Samsung facebook share thingamajig? May 20 15:37:14 here's a weird thing May 20 15:37:32 I've noticed that a lot of android example projects have an Application.java class May 20 15:37:48 I think it's default in the template? May 20 15:37:51 Android Studio does not seem to generate new projects with one May 20 15:37:59 hmm May 20 15:38:06 yeah May 20 15:38:10 little weird May 20 15:38:17 lemme check May 20 15:38:27 0.5.8 May 20 15:44:15 Create one if you need it.. There's no reason to create one by default May 20 15:46:07 You'd create one if you needed to set up application-wide defaults or something, right? May 20 15:47:02 not even. May 20 15:47:32 Just if you need to set up something application-wide. I use it for setting up dependency injection May 20 15:47:36 You create it if you need to guarantee something runs it application (not activity or service) startup time. In some cases, it's abused to provide a Context singleton. May 20 15:47:56 Generally, singletons work just fine if you need application-wide defaults. May 20 15:48:22 SimonVT, could you provide an example of the Application class for dep injection? I guess you use it for Context injection May 20 15:48:53 I'm currently looking at using the Calligraphy plugin for custom fonts in my application May 20 15:49:19 For Eg. if you use Parse.com, it is written in the docs to "initialize only once". So if you add the initialization command in an activity and do orientation change, the app crashes, because the activity is recreated. For this it is recommended to do the initialization in Application class. May 20 15:49:54 Not context injection, I do need a context for some of the stuff I inject.. But at the moment I also require a Context to inject stuff May 20 15:50:18 SimonVT, oh, so for example, my database helper needs a context. You would use it for that? May 20 15:50:26 does gradle let you include dependencies from github repositories? May 20 15:51:19 Sure, you could do that May 20 15:51:24 autrilla: It's important to note that you can subclass the default Application, but your application will have an Application instance regardless. May 20 15:51:32 You can always call getApplication() on a context to get it. May 20 15:51:47 You SHOULD use the application context in most cases where you're just passing a context, rather than an activity, if there are lifecycle concerns. May 20 15:51:59 autrilla, if you're curious: https://github.com/SimonVT/cathode/blob/master/cathode/src/main/java/net/simonvt/cathode/CathodeApp.java May 20 15:53:32 I need to split up my module.. It has gotten out of hand May 20 15:53:40 What exactly does onDestroyView do, I can't seem to find any good documentation on it May 20 15:53:59 It does nothing, it's just a callback that the view has been destroyed May 20 15:54:20 I was curious since it is still part of the activity lifecycle when setRetainInstance(true) is set May 20 15:54:30 hmm okay May 20 15:54:35 (fragment lifecycle) May 20 15:54:41 ^ May 20 15:54:44 yep sorry May 20 15:55:49 It's just to let you know what you should destroy any view-related resources.. Like null out your references to views May 20 15:56:24 really want to wrap my head around dependency injection with dagger May 20 15:56:57 that's not rocket science May 20 15:57:06 it's harder to get it right ;) May 20 15:57:58 it's rocket surgery May 20 15:58:06 yeah, I think it's just that I've mainly just seen it in code examples and not so much in a "here's a great case for dependency injection, let's do it with dagger" May 20 15:58:17 shekibobo: i have slides and a talk you can watch May 20 15:58:27 the talk is currently not free, sadly May 20 15:58:29 It lets you do some nice things. Cut down on boilerplace in the code where you actually need the dependencies May 20 15:58:43 SimonVT, I am indeed curious. It's nice seing your code too May 20 15:59:05 JakeWharton: how much? May 20 15:59:07 SimonVT, that's a whole lot of imports May 20 15:59:39 autrilla: Yeah.. But that's what IDE's are for May 20 15:59:44 shekibobo: not sure (it's free to me). talk: http://parleys.com/play/529bde2ce4b0e619540cc3ae slides: https://speakerdeck.com/jakewharton/android-apps-with-dagger May 20 15:59:51 I came across this one: http://www.infoq.com/presentations/Dagger but it just kind of made my head explode May 20 15:59:59 hey May 20 16:00:06 i have a problem, when i try to install apk i get "App not installed" May 20 16:00:13 and when i try via adb i get "INSTALL_FAILED_DEXOPT" any idea? May 20 16:00:14 yeah that's Jesse. he kind of assumes you know a bit about dependency injection already May 20 16:00:19 Nice. It goes right to bookmarks May 20 16:00:22 yeah May 20 16:01:10 I get the general concept, but coming from ruby on rails, you just kind of get everything for free most of the time May 20 16:03:41 and by "free" I mean "without a clear explanation why or how" May 20 16:04:52 SimonVT, oh, and you have a blog May 20 16:05:11 The most basic example is the difference between @Inject Object object; graph.inject(this); and Object object; object = MyDependency.getInstance(); It becomes more convenient when you need to pass parameters to the injected class.. And you're a pro once you start swapping out modules depending on state May 20 16:05:27 autrilla: Hah, yeah.. Don't hold your breath waiting for posts May 20 16:06:02 there's also a lot "Oh, I think I get that. But where the hell do I put it?" May 20 16:11:19 How can I make a speed dial looking grid layout like web browsers? http://pastebin.com/EMMscKR9 May 20 16:13:10 WantToCode: I think you've done the work yourself. Pick one and use it. May 20 16:14:01 Could just use a GridView May 20 16:14:54 lov: SimonVT hmm the problem is with the "auto-arranging" part. Plus, the layout would somehow depend upon the device's width too May 20 16:15:07 and GridView is of 2 coloumns right, SimonVT ? May 20 16:15:22 I don't know what the "auto-arranging part" is May 20 16:15:33 GridView is as many columns as you want May 20 16:15:54 like in this Dolphin Browser home page, http://puu.sh/8TY5P.png May 20 16:16:13 What's the auto-arranging part May 20 16:17:23 sorry for slow typing, I have a fractured wrist, when the app rotates, the boxes would layout according to the width May 20 16:18:00 So just give the gridview a different number of columns depending on orientation May 20 16:18:03 ^^ May 20 16:18:09 like this landscape have 5 icons, if I rotate they become 3. I am not able to get this because I have to set the column numvers May 20 16:18:21 oh. May 20 16:18:30 ... sooo inspect the configuration when the activity/fragment is created and set the value at that time? May 20 16:18:49 WantToCode: also it might allow you to not define a number of columns. This looks interesting android:numColumns="auto_fit" May 20 16:18:54 android:numColumns="@integer/thisManyColumns" .. values/ 5 .. values-land/ 10 May 20 16:20:08 SimonVT: if you go that route, you get to deal with different screen sizes as well, etc. May 20 16:20:16 and yeah, try to do "auto" where possible. May 20 16:20:36 Sure May 20 16:20:43 Lots of possibilities May 20 16:21:18 Thanks. May 20 16:21:37 Using the normal gridlayout would suffice then.! May 20 16:22:44 last thing please. for eg the columns are 5 and the first row is filled, and if I add one more box, the box would be added automatically to second row first coulumn? May 20 16:23:03 hey guys, I'm looking for well designed andorid app May 20 16:23:07 from code point of view May 20 16:23:17 if anyone knows some open source project - let me know May 20 16:23:31 WantToCode: I would recommend either trying it or googling it. I assume yes May 20 16:24:14 because I am trying to use gridlayout since morning and the new boxes go out of screen. I didnt set the columns though. May 20 16:24:37 There's a difference between gridview and gridlayout May 20 16:24:49 Make sure you choose the right one May 20 16:25:03 gridview is like listview but with two columns, right? May 20 16:26:11 yes May 20 16:26:27 ok. :) Thanks a lot lov SimonVT davidcorrado May 20 16:32:57 anyone here using Calligraphy? May 20 16:33:34 would setting the view programatically make the layout slow? May 20 16:33:46 WantToCode, it depends where May 20 16:35:13 generally speaking, it can? May 20 16:35:43 it can May 20 16:37:16 SimonVT, in the cathode project, where is your main activity' May 20 16:37:28 Ah, shift got stuck. That is a question May 20 16:39:07 HomeActivity? May 20 16:41:18 hi May 20 16:41:27 hi, i have this problem in my graphical layout xml android.content.res.Resources$NotFoundException Couldn't resolve resource @android:style/Widget.Holo.Light.TextView, how i can solve this? May 20 16:47:34 if there is a 9-patch for a background on a textview, will the 9-patch also shrink to fit? or do 9-patches only scale up? May 20 16:51:52 any? May 20 16:51:57 how i can solve this: http://cl.ly/image/2N2b1D1K0r3t? May 20 16:57:46 autrilla: yep May 20 17:09:30 I'll have to look into Applications, I've always used Activity May 20 17:12:09 Let’s say that I have a View(can be ImageView). Now, I’d like to swipe it to the left, and have the move and fade away(much like swiping a window from the recent apps in ICS and above). Any hints on how to do this? May 20 17:12:17 Any library thats already available? May 20 17:12:41 onFling? May 20 17:18:29 I’m trying to set a good fallback for setAlpha on older APIs. If I setBackgroundColor on the parent view, it doesn’t seem to override child background colors. Any ideas? May 20 17:19:51 ilmenite: https://www.youtube.com/watch?v=E0352OH488M 1:38 ? May 20 17:21:09 how i can solve this: http://cl.ly/image/2N2b1D1K0r3t ? May 20 17:22:48 same error in Android Studio May 20 17:27:25 autrilla: onFling will just do part of it, won’t do the fade animation May 20 17:27:45 ilmenite, that's just a normal fade animation then May 20 17:28:56 hey May 20 17:29:22 is there any free framework that helps devs make beautiful UI for android apps? May 20 17:30:26 The Android framework May 20 17:31:17 :/ May 20 17:31:45 autrilla: is something like this worth using - http://feathersui.com ? May 20 17:31:49 or are there any better options? May 20 17:32:02 I like holo May 20 17:32:17 .. okay.. May 20 17:32:31 is there any way that R.drawable.x could reference the wrong file? May 20 17:32:33 It's flat, it's minimalistic, and it's consistent through all Android devices May 20 17:32:49 autrilla: true that.. May 20 17:32:50 enneract: try clean > build May 20 17:32:59 but i want to make something as beautiful as maybe the Zomato app.. May 20 17:33:11 I have 3 drawable resources, pngs. 0,1,2. If I try to set 0, it works, if I try to set 1 it displays 0 instead May 20 17:33:18 and 2 displays what 1 should be May 20 17:33:32 supay, that's holo May 20 17:33:56 I've tried cleaning already May 20 17:34:04 what? May 20 17:34:08 autrilla: you can't be serious? May 20 17:34:12 its holo? May 20 17:34:14 plain old holo? May 20 17:34:14 Yes May 20 17:34:17 WHAT? May 20 17:34:18 Mainly, yes May 20 17:34:29 mainly! okay, what else does it have? May 20 17:34:40 Holo tabs May 20 17:34:51 An Actionbar May 20 17:35:03 But howzit so beautiful? :O May 20 17:35:11 Because it's well designed May 20 17:35:13 photoshop images? May 20 17:35:24 how can i design something like that? May 20 17:35:28 or learn to design something like that? May 20 17:35:30 hmm, ok, that cleaning took. woo May 20 17:35:34 being a good designer May 20 17:35:39 The guys at ##design can help May 20 17:35:52 Thanks so much autrilla <3 May 20 17:35:56 Most companies have Android designers that just design May 20 17:36:05 Most big* companies May 20 17:36:10 Oh, i see.. May 20 17:36:18 im actually trying to create a mobile startup May 20 17:36:28 so Im trying to develop the initial prototype myself May 20 17:36:31 Hello all. May 20 17:36:52 That's totally fine, but you'll have to put a lot of work into it if you want something like that May 20 17:37:38 Im willing to work till all the hair on my butt-cheeks get shaved right off. May 20 17:37:45 I dont know if that was a suitable analogy. May 20 17:37:46 :/ May 20 17:38:12 Can anyone clarify why my custom buttons have no margin compared to the standard buttons? May 20 17:38:52 Because the default 9patches have padding May 20 17:38:55 Difusio, because your implementation of the standard buttons is probably wrong. That's as much as we can tell with what you've provided May 20 17:39:56 Well not really padding, they just let transparent pixels around the border May 20 17:40:45 I've created a buttons.xml with references to all 4 states with seperate xml files. I've tried adding layoutMarginbottom to the styles.xml for the button, but that did not work. May 20 17:41:04 @SimonVT Can I use invisible pixels with pure xml buttons? May 20 17:41:30 Ah ofcourse I can, with the edge and the transparance set to 00! May 20 17:41:33 If you mean xml drawables, I'm sure there's something like that May 20 17:56:25 anyone here using Calligraphy and an AppTheme? May 20 18:04:05 The import android.support.v7 cannot be resolved. What do I need to do? I can import v4 but it does not have the actionbar. May 20 18:04:32 Import the v7 support library into your project May 20 18:04:43 lamela: have you added iit to your project? May 20 18:05:20 how do I do that? May 20 18:05:28 So I’m using translate animation. I can drag the view just fine, but it loses it’s margins(inside a relative layout). Is there a quick fix for this? May 20 18:06:58 lamela you read the docs :) May 20 18:07:44 Is he saying LA is lame ... or is he telling us to "lick it " in spanish .. which one is it May 20 18:07:46 How do I from within an internal subclass extending AsyncTask access findViewById, setContentView etc. methods? May 20 18:07:47 but since google search has been so poor lately, i'll give you the link http://developer.android.com/tools/support-library/setup.html May 20 18:13:11 any1 knows? May 20 18:13:22 trying to follow this: http://developer.android.com/training/basics/network-ops/xml.html#read May 20 18:13:24 tutorial May 20 18:13:31 to learn how to make my own RSSFeed reader May 20 18:13:37 having a bit of an issue unfortunality May 20 18:14:05 As I understand I should never do stuff like get the raw screen size and then calculate button sizes from that because it might not work 100% on all phones. But if I want a button that should always be 1/7 of the screen, how would I do that? May 20 18:14:23 linear layout? May 20 18:14:26 using weight? May 20 18:14:29 perhaps May 20 18:14:32 I am thinking a "NEW GAME" button on top and then the games beneath so they will be added dynamically. May 20 18:14:48 1/7 of the height or width May 20 18:14:51 ? May 20 18:15:24 im guessing height May 20 18:16:16 then do a container LinearLayout surrounding the buttons, make its orientation vertical, assign width="0dp" as well as 1 for the New Game button if its the top button, then assign 2,3,4,5,6,7 to the rest which are to be below May 20 18:16:17 I think May 20 18:16:34 weight="1", 2,3,4,5,6,7 i mean May 20 18:16:42 How do I set a view’s position using layout params? I can’t seem to find a way May 20 18:16:53 depends ill May 20 18:17:08 what type of user interface are u looking to build? May 20 18:17:19 you got GridLayouts, LinearLayouts, RelativeLayouts, FrameLayouts, etc. May 20 18:17:46 Hey Trekka12 May 20 18:17:47 Hey May 20 18:17:49 Hey. May 20 18:17:53 make one of them contain ur UI components, then assign each component respectively fitting attributes for whichever layout u choose May 20 18:17:56 ? May 20 18:17:57 hey May 20 18:17:59 :p May 20 18:18:01 What the hell are you actually trying to do? May 20 18:18:02 whats up? May 20 18:18:03 because you never explained that. May 20 18:18:06 huh? May 20 18:18:14 About my own problem? May 20 18:18:26 "I'm trying to follow a tutorial. I guess I make a Linearlayout?" May 20 18:18:31 that's not a question. May 20 18:18:35 I wrote my problem further above that May 20 18:18:39 hang on sec May 20 18:18:41 ill copy paste it May 20 18:18:45 14:07:55 < Trekka12> How do I from within an internal subclass extending AsyncTask access findViewById, setContentView etc. methods? May 20 18:18:53 How do I WHAT? May 20 18:19:08 ah, nevermind. May 20 18:19:16 access the Android methods from outside of an Activity class but within the same Java file.... May 20 18:19:24 it doesnt seem to work May 20 18:19:30 You have an AsyncTask inner class? May 20 18:19:31 get red and asks me to create the methods May 20 18:19:33 yes May 20 18:19:43 It should be as simple as "YourOuterActivityClassName.this.someMethod" May 20 18:19:45 it gets red May 20 18:19:47 thats deep May 20 18:19:52 running into this problem, http://stackoverflow.com/questions/16277422/android-install-failed-uid-changed, but I can't delete the folder mentioned in the answer because I don't have root. anyone else run into this? May 20 18:19:58 "it gets red" is not a helpful statement Trekka12. May 20 18:20:14 Hello Mr. Lov May 20 18:20:17 hello. May 20 18:20:19 ok, sry meaning that it asks me to re-create the methods from scratch¨ May 20 18:20:28 Nazi helicopter is away May 20 18:20:32 and he wants us to notice May 20 18:20:33 88 May 20 18:20:37 Anyhoo, as mentioned, reference the outer class. May 20 18:20:43 Also! May 20 18:20:54 I hope you are only doing this in the methods that run on the UI thread in your AsyncTask! May 20 18:20:59 what u talkin about pthreat? May 20 18:21:02 If you don't know what those methods are, READ THE DOCUMENTATION FOR ASYNC TASK. May 20 18:21:09 I have read it May 20 18:21:25 [15:20] == helicopter88 has changed nick to awaycopter88 <- this May 20 18:21:28 you mean like protected void onPostExecute(String result) and do like background? May 20 18:21:35 doInBackground()* May 20 18:21:44 aha ok pthreat ;P May 20 18:21:49 yes. May 20 18:21:50 88 = heil hitler May 20 18:21:59 ok lov, ill try ur suggestion May 20 18:22:26 hmm May 20 18:22:30 I must have done something wrong May 20 18:22:45 "No enclosing instance of the type MainActivity is accessible in scope" May 20 18:22:46 if using linearlayout, can I have one button that is bigger than the rest? May 20 18:22:48 error message May 20 18:22:55 when typing MainActivity.this.setContentView May 20 18:23:06 from inside the doInBackground of the extended AsyncTask May 20 18:23:09 class May 20 18:23:17 * lov sighs. May 20 18:23:18 lamela, yes May 20 18:23:22 Just pastebin your entire file. May 20 18:23:31 k, have I done something to offend u? May 20 18:23:47 You haven't learned java, nd u typ lk ths May 20 18:23:59 eh? May 20 18:24:13 its knd of hrd 2 rd wn u typ lk ths May 20 18:24:19 havent learned java....? just because I dont know exactly how this specific type of referencing works? May 20 18:24:43 because you don't actually give a compile error and search for it, you say "it turned red". May 20 18:24:50 i get what u mean, and btw... i use fairly regularily used shortenings of words... so i dont really see the problem May 20 18:25:13 omg... that was 1 time and something i just said in the moment.. May 20 18:25:37 i explained it afterwards didnt i? May 20 18:26:25 you really didn't. You said "< Trekka12> ok, sry meaning that it asks me to re-create the methods from scratch�" May 20 18:26:32 which is not a compile error, it's what the IDE auto-suggests. May 20 18:26:39 I can't seem to get styles to apply to an actionbar action item button.. any thoughts? May 20 18:27:16 okay, I will admit, I am not that super-knowledgeable about everything Eclipse.. (which is the editor im using) May 20 18:27:22 anyhoo, if your inner class is static, you need to pass it a reference to your activity as part of the constructor, etc. If it's not static, then it will dynamically be able to find the outer class using the syntax I gave you. May 20 18:28:41 its just simply "class" atm, because when I tried having it like private class earlier just like the web documentation suggested, I got error message as well saying something like it was not acceptable, only abstract, final or public was allowed I think it said May 20 18:29:26 And I have not encountered that issue before either, so no idea why I got that either... which in turn resulted in me just leaving it "class" for now May 20 18:29:32 in lack of better ideas May 20 18:30:09 so it's package-private and non-static. So you should be able to use "MainActivity.this", if your outer class is called MainActivity. May 20 18:30:20 yea it is May 20 18:30:31 You still wish me to send pastebin code? May 20 18:30:42 link to pastebin of code* May 20 18:32:33 sure. May 20 18:32:35 http://pastebin.com/dxfbkp9v May 20 18:33:43 references like setContentView, getSharedPreferences etc. is not correctly referenced May 20 18:34:17 So, line 93. May 20 18:34:22 What's the actual error message that you get? May 20 18:34:26 hi guys is forbidde insert a ddonate button in my app? May 20 18:34:32 ok, hang on sec, ill check May 20 18:34:52 "No enclosing instance of the type MainActivity is accessible in scope" is this it? May 20 18:35:04 the error message u meant? May 20 18:35:26 its for line 93 May 20 18:35:27 Aha. May 20 18:35:34 Your class isn't actually an inner class of MainActivity May 20 18:35:39 its not? May 20 18:35:43 what did I miss? May 20 18:35:47 you have, somehow, and I don't even know how this would compile, made it some sort of outer class. May 20 18:35:56 I read that insert the button of donation is forbidden by google May 20 18:35:59 move the brace on line 71 to the very end. May 20 18:36:35 (then press ctrl-shift-f to reformat everything to look nice) May 20 18:36:38 ahh, well what do you know, it seems to be working now May 20 18:36:49 roxdragon: it is not forbidden if the ppl donate througb google May 20 18:36:49 nice May 20 18:36:53 I got to remember that command May 20 18:36:55 very useful May 20 18:36:58 ty May 20 18:37:14 Do I need to add private or something before "class" for the inner class? May 20 18:37:22 what is the recommended to use for inner classes? May 20 18:37:55 how can I receive donations via google? danijoo May 20 18:38:11 google in-app billing May 20 18:38:16 30% of your win is for google then May 20 18:38:40 One tiny piece of code, 1 single character malplaced causing such a headache.. it seems to happen quite often to me ;p May 20 18:40:07 danijoo: have u a tutorial for this? May 20 18:40:14 google has one May 20 18:40:22 in its dev tuts May 20 18:41:01 danijoo: i have a website with donate button ... if i show it with a frame into webview??? May 20 18:41:36 hm i dont know about this special case, but because it is only away to try to move arround googles TOS, I would go with forbidden May 20 18:42:36 is a hack ahahah May 20 18:43:08 yeah. and maybe the best "hack" to get your account banned :p May 20 18:46:06 "As Google mandates the use of its own Google Wallet service for in-application purchases, software that doesn't comply with the new rule will be kicked out of the Android Market." May 20 18:46:31 don't they allow paypal also in some places ? May 20 18:46:57 last thing i red was that paypal released their own in-app payment api but google dont allows it May 20 18:47:01 but this was months ago May 20 18:47:29 because it bypassed their 30% fee May 20 18:47:38 anybody seen this before Failure [INSTALL_FAILED_UID_CHANGED], or Failure [INSTALL_FAILED_DEXOPT]. from what I've read it has to do with some leftover stuff in /data/data/package.name, but I can't delete it because I don't have root. May 20 18:47:39 http://techcrunch.com/2014/05/15/google-play-store-adds-wallet-rival-paypal-as-a-payments-option/ May 20 18:47:53 yes. paypal THROUGH google wallet May 20 18:47:59 this makes google get their 30% May 20 18:48:22 but it is not allowed to make a direct paypal button May 20 18:48:35 oh May 20 18:49:10 danijoo: can I link my website?? not a frame with button May 20 18:49:15 all my website? May 20 18:49:31 i think so. May 20 18:49:48 and if a people want donate me click into button donate? May 20 18:50:00 as long as its not obviously that you only link for donations (like a page with only a donate button) May 20 18:50:01 i show all my website May 20 18:50:16 Read the terms, find out if it's allowed, wait and see if you read the terms wrong May 20 18:50:22 Im not a laywer but i think thats ok May 20 18:50:45 as long as you dont want to obviously bypass the inapp billing May 20 18:52:36 and here in germany we have a proverb: "where theres no plaintiff, theres no judge" :p May 20 18:55:46 Anyone have any experience getting the postal address out of a contact selected using ACTION_PICK? May 20 18:57:46 sorry, I've gone through like 3 books and I'm still unclear; when the XML says android:drawable=”@drawable/image2”/, what is the actual file path and name to which it refers? May 20 18:59:22 image2.png in drawable folder May 20 19:00:45 danijoo: ok ty May 20 19:06:52 before i go hacking around and copying out google's code, is there a supported way to get the SDK location from the android gradle plugin? May 20 19:10:56 http://lpaste.net/104362 <- Why arent my other buttons showing up? May 20 19:11:16 im having an error, Failure [INSTALL_FAILED_UID_CHANGED]. here is a pastebin of the error, with the line highlighted that I think is important (http://pastebin.com/011Pnqyf). does anyone have a clue what I should do. I already tried factory resetting. May 20 19:11:18 tophyr, println ENV['ANDROID_HOME'] maybe? May 20 19:11:56 nah, my proj has it in local.properties. i could go thru the logic of looking in each location but that's basically the same thing that the android plugin does May 20 19:12:10 wondering if there's some property on the plugin itself.. reading thru the code now May 20 19:15:27 is there a way to delete an app's folder in /data/data without root? May 20 19:15:46 mattblang: isnt it deleted on uninstallation? May 20 19:16:10 danijoo probably usually, but something crazy happened and now I can't run my app May 20 19:16:35 danijoo all the stack overflowing I have done seems to point towards remnants in /data/data, but i dont have root on this phone May 20 19:17:12 have you tried adb shell pm clear ? May 20 19:21:03 if that doesnt help i have no idea other then wiping the phone May 20 19:21:20 http://lpaste.net/104362 <- Why arent my other buttons showing up? May 20 19:21:56 kabingo May 20 19:21:57 project.getPlugins().findPlugin("android-library").getBootClasspath() May 20 19:22:08 actually gives me exactly what i wanted, without any string building May 20 19:23:12 danijoo I get a failed when I try a pm May 20 19:23:28 mh maybe this is limit to root, im not sure May 20 19:23:43 seems you have to reset the phone or change the package name May 20 19:24:30 danijoo I tried resetting. it seems like this would delete the /data/data contents May 20 19:25:55 did you try May 20 19:25:57 adb shell rm -r /path/to/folder May 20 19:26:12 pwnedu46 yes, that requires root May 20 19:26:16 pwnedu46: this dont work because /data/data is only writeable by root May 20 19:26:28 Ah. May 20 19:27:07 danijoo, pwnedu46 i have a pastebin of the logcat when it happens. if you have just a second, would you take a look and see if the highlighted line seems indicitave of something you have encountered? http://pastebin.com/011Pnqyf May 20 19:28:02 never seen this before. sorry May 20 19:28:27 I haven't either May 20 19:30:00 danijoo, pwnedu46 they have us on freakin virtualized systems at work, and after the recompose last night I'm having this problem. usually, on my first install, the app on the phone is uninstalled. i think it is detecting a different computer. this time, though, stuff has gone haywire and im spending all day trying to figure it out, lol May 20 19:30:40 well if its a virtual machine you are installing on, I would just reset it May 20 19:30:54 or install a new one :) May 20 19:31:17 mattblang what about run-as? May 20 19:32:02 leslie I tried that, but the package seems uninstalled to the phone, so it is giving me a package unknown error May 20 19:32:11 ah right May 20 19:32:57 danijoo I wish, can't do a vm insideof the already virutalized system May 20 19:33:43 leslie, danijoo it is a Nexus 4, I should probably just root the dang thing. seems crazy that a situation like this can happen though May 20 19:34:03 yeah, if you're a developer, root access is pretty much standard May 20 19:34:24 and if its a nexus 4, you are lucky May 20 19:34:31 because rooting isnt more than 1 shell command May 20 19:34:36 JakeWharton: what's going on here? https://github.com/JakeWharton/u2020/blob/master/src/main/java/com/jakewharton/u2020/U2020App.java#L35 May 20 19:34:39 mattblang if you suspect the crappy virtualization system is contributing to your woes, i recommend telling your manager. if he/she is any good at all, they help you get your job done - it seems like a technical glitch as a result of poor management / culture / etc May 20 19:34:48 Modules doesn't appear to be imported anywhere May 20 19:34:59 it does delete all your data though, danijoo, so there's that May 20 19:35:07 yeah. true May 20 19:35:20 never understood why this is the case though May 20 19:35:48 security, stops someone rooting your phone if they steal it and then getting all the files from it May 20 19:35:52 g00s oh, about that, the email is in the works right now. i've already been planning to bring it up, but this has me fuming. its one those situations where I haven't wanted to bring it up because other devs on non mobile projects will start saying "he has one I want one" May 20 19:36:18 if they can justify it, they should be able to also :) May 20 19:36:20 xD May 20 19:36:31 leslie: good point May 20 19:36:41 never thought so far May 20 19:36:48 g00s you are right, the truth of the matter is that no developer should be on a friggin virtualized system May 20 19:37:28 IT should have different images for devs and business people ;) May 20 19:37:28 danijoo, leslie sweet, if that is the case ill look into that May 20 19:37:45 at uni they mapped /home to a networked filesystem. nice in theory, but it's so slow, it's practically unusable May 20 19:39:10 shekibobo: same package May 20 19:39:31 Look in src/release/ and SRC/debug/ May 20 19:41:34 right, I'm seeing there's main, debug, and release folders now May 20 19:41:45 thanks May 20 19:42:11 Any help? http://stackoverflow.com/questions/23726545 50 minutes more and I can set a bounty for it May 20 19:42:14 * autrilla grabs popcorn May 20 19:43:46 JakeWharton, why is it necesary for a Dagger module to specify what classes it has to inject? May 20 19:45:25 autrilla: static analysis and incremental compilation May 20 19:45:36 * autrilla googles May 20 19:49:32 Nice. I should use Timber too May 20 19:50:48 Why shouldn't you log anything in production? May 20 19:53:19 apparently googling "timber logging" is not very helpful May 20 19:53:57 src/release/java does not seem to be a recognized source folder in Android Studio May 20 19:54:11 but it picked up src/debug/java just fine May 20 19:54:19 Hello May 20 19:57:44 if I am organizing my src files in AS do I want to create new Java Folder, or New Package? May 20 19:58:08 when I right click on my src folder May 20 19:58:39 How do I create some space between each button in my Linearlayout? May 20 19:59:09 In an app that mixes together different sounds, is there any problem with playing multiple MediaPlayer objects at the same time? May 20 19:59:12 lamela have you made any attempt at all to read the docs ? May 20 20:01:00 d0de: no. May 20 20:01:49 njcomsec: new package May 20 20:02:09 ok thanks May 20 20:02:29 so new Java folder does something similar without auto refactoring the package name I guess May 20 20:02:47 lov: ty May 20 20:03:07 njcomsec: new package creates a new package. May 20 20:03:41 packages are a pretty important concept in java; you should probably take a few minutes and read up on them. May 20 20:03:53 yes I am now May 20 20:04:17 I think I did when I first learnt Java but I forgot May 20 20:10:58 Hey. I need help with my app May 20 20:11:51 I'm trying to position my images on my screen however they are positioned different on different screens - How should I go about positioning it in the relative layout May 20 20:12:34 Any ideas? May 20 20:12:49 use dips May 20 20:13:04 I do. Still shows different on different screens May 20 20:13:22 Use percentages. May 20 20:13:35 Can you do that in xml? May 20 20:13:39 sure! May 20 20:13:52 well, actually, don't use percentages May 20 20:13:53 I'm trying to write a script that preforms an action if the screen is off. Is there a way to make my script check that? May 20 20:14:03 but do have things automagically lay out relative to other things May 20 20:14:10 use weights, etc. May 20 20:14:25 actually you probably can do percentages too, what do I know :> May 20 20:14:42 benwalburn: I think you can get a broadcast intent for that. Look around. May 20 20:15:02 How do weights work? May 20 20:16:23 http://developer.android.com/guide/topics/ui/layout/linear.html May 20 20:18:28 lov: http://developer.android.com/reference/android/content/Intent.html#ACTION_SCREEN_OFF mentions it, but I'm not sure how to put it to use. May 20 20:22:02 without knowing what your "script" is I don't know how to help you. May 20 20:24:36 lov, Can I specify percentages from the left of the screen on xml? May 20 20:25:21 How do you deal with textsizes? I would like to set it to a % of screensize. What is the way to do this? using nbrs seems wrong since I want them to scale to screensize and this I should not have to calculate by hand. May 20 20:25:28 Scorpianz: honestly, I don't remember anymore :( May 20 20:25:29 i just tried using the android youtube app w/o network and all i got to watch was spinners. didnt they have offline viewing capability? 100% of the app was disabled. whats the point? may as well just use a browser May 20 20:25:54 kk :( May 20 20:36:21 is zxing a google project, or is their group com.google because they were on google code for a while May 20 20:36:44 g00s: I think it was done by a group of people at google? May 20 20:37:11 hm, i thought i also saw it in the android repo somewhere May 20 20:41:26 benwalburn http://developer.android.com/reference/android/os/PowerManager.html#isScreenOn() ? May 20 21:00:25 surface pro 3 looks super nice May 20 21:00:56 But May 20 21:00:57 But May 20 21:01:00 it runs windows May 20 21:01:13 Hi guys May 20 21:01:13 fine by me May 20 21:01:22 Ps looked nice in it May 20 21:01:34 yah, that windows is fine, RT is not May 20 21:01:55 How much will they cost? May 20 21:02:22 start at $799 May 20 21:02:55 So 799€ May 20 21:03:07 That magic 1$->1€ conversion May 20 21:03:19 MS seems to be terrible at having a good web presence when they announce something new, apple is great at this May 20 21:03:32 apple announces, you go to apple.com, and everything new is right there May 20 21:03:53 And yet their stocks drop after every keynote May 20 21:04:30 if I call findFragmentByTag(TAG) after the fragment has been removed, why would the return value be non-null? May 20 21:05:17 I'm developing an app with a LoginActivity and MainActivity (for logged users). I'm using Parse, so I know if user is actually logged on startup. How can I determine which activity to show to users? I've set MainActivity as MAIN activity (so it launches on startup), and then, inside of onCreate method, I check my ParseUser value, if it's null, then I start LoginActivity, but if user taps May 20 21:05:17 on back button on it's phone, then MainActivity is showed. What is the best approach to handle this? Thanks in advance! And sorry for my english May 20 21:05:42 Sepho i thought parse had an irc channel May 20 21:06:11 this is an android issue rather than parse May 20 21:06:23 forgot the parse part, I've a boolean instead May 20 21:07:23 you could override the onBackPressed function May 20 21:07:27 or use intent flags May 20 21:07:27 You can finish MainActivity when you start LoginActivity May 20 21:07:37 or finish May 20 21:08:11 mmm I'll check thank, thanks! May 20 21:08:11 you could make all your Activities inherit from LogInActivity so they all inherit some behavior of oh, i'm about to show but not logged in :) May 20 21:08:14 or refractor your code so it starts with the LoginActivity and proceed to MainActivity if user is already logged in May 20 21:08:26 which is the way iosched does it if i recall, with google+ May 20 21:08:53 hey guys, i got a glitch in my code that i can't, for the life of me, figure out May 20 21:09:05 thanks guys! May 20 21:09:11 my dynamic list view implementation glitches when i have 2 items May 20 21:09:19 SimonVT, how do you start the main Activity from the Application? (in cathode) May 20 21:11:31 I don't May 20 21:11:53 The user starts it when they click the launcher icon May 20 21:12:07 Oh, so you just provide it on the application tag on the manifest? May 20 21:12:27 Yes, that's how you use application subclasses :) May 20 21:12:35 I see, I thought subclassing Application made you handle everything May 20 21:12:46 And I was wrong! May 20 21:13:38 has anyone encountered this when installing? Failure [INSTALL_FAILED_DEXOPT] May 20 21:14:38 finish() worked! :D May 20 21:15:20 mattblang, this gui: Failure [INSTALL_FAILED_DEXOPT] May 20 21:15:24 this guy May 20 21:15:28 http://stackoverflow.com/questions/5153515/how-to-solve-install-failed-dexopt-this-error May 20 21:15:48 And this one: http://stackoverflow.com/questions/6913230 May 20 21:16:51 autrilla I've been stuck on this for hours. I assure you, I've looked at those. May 20 21:19:27 someone had that problem a few weeks ago but it resolved itself after reboot i think May 20 21:20:03 The universal problem solver May 20 21:21:01 developed a while with android studio May 20 21:21:11 When I run my unit tests with breakpoints, they pass. When I don't, they fail. May 20 21:21:14 returned to eclipse to update old app... is so fast... May 20 21:21:15 what the f.... May 20 21:22:08 plot twist: assertTrue(!isDebugging()) May 20 21:22:20 gdrc yeah, eclipse + adt is much faster than AS / gradle. I'm constantly typing ahead of myself in AS and have to wait for the cursor to catch up May 20 21:23:34 g00s: pretty sure AS doesn't support a commodore64 May 20 21:24:03 i run it in geos May 20 21:24:38 also, adt and gradle don't do the same thing? do you mean ant? May 20 21:24:38 have to swap in/out about 100 floppies May 20 21:24:41 THese tests are based around fragment transactions. Perhaps that is the cause? May 20 21:24:42 g00s: the bad is developers are migrating to as/gradle so adt will die May 20 21:25:14 frankdoyle i found eclipse editor snappier, and of course the builder is without saying May 20 21:25:25 but AS has some better code completion May 20 21:26:33 g00s: yesterday I changed as theme. I set dracula, the dark one. I did like it. I set the default one. Result? I have all dark except the editor. May 20 21:26:49 gdrc in AS? May 20 21:26:58 android studio May 20 21:27:18 Appearance is in several places; the main IDE and stuff like console etc May 20 21:27:56 also requires restert of course May 20 21:29:30 for example in AS if you go to Prefs -> Editor -> Colors & Fonts -> Console Font May 20 21:29:43 i made my logcat font smaller, but it wanted me to make a new scheme May 20 21:30:17 there is some weird relationship between this scheme and the main theme in Appearance; when i change one i have to change the other or half the ide is wrong :) May 20 21:32:52 https://i.imgur.com/4OHTXdD.png May 20 21:33:03 any idea to full reset theme? May 20 21:33:19 it's half white and half dark May 20 21:34:38 yeah change that from Default to Darcula May 20 21:34:50 I like darcula :) May 20 21:34:53 somehow it got unhooked from the main Appaearnce theme May 20 21:35:16 o/ giuseppe :) May 20 21:38:04 What exactly does the getItem method in the base adapter do? May 20 21:38:20 get the item May 20 21:38:20 is it pointing to my arraylist data or my database data? May 20 21:38:26 Pretty much self explanatory May 20 21:38:27 well, you can use it to get the object in the model that corresponds to that item in the lv May 20 21:38:28 arraylist May 20 21:38:37 well that kind of explains my bug i think May 20 21:39:22 Oh, does my WHOIS tell you where I'm connecting from? May 20 21:39:46 My cloak is useless then! May 20 21:39:55 wphone shitty os, great ide. android great os, shitty ides ;) May 20 21:40:12 IDEA is not a shitty IDE May 20 21:40:16 It's a very good one May 20 21:40:25 You are just using the free version :) May 20 21:40:47 is the one google provides May 20 21:41:06 So? May 20 21:41:23 You can still use a decent one May 20 21:41:28 And AS is still decent May 20 21:42:55 I don't agree May 20 21:43:49 Why is it bad? May 20 21:44:19 for example I changed the theme and I can't go back. May 20 21:44:30 wat? on AS? May 20 21:44:41 That works perfectly fine for me May 20 21:44:45 and is slow as fuck. Yes, it's because of gradle but.. May 20 21:44:59 alowaniak: https://i.imgur.com/4OHTXdD.png May 20 21:45:13 it's normal that it takes a lot of time to compile May 20 21:45:29 It is slow at first because it has to get deps May 20 21:45:42 then it compiles and runs it on the phone in <30 seconds May 20 21:47:03 <30 seconds? seriously? eclipse compiles in 0.5 seconds May 20 21:47:06 I must be stupid but I cannot figure out how to send an actual msg over http, I can send a request and get a response allright, but hwere do I store the actual data I want to send from client to server and from server to client? I am using HttpServlet for the server and AndroidHttpClient for the client May 20 21:47:28 An Android Project? With dependencies? I doubt it May 20 21:47:29 I kinda agree that gradles slow, but I often click re-build and I guess it does the gradle thing again then? not sure though May 20 21:47:32 I've used eclipse before May 20 21:47:52 gdrc, what is it that you want there? you want the theme back to white? May 20 21:47:59 Btw, you can use mvn if you don't like gradle :) May 20 21:49:03 because youre in the editor color & fonts, if you want the windows white you need to change the theme in appearance May 20 21:49:28 alowaniak: I deleted .AndroidStudioPreview resetting Android Studio May 20 21:50:23 gdrc, also, if you want stability, dont use betas! May 20 21:50:29 gnite May 20 21:50:59 autrilla: as I said, if you want to use recent libs, you have to use android studio. May 20 21:51:13 an example? https://github.com/gabrielemariotti/cardslib May 20 21:51:47 I know a few people who use Eclipse with the Gradle plugin, but personally, I'm sticking with AS. May 20 21:52:03 I really kinda hated eclipse though May 20 21:52:08 and always loved IntelliJ for Java May 20 21:52:14 so I really like AS May 20 21:55:52 I'm trying to write a script that preforms an action if the screen is off. Is there a way to make my script check that? I think powerManager.isScreenOn() is the way to go, but I don't know how to use it in a script May 20 21:59:18 g00s so I ended up getting them to recompose my virtual machine and now everything works fine. staying at 0.4.4 of AS, which is the latest stable. i had previously updated to 0.5.8. I was using 0.5.8 before though, and at home, so I don't knwo what crazyness happened May 20 22:00:10 0.4.4 ? May 20 22:00:17 i don't think AS has a "stabe" XD May 20 22:00:21 *stable May 20 22:00:25 g00s well, it is the latest in the stable channel May 20 22:00:31 https://dl.dropboxusercontent.com/u/3729552/Adapter.zip can someone look at my code and tell me why my view headers disappear on drag? May 20 22:00:31 huh, really May 20 22:00:47 g00s yeah, you can go to ide settings, update and switch channels between stable, dev, and canary May 20 22:00:54 Napalm, helped on this code too, well, to be honest, wrote most of it May 20 22:02:30 mattblang yeah thats been there for a while, but only recently whatever you selected was actually saved May 20 22:04:05 mattblang that old AS, using a really old gradle plugin too May 20 22:04:13 yuck May 20 22:04:46 g00s yeah, im scared to update though after the Failure [INSTALL_FAILED_DEXOPT] May 20 22:04:46 issues I had today May 20 22:04:55 mattblang see, i just went to change from canary to dev, and it went right back to canary when i restarted AS May 20 22:12:51 is Runtime.exec allowable on a production app? May 20 22:22:05 g00s: might be a bug rather than an unimplemented feature May 20 22:25:38 yiati its been filed as a bug for a while May 20 22:25:55 Well there ya go May 20 22:26:06 i'm guessing there are only canaries :) May 20 22:26:28 and if they say its stable, its a stable canary :) May 20 22:27:29 hello. I've got a device which only shows Log.e in logcat, I'm unable to use it to show Log.v and Log.e (priorities are set up correctly in the logcat window) any clue? May 20 22:27:40 (Log.v and Log.d) May 20 22:29:05 maybe need debug=true and / or phone in dev mode ? May 20 22:29:06 does getchildat work in a list with multiple view types? May 20 22:29:47 g00s: phone has usb denuggng enabled May 20 22:56:33 If I have an app with 5 different ( functionality/UI ) sections each navigated to by a bottom tab bar. Can I create activities for each and have a global UI tab bar element or do I use the ActionBarActivity and make each fragments? The only thing is I read fragments should all basically be the same just display different data. May 20 22:58:15 The goal is to have a global navigation bar. I'm just confused while learning Android that there isn't any global UI elements. May 20 22:59:00 petecouture: I have a similar set up in the app I’m working on now. I set it all up with fragments and it’s working pretty well so far. May 20 22:59:22 and each fragment is pretty different. I’m not sure why they should be expected to be largely similar. May 20 23:00:18 they are very much like mini-activities. May 20 23:01:30 Ya I wasn't sure. Every 'activity' is ratically different and I read best practices is that fragments should be the same class just display different data May 20 23:04:18 I guess you’ll have to make a judgement call on how different is different enough May 20 23:07:41 Has anyone here used unity to make an android game May 20 23:07:45 If so what language did you use May 20 23:10:53 Onces a social mapping activity, the others an OpenGL camera recorder May 20 23:11:12 I'm not too firmilar with it but isn't Unity it's own language? May 20 23:20:48 I think it supports a few languages May 20 23:21:40 What language do you know? May 20 23:33:30 i hate it when logcat suddenly decides it’s not going to work for a while. May 20 23:37:16 yeah, happens a lot May 20 23:37:23 at least in AS May 20 23:37:48 its weird, because adb devices will shows the device, and AS can deploy the apk to it ... May 20 23:37:52 but no logcat :| May 20 23:38:15 i'd brush this off in 2009 (hah, maybe not) but in 2014, gotta be kidding me May 21 00:09:11 Napalm there by any chance ? May 21 00:10:32 yus May 21 00:11:36 Napalm hey quick q; if you try Google Drive Nav drawer, you'll see some items kinda greyed like 'Settings'. This thing is a listview; but since i can still make Settings focus its not disabled by the adapter. any idea how they did that ? May 21 00:12:12 when you click it, it doesn't turn blue … but shows a grey on click May 21 00:12:43 well yea.. May 21 00:12:49 just use a different selector May 21 00:12:59 on the background of the view May 21 00:13:05 or foreground May 21 00:13:11 and use a different viewtype in your adapter May 21 00:13:38 wait, they all touch grey May 21 00:13:43 what are you asking? May 21 00:16:55 ah i think i know whats happening, sorry May 21 00:17:20 g00s: you know you can have color selectors May 21 00:17:26 not just drawable May 21 00:18:04 yeah Cyril had a nice article here http://cyrilmottier.com/2011/08/08/listview-tips-tricks-3-create-fancy-listviews/ May 21 00:19:22 see, for my version of the nav drawer, i didn't call setItemSelected(position) for Settings ... May 21 00:19:46 I use activated May 21 00:19:49 hoping that would do the trick but i must have goofed up May 21 00:19:58 k May 21 00:25:41 Napalm do you use choiceMode="singleChoice" for the listview in the drawer ? May 21 00:25:48 yes May 21 00:26:31 g00s: what's your minSdk? May 21 00:26:44 hm, 15 May 21 00:26:55 just add activated in your selector May 21 00:27:01 it will "just work" May 21 00:27:10 when using any choiceMode May 21 00:31:28 Petecourthe: I know java and c++ and c# May 21 00:52:22 Hi all. n00bie question. If i import a lot of classes starting with the same name, like android.widget for example, I get a import android.widget.*; notation May 21 00:52:41 what is this, it imports all classes starting with android.widget? May 21 00:58:30 ThomQ just let your ide handle that May 21 00:59:52 yeah, im having some troubles with some classes that should be appcompat v7 classes and such, and I can't look em all up :) May 21 01:01:16 the main problem i have is that whenever i try to import android.support.v7.widget.ShareActionProvider;, my calls to setActionView and getActionBar get deprecated, and I have no idea why May 21 01:07:03 How can I view the contents of an AndroidManifest.xml file? May 21 01:07:15 ? May 21 01:07:28 open it up in an editor :| May 21 01:08:13 I'm creating APKs with Unity3d/MonoDevelop and the manifest files are encrypted or something. They're unreadable May 21 01:11:28 BwestOZ: in your project folder, there will be a temp or tempbuild folder or something in that nature, after you've build the apk. This is basicly android folder Unity generates, this is where you can get the standard android manifest from May 21 01:11:55 Copy that one to Plugins/Android/ folder in your project, and Unity will use that copied manifest when compiling the next build May 21 01:12:30 through the same method you can overwrite methods, and totally mix it up when it comes to unity and android May 21 01:12:55 for 1 project i build a bridge plugin, so I could use unity and android's Youtube API at the same time May 21 01:13:45 g00s: you about? May 21 01:13:58 Napalm yea May 21 01:14:20 you ever change the title and have it elipsis May 21 01:14:35 i've turned on view bounds and the title view in the actionbar is not resizing to fit the text May 21 01:14:52 this is completely default behaviour no external styles or anything May 21 01:19:24 ThomQ; thanks I'll have a look there May 21 01:20:04 Napalm what if you called actionBar.setDisplayShowTitleEnabled(true); again before setting the title? May 21 01:20:45 or toggle it, maybe it resets some internal state May 21 01:22:29 good call May 21 01:22:38 works May 21 01:22:43 but its really shitty May 21 01:22:57 i want to know why it doesn't work in the first place May 21 01:44:43 g00s: here's my solution May 21 01:44:44 http://stackoverflow.com/questions/21911045/android-action-bar-title-ellipsis/23772710 May 21 01:44:53 bloody weird May 21 01:45:29 hm, indeed May 21 01:46:26 elipsis... May 21 01:46:36 *ellipsis... May 21 01:49:04 so, setUserVisibleHint is not always called from the Ui Thread. so you have to post to the Ui thread. fine. then if i just use getActivity().getActionBar().setDisplayHomeAsUpEnabled(true); it works.. without posting it doesn't change the actionbar May 21 01:50:24 but even if i post the settitle on actionbar it doesn't change the textview size only the text May 21 02:13:54 hello, i need help with the keyboard May 21 02:14:08 the buttton "enter" not appears in my app May 21 02:27:34 zzzz May 21 02:31:01 has anyone done unit tests with fragments? May 21 02:34:19 my unit test just refuses to capture a reference to one of my fragments May 21 02:48:46 Anyone taking MOOK course on Coursera ? May 21 02:51:42 Ram_: just watching the lectures on this one May 21 02:51:50 i did the whole thing for the previous one in the series May 21 02:52:17 pralith, is there a irc for discussion ? May 21 02:52:32 or is it on the coursera discussion forum alone ? May 21 02:53:12 Is a black 'X' on white background the default Notification large icon? May 21 02:53:15 there is a room that was used on the previous course, #coursera-android, but it seems pretty quiet this time around May 21 02:53:27 It is what I have. Having trouble getting my custom png used to generage the large icon. **** ENDING LOGGING AT Wed May 21 02:59:58 2014