**** BEGIN LOGGING AT Thu Oct 31 02:59:58 2013 Oct 31 03:00:11 Can anyone explain the taskAffinity? I know this specify the "task" this activity want to belong to . So what, does this make any sense? I found this answer: http://stackoverflow.com/a/17873524/306719 But why not use "singleTask" model for the "Weather View" he mentioned in his example? Oct 31 03:21:34 #join crypto Oct 31 03:27:30 well that didn't work, did it? Oct 31 03:30:51 no :/ Oct 31 03:31:09 i'm pretty rusty at the moment, don't judge Oct 31 03:35:00 anyone here good w/ notifications and their actions Oct 31 03:36:19 my notification handler restarts the app.. when instead id like to duplicate the functionality of selecting in the app task bar or clicking its shortcut.. just pull it up if its running, and start it if its not Oct 31 03:37:29 acidjazz: sorry, can't help you with that Oct 31 03:53:44 acidjazz, look at intent flags you're using Oct 31 03:54:49 https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT might be what you want Oct 31 03:55:49 https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP Oct 31 03:55:51 or that Oct 31 04:09:16 I am trying to compile an NDK application that links against a third party library. I have added the include directory to the C++ build path, but the ADT continues to claim the headers cannot be found. I have also tried adding the path to the makefile, with no luck. What else can I try to make the compiler see the header files? Oct 31 04:14:17 hey guys Oct 31 04:14:22 got a strange question Oct 31 04:14:46 its a strange channel :) Oct 31 04:14:59 for strange questions , and strange answers ;) Oct 31 04:15:10 I have a native library that I wrote. My Android app creates a thread which basically just calls into it checking for updates, sleeps the thread a bit, and that's it...looping Oct 31 04:15:17 as soon as I introduced it Oct 31 04:15:32 it seems to be closing my activity, going back to the previous activity Oct 31 04:15:35 not every time Oct 31 04:15:40 and after about 1s or so Oct 31 04:15:59 I noticed that if I sleep the thread for longer, it seems to take longer before it crashes the activity Oct 31 04:17:09 any ideas at all what might cause that behavior? Oct 31 04:42:12 pretty strange problem, huh? :D Oct 31 04:50:46 When I use a FragmentTransaction to add() a new Fragment to the screen, the previous Fragment still shows through behind the newly displayed Fragment. How can I correct this? I would like the previous Fragment to not be visible when a new Fragment is added on top of it (though it still must be in the backstack) Oct 31 04:54:31 replace and addToBackStack(null) Oct 31 04:54:34 it is not firing my onDestroy in the fragment Oct 31 04:55:39 Where should a static library be placed relative to the project root so that the NDK linker can find it? Oct 31 04:57:19 the fragment won't be destroyed unless the activity is or you destory it Oct 31 05:05:17 bankai_: Thank you very much Oct 31 05:05:48 Hi can anyone explain the taskAffinity? Oct 31 05:06:09 yeah, the whole activity seems destroyed Oct 31 05:56:35 here we go Oct 31 05:56:52 W/ActivityManager: Force removing ActivityRecord{my activity here}: app died, no saved state Oct 31 05:56:56 what would casue that? Oct 31 06:04:22 Does anyone know a good sticky header library for expandable list views? Oct 31 06:07:53 The native Expandable Adapter is good enough. Oct 31 06:08:59 is a FragmentStatePagerAdapter supposed to remove all references to the containing fragments from fragmentManager ? Cuase I see duplicated on config change Oct 31 06:09:03 puzzled Oct 31 06:17:37 Hi. Is it normal for a Google Map v2 instance to eat up memory and become laggy if you draw a decent amount of polylines/circles/etc? Oct 31 06:47:39 hi Oct 31 06:48:04 is it customary to name the class representing a project's resources R? Oct 31 06:49:27 Hey! Can anyone point me towards a resource on recreating/extracting a single file that is stored inside a zipped expansion file (.obb). Say if I had 50 sounds clips in the expansion file and wanted to store a single one of them outside of the expansion file [can not simply include that file in the main package as user needs to be able to pick only the file that they want and if I included Oct 31 06:49:27 all of them in the main .apk I would surpass the size limit] Oct 31 06:49:59 jasabella: are you having problems with "R" not being imported? Oct 31 06:50:55 jasabella: if so, please note that R.java is automatically generated. If it's not there (cannot be imported) it means it's not being generated, usually caused by an error in some xml file Oct 31 06:51:25 check the "Errors" tab if you are using eclipse, you can find xml errors in there Oct 31 06:52:51 im trying to understand how an android package "works" :) Oct 31 06:54:14 packages and imports are actually a java thing, but R.java is definitely an android thing Oct 31 06:55:12 trying to understand what is being done by the IDE Oct 31 06:55:44 so if i didnt use eclipse or something i'd have to write my own R.java Oct 31 06:56:03 (or something equivalent) to keep the resource idś Oct 31 06:57:02 Hi for an app like google map, the main activity should be the MapActivity which contain a MapView, then is it right to set its mode to 'singleTask'? Oct 31 06:57:14 jasabella: http://stackoverflow.com/questions/10004906/what-is-the-concept-behind-r-java Oct 31 06:57:24 oohh thx :) Oct 31 06:58:11 that may not tell you everything you want to know, check this too: https://developer.android.com/guide/topics/resources/accessing-resources.html Oct 31 06:58:28 R.java reminds me of windows's resource.h Oct 31 06:58:37 long story short, you should not be creating R.java yourself Oct 31 06:59:54 You can actually get by completely without an R.java file, it just makes it a lot easier to reference a lot of your resources (especially for things like localizations). If for some reason you were not using an IDE (which will auto create one) you would not create an R file at all as it would not be worth the effort but since it is auto generated for you might as well use it. Oct 31 07:00:15 yup, i get its purpose Oct 31 07:00:17 can someone check something for me…. I think there is a bug in the new supportv4, anyone using a fragmentPagerAdapter ? Oct 31 07:00:30 and also has the source obviously Oct 31 07:00:49 it just holds the id's Oct 31 07:01:29 buildconfig.java reminds me of the preprocessor Oct 31 07:01:32 (in c) Oct 31 07:02:50 a strange problem while using holoeverywhere, the activity is transparent... find the thumbnail at http://d.pr/i/cDqy while running.. any one kinda give some hints? Oct 31 07:03:28 It does a bit more than that; say if you localized your app in two languages (English and French for example). In your resources you had some generic string we will call 'MyString' which contained 'Hello' in English and 'Bonjour' in French. Both of these strings would have different id's however if you referenced them with R.string.MyString it would actually pick the ID for the correct Oct 31 07:03:28 localization as well (same goes for screen sizes and layouts). What I'm trying to say is it also groups some id's together for you basically. Oct 31 07:04:00 okie :) Oct 31 07:08:20 Hey Guys I am seeing a NPE error in production Oct 31 07:08:21 http://pastebin.com/eyEL0Eiq Oct 31 07:08:23 anyone? Oct 31 07:08:41 The Editor object i get from sharedPreference.edit() is null? Oct 31 07:08:47 how could that be ? Oct 31 07:09:09 Logs says there is a NPE at line 4 Oct 31 07:10:04 veiz: what theme is the activity using in the manifest? Oct 31 07:10:31 Do both 'Key' and 'Value' have values or should one of them be throwing an NPE :P Oct 31 07:11:06 Zulandia: would I get a NPE in put if any of the values are null? Oct 31 07:11:12 yes Value can possible be null Oct 31 07:11:33 I thought NPE will only come where edit could but null Oct 31 07:12:01 Value could be null but the key should not be able to be (could double check but 98% sure) Oct 31 07:12:18 Zulandia: will just test that Oct 31 07:13:48 Even then it would be better practice to give value a value (even if it is just something you put in it for filler) Oct 31 07:14:44 But then I would be wondering why you need to be calling putstring in the first place if you don't plan to pass anything Oct 31 07:16:10 Zulandia: sorry just wrote foo as a poc http://pastebin.com/Zvps03p8 the actually caller does correctly sends key and vlaue Oct 31 07:16:12 value Oct 31 07:20:33 'edit' is instantiated by that point of your code? Oct 31 07:26:53 tnzr: the application used a modified @style/Holo.Theme, and there are some red mark in style.xml, seems not recognized, but compile with no errors. Oct 31 07:28:39 Zulandia: hey value and can be null, in my code key is a constant string so it will never be null Oct 31 07:29:08 tnzr: since it's a upgrade project, the old code use SActivity (guess it's comes from com.Wazabe...), and I just simply changed it to org.holoeverywhere.app.Activity (remove the @Holo(forceThemeApply = false, layout = R.layout.content) annotation) Oct 31 07:29:13 tnzr: is that okay? Oct 31 07:30:06 If sharedPreference is not initialized we would re-initize it The only way edit could be null is if sharedPreference Object edit() method returned null Oct 31 07:33:11 Yes, but the variable 'edit' is not actually instantiated to be a sharedpreferences editor anywhere in your pastebin. Do you have something to the effect of: SharedPreferences.Editor edit = .edit() somewhere in your code (wherever you instantiated your SharedPreferences variable would probably be best) Oct 31 07:33:47 This question is in relation to the following link. http://source.android.com/source/initializing.html Can I build android using OpenJDK ? or is it completely necessary to build using Sun-JDK... I'm using Ubuntu 12.04 Oct 31 07:34:25 brickhead: is this for prefs for your app ? Oct 31 07:34:45 yes Oct 31 07:35:01 here is the code http://pastebin.com/Zvps03p8 Oct 31 07:35:14 I'm getting NPE at line 4 Oct 31 07:35:37 brickhead: use this then http://developer.android.com/reference/android/content/Context.html#getSharedPreferences(java.lang.String, int) Oct 31 07:36:13 as in the name and the mode Oct 31 07:36:35 "Default" sometimes has issues on some api versions Oct 31 07:37:14 brickhead: so you would just grab it from the context Oct 31 07:38:05 StingRay_: hmm... Context here is this reference the background service, I wonder if that's making the difference on Oct 31 07:38:21 context.getSharedPreferences(context.getPackageName(),Context.MODE_PRIVATE); Oct 31 07:38:27 should not matter Oct 31 07:38:40 if it's not null and live you should be good Oct 31 07:39:25 thats what I thought. My concern is that SharedPreference object got instantiated successfully, but the editor did not Oct 31 07:39:42 and this is coming on Nexus 7 and S4 on production Oct 31 07:39:47 anyone using fragmentPagerAdapter can explain to me in the source why the instantiateItem does not find fragments based on the container id, cause that id is changed ? Oct 31 07:40:27 brickhead: debug then, break at that line and have a look, but try not using getDefault* <--- Oct 31 07:40:52 get the object from the context instead, with the 2 params Oct 31 07:41:02 It's not reproducible on my current devices. Oct 31 07:41:12 StingRay_: will try that Oct 31 07:41:13 thanks Oct 31 07:41:50 StingRay_: are you calling notifyDataSetChanged if you're changing the adapter Oct 31 07:41:51 ? Oct 31 07:44:19 huh? Oct 31 07:44:55 If an app receives a google cloud messaging message and does not have a receiver, would it not come up on the phone as a message at least? Oct 31 07:45:22 no Oct 31 07:45:23 no I'm following instantiateItem from the source and seeing that it's muddled the fragment name, so not getting it from the fragmentManager, thus just keeps creating them on config change Oct 31 07:45:37 it'll get bounced after 2 failed messages Oct 31 07:46:44 https://developer.android.com/google/gcm/adv.html#unreg-how Oct 31 07:58:50 Hello, Iam making a clear button for all my EditTexts is there a way to put the code all in one line? Rather then doing: text.setText(""); for each one can I do something like: text1|text2|text3.setText(""); Oct 31 08:00:06 there are not a ton of them and I could do settext for each, was just trying to learn the proper way so my code is cleaner Oct 31 08:03:19 for(EditText editText : new EditText[]{textOne, textTwo, TextThree}) editText.setText(""); Oct 31 08:05:28 for(int id: new int[]{R.id.mytext1,R.id.mytext2,R.id.mytext3})((EditText)findViewById(id)).setText(""); dont need to instance them seperate then Oct 31 08:05:47 ok cool thanks guys Oct 31 08:06:12 if you already have them that seems a waste of a lookup Oct 31 08:06:27 :P Oct 31 08:06:35 indeed it would be, but if he did, should be in an array neways Oct 31 08:06:38 :) Oct 31 08:06:59 I've decided I dont like fragmentStatePagerAdapters Oct 31 08:07:23 hi, guys , how to disable a 3g data connection ? Oct 31 08:07:27 and thanks to everyone in this Channel fyi you all helped me get my first app on the play store =) Oct 31 08:07:45 PureEvil: link ? Oct 31 08:07:49 its small stupid and is only good for one purpose but it does the purpose Oct 31 08:08:17 https://play.google.com/store/apps/details?id=com.pureevil.bakkenbblcalculator&hl=en Oct 31 08:08:39 its something for truck drivers in the oilfields Oct 31 08:09:08 cool Oct 31 08:09:35 but saves us from doin math lmao Oct 31 08:10:15 PureEvil: thats great! have you had a look at the NumberPicker to ease up number entry? Oct 31 08:10:23 and making mistakes adding/subtacting a inch wrong could be a big mistake, lose you job type of mistake =) Oct 31 08:10:31 your* Oct 31 08:11:13 so again thank you all of you who have given me answers and/or references Oct 31 08:13:07 lose your job for an inch? seems harsh for something measured in a field Oct 31 08:15:12 might not the first time Oct 31 08:15:18 but if you do it a few you will Oct 31 08:15:32 :s Oct 31 08:16:11 1 inch = 1.67 barrels of oil thats about a $150 to $200 mistake Oct 31 08:16:21 each time lol Oct 31 08:17:40 Where should my api key for gcm be entered? Oct 31 08:20:00 anli: the api key is entered in the backend server that sends messages Oct 31 08:20:11 Ah, as I do then Oct 31 08:20:14 No other places? Oct 31 08:21:29 Seems like I have to "update the application" as well Oct 31 08:21:47 But I am not sure what that means, I have still not published it on google play Oct 31 08:22:15 anli: your app needs to register with GCM. you really should follow the instructions Oct 31 08:22:44 Do I need to have it on google play for that to happen? Oct 31 08:24:30 anli: I don't think so Oct 31 08:24:35 ok Oct 31 08:26:05 Maybe I need to "Create an OAuth 2.0 client ID"... Oct 31 08:26:33 is not possible to make a simple voice chat app for android ? Oct 31 08:26:35 hello Oct 31 08:26:47 hello. Using SVG for some images, i have a singe image ( a clock, round ) which is cut of on the left and right side (thats not an image artifact, it looks perfect on ios / browser ) - any know issues ? Oct 31 08:29:22 i mean without rooms, just only one channel Oct 31 08:29:37 for all Oct 31 08:31:38 just for interact with new people Oct 31 08:32:17 who downloaded the app Oct 31 08:33:29 cortexA9: have a look at teamspeak. also have a look at the csipsimple source code if you want the gory details of voip Oct 31 08:34:16 teamspeak u need to put a server Oct 31 08:34:20 Ge0rG Oct 31 08:34:56 cortexA9: you will need a server with a voice chat app as well Oct 31 08:35:07 cortexA9: getting peer2peer working is a huge challenge Oct 31 08:36:49 Ge0rG a p2p android voice chat app ? Oct 31 08:37:24 java: duplicate class: com.pureevil.bakkenbblcalculator.R What is causing this? Oct 31 08:37:30 lol Oct 31 08:37:54 cortexA9: if you are opposed to running a server Oct 31 08:38:08 xored: you are scaling it wrong maybe ? Oct 31 08:38:35 i think p2p is best for these things Ge0rG.. Oct 31 08:38:52 *better Oct 31 08:40:19 cortexA9: networks work hard on breaking p2p nature of IP, though Oct 31 08:40:54 a completely serverless approach will probably work only for local wifi Oct 31 08:41:37 (because I don't think any "normal" ISP will let you run multicast, assuming good old multicast videoconference announcement system still exists) Oct 31 08:43:55 n/m a recomplie fixed my issue Oct 31 08:44:05 p_l: multicast is even more complicated than p2p Oct 31 08:44:28 and sending out N voice streams over your 3G uplink is.... but a funny idea Oct 31 08:44:50 When I send the gcm message from the backend, I get a json string back from the webserver indication success, however, it does not show up anywhere... Oct 31 08:44:57 need a good codec too Oct 31 08:45:04 Ge0rG Oct 31 08:46:13 cortexA9: you are really better off using a server (you can make money with it too) Oct 31 08:49:26 Ge0rG thinking about a simple voice chat.. just an idea eheh Oct 31 08:49:34 cortexA9: ideas are cheap Oct 31 08:50:09 maybe with an open source codec.. Oct 31 08:51:03 for the bandwidth.. Oct 31 08:51:05 is important.. Oct 31 08:52:17 Ge0rG: you meant sending any voice stream over 3G ;P Oct 31 08:52:25 cortexA9: have a look at codec2. its an extremely low-bandwidth voice codec Oct 31 08:53:07 p_l: I've got pretty decent 3G coverage in most places, but sometimes I only have 2G and it is so bad I can't even xmpp Oct 31 08:55:09 Ge0rG codec2 is good :) Oct 31 08:55:45 Ge0rG: 3G is horrible too, same with 4G. It doesn't matter how wide your pipe is when it randomly leaks Oct 31 08:56:13 cortexA9: voice codecs are pretty bandwidth-efficient at cost of quality, if you want to :) Oct 31 09:01:16 here there is HSDPA Oct 31 09:02:03 i don't have a 4G supported mobile phone.. Oct 31 09:04:10 my ISP limited the bandwidth at 256k too bad :P Oct 31 09:11:01 Is there any way of listing all gcm messages sent to a certain registration_id? I seem to not receive them on the phone Oct 31 09:11:16 Should I not be able to list them in the google api console Oct 31 09:11:17 ? Oct 31 09:16:45 hi Oct 31 09:16:46 there! Oct 31 09:16:48 droids! Oct 31 09:17:46 Knockin' on Heaven's Door :)) Oct 31 09:19:58 https://play.google.com/store/apps/details?id=com.wtf you gotta be fraking kidding me -- 10-50 installs Oct 31 09:21:27 lol Oct 31 09:24:51 so what is the most easy way to make an app ? Oct 31 09:25:16 without knowledge of programming languages.. Oct 31 09:25:26 hire someone Oct 31 09:25:59 why hire someone ? Oct 31 09:27:22 yep why someone Oct 31 09:33:32 cortexA9, because its the most easy way to make an app Oct 31 09:35:27 there are many services right now Oct 31 09:35:36 for making an app Oct 31 09:38:11 maybe an app for tablets to make easy apps.. Oct 31 09:38:37 not a bad idea :P Oct 31 09:40:16 maybe Oct 31 09:41:04 but w/o programming it would be matter of choosing "create a gallery; add a news feed; ..." Oct 31 09:42:15 icedp design.. Oct 31 09:42:27 icedp buttons.. Oct 31 09:42:49 icedp pages.. Oct 31 09:45:07 buttons and pages that do what exactly? it'd be set of the predefined actions - like a youtube feed Oct 31 09:45:24 if you want to add some logic.. that's becoming programming anyways ) Oct 31 09:46:33 This question is in relation to the following link. http://source.android.com/source/initializing.html Can I build android using OpenJDK ? or is it completely necessary to build using Sun-JDK... I'm using Ubuntu 12.04 Oct 31 09:47:09 icedp an automatic programming language Oct 31 09:47:50 automation of code Oct 31 09:47:54 north: I don't remember, but what's the problem with installing sun? Oct 31 09:48:19 No just asking icedp Oct 31 09:48:54 anyone here by chance also develop for windows touch ? Oct 31 09:49:05 the semi usefull apps for windows Oct 31 09:51:36 https://play.google.com/store/apps/details?id=com.apkcreator.fwdfree&hl=it Oct 31 09:51:40 what's that Oct 31 09:54:03 https://play.google.com/store/apps/details?id=com.apkcreator.fwd Oct 31 09:54:10 oh this is good :) Oct 31 09:54:28 Do I need a service to receive gcm messages? Oct 31 09:55:30 hi guys, do you know if there's a way to know if an onPause is called because of a configuration change? Oct 31 09:58:38 StErMi: you could always put a log in onPause and trigger a config change to see Oct 31 09:59:24 trigger manually? Oct 31 10:00:57 depending on what you're doing you can programatically change the activity configuration http://stackoverflow.com/a/11941440/1604213 Oct 31 10:20:32 why is it so hard to make apps.. Oct 31 10:20:59 looking for something simple.. Oct 31 10:21:01 it's hard to make anything Oct 31 10:23:10 hello * Oct 31 10:23:31 nothing is easy if you don't know/understand it Oct 31 10:24:23 nothing is difficult: it can be unknown at worst... Oct 31 10:24:28 hence why i want to understand what the ide is doing to make things easy and what is actually essential :) Oct 31 10:25:53 I've a problem with a layout: http://www.hastebin.com/foporawope.xml Oct 31 10:25:53 it's that hard to make a simple ide for everyone ? :P Oct 31 10:26:35 What the ide is doing to make things easy includes: checking syntax, checking dependencies, suggesting code +++ Oct 31 10:26:36 maybe an easy version of android studio :P Oct 31 10:26:59 I'd like the ImageView to take as much space as needed to let the image fill the display horizontally, and then leave the rest (in vertical direction) for the ListView Oct 31 10:28:08 the weird thing is that the weights seem to do the countrary of what I think they should... Oct 31 10:28:27 i dont know, i've found that ide's tend to automate a lot of otherwise tedious things in the background and add different things just to satisfy them which would otherwise not be required if you went barebones... none of which actually help you understand the actual system/platform Oct 31 10:28:29 if I raise the weight for the ImageView, it shrinks Oct 31 10:28:51 if I lower it, then it becomes larger Oct 31 10:29:14 they are nice to have features, dont get me wrong, but i feel i dont understand a system if i just live in the ide bubble Oct 31 10:29:45 how does layout_weight work? Does the presence of a ListView change the rules? Oct 31 10:29:47 lower weight means it has more priority of the view Oct 31 10:30:00 having 2 views with weight "1" will share the space evenly Oct 31 10:30:22 but one view with "1" and another with "2", the first view will have more space than the other Oct 31 10:31:03 CallumTaylor, that means that other layouts I made are working just for luck! Oct 31 10:31:04 weight shouldn't be 736 Oct 31 10:31:27 if you need the view to be 736px tall then put that in the layout_height Oct 31 10:31:51 sounds like a priority of some sort :) Oct 31 10:32:03 well I don't want to be tied to phisical px, I want it to be 736px only if the display is 1280 tall Oct 31 10:32:26 ok so have a folder that matches 1280 and have a specific layout for that Oct 31 10:32:33 layout-sw1280 or something Oct 31 10:32:41 see: http://developer.android.com/guide/topics/resources/providing-resources.html Oct 31 10:32:47 in other displays, it must scale accordingly Oct 31 10:33:03 then have the fallback in the standard layout folder Oct 31 10:33:09 it'll match everything else Oct 31 10:34:32 ok, but 1280 is only an example, I want the fallback to adapt itself based on some rules I do not know how to tell in XML, but I know how to tell in english... Oct 31 10:35:26 I would think you would not need to design to xxx specific resolution 80% of the time Oct 31 10:35:33 your best bet is to handle it programatically then and adjust the view's layout params after the view has been inflated Oct 31 10:35:37 the ImageView must stay at the top, the image must keep aspect, the image must fill the display horizontally Oct 31 10:35:54 the rest of the display is for the ListView Oct 31 10:36:02 or create a custom image view subclass and handle the onMeasure Oct 31 10:36:09 is there any way to epress those 4 rules in xml? Oct 31 10:36:30 just sent this to my product manager http://i.imgur.com/DJVCbdn.png Oct 31 10:38:15 CallumTaylor, I understand I could do that programmatically, but I feel it's overkill for those 4 simple rules, and dangerous also (you never know which bugs hide in the code) Oct 31 10:39:29 lucrus: are these fixed aspect images ? Oct 31 10:39:32 if you need an image view that keeps its aspect ratio, look at https://gist.github.com/scruffyfox/5143412 Oct 31 10:39:36 all the same? Oct 31 10:39:51 you can just rename the extension to be ImageView instead of ImageButton Oct 31 10:40:07 StingRay_, these=? Oct 31 10:40:20 I have only 1 image Oct 31 10:40:29 oh… ok Oct 31 10:41:06 scaling it while even maintaining aspect is still not all that great Oct 31 10:41:07 StingRay_, have a look here http://www.hastebin.com/foporawope.xml Oct 31 10:42:03 well if you want the imageView to control things, and expand, dont set a weight Oct 31 10:42:15 weight is for remaining space in linearLayouts Oct 31 10:42:26 StingRay_, thanks I try Oct 31 10:45:45 StingRay_, almost there, http://www.hastebin.com/bilikagano.xml now the problem is that the ImageView does not stay at the top, how do I convice it? Oct 31 10:46:30 you need to know what it is not the top OF Oct 31 10:46:39 the viewBounds within itself ? Oct 31 10:46:45 the parent linearLayout ? Oct 31 10:46:50 the screen ? Oct 31 10:46:52 :) Oct 31 10:47:12 sorry I don't understand, what do I need to know? Oct 31 10:47:34 post a screenshot Oct 31 10:47:37 easyer Oct 31 10:47:39 ok Oct 31 10:47:42 easier* Oct 31 10:52:23 StingRay_, what do people use to upload images and post links in IRC? Oct 31 10:52:56 just use imgur Oct 31 10:54:02 http://imgur.com/OlaI10E Oct 31 10:54:11 hi, a strange problem while using holoeverywhere, the activity is transparent... find the thumbnail at http://d.pr/i/cDqy while running.. any one kinda give some hints? Oct 31 10:54:58 I'd like to avoid that extra space at the top, the image starts with the first cyan pixel Oct 31 10:55:11 use android:excludeFromRecents="true" in your xml Oct 31 10:55:48 CallumTaylor, are you talking to me or to veiz ? Oct 31 10:55:49 lucrus you need to use android:adjustViewBounds="true" Oct 31 10:55:56 that last one was for veiz Oct 31 10:56:17 CallumTaylor: android:excludeFromRecents="true" ? Oct 31 10:56:22 yeah in your activity Oct 31 10:56:41 in your manifest for that activity* Oct 31 10:56:55 CallumTaylor: okay, try.. Oct 31 10:58:09 CallumTaylor: oops, seems not my want. The activity did not show any more, even in recent list. Oct 31 10:58:19 CallumTaylor, thanks it works. Now, how a newbie is supposed to find that out? The documentation of adjustViewBounds tells about aspect ratio, not margins... Oct 31 10:58:36 veiz I thought that's what you wanted? my mistake Oct 31 10:58:47 lucrus: eh I guess it's just one of those things Oct 31 10:59:00 i generally always adjustViewBounds on images Oct 31 10:59:15 unless they have a very specific size which is definitely smaller than any screen (like icons) Oct 31 10:59:20 CallumTaylor: my prob was, the app launched (found it from DDMS), but the screen just leaven on the launcher screen. Oct 31 10:59:46 that'll be because your activity is probably using the wrong theme Oct 31 11:01:02 CallumTaylor: theme problem? I used a Theme.verde which inherit from @style/Holo.Theme.. aka, I'm using holoeverywhere 1.6.8 Oct 31 11:01:34 hmm does the activity show if you remove the theme? Oct 31 11:03:19 CallumTaylor: no, I removed from , then relaunch it, the screen just flashing one time. and stay on the launcher... Oct 31 11:03:59 can you paste your manifest into pastebin? Oct 31 11:04:13 no prob, 1 sec Oct 31 11:05:33 CallumTaylor: http://pastebin.com/pEdCPagM for manifest Oct 31 11:05:53 so main activity is the one with the problem right Oct 31 11:06:37 CallumTaylor: um, yeah, seems like. http://pastebin.com/4XQNQPkA for the style Oct 31 11:07:28 and you've tried putting the @style/Theme.verde into your activity? Oct 31 11:07:34 CallumTaylor: http://d.pr/i/hSb5 for the syntax Oct 31 11:08:55 CallumTaylor: same result. Oct 31 11:09:15 hm strange, try removing the hardwareAccelerated field, i know sometimes that can mess stuff up Oct 31 11:09:53 CallumTaylor: I update the code from using HoloEverywhere 1.3.4-snapshot to the 1.6.8, and do "//@Holo(forceThemeApply = false, layout = R.layout.content)" in MainActivity impl. Oct 31 11:10:25 So I have an interesting problem... when i search my Nexus 4 on my computer the directory my app is writing to doesn't show up. But on OI Manager the folder clearly shows up and the data runs fine on my app. I've disconnected my device and reconnected a couple of times but that file still doesn't show up Oct 31 11:10:27 any suggestions? Oct 31 11:10:35 i've never used holoeverywhere so I'm not massively knowledgeable of the ins and outs of how it works Oct 31 11:10:43 CallumTaylor: same result without the hardware accelerated option Oct 31 11:10:50 hmm Oct 31 11:11:15 CallumTaylor: thanks for your suggestion :) Oct 31 11:11:47 folder still doesn't show up on windows* Oct 31 11:12:24 Since I met the sharePreference problem with the holo-1.3.4, I decided to update it to the latest version, but seems I'm in trouble... Oct 31 11:28:40 hi. I got a small question. How do I upload an image with android the proper way? I target Android >= 4.0 only Oct 31 11:30:39 hello guys, could anybody help me? i've a problem setting up eclipse ide for building android. anything is working fine if I build it in shell, but with eclipse I get huge amount of errors ( > 2700 errors, > 11300 warnings). I followed instructions on http://source.android.com/source/using-eclipse.html. Oct 31 11:50:27 strange prob, my app seems crashed, but no error from logcat... Oct 31 11:50:55 Ok, this is kinda silly, but, in a local network, using wi-fi, is it possible to connect devices using a peer-to-peer connection? Like in a chat app? Oct 31 11:53:20 So I am running through the Hello World android tutorial, and at first when I was building inside ADT it would emulate the app perfectly fine, but now all of a sudden it doesn't appear to do anything when I run build as android application inside ADT Oct 31 11:53:22 SidGBF: sure Oct 31 11:55:37 Figured it out, you actually need to click the build dropdown in ADT and select the app to emulate.. Oct 31 11:55:45 xored: Do you know somewhere I can find docs or references about it? I didn't found any query to get results in google :-/ Oct 31 11:58:12 Does anybody have any ideas why Genymotion is able to deliver an emulator with all the Google services working, when Google seems unable/unwilling to? Oct 31 11:58:44 is it possible to include layouts passing in another layout to be added inside that layout? say i have a viewgroup that i want to include and with that viewgroup i also want to wrap another layout Oct 31 11:59:14 so something like include(button wrapper, with button=myotherlayout) Oct 31 12:09:54 funkbox: you mean like ? Oct 31 12:10:12 StingRay_: yes, but I want to pass a layout to the included layout which it itself should include Oct 31 12:10:36 you mean in code ? Oct 31 12:10:41 in xml layouts preferably Oct 31 12:10:57 lots me Oct 31 12:11:03 you can have nested includes I think Oct 31 12:11:06 i guess i could write a custom view, and do it that way but that's too Oct 31 12:13:18 scenario: layout A wants to include layout B . layout B serves as a wrapper to define some chrome around other things, like save/cancel/done buttons for editing for example. A wants to use it's own buttons defined in layout C but also the common chrome defined by layout B. i rougly want to do a Oct 31 12:13:48 So I have an interesting problem... when i search my Nexus 4 on my computer the directory my app is writing to doesn't show up. But on OI Manager the folder clearly shows up and the data runs fine on my app. I've disconnected my device and reconnected a couple of times but that folder still doesn't show up in windows. Any suggestions? Oct 31 12:13:52 sot the view hiearchy would have A -> B -> C Oct 31 12:14:58 yeah not that I know of Oct 31 12:15:21 there arn't any hidden files either Oct 31 12:16:05 i think if I wanted something so complex and adaptive I would either do my own, or look at the design a bit mroe Oct 31 12:16:08 more* Oct 31 12:16:43 not a fan of xml layouts neways, only use when google forced me to Oct 31 12:16:53 can't even check with elevated command prompt because the device doesn't have a drive :/ Oct 31 12:16:56 like with fragmentPager driven viewPager!!!!!!!! Oct 31 12:19:04 StingRay_: sounds like i gots to write a view meself Oct 31 12:19:31 funkbox: Not sure I understand really, but is this similar to your problem? http://stackoverflow.com/questions/7916527/android-using-layouts-as-a-template-for-creating-multiple-layout-instances Oct 31 12:19:31 funkbox: sounds more like a fragment config task to me Oct 31 12:19:34 rather than a view Oct 31 12:19:51 is there a setting to change MTP back to UMS for android Oct 31 12:19:57 procton: no Oct 31 12:20:07 StingRay_: yes, but fragments within fragments :( Oct 31 12:20:12 no Oct 31 12:20:16 not at all Oct 31 12:20:42 so frustrating... i mother******* hate windows Oct 31 12:20:44 StingRay_: then elaborate please Oct 31 12:20:48 Solupus: cool story bro Oct 31 12:21:25 funkbox, don't get the sarcasm or comment Oct 31 12:21:37 StingRay_: you don't like xml views? do you do all your views in code then? o.O Oct 31 12:22:08 well say you want a menu bar, same in 2 activites but the text label for that goup of buttons different and or inclusion of another button or button row Oct 31 12:22:23 CallumTaylor: 99% yes Oct 31 12:22:31 ew that's gonna get messy quick Oct 31 12:22:33 but dont try that with viewPager Oct 31 12:22:45 StingRay_: yes, but it's also across views and across views in a list view that's in a fragment Oct 31 12:23:20 either or whatever, your fragment can deal with the logic Oct 31 12:23:33 StingRay_: but it's also used across disparate fragments Oct 31 12:23:34 custom view would be the same, without the control of a fragment Oct 31 12:24:39 hey, i'm trying to build android with eclipse. in shell everything is working fine. but in eclipse i get many errors type of "xxx cannot be resolved to type". any ideas? Oct 31 12:25:27 well rebooting android fixed my issue Oct 31 12:29:30 DreyFax, clean project. and it depends on what your errors are Oct 31 12:29:53 so if you could post em or screenie the entire project it'll be more helpful Oct 31 12:30:30 tried cleaning and refreshing it - didnt modify the source code, its fresh from the repo Oct 31 12:31:28 hi! I want to start an activity from the preferences screen of a live wallpaper. Can you give some directions for what should I start reading in order to implement it? Oct 31 12:32:41 you just need a Context Oct 31 12:32:53 to call startActivity on Oct 31 12:33:10 I have the preferences screen but what element do I have to add in there so that when the user taps a new activity starts? Oct 31 12:33:26 a button ? Oct 31 12:33:27 DreyFax: you probably did not configure your sdk path Oct 31 12:35:29 followed this instructions: http://source.android.com/source/using-eclipse.html - i dont want to develop an application - there are to much errors to copy or screen it :D over 2700 Oct 31 12:36:10 when I try do add new element in the preferences scree I only get this?: http://imgur.com/37Jy57b Oct 31 12:36:22 any guides on how to add a button? :) Oct 31 12:36:24 DreyFax: usually many errors are due to one problem Oct 31 12:36:35 you fix that problem, all the other errors get fixed Oct 31 12:36:45 Zgary, http://www.androidhive.info/2011/08/how-to-switch-between-activities-in-android/ Oct 31 12:37:06 Zgary, better yet, follow this one http://developer.android.com/training/basics/firstapp/starting-activity.html Oct 31 12:37:24 I dont know how to add a button Oct 31 12:37:33 that tutorial teaches you how to add a button Oct 31 12:37:43 in the preferences screen? Oct 31 12:37:58 I will try Oct 31 12:37:58 DreyFax, windows>preferences>android>sdk location check if its empty Oct 31 12:38:56 Zgary, I would just create a new project, follow the tutorial, and then attempt to add it to your prefrence screen Oct 31 12:39:28 well i did not install the sdk on this machine - is it necessary to build android os? Oct 31 12:39:33 yes. Oct 31 12:39:35 no updates for android studio :( Oct 31 12:41:11 oh, okay - thats not mentioned anywhere in the documentation :( Oct 31 12:41:19 DreyFax, if you're talking about Android Open Source im not sure Oct 31 12:41:27 try following this http://source.android.com/source/building.html Oct 31 12:41:50 i did and its working, if i run commands in shell Oct 31 12:42:26 It crashes at: addPreferencesFromResource(R.xml.prefs_wallpaper) . I added a button with