**** BEGIN LOGGING AT Sun Nov 17 02:59:59 2013 Nov 17 03:34:28 is genymotion still free if i personally use it in the office? Nov 17 03:36:32 "personally use it in the office" Nov 17 03:38:22 aka use it commercially Nov 17 03:38:50 no no no i'm not putting it in any commercials Nov 17 03:39:07 And i'm not using it with help Nov 17 03:39:13 always personally Nov 17 03:40:02 Ask genymotion Nov 17 03:53:22 I doubt you could use it "while in employment time at a comapny" Nov 17 03:53:27 reguardless of use Nov 17 03:53:37 or thats the way the agreements go Nov 17 03:53:42 normally Nov 17 03:54:55 what tools are available to measure and diagnose performance in an app ? Nov 17 03:55:10 are the docs still current on such things ? Nov 17 03:55:13 Traceview Nov 17 03:55:54 ok Nov 17 04:03:46 ok now just need to learn how the fk to read all this crap Nov 17 04:03:48 :) Nov 17 04:04:10 Yeah, it can be a hassle Nov 17 04:04:21 You need some understanding of how Android works Nov 17 04:04:43 it would appear I'm lacking in such area Nov 17 04:04:53 Like TextView delegates a lot of work to a Layout subclass, etc Nov 17 04:04:55 nice colors though ;) Nov 17 04:05:11 It's not obvious what is taking time if you don't know how Android works Nov 17 04:07:13 huh, crashlytics seem quite heavy, from the CPU stats Nov 17 04:08:17 What's it doing? Nov 17 04:08:30 well nothing cept starting Nov 17 04:09:03 Not sure what it would be doing other than attaching an UncaughtExceptionHandler Nov 17 04:09:22 oh wait, I grab some settings stuff Nov 17 04:09:29 and log them, thats why Nov 17 04:09:34 Anything extra should really be done on a thread, or forced on exception handling Nov 17 04:10:01 yeah, I'm staring at all this and it's not getting any clearer Nov 17 04:10:04 Don't forget traceview Nov 17 04:13:00 DarkSlay3r: using it, doesn't make it any easier to read for me :) Nov 17 04:13:22 I think they need a creative type to design a better way to present this info Nov 17 04:14:04 have you already identified jank and now you're using traceview to try to figure out where it's coming from, or are you looking for jank? Nov 17 04:14:30 jank ? Nov 17 04:14:39 lag Nov 17 04:14:53 like dropped frames during an animation Nov 17 04:15:12 not so much drops in frames Nov 17 04:15:31 I have a viewPager I want to know why it's a bit slow Nov 17 04:15:53 slow in what way? scrolling? Nov 17 04:16:10 and my inital load of db info, want to see how I can speed that up, and also look at conditional alignment costs of some of the views Nov 17 04:16:16 swiping yes Nov 17 04:16:25 nex5 = split sh*t Nov 17 04:16:25 If you're updating the ui during scrolling/animating, that's likely why Nov 17 04:16:39 galaxy nexus, like the phone is erm…. throttled Nov 17 04:16:50 SimonVT: I am not Nov 17 04:17:02 for the db load traceview is pretty valuable, as you have a clear start/stop point and it will more or less identify the expensive methods. But make sure to turn method tracing back off after you make improvements as it has a lot of overhead Nov 17 04:17:18 I also have scroll listeners for some of the more heavy things Nov 17 04:17:49 for swiping traceview is harder as you'd need to run over a much less well defined set of instructions Nov 17 04:18:33 android 4.3+ has a really nice developer setting for "Profile GPU Rendering" where it can let you know if you're not drawing at 60fps (or not consistently doing so) Nov 17 04:19:14 Create a button that swipes to the next page, profile that¨ Nov 17 04:19:30 Then you don't have e.g. touch events in your traceview, just what happens on each frame Nov 17 04:21:03 also even with background threads, doing work that causes garbage collection during animations will cause jank. like if you start loading images in the background while switching view pager tabs, garbage collection triggers and stops the UI thread for longer than 16ms and you drop frames Nov 17 04:21:42 odd thing is I can understand frame drop in such cases Nov 17 04:21:51 just not what I would call…. slowdown Nov 17 04:22:07 it;s smooth, just…. erm slow Nov 17 04:25:15 o wow Nov 17 04:25:20 this gpu bar graph on screen stuff is quite good Nov 17 04:26:10 and totally odd at the same time, as a gnex spikes off screen when I play a menu popup anim, and on a nex5 it hardly registers Nov 17 04:26:47 As long as the spikes aren't during the animation Nov 17 04:27:29 for the whole duration of it Nov 17 04:27:31 from what I see Nov 17 04:29:00 huh, I think there maybe a prob with this gnex Nov 17 04:29:06 cause just looked on an old galaxy s and it's fine too Nov 17 04:29:37 so at either side of the spec spectrum it's fine, but gnex stutters (to the point it looks like there is no animation) Nov 17 04:30:03 so much for these tools helping me diagnose this crap, they just seem to make things more confusing :) Nov 17 04:31:13 hardware rendering does differ from device to device, so sometimes you have to tune your code to work well across devices Nov 17 04:32:18 hmm, this seems like it will be lots of time to dedicate toward me learning and then solving, so gonna pass this by till I'm feature complete I think Nov 17 04:32:46 I am doing some quite crazy visual stuff that is not as androidy as it should be Nov 17 04:48:35 is it possible to send data to asynctask before it starts? Nov 17 04:49:02 can you elaborate Nov 17 04:49:25 well i need the asynctask to do some http work, but i need to send an url to it first as string Nov 17 04:49:53 can't you just have the URL in a final variable that is used by the asynctask Nov 17 04:50:06 no, because im not certain what the url will be Nov 17 04:51:13 well Nov 17 04:51:22 you can pass arguments to AsyncTask.execute Nov 17 04:51:27 and they are received by doInBackground Nov 17 04:51:49 ah cheers Nov 17 04:52:29 the first type in AsyncTask Nov 17 04:52:38 doInBackground receives a variable number of A Nov 17 05:04:19 I have a question. I just started android development today and I'm working on doing some of the tutorial projects. I'm on the ActionBar one. According to proper Android Iconography I downloaded the resource icon pack but it includes icons for multiple themes Nov 17 05:04:27 How do I know which theme icons to use? Nov 17 05:04:31 Can't my app support both? Nov 17 05:06:33 both what ? Nov 17 05:06:49 you can have different "styles" and make up "themes" Nov 17 05:07:25 I downloaded the Icon resource pack and it came with icons for Holo Dark Nov 17 05:07:28 And Holo Light Nov 17 05:07:34 The Holo Dark icons are white Nov 17 05:07:35 indeed Nov 17 05:07:39 The Holo Light Icons are dark Nov 17 05:07:49 a dark theme would need "light" icons Nov 17 05:07:51 I need to explicityly use one of these two for my app according to the tutorial Nov 17 05:07:53 or you would not see them Nov 17 05:07:54 lol Nov 17 05:08:00 How do I know which one to use... Nov 17 05:08:08 Why can't my app support both themes Nov 17 05:08:23 it can Nov 17 05:08:26 How do I include both icon sets and have it pick which one to use Nov 17 05:08:27 with styles Nov 17 05:08:28 Based on the theme Nov 17 05:08:38 Oh Nov 17 05:08:40 look at the style and themeing docs Nov 17 05:08:43 This might be beyond where I'm at Nov 17 05:08:53 maybe indeed Nov 17 05:08:54 I have only done the basic UI tutorial so far Nov 17 05:09:06 The next one after that was Action Bar tutorial Nov 17 05:09:12 Should I just ignore this for now? Nov 17 05:09:49 sounds like you should Nov 17 05:10:02 as to what you choose, you choose the one that works Nov 17 05:10:12 hint, black on black, never a good idea Nov 17 05:10:33 Yeah makes sense Nov 17 05:10:54 I have a custom DialogPreference with dependents, but the dependents don't get disabled because shouldDisableDependents is not called, can I fix this? Nov 17 05:12:26 StingRay_, Where is this theme even set anyways? I can't find changing between light and dark in my emulator Nov 17 05:13:38 shawn: http://developer.android.com/guide/topics/ui/themes.html Nov 17 05:14:55 StingRay_, But for example if my emulator is using Holo Dark how would I switch it to HOlo Light if I wanted to Nov 17 05:15:02 Or is this something that the user can't do Nov 17 05:15:18 read about styles and themes Nov 17 05:15:26 and search on google Nov 17 05:15:45 I dont use android styles or themes for my themes and styles, and I dont use the emulator Nov 17 05:15:46 :) Nov 17 05:17:08 I think I might be confused. Are these themes (Holo Dark and Holo Light that I have read about) per app or are they for the whole device Nov 17 05:17:11 FOr all apps Nov 17 05:17:43 I'm starting to think it's per app Nov 17 05:18:03 if you read that link it tells you Nov 17 05:18:10 both the app and platform relevance Nov 17 05:18:12 how do i detect when url changes in webview? Nov 17 05:22:27 StingRay_, I think I understand now. I was going to go mess around with my app to see if I'm understanding correctly but currently it is set to android:theme="@style/AppTheme" >. What does that mean? Nov 17 05:22:50 hi all... Nov 17 05:23:08 shawn: that it would be using a style called AppTheme Nov 17 05:23:39 StingRay_, Oh so eclipse created it's own theme for me Iguess Nov 17 05:23:42 When I made my project Nov 17 05:23:43 anyone messed with widgets much? I'm having trouble grasping the difference on how to access/inflate the layout so I can update the contents in a listView on it Nov 17 05:23:43 Okay Nov 17 05:23:46 as defined in a resource that is of type "style" Nov 17 05:23:47 Makes sense Nov 17 05:24:12 make more sense if you read that link I pasted Nov 17 05:24:32 although personally like I siad, not sure I agree with the restrictive nature of android styles Nov 17 05:24:33 I read most of it and I am pretty sure I understand nwo Nov 17 05:24:46 I think i should be using RemoveViews, would that make sense? Nov 17 05:24:49 so I personally dont use them Nov 17 05:25:00 StingRay_, I think I should stick with using Android styles for now until I get more comfortable? Nov 17 05:25:28 depends on requirements, one person cannot answer that Nov 17 05:25:40 that up to you what you do and what is best Nov 17 05:26:04 StingRay_, Fair enough. Since I'm a complete beginner to this and I don't even know what an alternative to android styles is I'll stick with them fo rnow Nov 17 05:27:07 Is the layout already inflated by the time I'm in my appWidgetProvider class? Nov 17 05:27:21 or any suggestions on something I could read to help understand? Nov 17 05:31:13 I guess remoteViews.setTextViewText(...,...) replaces findViewById, etc... ? Nov 17 05:34:57 81% of all smart phones in the world are now android ! Nov 17 05:38:17 would this be a codename for a device: ro.build.version.codename=REL Nov 17 05:38:19 ? Nov 17 05:40:18 no Nov 17 05:41:00 Crimson_Rogue: http://developer.android.com/reference/android/os/Build.VERSION.html Nov 17 05:41:07 google + search = answer Nov 17 05:41:43 http://developer.android.com/reference/android/os/Build.html Nov 17 05:42:03 google + common sense + search = correct info Nov 17 05:42:04 :) Nov 17 05:42:19 :/ Nov 17 05:42:25 :(((((((((((((((((((((((((((((((((((((((((((((((((((((9 Nov 17 05:46:21 StingRay_, Why is android:Theme.Light available to me but I can't use Android:Theme.Dark Nov 17 05:46:32 StingRay_, Aren't these defined by default Nov 17 05:47:42 you really havent taken in what I said have you lol Nov 17 05:47:55 like you probably read it, but it didn't actually go in Nov 17 05:48:20 This guide says to always define the android holo themes as parents Nov 17 05:48:22 To custom themes Nov 17 05:48:26 So I'm trying to make a custom theme Nov 17 05:48:31 With the android dark as a parent Nov 17 05:48:34 But it can't find it Nov 17 05:49:05 What am I misunderstanding? Nov 17 05:49:28 at a guess/Guess …. <--- that Nov 17 05:49:48 but your still not getting what I said earlier Nov 17 05:50:08 so directing those kind of questions to me is a bit pointless Nov 17 05:50:12 please read back :) Nov 17 05:51:17 Yeah I understand that you don't use Android styles but I just figured you might have some understanding because I'm confused Nov 17 05:51:44 well you do know why it wont find "Android:" right ? Nov 17 05:51:52 but it will find "android:" Nov 17 05:52:27 This is what it had before: parent="android:Theme.Light Nov 17 05:52:29 And this works Nov 17 05:52:38 I changed it to: parent="android:Theme.Dark Nov 17 05:52:41 ANd now it doesn't work Nov 17 05:53:10 I literally only modified one word Nov 17 05:54:35 how old are you btw ? Nov 17 05:54:40 out of interest Nov 17 05:54:45 21 Nov 17 05:54:53 i did it :D Nov 17 05:55:29 oops you did it again Nov 17 05:56:26 shawn: just as a test, I didn't even put in context with a question and I got the answer http://bit.ly/1aKMhyO Nov 17 05:56:43 you really should learn to just, erm… look/find Nov 17 05:57:08 Dragonya: I think Asynctask has a preExecute Nov 17 05:57:09 blah, screen_bright_wake_lock doesn't really keep the screen bright Nov 17 05:57:19 shcmooz its aight i got it Nov 17 05:57:46 StingRay_, Oh.. I honestly didn't consider that the name was wrong. I assumed I was misunderstanding something Nov 17 05:57:57 StingRay_, Sorry Nov 17 06:44:53 Anyone have some Android studio tutorials targeted towards newbies? Nov 17 06:47:42 hey uh Nov 17 06:47:59 does anyone know why a tab pager header isn't taking up full width? do i need a custom style? Nov 17 06:48:08 im tryinbg to make it like http://i.imgur.com/4imShZu.png Nov 17 06:48:11 but it ends up more like Nov 17 06:48:24 http://content.screencast.com/users/s0beit/folders/Jing/media/8d0330af-3807-4e65-ae4a-15e5eda98b1b/2013-11-17_0048.png Nov 17 06:48:35 i want full width, though Nov 17 06:49:19 Using a width property? Nov 17 06:50:03 I'm using v4.view.ViewPager and FragmentPagerAdapter Nov 17 06:50:07 which width property would i adjust? Nov 17 07:05:11 Anyone know of an example where I can see a widget that is using a custom ArrayAdapter to populate a ListView? Nov 17 07:05:14 I' Nov 17 07:05:16 m having trouble :( Nov 17 07:43:16 is anything regarding xml different in android than java? Nov 17 07:43:25 *from java Nov 17 07:48:41 phutchins are you adapting a primitive type or your own object? Nov 17 08:06:38 Hello, I've made this app for my own personal use but I think most developers and app owner will find it useful. It's a calculator that retrives your app Google Play rating and let you play with the numbers. see the effects of adding/removing ratings. Nov 17 08:06:49 and the link :) https://play.google.com/store/apps/details?id=com.appratingcalculator Nov 17 08:21:56 Can someone provide help with this question: http://stackoverflow.com/questions/19978583/ending-a-specific-call Nov 17 08:22:11 it's about ending a specific call Nov 17 08:51:30 Hi Nov 17 09:01:46 hello Nov 17 09:02:28 is it possible to attach gyro externally? my device does not have one Nov 17 09:07:22 Hi! what's the best Unit testing framework for Android? Nov 17 09:08:10 I prefer to run my unit tests in the JVM. is robeletric the only way to go? Nov 17 09:08:32 do you have any experience on this topic? Nov 17 09:08:57 paulo_, bluetooth? I dunno if it's possible Nov 17 09:09:20 paulo_, I mean for sure it is, but I dunno if there are BT gyro sensors Nov 17 09:09:22 in the market Nov 17 09:10:07 ah yeah, im sure it is. would be a fun project though Nov 17 09:10:37 i think the hardest part would be learning the driver apis Nov 17 09:11:59 paulo_, if it's bluetooth I think it will work with a simple serial protocol Nov 17 09:12:12 paulo_, quite simple I guess Nov 17 09:19:01 i'd need to interface it to the os such that apps can use it. Nov 17 09:19:18 im sure i need a proper driver Nov 17 09:46:12 Anyone kno if there is a way to change line length in logcat? Nov 17 10:31:14 trying to understand super. Nov 17 10:31:27 but why would i need to refer to the parent, if i'm inside the parent already Nov 17 10:31:29 dont get it Nov 17 10:32:42 anew: what about a class extending your parent and overriding your method? Nov 17 10:33:18 well... ok but i always see super.onCreate Nov 17 10:33:34 is that an example of overriding Nov 17 10:33:46 if the process is killed ? Nov 17 10:33:58 I want to have a labeled checkbox in the main activity that is linked to a preference. Right now I am using a Checkbox element in the XML file and adding a OnCheckedChangeListener to update the preference. Are there better ways to accomplish? The preference is retrieved only one one a certain event in a service. Nov 17 10:34:55 anew: you will see something like class YourActivity extends Activity { @Override public void onCreate(Bundle b) { super.onCreate(Bundle b); /*..*/ } } Nov 17 10:35:06 right Nov 17 10:35:11 i'm looking exactly at that Nov 17 10:35:15 what you described Nov 17 10:35:19 but why is the super.onCreate needed Nov 17 10:35:25 whwat are we refferring to there Nov 17 10:35:29 that calls the onCreate method pf the parent (Activity) Nov 17 10:35:35 pf = ? Nov 17 10:35:40 of* Nov 17 10:35:48 mmmmm Nov 17 10:35:49 i see Nov 17 10:35:58 so it has nothing to do with public void onCreate Nov 17 10:35:59 correct Nov 17 10:36:09 I suggest you to read a basic tutorial of inheritance if you haven't done so Nov 17 10:36:09 it's referring to extends Activity Nov 17 10:36:21 yes i'd love to, do u have a link maybe Nov 17 10:36:44 random first google hit that looks reliable: http://docs.oracle.com/javase/tutorial/java/IandI/subclasses.html Nov 17 10:37:20 It's not a bad idea to follow the whole Java tutorial there Nov 17 10:37:25 ok Nov 17 10:37:59 ok thx Nov 17 10:39:19 i see Nov 17 10:39:36 so super.onCreate is overriding onCreate that is part of Activity Nov 17 10:40:01 is that correct Nov 17 10:41:01 no, the YourActivity.onCreate method overrides Activity.onCreate, but it extends the functionality of Activity.onCreate by also calling super.onCreate Nov 17 10:41:22 ah Nov 17 10:41:24 gotcha Nov 17 10:42:19 http://docs.oracle.com/javase/tutorial/java/IandI/super.html was reading here Nov 17 10:42:21 thanks a lot man Nov 17 10:42:25 (or woman) Nov 17 10:43:59 It kind of kills me that android forces the 'super' call and has code to check that you did so Nov 17 10:44:19 would have been much easier to declare platform's "onCreate" method as final and make that call a method that is user extension point Nov 17 10:44:48 and then exclude the platform-specific methods from documentation. You'd save the code to check that super.onCreate gets called and everyone saves the effort to call the super method. Nov 17 10:45:21 it's imho pretty stupid that this transformation hasn't been yet done on android classes. It would eliminate lines of code both in the platform and in user applications. Nov 17 10:46:28 anew: man, thanks ;) Nov 17 11:03:59 is there a way to send serial data from android to arduino ? Nov 17 11:06:31 Possibly Nov 17 11:07:49 DJ-Rack: I know there's an app that compiles sketches and sends them to arduino over OTG Nov 17 11:08:39 i was wondering if there is a way to download files without using the downloadmanager Nov 17 11:09:54 tell me guys.. if i want to compress a file as ZIP which zip is used in Android Java library? GZIP or WinZIP? Nov 17 11:11:02 superlinux-hp: java has implementation of zip format compression. Nov 17 11:11:33 alankila, i am asking for which format of zip is used Nov 17 11:11:48 basically a zip file is a collection of binary files and a dictionary with fixed length record per file. The files may be compressed by algorithm called deflate, or stored as-is, or use other algorithms supported by the version of the zip standard. Nov 17 11:11:49 there is gzip too Nov 17 11:11:53 there's also 64-bit zip but afaik it's not used. Nov 17 11:12:19 gzip is a specific compression program using deflate and a small extra header that records original file name iirc Nov 17 11:12:26 it doesn't generate zip archives Nov 17 11:12:30 does it suppot password protection? Nov 17 11:12:35 *support Nov 17 11:12:42 seitensei: there is an app that sends data over serial but i want to code it into my project Nov 17 11:12:44 gzip? no, it doesn't know how to make zip files. Nov 17 11:13:02 seitensei: so there is a way but how =P Nov 17 11:13:36 DJ-Rack: https://github.com/mik3y/usb-serial-for-android Nov 17 11:13:47 there is a format of GNU zip the gz Nov 17 11:14:20 seitensei: i was trying to work with that then i gave up, i'll try it one more time =] Nov 17 11:14:22 yes, and it is a single file with header followed by the deflate-compressed stream. Nov 17 11:14:25 i have used HTTP download and am writing to the file using FileOutputStream but the problem is that sometimes it only downloads partial file Nov 17 11:15:40 alankila, I ask because i want to know how to compress my files and embed them in my app. at least some measure of protection of my work Nov 17 11:15:47 anyway to go back to the question, the archive created by java's ZipFile, say, will be more like "winzip" than "gzip" like file Nov 17 11:16:34 alankila, thanks. Nov 17 11:17:32 and when it comes to asset protection, it is of course impossible to do but you can erect some roadblocks in the way Nov 17 11:18:56 basically you need to have some difficult-to-discover key to something like standard AES encryption/decryption. Unfortunately there are no real ways to make the discovery of the key impossible. Nov 17 11:19:53 alankila, I mean just some protection.. zip is enough for me Nov 17 11:20:04 it will be in the source. An attacker can modify your code to print it out when he discovers where you construct it. If your assets are images, he can simply screenshot them in ddms Nov 17 11:20:59 alankila, I know.. I have to look further Nov 17 11:21:30 afaik java's ZipFile has no built-in encryption support. Ideally the data is compressed first, then compressed stream digested by a secure hash such as sha-256, then encrypted. Nov 17 11:21:38 alankila, if i got my money I am satisfied.. Nov 17 11:22:20 on reversal, decryption of the digest + the contents, then verifying that the digest matches, then inflating it Nov 17 11:24:49 alankila, thanks for you advice. Nov 17 11:46:22 * Nilium wrote a bit of Scala code to make JsonReader easier to use and now it's awesome. Nov 17 12:20:46 hi! Nov 17 12:21:08 can someone help me with my login screen? Nov 17 12:21:40 * Looney knows of linux screen only :'( Nov 17 12:22:03 now when i install the app to my phone, it creates a different application for the login screen and another for the rest Nov 17 12:22:25 two app ? ? Nov 17 12:22:41 looks like manifest file problem to me Nov 17 12:22:41 tried to do it by the instructions in androidhive tutorials Nov 17 12:22:48 cannot be sure though Nov 17 12:22:48 i can pass the code in pastebin Nov 17 12:22:59 hmm, which one are you following Nov 17 12:23:05 some link Nov 17 12:24:18 i just followed the designing a login screen tutorial and i am trying to get it to work with the rest of my app that i've created earlier Nov 17 12:24:28 i have loginactivity and mainactivity Nov 17 12:24:34 sorry, i'm a newbie :D Nov 17 12:26:34 anyways, here's my loginactivity http://pastebin.com/crE3GeY8 and here's the mainactivity http://pastebin.com/Dkr47VP9 and here's my manifest http://pastebin.com/cCkLmTRH Nov 17 12:27:03 also my app crashes, when i try to login, but that's a whole different problem... Nov 17 12:28:58 and the trace for crash Nov 17 12:31:26 to the best of my knowledge android.intent.action.MAIN should be in the manifest file should not be typed twice Nov 17 12:31:29 thus two apps Nov 17 12:32:20 ahh, i'll try Nov 17 12:32:37 under the tools section/folder in the android sdk manager, which ones do i need to have installed from there? Nov 17 12:32:43 so the loginactivity should be main? Nov 17 12:33:41 searched for ages for a tutorial, to make a login screen so that one would have to login to use the app Nov 17 12:35:17 the idea for this app is to login once and gather data from three different websites that require the same username and password Nov 17 12:36:43 any good links? Nov 17 12:39:30 sp Nov 17 12:39:35 so Nov 17 12:39:36 question about super.onCreate Nov 17 12:40:00 if i am using super.onCreate to override and run my code in addition to onCreate Nov 17 12:40:10 why not just name it something else and dont use super at all Nov 17 12:41:02 because Java Nov 17 12:41:21 seriously Nov 17 12:41:27 a real answer plz Nov 17 12:42:20 ok so got it fixed now Nov 17 12:45:22 tried this, modified it, but my app crashes, when i try to login http://sarangasl.blogspot.fi/2011/06/android-login-screen-using-httpclient.html Nov 17 12:45:47 anyone willing to answer my stupid questions in private, if im too much of a trouble Nov 17 12:45:50 You'd have to ask whoever implemented the Activity class.. onCreate is just called internally by performCreate, no reason for it to be required other than.. yeah.. Nov 17 12:46:33 meh Nov 17 13:06:27 onCreate Nov 17 13:06:43 begins life Nov 17 13:06:53 and onDestroy ends it Nov 17 13:06:57 Beautiful Nov 17 13:09:21 Why doesn't this one work: android:src="@drawable/images/adele" I created some package in drawable-hdpi which is called images and put all the stuff tehre Nov 17 13:10:08 Because you can't have subfolders Nov 17 13:10:51 Yatekii:put them in drawable Nov 17 13:11:07 why can't I Nov 17 13:11:13 that's fck stupid and ugly Nov 17 13:11:15 well Nov 17 13:11:16 thanks Nov 17 13:13:31 Does anyone use android studio? Nov 17 13:15:12 <^cheeky> morning 0/ Nov 17 13:15:34 <^cheeky> DarkSlay3r: yeah , i do, but i am not that fluent with it Nov 17 13:15:58 Actually, that's great Nov 17 13:16:00 <^cheeky> thats all i have been using every since i started app dev/ which is recent Nov 17 13:16:04 <^cheeky> errr no Nov 17 13:16:07 what's your opinion on it so far? Nov 17 13:16:12 <^cheeky> <3 it Nov 17 13:16:16 I'm used to eclipse Nov 17 13:16:24 i was planning on moving Nov 17 13:16:34 <^cheeky> i mean yeah i use eclipse for other stuff, previously Nov 17 13:16:39 <^cheeky> you should do it Nov 17 13:16:43 So pros and cons Nov 17 13:17:11 <^cheeky> i mean i am even surviving being such a noob and its been a preview, and they have bugs being fixed and all pretty goo Nov 17 13:17:14 <^cheeky> good Nov 17 13:17:35 <^cheeky> oh dude, just woke up and ate a crappy scrambled eggs breakfast. Nov 17 13:17:40 <^cheeky> pros dude a lot Nov 17 13:18:13 on eclipse i just get 'launching' in the bottom right Nov 17 13:18:17 it hangs at 100% Nov 17 13:18:19 <^cheeky> cons .. this gradle thingy. but this is the first time i am using a build system, but kinda seems simple , but its user error on my part tho Nov 17 13:18:19 anyone ever get that Nov 17 13:18:41 ok... i don't like complications... Nov 17 13:18:51 I guess i'll try it and see Nov 17 13:19:04 but i doubt i'll be permanently moving Nov 17 13:20:04 Activity.performDestroy calls FragmentManager's dispatchDestroy() *before* it calls Activity.onDestroy(). This causes problems for me because in onDestroy() I call ViewPager.setAdapter(null), which tries to perform a fragment transaction. The transaction fails because performDestroy has already marked the activity as destroyed Nov 17 13:20:28 I need the ViewPager.setAdapter(null) because otherwise there is a lingering observer reference that, again, causes calls to my destroyed activity Nov 17 13:20:47 am I doing this in the wrong place or is this some kind of bug in the framework? It seems to me that Activity.performDestroy should call onDestroy() first, before the FragmentManager marks the activity as destroyed Nov 17 13:21:09 <^cheeky> DarkSlay3r: one thing coming from eclipse was the intell-sense thing auto completion makes it so easy to write code .. its kinda scary and the android design and asses icons on the side. i dunno dude a hell of a lot of pros ,just makes development enjoyable Nov 17 13:21:24 <^cheeky> terminal , zoo much Nov 17 13:21:40 <^cheeky> its insanely good dude, you should @ least give it a try Nov 17 13:23:08 <^cheeky> flodin: ummm n00b here. trying moving the nulling of stuff before you call the destroys super method. Nov 17 13:23:42 thanks Nov 17 13:23:51 I think i'll give it a good try Nov 17 13:25:43 <^cheeky> DarkSlay3r: on and VCS intregaition is ace m8 Nov 17 13:26:15 <^cheeky> err even tho i use command line git, but i still use VCS in AS to check stuff visually i dunno Nov 17 13:26:18 <^cheeky> noob here Nov 17 13:26:20 ^cheeky: thanks, but I'm already doing that. The activity has already been marked as destroyed before my onDestroy() is even called. Nov 17 13:27:39 just as i typed that eclipse crashed my computer lol Nov 17 13:29:38 <^cheeky> flodin: i am not smart, but i am a lil confused ... did you check if view pager is not null Nov 17 13:36:00 Willing to pay: Anyone here who can help a poor fool get his HTC One X back up and running? I'm ok with a Custom or Default ROM - I would just like to sell it. Nov 17 13:37:21 ^cheeky: sure, if it wsa then i'd get a NullPointerException when calling the ViewPager. The problem happens much deeper inside the ViewPager.setAdapter call chain Nov 17 13:37:28 *was Nov 17 13:40:46 <^cheeky> true, you did not specify saying it was NPE , i guess process of elimination. Nov 17 13:42:42 <^cheeky> call setDestoryChildFragments(false) in onCreate Nov 17 13:43:32 <^cheeky> https://github.com/Prototik/HoloEverywhere/issues/390 Nov 17 13:43:34 <^cheeky> i dunno man Nov 17 13:47:21 i think i'll just do my stuff in onStop() instead Nov 17 13:47:22 <^cheeky> flodin: sorry man i couldn't be much of help you, good luck Nov 17 13:47:26 np Nov 17 13:47:32 <^cheeky> i am off to sleep again head ache weird day Nov 17 13:52:07 do i have open and close the emulator every time i want to debug ? Nov 17 13:52:52 Don't think so Nov 17 13:53:03 Also, the emulator sucks. Can't you use a real device? XD Nov 17 13:53:12 real device for testing? Nov 17 13:53:22 i'm just editing code over and over, using a real device would take even longer Nov 17 13:53:44 no it doesnt Nov 17 13:54:00 plug it in via usb you mean ? Nov 17 13:54:10 yes just hook it up to the usb port and whenever you start the debugger it'll install the app on the phone and launch it Nov 17 13:54:22 just like with the emulator, except the emulator runs much slower than a real device Nov 17 13:54:34 well, in the future i will do that, but so far just clicking 'run' in eclipse is fine Nov 17 13:54:42 if i can get it to not have to restart everytime i hit run Nov 17 13:55:05 any idea how to do that Nov 17 13:55:09 Yeah, it's faster with a real device, because the emulator's slow as shit Nov 17 13:55:21 try launching the emulator from the list of emulators thing Nov 17 13:55:31 before you start running your code on it Nov 17 13:55:36 anew: just don't close the emulator Nov 17 13:55:51 leave it running and whenever you press run in eclipse it'll restart the app Nov 17 13:56:04 Also, the emulator might have behaviours that a real device wouldn't Nov 17 13:56:07 because it's bad. Nov 17 13:56:08 lol Nov 17 13:56:39 the emulator is good because it has more debug checks enabled, and since it's running AOSP it is easier to single step through the framework code with the debugger Nov 17 13:57:04 Oh, yeah, I guess that's an advantage if your real device is running something that's far from aosp Nov 17 13:57:08 I'm having trouble with gradle, it won't add the support library from the repository. As if it is not recognizing there is one. Help! :) Nov 17 13:57:13 I usually use nexus devices Nov 17 13:59:48 hey guys! since I updated to OSX 10.9, I can't get adb to work.. the devices (Nexus7.2) shows up in the profiler, but adb can't start the server and the file-transfer isn't working either; this is what I pulled from the system.log: http://pastebin.com/qB939bVQ Nov 17 13:59:52 any ideas? Nov 17 14:00:02 well Nov 17 14:00:04 computer crashed Nov 17 14:00:12 fkn eclipse crashes my computer every 10 minutes Nov 17 14:02:56 if your computer crashes, it's some driver or the OS that's misbehaving. Not eclipse. Nov 17 14:03:09 It could possibly be the android debug bridge driver Nov 17 14:03:26 argh Nov 17 14:03:35 just want to do this app dont want to deal with that part now, will look at it later, thx Nov 17 14:09:03 *gnah* found it... even though adb claimed it had updated itself, it was still running as 32bit binary -_- Nov 17 14:20:07 ..or not Nov 17 15:00:07 I have list view and on selection the item shows in bold on 4.0 but in 2.3 it not showing bold Nov 17 15:14:09 mornin Nov 17 15:18:09 i'm having a bit of an issue in with surfaceView Nov 17 15:18:30 I'm trying to apply a frame by frame animation Nov 17 15:18:42 but i can't seem to figure out how... Nov 17 15:18:58 Hey everyone C: Nov 17 15:19:25 They are bitmaps added to an arraylist Nov 17 15:19:47 I want it to be that when i hit them they animate and dissapear Nov 17 15:25:05 how come everything else works in my rss-feed-code, but i get "TAG cannot be resolved" Nov 17 15:26:03 did you name your logcat TAG TAG? Nov 17 15:26:04 turdaani: how are we supposed to know, when we haven't seen your code? Nov 17 15:26:56 sec Nov 17 15:27:55 http://pastebin.com/ZyvmG8vi Nov 17 15:29:05 turdaani: so I suppose you have a class named Constants. Does it actually have a member named TAG? Nov 17 15:29:49 no i dont Nov 17 15:30:04 http://androidresearch.wordpress.com/2013/06/01/creating-a-simple-rss-application-in-android-v2/ Nov 17 15:30:06 followed this Nov 17 15:31:28 If TAG doesn't exist, how is it supposed to resolve it? Nov 17 15:31:45 so what do i do? :x Nov 17 15:33:32 turdaani: read the SDK documentation for Log.d and figure out what value you want for TAG Nov 17 15:33:40 Well, the problem is that TAG doesn't exist Nov 17 15:33:41 then put that in a class named Constants Nov 17 15:33:56 You should be able to figure out what you're supposed to do then Nov 17 15:34:54 ok, ty Nov 17 15:37:03 figured it out now Nov 17 15:38:10 eclipse ide I have xml file in drawable-hdpi folder open and auto complete is not working Nov 17 15:38:42 I have list and I want to apply background drawable for list as well as list item Nov 17 15:52:02 Hey guys...My AVG for Android detected "Network" as a intrusive adware app Nov 17 15:52:08 so what is this "Network" thing? Nov 17 15:52:46 Ask in #android Nov 17 15:52:52 morning. anyone here used AndroidASync library to connect to socket.io ? Nov 17 15:53:01 SimonVT: asking in more channels means getting more answers Nov 17 15:53:02 I'm getting "unable to complete websocket handshake" Nov 17 15:53:56 Leeds: Asking in -dev means getting kicked :p Nov 17 15:54:05 SimonVT: nah it doesn't Nov 17 15:55:45 We'll see Nov 17 15:58:24 i just downloaded Android "bundle" and imported a project and got this "01_FirstApp_GeoQuiz] Unable to resolve target 'android-17'" what to do? Nov 17 16:00:50 i want to have a drawable that consists of 2 shapes, one is a background shape, and one should be a line of solid color at the bottom of this shape. So i have a layer-list with these 2 items. How can i get the line to be at the bottom instead of in the center? Nov 17 16:14:17 i'm following a tutorial Nov 17 16:14:22 Button save = (Button)findViewById(R.id.save); and this is one of the lines Nov 17 16:14:31 i cant figure out what (Button) is for why do u put it there Nov 17 16:14:41 where can i read about this kind of syntax Nov 17 16:15:07 I suggest a good Java book. Nov 17 16:15:17 or... any programming book Nov 17 16:15:22 lol Nov 17 16:15:23 it's a rather standard casting syntax Nov 17 16:15:35 It is a class cast. It means that findViewById returns something called a View Nov 17 16:15:56 my questin is why cant i just do Button save = findViewById(R.id.save); Nov 17 16:16:01 it doesn't know what kind, statically. If you want to use the Button api on the returned value, you need to cast it to a button and store it in a variable typed as button Nov 17 16:16:25 anew: it would have been possible with java. They messed up. There is a class cast involved, but it could have been inserted by the compiler. Nov 17 16:16:53 hmmm i see so in java i can do it Nov 17 16:16:55 but with android not Nov 17 16:17:02 specifically, T findViewById(int viewId) { return (T) value; } kind of code would have worked Nov 17 16:17:52 I also think they messed up by allowing findViewById to return null. Almost nobody wants that. Nov 17 16:19:14 ok Nov 17 16:19:18 hmmm thanks Nov 17 16:21:07 they haven't messed up anything Nov 17 16:21:21 Well I think the API is suboptimal in a lot of small ways. Nov 17 16:21:23 the whole point of having a strict typing system is that you can't just do stuff like A = B Nov 17 16:21:33 Mavrik: it'd not be acceptable in java either way Nov 17 16:22:14 if you think about it, Button foo = findViewById(...); and Button foo = (Button) findViewById(...); are really the same thing. In both cases the return value must be of type Button to continue. Nov 17 16:22:38 but it's possible to write the former type of code if you use the java return type inferrence, one of the few things that java can do for you Nov 17 16:23:25 the T findViewById(...) declaration would allow java to infer that in this case T must be a Button or subclass, and therefore a class cast would be inserted by compiler for the programmer, tidying up that small part of the problem Nov 17 16:23:39 mhm Nov 17 16:23:50 it's simply nicer to not have write so much, imho. Nov 17 16:24:32 also, having @ViewById annotations in by default would clean up code immensly as well Nov 17 16:26:11 alankila: write your own API Nov 17 16:26:26 tempting, but it's a monumental undertaking of negative value. Nov 17 16:26:40 Then stop complaining Nov 17 16:26:53 It's not ideal Nov 17 16:26:56 but it works Nov 17 16:27:02 Google could incorporate some of these hacks into android. For instance, that T definition of findViewById would be backwards compatible, all that's different is that you can stop adding the casts now Nov 17 16:27:13 then tell Google Nov 17 16:28:12 DarkSlay3r, dude, chill. Nov 17 16:28:21 Nothing wrong with discussion of shortcomings of APIs Nov 17 16:28:24 Why is android-bundle eclipse crashing all the time? Nov 17 16:28:28 it IS a dev channel afterall. Nov 17 16:28:33 It'd be pleasant to really take a big ax to the whole way android is put together and make it lot simpler/nicer to the programmer. Nov 17 16:28:36 ovrflw0x, it doesn't like the gremlins in your OS. Nov 17 16:28:38 Why is android-bundle eclipse crashing all the time? i've openjdk7 installed 64bit Nov 17 16:28:56 Talk is great Nov 17 16:29:04 alankila, hmm, I'd love to see some other JVM language support Nov 17 16:29:14 Mavrik: ? Nov 17 16:29:18 but writing a list of stuff that we can't do makes me sad Nov 17 16:29:28 the whole view stuff is weird. If android is going to generate a bunch of R.id.xxx and R.layout.xxx, why can't it generate a complete class about every layout for us so we could just do 'R.Layout.Foo foo = new R.Layout.Foo(); setContentView(foo) and have visible members for every view in foo.layout Nov 17 16:29:56 that'd kill the entire findViewById right there Nov 17 16:30:32 Mavrik: you got any idea why it's crashing should i post eclipse log? Nov 17 16:30:49 anyway, I agree that this is a kind of pointless discussion, so I guess I'll do something else. Nov 17 16:30:59 You realize that the xml is more like a style sheet right? Nov 17 16:31:15 ovrflw0x, honesly I haven't used Eclipse for awhile, but post stacktrace to a pastebin and we might help Nov 17 16:31:18 anew: guess who Nov 17 16:31:25 If they generated a class it wouldn't scale well Nov 17 16:31:42 DarkSlay3r: as opposed to reading some customized XML and instantiating objects? That's a ridiculous argument. Nov 17 16:31:47 lol whoever Nov 17 16:32:12 The whole point of it is clarity Nov 17 16:32:19 Mavrik: here's the log showing why eclipse keeps on crashing http://ix.io/93s <-- i'm using google provided android "Bundle" Nov 17 16:32:19 It's why we hate swing and awt Nov 17 16:32:22 it's almost the same work, but if each layout was simply a class with a bunch of views instantiated inside it as members, and generated from the XML, you could throw LayoutInflater to the river, there's no need for it anymore. Nov 17 16:33:01 anew: check pm Nov 17 16:33:12 They would have to create so much compat code Nov 17 16:33:29 SimonVT: I know. It's too late now. But maybe there will be an android-ng Nov 17 16:34:05 something that does things in the simplest possible way and doesn't require a whole lot of porting and stays compatible with previous runtimes. One can dream. :-/ Nov 17 16:34:08 Every time a new qualifier is created that's a new configuration to check Nov 17 16:34:30 ovrflw0x, hmm... looks like there's something connected with SWT. I really suggest you try with Oracle JDK 7. Nov 17 16:48:36 alankila, scaloid and macroid do exactly that Nov 17 16:48:47 alankila, generate classes so that you don't have to findViewById, etc. Nov 17 16:49:13 hmm, actually, no, that's someone else's work Nov 17 16:49:46 https://github.com/jberkel/android-plugin/pull/188 Nov 17 16:56:22 i'm trying to get rid of 'cannot be resolved to type' Nov 17 16:57:07 anew: Most likely you are missing an import or have typoed a class name Nov 17 16:57:33 hmmm Nov 17 17:02:41 Hola Nov 17 17:03:00 algun español que me pueda resolver una duda o ayudar sobre activities en android? Nov 17 17:04:32 anyone can help me? i have any doubts about activities on android Nov 17 17:06:59 doubts are not questions Nov 17 17:07:18 <|0xD34D|> go easy I think it was a bad translation Nov 17 17:07:48 I wonder if there's an irc client that will pipe stuff through google translate automatically Nov 17 17:07:51 hmm, interesting Nov 17 17:07:57 I wonder if google translate has an api Nov 17 17:08:50 used to Nov 17 17:08:58 got closed down when they closed down a bunch of other APIs, too Nov 17 17:10:02 Hi Nov 17 17:10:25 I mean for the app on-device itself Nov 17 17:10:31 rather than a web services api Nov 17 17:11:17 there's a non-free api for the web service Nov 17 17:11:27 $20 per 1 million characters of text Nov 17 17:11:33 how can i add or remove dinamically views on activities on android? Nov 17 17:11:52 by using the apis to add and remove them dynamically Nov 17 17:12:42 i use removeView and addView Nov 17 17:13:06 the n you're done Nov 17 17:13:19 * pfn really likes his new moto x Nov 17 17:13:25 I just really wish it had an unlockable bootloader :( Nov 17 17:13:29 I want to hack the email apk :( Nov 17 17:13:44 i'm finding that when i use setBackgroundResource on my textview, it clear the padding. Is this a bug or am i missing something? Nov 17 17:18:04 apparently working as intended t.t Nov 17 17:26:38 Mavrik: how did you figure out that it was SWT? Nov 17 17:27:54 brb Nov 17 17:28:00 Added youapp namespace and yourapp:showAsAction, but it's not actually showing up in the action bar. Nov 17 17:29:41 Using the android namespace, it works, but I don't know about earlier, non-compatible devices Nov 17 17:30:25 hi everybody! Can anybody tell me, what exactly is necessary to make my app "Designed for Tablets" in the Play Store? The dev console says as tips that I should adapt my layout to 10'' tablets. I already have a two-pane layout at sw600dp, but this is not enough... What are the official requirements? Nov 17 17:31:08 Mavrik: ? Nov 17 17:33:39 http://pastebin.com/ptVQbx1A anyone can help me here, i'm getting 3 errors, first on line 19 'onSave cannot be resolved to a variable' Nov 17 17:34:05 is it possible to set the actionbar's textcolor in code? Nov 17 17:36:36 nevermind Nov 17 18:35:13 Hi there Nov 17 18:35:25 how can I stop a drag? Nov 17 18:40:43 gnuton: that question requires more context Nov 17 18:55:48 Hi, I'm getting this exception: http://paste2.org/fbBWc1sW Nov 17 18:56:07 but I do have the meta-data tag in my manifest file Nov 17 18:57:01 osxorgate, I would like to know how to stop a viepager scroll. the scroll is fired by a drag event I guess Nov 17 18:57:13 No, wrong, I had it inside the element, I just moved it to and the problem is solved :) Nov 17 18:58:45 when i am in bootloader should adb devices return sth or not? Nov 17 18:59:03 <|0xD34D|> no Nov 17 18:59:38 ok thats good Nov 17 19:00:24 i have the problem that i tried installing 4.4 factory image but got this: http://i.imgur.com/Xcq1ySZ.png Nov 17 19:00:27 any idea? Nov 17 19:00:48 <|0xD34D|> this channel is for app development Nov 17 19:00:53 <|0xD34D|> try #android-root Nov 17 19:01:03 k thanks Nov 17 19:01:22 Flaiker, wrong image? Nov 17 19:01:47 Flaiker, but it says no error.. it looks it cannot read the ig Nov 17 19:01:52 img from your pc Nov 17 19:02:37 yea its weird Nov 17 19:02:52 i just extracted what i got from developers.google.com Nov 17 19:03:07 and started the flash-all.bat and it cant load the images Nov 17 19:03:13 maybe my fastboot is wrong? Nov 17 19:07:59 i redownloaded the files, doesnt change anything Nov 17 19:08:01 I was thinking the images were wrong.. but they were not the correct ones the device would have rejected them with an error Nov 17 19:08:40 wait.. do you have to unzip the images or not? Nov 17 19:09:06 I don't remember ifthe process asks for a zip file to be uploaded or single img files Nov 17 19:09:09 i just unzipped the tgz to a tar and the tar to a folder Nov 17 19:09:11 thats it Nov 17 19:10:29 i can however just try flashing the images manually right? Nov 17 19:10:41 maybe ill get an error i can work with then Nov 17 19:11:12 wait Nov 17 19:11:22 the flash-all.bat has "PATH=%PATH%;"%SYSTEMROOT%\System32"" in it Nov 17 19:11:30 thats not where my images are though Nov 17 19:13:28 hey guys, i'm having a weird issue where my android ndk binary works in the emulator Nov 17 19:13:41 but doesn't on a device because of a symbol not found Nov 17 19:14:12 built using an Android-14 toolchain Nov 17 19:14:19 device is 4.2.2, emulator is 4.3 Nov 17 19:15:25 <|0xD34D|> it might help to paste the error message Nov 17 19:15:36 soinfo_link_image(linker.cpp:1635): could not load library "libtorrent-go.so" needed by "./torrent2http"; caused by soinfo_relocate(linker.cpp:975): cannot locate symbol "crosscall2" referenced by "libtorrent-go.so"...CANNOT LINK EXECUTABLE Nov 17 19:15:58 torrent2http => Go program that links with libtorrent-go.so Nov 17 19:16:05 crosscall2 is in torrent2http Nov 17 19:16:15 so it's normally resolved at load Nov 17 19:16:44 any idea what means? Nov 17 19:16:59 i did fastboot flash bootloader bootloader-mako-makoz20i.img manually and got that Nov 17 19:17:03 <|0xD34D|> Flaiker: wrong channel Nov 17 19:17:25 |0xD34D|: i'm assuming it might be a security issue ? Nov 17 19:17:27 ok Nov 17 19:17:36 its the only one i got answers in :/ Nov 17 19:18:17 <|0xD34D|> steeve: so torrent2http needs libtorrent-go.so which needs uses crosscall found in torrent2http binary? Nov 17 19:18:25 exactly Nov 17 19:18:53 and the symbol does exit Nov 17 19:19:37 <|0xD34D|> sounds like the system is trying to load the library first which it can't since it cannot resolve that symbol Nov 17 19:19:39 as nm tells me Nov 17 19:20:25 might be a change between 4.2 and 4.3 ? Nov 17 19:21:01 http://stackoverflow.com/questions/7212408/android-dynamic-linked-library-unable-to-resolve-symbols-of-main-program Nov 17 19:21:05 that might be it indeed Nov 17 19:21:13 weird thing is it works in the emu Nov 17 19:22:22 <|0xD34D|> how about in a 4.2 emu? Nov 17 19:22:38 <|0xD34D|> create a 4.2 avd and test on that to see Nov 17 19:26:06 downlading everything back to 4.0 Nov 17 19:26:34 *sight* Nov 17 19:26:41 i wish android was as easy as linux ;) Nov 17 19:32:13 steeve, +1 Nov 17 19:36:32 btw, having Go program (console) running on Android is really awesome Nov 17 19:40:37 I'm trying to watch a folder for changes (in the background.) I've currently got a foreground Service that creates a FileObserver, just sleeps in the background (does nothing) and waits until it's notified by the FileObserver. Right way to do stuff, or can I get rid of the Service altogether? Nov 17 19:48:01 |0xD34D|: same error on 4.2.2 emu Nov 17 19:48:08 that's reassuring, in a way :) Nov 17 20:00:28 Hey Android-Dev, what's a good resource for understanding how to do the simple architecture for your Android code? Nov 17 20:00:51 I know how most of the things work - but it seems very strange to me how I'm doing it right now, initializing everything in the fragment Nov 17 20:01:12 seems like it should be more modular - I was wondering if there's a good way to follow MVC Nov 17 20:02:53 ^anyone?^ Nov 17 20:02:57 I was also wondering if there was a decent way to stop passing Context around. I currently access it statically and I don't feel like that's the right way to go. Nov 17 20:02:57 It is weird getting Gradle: [AndroidManifest.xml:3, AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion='8' when on the manifest I have minSdkVersion="8" Nov 17 20:03:36 RedWraith, why would you do that? Nov 17 20:04:05 aviraldg, because I want my code to be clean. Nov 17 20:04:25 zyngawow, you need to update build.gradle Nov 17 20:04:37 For example, in Swing (old Java stuff), there is no context object. Everything's handled in the background for that. Nov 17 20:04:41 ah! Nov 17 20:04:43 Thanks! Nov 17 20:04:47 np Nov 17 20:04:47 I'm sure there's a good reason to pass context, I've just never seen it. Nov 17 20:04:56 as in I've only ever had one context. Nov 17 20:05:49 You don't need to. Activity <-> Context Nov 17 20:06:39 well I mean every class in the universe asks for it. Nov 17 20:06:44 Seems kind of silly really. Nov 17 20:07:05 It's needed for a lot of stuff. UI, resources, etc. Nov 17 20:07:50 I understand that. I mean it seems silly than Android doesn't just hide that off in the background. Nov 17 20:08:24 They certainly could. Nov 17 20:10:45 How can I remove all town names etc from a GoogleMap? Nov 17 20:11:11 ^Not the right place to ask. Nov 17 20:11:42 An android development question on android-dev? Sorry Nov 17 20:13:16 Isn't that more of a Google Maps SDK question? Nov 17 20:13:36 Android Google Maps SDK Nov 17 20:13:43 Is there a channel for that? Nov 17 20:13:51 <|0xD34D|> this channel seems valid for that Nov 17 20:13:54 Fair point. Sorry :| Nov 17 20:16:17 Is there any way using FileObserver short of creating it in a foreground Serivce? Nov 17 20:17:32 *service Nov 17 20:17:32 *FileObserver in the background Nov 17 20:32:03 hey folks Nov 17 20:32:21 anyway of having a .so library find symbols in the main program for android <4.3 ? Nov 17 20:32:55 i'm doing that for a go program, so making a .so file of my main program is out of the question Nov 17 20:38:04 is anyone using PARSE.com here? Nov 17 20:39:16 Parse? I've used it before, but IIRC, their tutorials and docs are a lot more fitted for people using the iOS SDK Nov 17 20:39:50 seemed to work well though for what I did do with it. Nov 17 20:42:24 I am mostly an iOS developer... but doing some android now Nov 17 20:42:24 hi Nov 17 20:42:29 I am running into an ANDROID issue Nov 17 20:42:51 sorry i have but for the next day i have create app and my httpost doesnt work Nov 17 20:42:54 I have a Q&A up on parse explaining the issue.. I bet a real android developer could solve this for me... Nov 17 20:42:57 i don t know what i can do Nov 17 20:43:20 https://parse.com/questions/parseinitialize-seems-to-cancel-when-leaving-then-returning-to-the-same-activity Nov 17 20:43:42 ryebread761: still there? Nov 17 20:44:54 Sorry, idk Nov 17 20:45:27 steeve, huh? Nov 17 20:45:27 thanks anyway.... Nov 17 20:45:35 steeve, what difference does it make Nov 17 20:45:45 pfn: can't make .so files in golang Nov 17 20:45:49 just dlopen Nov 17 20:45:56 I was thinking that I am doing the initialize in the onCreate method... perhaps I should pick a different method? Nov 17 20:45:56 can't? Nov 17 20:45:56 how broken... Nov 17 20:46:03 how do you make libraries in go if you can't .so Nov 17 20:46:04 pfn: that's by design Nov 17 20:46:17 pfn: golang statically links everything Nov 17 20:46:18 so what's the answer to creating lbiraries? Nov 17 20:46:20 ship source? Nov 17 20:46:26 static link? ... sounds like terrible design Nov 17 20:46:38 so you can't ndk go then Nov 17 20:46:51 pfn: golang works fine on android Nov 17 20:46:56 console programs that is Nov 17 20:47:13 my issue is symbol resolution from a .so lib Nov 17 20:47:15 console programs aren't ndk programs Nov 17 20:47:25 well, ndk as in linked from actual apps Nov 17 20:47:26 pfn, all go binaries are static yea :) Nov 17 20:47:34 who the hell runs console programs on android anyway.... Nov 17 20:47:36 * pfn shrugs Nov 17 20:47:38 who can help me if i send my code ? Nov 17 20:47:43 pfn: i do Nov 17 20:47:56 good for you :p Nov 17 20:48:34 but if you want bad design, the android loader is pretty bad too Nov 17 20:48:34 steeve, hmm, I don't get your question... you're trying to resolve symbols in another ELF ARM .so file form golang executable? Nov 17 20:48:34 why the hell did they have to change the linux design ? Nov 17 20:48:35 what design? Nov 17 20:48:44 because android is not linux Nov 17 20:48:47 not "gnu/linux" Nov 17 20:48:56 Mavrik: my main program exports a symbol, which my .so files needs Nov 17 20:49:05 Mavrik: works fine on android 4.3 btw Nov 17 20:49:10 doesn't on 4.2.2 Nov 17 20:49:17 so dlopen your main program and use the symbol... Nov 17 20:49:25 pfn: i'm not making an app Nov 17 20:49:43 and you use dlopen in android apps regularly? Nov 17 20:49:47 but I guess i'll have to do that Nov 17 20:49:55 the same issue exists on windows too Nov 17 20:50:10 pfn: never wrote android apps Nov 17 20:50:15 Windows uses a different way of exporting symbols anyway Nov 17 20:50:21 i'm just trying to port a console program to android Nov 17 20:50:31 Mavrik: in the sense that symbol resolution has to be manually done Nov 17 20:50:41 pfn can you help me ? Nov 17 20:50:44 whereas on linux and darwin the linker does it Nov 17 20:50:55 linker does what? Nov 17 20:50:58 dlopen and dlsym work just fine Nov 17 20:51:26 alright, so my main program exports 3 symbols Nov 17 20:51:35 which my .so files need Nov 17 20:51:46 on linux, the linker finds and resolves them Nov 17 20:52:00 on windows, i need to set them in DllMain manually Nov 17 20:52:01 I don't see how, but ok Nov 17 20:52:02 kript: Nobody wants to be your debugger. Nov 17 20:52:13 :( Nov 17 20:52:39 windows => https://github.com/steeve/libtorrent-go/blob/master/dllmain.i Nov 17 20:52:47 so I guess i'll need to do the same for android Nov 17 20:53:01 it s just httpost :( Nov 17 20:53:26 but you don't Nov 17 20:53:30 you can just use dlopen and dlsym Nov 17 20:54:00 pfn: i guess i'll do that Nov 17 20:54:07 the weird thing is Nov 17 20:54:11 it does work on android 4.3 Nov 17 20:54:29 what "does work" Nov 17 20:54:32 * pfn shrugs Nov 17 20:54:34 the symbols resolves Nov 17 20:54:59 resolves in what manner Nov 17 20:54:59 soinfo_link_image(linker.cpp:1635): could not load library "libtorrent-go.so" needed by "./torrent2http"; caused by soinfo_relocate(linker.cpp:975): cannot locate symbol "crosscall2" referenced by "libtorrent-go.so"...CANNOT LINK EXECUTABLE Nov 17 20:54:59 just without doing anything? Nov 17 20:54:59 there's what i get on 4.2.2 Nov 17 20:55:01 Hello Nov 17 20:55:07 on 4.3 the binary runs fine Nov 17 20:55:56 on android 4.3 crosscall2 (defined in the main program) is resolved correctly in the .so without doing anything Nov 17 20:56:19 I have a problem. When I create a location listener on GPS, it returns a location somewere in turkey, yet I am in the US Nov 17 20:56:28 why? Nov 17 20:57:05 did you accidentaly swap lat and lng? :) Nov 17 20:57:11 but, when I open the Maps app, it gives my corrent location Nov 17 20:57:27 no that is very unlikly Nov 17 20:57:48 for httpost the serveur apache need special config ? Nov 17 20:58:02 kript: nope Nov 17 20:58:09 kript: not that I know of Nov 17 20:58:23 it returns two positive numbers, however my long is negative Nov 17 20:58:59 pfn: is there a way to dlopen the main running program ? Nov 17 20:59:04 http://pastebin.com/96VR06kV Nov 17 20:59:06 like GetModuleHandle(NULL) on Windows ? Nov 17 21:00:15 is it because of the way I use the formatter ? formatter.format("geo:%1$2s,%2$2s?q=%1$2s,%2$2s(Your+Location)", Resources.startlat, Resources.startlat); Nov 17 21:04:56 meh, seems you can't dlopen an executable again without corrupting the heap Nov 17 21:06:17 * MDTech-us_MAN_ needs help! Nov 17 21:09:55 you see my code steeve ? Nov 17 21:10:06 kript: yeah, but i'm not android dev dude :) Nov 17 21:10:16 ok Nov 17 21:14:27 D/libc(12012): [NET] getaddrinfo-,err=8 Nov 17 21:15:21 getaddrinfo+,hn 20(0x616e64726f6964),sn(),family 0,flags 4 Nov 17 21:16:53 HEEEELLLLLLLLLPPP Nov 17 21:19:18 MDTech-us_MAN_: show some code Nov 17 21:20:16 How can I add an "overlay" to a GoogleMap? I mean, some kind of window over it to show scores or whatever Nov 17 21:20:16 who i add action android:name=”android.net.wifi.supplicant.CONNECTION_CHANGE” ? Nov 17 21:23:24 Hi Nov 17 21:23:38 i have in logcat Nov 17 21:23:38 getaddrinfo-,err=8 Nov 17 21:23:44 http://pastebin.com/4f1PDDef Nov 17 21:24:06 I'm trying to recover data from a gal s2 with broken screen. I've already downloaded the sdk and am able to access the adb.exe but it says the device is unauthorized. help please? Nov 17 21:25:16 It's rooted using cwm recovery, there was no password set as far as i can remember and i cant remember if debugging was enabled or not Nov 17 21:25:32 zyngawow: you might have to float a framelayout or something on top of it Nov 17 21:25:41 xbonesx: wrong chnnael Nov 17 21:25:45 steeve, oh, the .so depends on that symbol directly... so yeah, you could dlopen and remove the direct dependency Nov 17 21:25:51 proper channel to ask in? Nov 17 21:25:52 steeve, and yes Nov 17 21:26:00 dlopen("" or NULL, I forget, gets you the main program Nov 17 21:26:30 xbonesx, unauthorized can't be made authorized Nov 17 21:26:33 pfn: i've read that trying to dlopen the main program will screw the stack Nov 17 21:26:41 steeve, I've never heard that Nov 17 21:26:56 pfn: seems pretty unlikely to me too Nov 17 21:26:58 pfn: ok, what would that mean? Nov 17 21:27:15 cuz on windows it says the device is connected to mtp? Nov 17 21:27:19 if your bootloader is unlocked, boot into the bootloader Nov 17 21:27:27 then copy stuff off via MTP Nov 17 21:27:30 that's your only option Nov 17 21:27:54 xbonesx, Android doesn't just accept connections from random ADBs Nov 17 21:28:09 or if your bootloader is unlocked, boot into bootloader and then fastboot a recovery Nov 17 21:28:10 (otherwise you could copy data off encrypted phones that are locked with passcode) Nov 17 21:28:15 then adb shell into the recovery and copy from there Nov 17 21:28:17 true Nov 17 21:29:04 current state: connected to pc via mtp, able to recognize the device via adb but it says the device is unauthorized. so my next option to try would be? Nov 17 21:29:11 pfn: thanks for the help Nov 17 21:29:45 xbonesx, do you see anything on the screen? Nov 17 21:29:45 not sure if the bootloader is unlocked Nov 17 21:29:45 #android-root Nov 17 21:29:45 steeve, but yeah, building a library that depends on a main program seems awkward Nov 17 21:29:45 screen is cracked... :( Nov 17 21:29:45 xbonesx, the easiest way is to boot into CWM, do a backup and then move backed up images off the device via MTP Nov 17 21:29:56 this will give you full mountable images of all phones partitions Nov 17 21:30:03 pfn: i know... that's how Go handles interop with C Nov 17 21:30:10 i could accomplish this if i could see the screen... :( Nov 17 21:30:21 but i'm going overboard, Go isn't officially supported on Android Nov 17 21:30:28 CGO, that is Nov 17 21:30:42 who use httpost ? Nov 17 21:31:00 steeve, not being officially supported never stopped anyone... Nov 17 21:31:21 pfn: thankfully, but i won't get much help from them either ;) Nov 17 21:32:27 yeah my touchpad with android on it is proof enough of that lol Nov 17 21:34:13 pfn you dev on android , Nov 17 21:34:39 pfn: ok im running cyanogemod on this device so my bootloader is unlocked. would you be willing to write me a brief set of instructions from here on out? Nov 17 21:34:51 no Nov 17 21:34:57 #android-root Nov 17 21:35:05 bankay you dev on android ? :p Nov 17 21:41:06 there are android dev on channel ? Nov 17 21:52:58 Of course Nov 17 21:53:44 bankai_, tried that. However, it seems like the map doesn't care and goes on top of the rest of the stuff anyway. Before the map loads, the TextView I set up shows Nov 17 21:53:52 it depends whether you mean android apps devs or android source devs Nov 17 21:56:26 zyngawow: i honestly haven't done it, but it's been something i've kinda been looking into. I guess there's the good old extend, if you wanna go down that path :S Nov 17 21:56:56 i have [NET] getaddrinfo-,err=8 Nov 17 21:57:01 for httpost Nov 17 22:01:47 bankai_, ah... love that painfulness Nov 17 22:05:46 I've set proguard.config=proguard.cfg in my project.properties as well added stuff in my proguard.cfg however when I run ant release, nothing is obfuscated, why? Nov 17 22:13:21 I don't get it... Nov 17 22:14:10 The project.properties is loaded in build.xml but the ProGuard config line seems to be skipped or something Nov 17 22:15:16 steeve, but yeah, I'm a big fan of using unsupported languages Nov 17 22:16:35 is it because of the way I use the formatter ? formatter.format("geo:%1$2s,%2$2s?q=%1$2s,%2$2s(Your+Location)", Resources.startlat, Resources.startlat); Nov 17 22:16:42 I have a problem. When I create a location listener on GPS, it returns a location somewere in turkey, yet I am in the US Nov 17 22:16:49 it returns two positive numbers, however my long is negative Nov 17 22:17:01 like last time you asked, provide some code examples instead of spamming the same shit Nov 17 22:17:23 what do you mean? Nov 17 22:18:07 im not spamming! Nov 17 22:20:23 MDTech-us_MAN_: I see at least one of your messages above being just an all-caps stretched "help", that usually just annoys people =) Also, if he asked you for additional info, chances are he might help you if you provide it =) Nov 17 22:21:10 oh he did answer Nov 17 22:21:21 im preparing some code now Nov 17 22:26:45 pfn: that's an oddly statisfying feeling when the hack works Nov 17 22:27:52 pfn: and BOOM. it works. Nov 17 22:28:31 pfn: used your approach: make an "ensure_cgo" method that resolves the symbols through dlopen/dlsym at first access Nov 17 22:30:00 bankai_: here is some code: http://pastebin.com/wfKn1NKa Nov 17 22:30:03 aaaaand it crashes, but it did launch Nov 17 22:37:27 hey guys, could someone please explain to me how can i make a delayed local notification? i've found things like this http://chrisharrington1.wordpress.com/2012/03/27/android-notifications-and-how-to-send-them-to-the-current-activity/ which show how ot make a notification, and then AlarmManager which allows to delay a PendingIntent Nov 17 22:37:41 but how do i delay a notification? Nov 17 22:37:50 MDTech-us_MAN_: so what's the problem? have you stepped through your code? Nov 17 22:38:32 formatter.format("geo:%1$2s,%2$2s?q=%1$2s,%2$2s(Your+Location)", Resources.startlat, Resources.startlat); <-- no idea what this is all about, but it looks wrong to me Nov 17 22:40:25 looks like basic formatting but I dont recall formatting enough to see if theres errors and such Nov 17 22:40:39 please :( Nov 17 22:40:42 any tip would be helpful Nov 17 22:43:56 I got the formatter code from here: http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html Nov 17 22:43:58 do a log each line that modifies or uses data Nov 17 22:44:05 see where it gets wrong Nov 17 22:44:13 ok Nov 17 22:44:24 or debug and step through with watches Nov 17 22:44:41 darth wish I knew more about notificion. I';m not much of a programmer lol Nov 17 22:45:15 i'm not much of an android person :\ Nov 17 22:45:27 i just simply want to show a notification saying "herp derp yolo" Nov 17 22:45:43 but it launches the activity directly instead Nov 17 22:46:56 darthderp, look at the Notification api Nov 17 22:47:27 i've been googling this for the past week Nov 17 22:47:34 there's no notification api or documentation or ... :P Nov 17 22:47:36 it's impossible to find Nov 17 22:47:48 bankai_: i added logs and I am degugging now Nov 17 22:47:54 all there is is this http://developer.android.com/reference/android/app/Notification.html Nov 17 22:48:40 i don't want to use an intent, or anything at all ... i want to show a dumb text Nov 17 22:48:44 i have something like this Nov 17 22:48:45 http://www.vogella.com/articles/AndroidNotifications/article.html Nov 17 22:48:52 but it doesn't show a notification, it launches the activity immediately Nov 17 22:52:05 Has anyone here read the July 1970 paper on the relational model by E.F Codd? Nov 17 22:52:32 AHA! Nov 17 22:52:50 sorry, i'm still reading pending papers from 1965 Nov 17 22:52:53 google don t autorise in onelick use network ? Nov 17 22:53:01 I think I found the culprit Nov 17 22:53:08 g00s: for example, if i build a notification, how do i show it in 5 minutes? i've only found how to do that using the alarm manager Nov 17 22:53:29 but the alarm manager requires a pending intent, not a notification Nov 17 22:53:48 YAHOO! Nov 17 22:54:02 pending intent sends a broadcast, broadcast receiver posts notification Nov 17 22:54:10 you have to learn to put pieces together Nov 17 22:54:11 it was the formatter statement afterall Nov 17 22:54:50 BroadcastReceiver is declared in Manifest Nov 17 22:54:50 pfn: erm isn't pending intent just a delayed action that has to be executed somehow? Nov 17 22:54:57 and a class extending BroadcastReceiver is created Nov 17 22:55:05 darthdeus, yes, the alarm manager executes it Nov 17 22:55:11 i don't even want an intent, i just want to show a plaintext notification ... do i need a broadcast receiver for that? Nov 17 22:55:18 put pieces together Nov 17 22:55:24 hey, I'm starting a service by binding to it from my activity, how can I make the service continue running if the application closes? Nov 17 22:55:29 darthdeus: Intent tells the machine that is has an INTENT to do something Nov 17 22:55:34 Just having a notification does nothing Nov 17 22:55:39 thanks for your help bankai_ Nov 17 22:55:45 The machine doesnt know that the application has the INTENT to display it Nov 17 22:55:54 A pendingintent says "I have the intent do this, when some criteria is met" Nov 17 22:56:05 once the criteria is met, it sends a broadcast saying "I CAN DO THIS NOW!" Nov 17 22:56:10 Anthaas: isn't there an API that i just give a notification and it runs it at a given time? Nov 17 22:56:21 And your BroadcastReceiver is made and says "OK!, I'll run the code!" Nov 17 22:56:30 You don't need an entire API for this. Nov 17 22:56:32 so i need an intent that tells some global notification service to run the notification? Nov 17 22:56:38 No Nov 17 22:56:42 You make the broadcast unique Nov 17 22:56:53 the value broadcast shouldnt be something like "run" Nov 17 22:57:24 it should be something like com.mydomain.myapplication.mypackage.some_value" Nov 17 22:57:29 erm Nov 17 22:57:43 i don't get this, where do i broadcast to? Nov 17 22:58:01 Declare a broadcast receiver in your manifest Nov 17 22:58:02 i'm showing a text notification from my app, 10 minutes later, to the user, it has nothing to do with my app anymore Nov 17 22:58:05 give it a name Nov 17 22:58:07 i'm not receiving a notificaiton Nov 17 22:58:13 create a class extending broadcast receiver with this name Nov 17 22:58:19 get your pending intent to send a broadcast Nov 17 22:58:28 have your broadcast catch actions with the same value as is broadcast Nov 17 22:58:38 within the onReceive function, put the code that you want executed Nov 17 22:58:43 which in this case would be to display your notification Nov 17 22:59:03 lol Nov 17 22:59:10 but doesn't that launch the app? Nov 17 22:59:11 pfn anything wrong with the instructions I just posted? Nov 17 22:59:15 No Nov 17 22:59:21 do i need a service for this? Nov 17 22:59:22 It will just run the code that you give it Nov 17 22:59:25 hmm Nov 17 22:59:27 Do some reading Nov 17 22:59:38 what should i read? the docs say nothing about this Nov 17 22:59:41 When you receive a push message Nov 17 22:59:43 hmm, Ant doesn't read my project.properties in the root of the project, wtf Nov 17 22:59:46 -release-obfuscation-check: [echo] proguard.config is ${proguard.config Nov 17 22:59:53 this is in the log Nov 17 22:59:56 Anthaas: i dont want a push message, the app is posting the notification Nov 17 23:00:00 Does it open the application or does it display a notification, or sometimes one, sometimes the other Nov 17 23:00:06 ${proguard.config} should pe proguard.cfg Nov 17 23:00:18 PushMessages are received by BroadcastReceivers Nov 17 23:00:24 Its the same thing Nov 17 23:00:27 You make it do what you want Nov 17 23:00:49 If within your BroadcastReceiver you put the code "startActivity(MyActivity.class);" Nov 17 23:00:53 so in order to show an empty notification that does nothing i have to declare myself as a broadcast receiver, then post a global notification, catch it and display it Nov 17 23:00:53 You WOULD open the application Nov 17 23:01:05 If you just put the code to display a notification, then all you would get is a displayed notification Nov 17 23:01:06 a global notification? Nov 17 23:01:14 YES! Nov 17 23:01:18 Thats exactly it Nov 17 23:01:21 Exactly as I described above. Nov 17 23:01:23 oh god Nov 17 23:01:24 :D Nov 17 23:01:27 this is just so complicated Nov 17 23:01:34 it's programming Nov 17 23:01:36 Read up on BroadcastReceivers Nov 17 23:01:36 it takes brains Nov 17 23:01:38 not idiocy Nov 17 23:01:38 :p Nov 17 23:01:44 pfn: it takes one line on iOS Nov 17 23:01:50 How to create and catch broadcasts Nov 17 23:01:52 then go back to ios Nov 17 23:01:53 Yeah, but iOS is crap. Nov 17 23:01:55 So Nov 17 23:01:58 Every cloud. Nov 17 23:03:02 pfn: I think by "global notification" he meant the kind that shows up at the top. I think he may think Dialogs are a kind of notification? I dunno lol Nov 17 23:03:23 I assume he means broadcast Nov 17 23:03:41 no i mean notification that displays in the "notificaitons" section when you slide down from the top of the screen Nov 17 23:04:00 Good Evening :) Nov 17 23:04:01 Yes, which is what we are talking about lol Nov 17 23:04:19 Go read on BroadcastReceivers, Intents, PendingIntents, and the Manifest File Nov 17 23:04:28 They are all integral to you doing what you want to do. Nov 17 23:04:52 yeah reading about BroadcastReceiver atm Nov 17 23:04:59 still it's incredibly stupidly overcomplicated :P Nov 17 23:05:12 Whilst you are at it, you'd be doing yourself a favour reading the major components of Android Nov 17 23:05:21 hopefully you could create a class that makes it all and allows to finally call it in one line Nov 17 23:06:26 I know this is not exactly what is usually descibed, but I'd say they are: Activity, Intent, BroadcastReceiver, ContentResolver, Fragment, Service Nov 17 23:06:48 darthdeus, that's because you're stupidly dumb :p Nov 17 23:07:07 pfn: Glad to see Im not the only one that gets that treatment! :P Nov 17 23:07:22 :) Nov 17 23:07:29 pfn: real mature :p Nov 17 23:07:34 hello everyone Nov 17 23:07:35 everyone gets the asshole treatment without discrimination :p Nov 17 23:07:46 darthdeus: StackOverflow is your friend. You are probably not the only person to have this problem of understanding etc. Nov 17 23:08:02 Anthaas: the problem is that nothing anywhere says that this is related to BroadcastReceiver Nov 17 23:08:16 i've spent a week reading stackoverflow about Notification and AlarmManager and nothing anywhere mentions this Nov 17 23:08:24 pending intents can be one of 3 things, starting activities, services or broadcast receivers Nov 17 23:08:24 Didn't you tell us earlier that PendingIntent sends a Broadcast? Nov 17 23:08:28 choose the one that'll do the right work for you Nov 17 23:08:29 found a chatlog of this channel randomly online and was so happy to not be stuck coding aone ;D Nov 17 23:08:54 really, what is so difficult.... Nov 17 23:09:00 Eeeeeee: Where? lol Nov 17 23:09:07 pfn: the non existent documentation is difficult bro Nov 17 23:09:12 LOL Nov 17 23:09:20 Androids docs are some of the best I've come across Nov 17 23:09:23 look at msdn and ios docs and compare it to developer.android.com Nov 17 23:09:29 They even have tutorials and training stuff Nov 17 23:09:36 no they dont, show me one for this Nov 17 23:09:39 Learn how to use a website? lol Nov 17 23:09:42 lol, was searching something about the google io app, it was a highly unique query lol... and not even sure if it was this one, was just android-dev :D Nov 17 23:09:43 what non-existent documentation Nov 17 23:09:47 the docs are comprehensive Nov 17 23:09:49 learn to read api docs Nov 17 23:10:02 right, if only the api docs actually documented the api Nov 17 23:10:06 but they do Nov 17 23:10:07 clearly Nov 17 23:10:11 and found this linked on google, really glad there's a ton of people here after registering haha Nov 17 23:10:16 ok let me show you an example Nov 17 23:10:16 you could replace 4 pages of docs by a 4 line code example Nov 17 23:11:00 because docs explain you how to use 3 classes that interact themselves and well, there's usually only one way to use them. So just give me the example code Nov 17 23:12:01 http://developer.android.com/guide/topics/ui/notifiers/notifications.html Nov 17 23:12:05 Makes use of PendingIntent Nov 17 23:12:11 http://developer.android.com/reference/android/app/PendingIntent.html Nov 17 23:12:15 Makes use of Broadcast Nov 17 23:12:39 http://developer.android.com/reference/android/content/BroadcastReceiver.html Nov 17 23:12:43 Receives Broadcast Nov 17 23:13:43 yeah that broadcast api page is the only one that metions it, while the notifications guide doesn't say anything about it Nov 17 23:14:05 is there any point to this discussion ? Nov 17 23:14:13 lol Nov 17 23:14:19 if an app i'm writing crashes and android gives me the "this application has unfortunately stopped", is there anywhere i can read a log of some sorts? adb logcat didn't show anything relevant to this? Nov 17 23:14:32 darthdeus i can't believe you learned iOS / obj-c but cant manage the 5 lines of code to throw up a Derp notification Nov 17 23:14:41 i was just thinking.. imma definitely have to idle here to find the good conversation and not flame wars lol Nov 17 23:14:53 benedikt: If in Eclipse use the LogCat. Where it is breaking there is an exception being thrown, catch is and send it to the logcat. Nov 17 23:15:27 Anthaas: i'm not using eclipse (nor typical java) Nov 17 23:15:35 Eeeeeee: There are a lot of good conversations on here. Nov 17 23:15:55 haha i'm loving it already :D Nov 17 23:15:56 g00s: iOS has docs that you can read and understand the thing, instead of having to randomly try to find things in the API docs that aren't mentioned anywhere else Nov 17 23:15:58 :P Nov 17 23:16:09 Eeeeeee: Youll find, as I have, people on here a MORE than happy to help people out. Very helpful indeed. What people don't like is people who don't like helping themselves. Nov 17 23:16:25 haha roger that Nov 17 23:16:33 no, what people don't like is other people being condescending Nov 17 23:16:34 rtfm got it Nov 17 23:16:36 Anthaas: and i'm not excatly experienced in this particular language, so i'm sort of treading on thin ice Nov 17 23:16:40 hahahaa\ Nov 17 23:16:41 darthdeus: You are just being lazy. I just proved that the docs do show it, you just need to put your brain in use and put 1 and 1 together, instead of being expected to be given 2. Nov 17 23:17:02 benedikt: What language? Somebody else on here might be able to help more. Nov 17 23:17:06 Anthaas: you haven't proved anything, because BroadcastManager isn't mentioned in the notifications docs, it just has an API page Nov 17 23:17:16 so there's really no way i could find it other than blindly reading the API Nov 17 23:18:25 apart from using the horrible RatingBar, how can i let a user enter a rating from say 1..10 ? Nov 17 23:18:38 osxorgate: Create a custom view. Nov 17 23:18:47 Anthaas: what should it display? Nov 17 23:18:49 Anthaas: clojure. I'm using lein-droid and neko Nov 17 23:18:54 osxorgate: Whatever you want. Nov 17 23:18:58 this is my q Nov 17 23:19:49 darthdeus: So, what you are saying is that given that PendingIntent is an important class in Notifications, you decided not to read the PendingIntent class to see what it did? Nov 17 23:20:58 Anthaas: well speaking of nice people looking to help out.. I'm working on my first app, super simple, that displays from a database. I pretty confident on the coding aspect but I'm wondering where I can find an open-source app with current UI practices and good design that I can study. Hopefully not one with authorization required because i would like to learn by tinkering. Do you know of anyting? Nov 17 23:21:01 darthdeus: If I give you the blueprints to build a house, those blueprints aren't also going to contains descriptions on what a brick is, and how to stick two together, and then how to make a wall, and how to make cement, and how to wire it up, and what elecricity is and.... Nov 17 23:21:35 Anthaas: where does this page http://developer.android.com/reference/android/app/PendingIntent.html link to this, other than via getBroadcast, which also isn't at all described on the page? Nov 17 23:21:35 Eeeeeee: Android's design guidelines are perfect! http://developer.android.com/design/index.html Nov 17 23:21:43 wtf should broadcastreceiver be mentioned in notification docs Nov 17 23:21:46 they're orthogonal and unrelated Nov 17 23:21:51 i agree Nov 17 23:21:54 right Nov 17 23:22:08 wait Nov 17 23:22:33 darthdeus: getBroadcast(Context, int, Intent, int), and getService(Context, int, Intent, int); the returned object can be handed to other applications so that they can perform the action you described on your behalf at a later time. Nov 17 23:23:03 pfn: Agreed - that was my point with the brick cement analogy lol Nov 17 23:23:22 are you guys 18? Nov 17 23:23:23 do they have activities/views you can download? Like they do on the dev portion? I come from a design background so I might have coasted right past most of it straight to the developers section lol ;) Nov 17 23:23:34 darthdeus: Right Nov 17 23:23:38 Eeeeeee lol Nov 17 23:23:42 :D Nov 17 23:23:44 darthdeus: See the line I just posted? Nov 17 23:23:47 or is boosting ego by makign others stupid the way that android devs roll these days? :p Nov 17 23:23:56 it s possible to use in onclick httpost or use asynctak ? Nov 17 23:24:11 Anthaas: You scroll down (like on any other API) to see how that method works or what it does and you find this: getBroadcast(Context context, int requestCode, Intent intent, int flags) Nov 17 23:24:11 Retrieve a PendingIntent that will perform a broadcast, like calling Context.sendBroadcast(). Nov 17 23:24:27 hmm I've got a strange problem with adb while connecting my device to the notebook. It shows up in the devices manager of Android Studio for anything between 1-10s and then the device gets disconnected. I tried restarting the device multiple times, and the notebook, and switching usb-cables with no luck - any suggestions? Sometimes it's working without a problem, but today I had no luck connecting Nov 17 23:24:27 the phone so far Nov 17 23:24:54 Wow Nov 17 23:24:57 What a moron Nov 17 23:25:43 marcules: Nov 17 23:26:03 Eeeeeee: Ahh, I have a good site for you then Nov 17 23:26:21 err nm, this worked for me on genymotion anyway. go full screen mode right after it boots up.. f11 or f12 Nov 17 23:26:29 Eeeeeee: http://androidniceties.tumblr.com/ Nov 17 23:26:45 that's like the one i didn't visit :D Nov 17 23:27:06 ty Nov 17 23:27:11 Eeeeeee: You're welcome. Nov 17 23:28:08 Oh ya these look amazing Nov 17 23:31:38 did that darthidiot leave? Nov 17 23:31:41 seems like it Nov 17 23:31:43 Yeah Nov 17 23:31:58 Halfway through me proving him wrong via traditional use of an API. Nov 17 23:32:01 :( Nov 17 23:32:03 and making people feel stupid has been the internet way since the 1970s Nov 17 23:32:08 * pfn shrugs Nov 17 23:32:13 lol. Nov 17 23:32:34 lol Nov 17 23:33:24 lol Nov 17 23:33:25 this. is. glorious. http://gyazo.com/a4ef3d018ec2e0e09c7fa401d753cf57 Nov 17 23:33:55 how? Nov 17 23:33:59 too much whitespace Nov 17 23:34:23 lol Nov 17 23:34:23 pfn: you think? lol Nov 17 23:34:27 hahahahZAh Nov 17 23:34:32 its supposed to be a card list item Nov 17 23:34:37 rough Nov 17 23:34:40 is it supposed to be funny? Nov 17 23:34:48 i hope so Nov 17 23:35:00 wow though crowd tonight Nov 17 23:35:22 YOU WEREN'T HERE MAN. THE STUPID CAME. IT BURNT! Nov 17 23:35:39 lol Nov 17 23:35:49 haha Nov 17 23:36:07 i must be too sober Nov 17 23:37:15 My app is always crashing before anything happens. The first thing it does is sending a http request with clj-http, is it possible it's doing it too soon or something? Nov 17 23:37:25 Or do i perhaps have to allow the app network access? Nov 17 23:37:47 yes Nov 17 23:37:55 to which question? Nov 17 23:38:04 permission Nov 17 23:38:06 the latter, but your stack trace will tell you Nov 17 23:38:11 Eeeeeee, you had an idea? Nov 17 23:38:19 Or is this entirely the wrong channel? Nov 17 23:38:23 bankai_: i havent found the stack trace yet. where is it? Nov 17 23:38:27 did I? Nov 17 23:38:29 logcat Nov 17 23:38:30 benedikt: logcat Nov 17 23:38:31 SuD: where do i set this persmission? Nov 17 23:38:33 bankai_: nope Nov 17 23:38:51 in the android manifest file, i don't remember the syntax Nov 17 23:38:51 [00:25:43] marcules: Nov 17 23:38:52 (i'm using clojure and lein-droid, probably something different) Nov 17 23:38:55 Didn't say more :D Nov 17 23:39:08 lol Nov 17 23:39:12 whoops!!! Nov 17 23:39:15 im on webchat Nov 17 23:39:17 can someone help me understand how to use resources in an AppWidget? Nov 17 23:39:26 need to grab an irc client, sorry Nov 17 23:39:35 was that pm? Nov 17 23:39:43 or am Nov 17 23:39:46 I get that I need a RemoveViews but I dont' get why I need an intent. Nov 17 23:39:47 SuD: thanks Nov 17 23:40:00 benedikt, you should always have logcat Nov 17 23:40:10 Eeeeeee, no it was here Nov 17 23:40:24 pfn: i have logcat, but i didnt get an exception trace there Nov 17 23:40:25 whoooops! Nov 17 23:40:37 Anyone experienced with AppWidgets that could lend an eyeball? :) Nov 17 23:40:43 it's *REALLY* verbose. i assume thats normal? Nov 17 23:40:47 i see it now, dunno what happened Nov 17 23:41:04 oh wait, there it was Nov 17 23:41:14 i'll go stand in the corner now Nov 17 23:41:15 I got a TextView working but I need to populate a ListView with an Adapter and can't figure out how to get RemoteViews working through the adapter... Nov 17 23:41:55 hey guys, I was gonna use intents to pass onclicklisteners to different activities... is that what people mean when they say stay of the UI thread? Or are they ok in moderation? Nov 17 23:42:28 er pass data rather Nov 17 23:42:34 Eeeeeee: When they say that, what they mean is any computationally intense process, network access, or data access should be done on a separate thread Nov 17 23:42:50 If you are passing data through to another activity in an intent then you are fine. Nov 17 23:42:57 ok Nov 17 23:42:58 sweet Nov 17 23:43:02 thx Nov 17 23:43:22 If you do any of the three I said should be on a separate thread in the UI thread it will make your app look like it is unresponsive when in fact it is just processing a large task Nov 17 23:44:07 I feel like in a forum where people tells me i'm on the wrong thread Nov 17 23:44:12 I will definitely be staying away from that stuff for a couple of apps at least ;D Nov 17 23:45:34 lol Nov 17 23:45:52 pub intended? Nov 17 23:45:54 pun* Nov 17 23:51:57 anyone on appwidgets? Nov 17 23:54:21 I send my service object to my activity when I bind to the service, this objects holds an IRC connection, but when I close the app, the object reconnects, any ideas? Nov 17 23:55:19 I want the connection to stay active in the service when the app closes, and not reconnect like it does now Nov 17 23:56:10 can I send something back from the activity to the service when it unbinds? Nov 17 23:58:10 Hi! Does anyone know how to fix this? http://qnundrum.com/answer.php?q=120764 Nov 17 23:58:40 flipture: you need a remoteViewAdapter and a remoteViewService Nov 18 00:00:02 Or, why doesn't setting a color filter like this (http://stackoverflow.com/a/6749675/1317735) work for me? Nov 18 00:05:57 benedikt, clojure on android, though? that's bound to have poor performance due to its dynamic nature and immutability Nov 18 00:14:39 pfn: probably. but it's fun! Nov 18 00:19:05 anyone had success getting a webview to be the height of its content but have it match parent in width? Nov 18 00:19:54 it seems webview does not handle match_parent width properly and likes to report a height of 0 when laying out (because its content has not loaded yet) Nov 18 00:20:36 dcow: Thats correct then... lol Nov 18 00:21:25 Anthaas: yes so I'm asking if anyone has encountered this and has any advice (= Nov 18 00:21:54 it seems like a problem others have faced Nov 18 00:24:50 omg this IRC client has the font size of little baby ants Nov 18 00:30:06 I have 4 ImageView's I need in the middle of the screen in 2X2 aligned square. What's the best way to do it? I tried with veritcal LinLayout, in which there are 2 horizontal LinLayout containing the images, all with layout_weight=1. It causes a gap between the first line and the second line of ImageViews. Nov 18 00:33:55 benedikt, I hear kawa is an option that might work ok Nov 18 00:41:27 bankai_: ok cool. that gives me someting to start with... Do I need a broadcast receiver? Nov 18 00:42:54 to catch the update, i believe so yes Nov 18 00:49:23 bankai_: ok cool. so the widget class will create an intent that calls removeViewService, then that removeViewService has the removeViewAdapter in it? Nov 18 00:55:48 Intent listViewIntent = new Intent(mContext,ListViewRVS.class); mainLayout.setRemoteAdapter(R.id.listview, listViewIntent); Nov 18 00:56:05 where mainLayout is a RemoteViewService Nov 18 00:58:23 ok awesome, thanks a ton... I think that will get me going :) I'm finding a few examples but none that quite do it this way... Nov 18 01:03:59 man a light breeze could make gradle throw an exception Nov 18 01:04:33 Just don't wear a red clown nose and you're safe. Nov 18 01:04:44 lol Nov 18 01:05:00 Error: Uncaught WrongPhaseOfMoonException Nov 18 01:05:46 is there anyway to get rid of these other versions? It acts like malware Nov 18 01:07:09 hey guys Nov 18 01:07:19 is there anything particular regarding struct alignment on android ? Nov 18 01:07:26 i'm having some stack corruption here Nov 18 01:07:33 between my program and a library Nov 18 01:11:37 bankai_: where should i be initializing the intent? in onUpdate or does it matter? Nov 18 01:12:31 steeve, arm hasn't any really special stuff. stack corruption isn't likely structure alignment. Nov 18 01:12:36 onUpdate yeah Nov 18 01:12:42 well crap Nov 18 01:12:51 mcr: any clue on where it might come from ? Nov 18 01:13:34 steeve, I'd triple check that you are including the same .h files. I usually do that by inserting garbage in the .h file and expecting the compile to croak... often I find that foo.h isn't the file I was looking for. Nov 18 01:13:35 mcr: i mean the usual causes Nov 18 01:13:55 steeve, unbounded char arrays. Nov 18 01:14:13 mcr: in my case, it's an assignment to a std::string that causing mayhem Nov 18 01:14:17 steeve, off by one errors. If it's auto variables that are being trashed, change the order of them. Nov 18 01:14:40 is this a deep copy? Nov 18 01:15:02 mcr: nope, by ref Nov 18 01:15:27 different compiler options? maybe thumb code has an impact. Nov 18 01:15:36 here the proto => void parse_magnet_uri(std::string const& uri, add_torrent_params& p, error_code& ec) Nov 18 01:15:52 pretty usual stuff i guess Nov 18 01:16:00 also, if i alloc the params on the heap Nov 18 01:16:09 it does work Nov 18 01:16:24 Hi, how do I get an instance of the BluetoothAdapter class via the NDK? Nov 18 01:16:25 well.. "work" Nov 18 01:16:33 you say, you are assigning by ref... and returning that value? Nov 18 01:16:47 then it might referencing something allocated auto in your function. Nov 18 01:16:47 no actually Nov 18 01:16:57 this struct add_torrent_params Nov 18 01:17:04 has a member std::string name; Nov 18 01:17:16 well, your function can't have any affect if it returns void, and it's all passed references. Nov 18 01:17:18 assigning p.name = "test" crashes the program Nov 18 01:17:32 it fills the p struct Nov 18 01:17:41 it's libtorrent-rasterbar by the way Nov 18 01:17:45 how/where is the p struct allocated? Nov 18 01:17:46 I'm trying: (*env)->FindClass(env, "android/bluetooth/BluetoothAdapter/BluetoothAdapter") but I'm getting: java.lang.ClassNotFoundException: Didn't find class "android.bluetooth.BluetoothAdapter.BluetoothAdapter" on path: /system/framework/javax.obex.jar:.. and a bunch more paths Nov 18 01:17:51 mcr: on that, before the call Nov 18 01:17:56 s/that/stack Nov 18 01:17:58 i have an activity with an AppCompat (actionbar compat) theme, which displays an activity over it with this style: https://gist.github.com/xorgate/d496dc3d97f3ddc1667d When this 'dialog' appears and disappears the first activity fades nicely to dark. When i have the dialog start another activity with the same theme, it does NOT fade nicely. What about an activity makes sure it fades properly if it starts another dialog? Nov 18 01:18:19 bankai_: ok cool. Nov 18 01:18:31 steeve, and if you allocate it on the heap, it's good? Nov 18 01:18:41 mcr: to an extent, yes Nov 18 01:18:59 i'm having this issue only on android btw Nov 18 01:19:10 works fine on windows, linux, mac and raspberry pi Nov 18 01:19:17 maybe it's the wrong size between library and caller. Or maybe the library hasn't been recompiled. Nov 18 01:19:37 i'm compiling it myself using the standalone toolchain Nov 18 01:19:50 i'm really stunned Nov 18 01:20:00 printf() the size of it in main code and library. Nov 18 01:20:08 done, same size Nov 18 01:24:58 Does "import" have any JNI/NDK equivalent? Nov 18 01:25:22 I assume not, that fully qualified "FindClass" is the equivalent of doing an import and then using a name Nov 18 01:25:41 ugh, is there any way to turn off certain log messages from certain places? Nov 18 01:26:26 somebody who build my version of android thought it would be a good idea to send a message out every time sendMessageToUiThreadSync gets called in CallbackProxy (webkit or webcore or something) Nov 18 01:26:28 and its super annoying Nov 18 01:28:27 Gradle: A problem occurred configuring project Nov 18 01:28:35 Could not find any version that matches com.android.tools.build:gradle:1.8.+. Nov 18 01:28:59 I feel like I've been trying all day to fix this Nov 18 01:29:02 wait I have been Nov 18 01:30:42 please tell me someone knows something I don't Nov 18 01:31:14 bankai_: would you happen to know if I need to return a RemoteViewsFactory object from the service to tie everything together? or is simply handling everything from the service enough? Nov 18 01:31:41 flipture: http://www.vogella.com/code/com.example.android.stackwidget/src/com/example/android/stackwidget/StackWidgetService.html have a look at this Nov 18 01:31:48 steeve, I dunno... print the address of the object inside and outside of the library. Nov 18 01:34:01 mcr: good call Nov 18 01:36:40 mcr: well shit Nov 18 01:36:44 1 is my program, 2 is lib Nov 18 01:36:48 1: be977708 => sizeof=136 Nov 18 01:36:49 2: be977708 => sizeof=136 Nov 18 01:37:15 those are the same Nov 18 01:37:23 yep Nov 18 01:38:35 bankai_: thank so much!! Nov 18 01:38:43 steeve, now & of the structure member. Nov 18 01:38:56 mcr: yep, building it right now with offsetof() Nov 18 01:39:56 also, consider putting some canaries around the auto declaration of the structure, and see if they retain value. might have to declare them volatile. And try that too: declare it volatile. Nov 18 01:40:07 (that's not a solution, but it might point to the problem) Nov 18 01:40:23 1: befcc708 => sizeof=136 => offset=56 Nov 18 01:40:23 2: befcc708 => sizeof=136 => offset=56 Nov 18 01:40:26 same offset Nov 18 01:40:31 some canaries ? Nov 18 01:40:42 ahhh Nov 18 01:43:43 maybe it's not the structure that's different, but something else that is smashing the structure. Nov 18 01:43:51 mcr: canaries are fine Nov 18 01:44:07 dunno. single step through the assembly :-( Nov 18 01:44:22 nasty bug that one :) Nov 18 01:45:04 What is the procedure for writing text to the the screen? Nov 18 01:45:44 creating a text-view and changing the 'text' parameter? Nov 18 01:47:02 mcr: note that if I do p.name = "test" right after the call Nov 18 01:47:13 at the beginning of the function, it doesn't work Nov 18 01:47:18 what do you mean by writing text to the screen Nov 18 01:47:31 do you have an Activity already? Nov 18 01:47:46 durka42: a MainActivity Nov 18 01:48:17 then yes a textview would certainly work Nov 18 01:48:38 i'm trying to figure out how to change the text in an existing text view then Nov 18 01:59:00 benedikt: what have you tried so far? Nov 18 02:05:10 durka42: creating a future that calls .setText Nov 18 02:05:44 ah Nov 18 02:05:48 I haven't used Futures Nov 18 02:05:50 it doesn't work? Nov 18 02:06:15 nope. getting this error "java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to android.widget.TextView Nov 18 02:06:18 " Nov 18 02:06:50 oh awesome, clojure :) Nov 18 02:06:57 seems like a dynamic binding problem Nov 18 02:07:25 yep. and i'm pretty new to android Nov 18 02:07:32 both wrappping my heard around clojure and android Nov 18 02:08:06 the clojure-android tutorial is definitely on my todo list Nov 18 02:08:12 but I probably won't be much help there :) Nov 18 02:08:25 I googled 'clojure android future settext' and found this https://nightweb.net/blog/clojure-on-android.html Nov 18 02:10:55 hey who knows the answer to my activity fading problem? http://stackoverflow.com/questions/20038837/what-makes-an-activity-dim-if-it-is-told-to-by-another Nov 18 02:12:59 * LuisLeite good evening :> Nov 18 02:13:47 durka42: i want to learn clojure and there was a thing i wanted my phone to do Nov 18 02:14:06 fair enough Nov 18 02:14:17 the lack of documentation and tutorials for neko gives it a steep learning curve Nov 18 02:15:22 someone wrote a tutorial and posted it on the mailing list recently Nov 18 02:15:28 it's in my TODO folder Nov 18 02:15:47 hopefully I'll get to it before a new version of neko is released and everything is out of date :) Nov 18 02:16:16 durka42: oh nice. can you find the link? Nov 18 02:16:26 now i'm getting a NetworkOnMainThreadException Nov 18 02:16:34 starting a future wasn't enough Nov 18 02:16:42 i was hoping it would :P Nov 18 02:16:51 https://github.com/krisc/events/wiki/Android-App-Development-with-Clojure:-An-Interactive-Tutorial Nov 18 02:16:59 awesome Nov 18 02:17:41 wait, there's an exception for that? Nov 18 02:17:48 I know it's a bad idea, but I didn't know it would cause an exception Nov 18 02:17:56 seems so Nov 18 02:19:23 how can i use an older version of play services in an app? I tried adding the following but it isn't working compile 'com.google.android.gms:play-services:3.2.25' Nov 18 02:33:17 osxorgate: And do you assign the third fragment the same MyTheme.Dialog styling? Nov 18 02:33:26 Eeeeeee: yes Nov 18 02:33:33 activity, actually Nov 18 02:33:44 you said fragment in the SO post Nov 18 02:33:59 i'm new too btw :P Nov 18 02:34:21 but if you're assigning that same style twice it won't have the same effect it did the first time Nov 18 02:34:37 Eeeeeee: i dont believe i said that Nov 18 02:34:48 This second activity is a FragmentActivity Nov 18 02:35:05 there are 2 fragmentactivities, both with the style i wrote down Nov 18 02:35:14 and 1 actionbaractivity which starts it all Nov 18 02:35:57 ActionBarActivity-->FragmentActivity-->FragmentActivity Nov 18 02:36:00 Honestly I'm out of my league, but I would imagine the transparency don't stack like you would expect them to Nov 18 02:36:19 B applies it to A, why does C not apply it to B Nov 18 02:36:34 lol Nov 18 02:36:45 honestly I don't know much Nov 18 02:36:53 but it looks like you should do that differently Nov 18 02:37:20 i think I've seen libraries that have similar effects Nov 18 02:39:19 and it's a complete guess, but I would imagine stacking transparent activities could be a huge graphics/battery hog Nov 18 02:40:50 i could also use a DialogFragment with a theme Nov 18 02:41:28 btw don't listen to me these are guesses haha Nov 18 02:41:38 im check my dev app for a library tho Nov 18 02:46:42 there's literally tons of these questions on SO btw Nov 18 02:48:25 specifically this? Nov 18 02:50:47 um no Nov 18 02:50:52 but this question/answer Nov 18 02:50:54 http://stackoverflow.com/questions/11285961/how-to-make-a-background-transparent-20-in-android Nov 18 02:54:17 yeah ok that has nothing to do with my q Nov 18 02:57:42 Hi, I want to open a dialog and show a list of items according to user's action. I know I can use the AlertDialog.Build to create the diaog, but I wonder if I can create the dialog once and hold a reference, and update the list when necessary? Nov 18 02:59:43 maven__: why bother, just make one when needed Nov 18 02:59:52 in the end you need an adapter **** ENDING LOGGING AT Mon Nov 18 02:59:59 2013