**** BEGIN LOGGING AT Sat Sep 07 02:59:59 2013 Sep 07 03:00:04 <^cheeky> well all are, and i am no expert either ha .. soo .. your inflating it properly and all ? why dont you just delete the file .. since it only has a button and edit text and recreate the file .. and paste in the edit text and button .. and do a rebuild of the project hope fully during the clean it will re-associate all the index and files and what now Sep 07 03:00:06 <^cheeky> *not Sep 07 03:01:15 did i just read right? you want me to delete a file that i just wrote to exercise how to program in android, nope dude, not this time. Sep 07 03:01:23 <^cheeky> veryhappy .. you might be missing the tools:context Sep 07 03:01:31 where? Sep 07 03:02:00 do you mean the line: xmlns:tools="http://schemas.android.com/tools"? Sep 07 03:02:10 it's already in there. Sep 07 03:03:33 <^cheeky> mebe ontop add Sep 07 03:04:02 ^cheeky: how many days are you actually in android programming? Sep 07 03:04:16 <^cheeky> above the LinearLayout tag Sep 07 03:04:26 <^cheeky> i dont keep count .. why do you ask ? Sep 07 03:04:37 <^cheeky> if your wondering if i am a n00b .. yes i am :) Sep 07 03:05:20 ^cheeky: that's why i wanted to ask - don't give another noob not helpful hints when you're a noob as well, that is no help at all, sorry. Sep 07 03:05:51 ^cheeky: i know you wanted to help, the better help would be to get someone then who has experience than to guess what it could be - or not. Sep 07 03:05:54 <^cheeky> dont be sorry , its the net you choose what you wanna accept i just broadcast to and question :) Sep 07 03:06:07 ^cheeky: i see. Sep 07 03:06:22 <^cheeky> yup just wanna help Sep 07 03:07:04 <^cheeky> well hope you get it working and if you do .. and if you dont mind tell me the fix would like to know as well Sep 07 03:07:50 <^cheeky> so adding the declaring that the file is an xml file on top of the file did not work ? Sep 07 03:08:42 ^cheeky: i didn't do it. i'm waiting for someone more experienced to help me, but if i see you next time i'm gonna tell you the fix - if possible Sep 07 03:08:58 <^cheeky> k thanks Sep 07 03:13:09 <^cheeky> blaaaah friday night here ... Sep 07 03:13:19 <^cheeky> veryhappy: come one man try it .. what do you have to lose lol Sep 07 03:13:34 <^cheeky> *on Sep 07 03:14:20 ^cheeky: if you would mind - please let me work and find a fix for that - i'm here to work. Sep 07 03:15:26 <^cheeky> lol sheesh fine dude, i guess ill get some work done as well Sep 07 03:17:14 ^cheeky, so are you learning android dev for work or something? Sep 07 03:20:48 <^cheeky> i wish for work , @ work its just c++ stuff i do and very boring and non-exciting and very how do i say .. archaic.. lol its crazyily written. just love gadgets man... and i love how hackable android is!! so i guess hobby i dunno Sep 07 03:20:55 ^cheeky: deleted the gen folder and left it recreate. that was all so far Sep 07 03:22:06 <^cheeky> pistolpete333: you ever messed with this stencil stuff thats in the android design site ? Sep 07 03:22:25 <^cheeky> whao .. dude .. deleted the whole gen folder .. but why ? Sep 07 03:23:24 ^cheeky: it's recreated automatically. Sep 07 03:23:43 <^cheeky> yah ... and it worked ? Sep 07 03:24:13 ^cheeky: one file had an error - so i had to delete the gen folder - got recreated the stuff and it works finally. Sep 07 03:24:40 <^cheeky> pistolpete333: dont get me wrong about c++ i like C++ and what not just the stuff i do .. doesnt get exciting! , what about you Sep 07 03:25:00 <^cheeky> very happy congratz, :) Sep 07 03:25:03 <^cheeky> and thanks Sep 07 03:25:13 no problem - thank you Sep 07 03:25:17 take care Sep 07 03:26:07 <^cheeky> i dunno if i was just trolled or what the hell just happened Sep 07 03:26:50 lol Sep 07 03:27:52 <^cheeky> pistolpete333: why you learning android dev, if you dont mind me asking Sep 07 03:29:10 Say it is for doing magic tricks Sep 07 03:29:18 ^cheeky, honestly, I thought I would write like a simple app or something just to put it on my resume and say I did something this summer, but now I am really starting to like it Sep 07 03:29:42 If anything I may have just found a new hobby Sep 07 03:30:23 <^cheeky> hahah Sep 07 03:30:33 Also, as to your earlier question, I am still a student. Don't really have any work experience Sep 07 03:30:39 <^cheeky> yeah i think i wanna do this when i wake up in AM for work Sep 07 03:31:02 <^cheeky> we have a mobile department but its crazy packed and our division gets insane work so blah what ever Sep 07 03:31:17 new job? Sep 07 03:31:20 <^cheeky> sheesh this practice app i created is soo uuugly Sep 07 03:31:39 What is the SDK made in? Java? Sep 07 03:32:08 <^cheeky> pistolpete333: yeah, kinda Sep 07 03:32:43 <^cheeky> where i live very few, mobile dev stuff. Sep 07 03:33:18 <^cheeky> pistolpete333: i wish i never graduated even though it wasnt long ago .. college is freaking awsome atmosphere always intresting Sep 07 03:33:37 <^cheeky> pistolpete333: create an app, do some open source bug fixes Sep 07 03:35:35 ^cheeky, yeah Im loving college so far, can't wait to go back in a few weeks. I already have what I think is a decent idea for an app, maybe not mind blowing but good enough for the market I think, so I am going to be working on that Sep 07 03:35:57 <^cheeky> nice Sep 07 03:36:42 was your degree computer science? Sep 07 03:37:27 <^cheeky> yup yup Sep 07 03:41:06 Nice. Sep 07 03:42:08 <^cheeky> i guess ill try implementing cards .. for my list view tonight , coz its a Friday night !!!!! whoopie heh Sep 07 03:42:37 i'm just doing the hello-jni example, but with c++ Sep 07 03:42:48 why is it that extern C is required here? http://ideone.com/fqbBrH Sep 07 03:43:13 i get an UnsatisfiedLinkError without extern C Sep 07 03:44:31 ^cheeky, implementing cards? Sep 07 03:45:51 <^cheeky> yeah like i dunno if it would go in a list view .. and list adopter .. coz i mean i have listview created a custome adopter and it has a list item .. which uses a relative layout .. Sep 07 03:46:04 <^cheeky> pistolpete333: you know like the goolge now cards Sep 07 03:49:08 ^cheeky, oh yeah my bad Sep 07 03:49:20 <^cheeky> pistolpete333: why your bad lol Sep 07 03:49:54 i forgot about google now Sep 07 03:51:43 Is it possible to reconfigure menu at runtime Sep 07 03:52:17 well, views rather Sep 07 03:52:20 but you knew what I meant Sep 07 03:52:37 i'm just doing the hello-jni example, but with c++ Sep 07 03:52:42 i get an UnsatisfiedLinkError without extern C Sep 07 03:52:50 could someone explain why? Sep 07 03:53:32 When you extern "C" you suppress C++ name mangling Sep 07 03:53:37 so it can link to it Sep 07 03:55:23 so the only side effect of extern "C" is that you can't overload functions? Sep 07 03:55:33 It basically makes it a C function Sep 07 03:55:41 :p Sep 07 03:55:47 With some magic added Sep 07 03:55:58 but I can use all of C++ inside the braces, yes? Sep 07 03:56:09 yea Sep 07 03:56:42 I thought using extern on functions was like declaring a variable but not giving it a value? Sep 07 03:57:26 That's if you're just using extern on the funciton declaration Sep 07 03:57:41 like, "extern float Add(float a, float b);" Sep 07 03:58:04 ok, what is he trying to use it for then? Sep 07 03:58:06 why not put that in a header instead and then include it? Sep 07 03:58:49 Doing "extern "C" { float Add(float a, float b) { return a + b; } }" does things a bit differently :P Sep 07 04:02:19 Sonicadvance1, ok thanks for explaining that, to advanced for me lol Sep 07 04:02:58 There's a reason why there aren't any worthwhile C++ libraries available, everything is exported as a C function Sep 07 04:04:11 is this the right channel to ask about compiling the Android emulator itself from the source? I am just wondering when one can use Java 7 with that Sep 07 04:07:10 darwin, Android emulator most likely isn't in Java since it is in qemu Sep 07 04:08:24 one needs Java to compile the Android emulator Sep 07 04:14:15 darwin, I guess it uses Java for the front end of it Sep 07 04:16:16 Is Bluestacks worth the constant services running on my machine all the time? Sep 07 04:16:24 Or are there faster emulators out there? Sep 07 04:16:24 where would you keep a C/C++ library that you ported for android? Sep 07 04:16:32 I just want an emulator with Gapps on it. Sep 07 04:16:35 keep it in your project? Sep 07 04:26:30 does Android.mk use make? Sep 07 04:27:24 I think it does Sep 07 04:27:34 or the other way around, if make is used Sep 07 04:28:20 i can barely write a makefile. I'll have to read up Sep 07 04:28:36 Makefiles are easy. Sep 07 04:28:48 Shouldn't take long. Sep 07 04:48:58 I want to port a library (libjpeg) to android. Should I make a separate project? Sep 07 04:49:46 The method I am trying to do is explained at the official source site: http://source.android.com/source/index.html . I tried just uninstalling Java 7 and temporarily installing 6, but that did not work yet Sep 07 04:52:14 apparently Android depends not only on all the outdated Java 6 and/or 32-bit version, or both, but when I downgraded, it is depending on other outdated/32-bit libraries Sep 07 04:57:48 RustyShackleford, just put it in JNI Sep 07 04:57:56 RustyShackleford, look at the JNI stuff in examples Sep 07 04:58:03 like hello-jni, two-libs etc. Sep 07 04:58:43 given nsa paranoia, lamport signature coin bunker implemented in 3...2... Sep 07 04:59:51 darwin i thought Android tooling should work fine with Java 7 Sep 07 05:00:04 i have java 6, only because i'm on os x 10.7 Sep 07 05:01:00 but dunno about 32/64 bit Sep 07 05:02:14 I am not sure either... I just read some posts implying it needs 32-bit... hopefully that is no longer true Sep 07 05:02:56 does it matter though ? Sep 07 05:03:00 yes Sep 07 05:03:25 I am not about to set up an ancient 32-bit p3 or p4 just to build this Sep 07 05:04:04 If I have Java 7, building the Android emulator from source says install 6... after I downgraded to that, the Android build is having issues with current versions of Perl Sep 07 05:04:29 I would have to install a version of my OS from a few years ago Sep 07 05:04:45 unless this is all 64-bit problems Sep 07 05:04:49 hm, just set up a vm ;) Sep 07 05:23:19 hm, i dont seem to be notices from genymotion when they update their stuff Sep 07 05:34:07 meh fuck it, 'failed to install ova device' ; rm -fr genymotion ;) Sep 07 05:34:17 back to the shitty ol qemu Sep 07 05:46:30 Anyone in here figure out how to make the Adreno drivers fail less spectacularly? Sep 07 05:58:50 hi, where would i drop The Robot Fonts in android studio, would it be in a raw folder .. i mean i have used the icons from the map pack i just drag and dropped them into the specific directories in my project but where would the fonts go ? Since the Robot font was introduced with Ice cream sandwich .. prior devices i take it would not be able to get the desired look since those devices dont have those fonts ? Sep 07 06:12:42 Hey guys, Im trying to use Root Explorer to create a symlink of a folder (For google play) Sep 07 06:12:56 I can create the Symlink but cant paste it, anyone know why this is? Sep 07 06:13:26 My device is a Galaxy S3 i9305T Stock rom Rooted with Odin Sep 07 07:17:45 can one enable ethernet in the Android emulator? Sep 07 07:22:10 darwin, Probably not Sep 07 07:22:48 someone on #android said one can but that I should come to this channel Sep 07 07:23:03 maybe maybe Sep 07 07:23:16 someone with more experience with qemu android emulation hacking maybe Sep 07 07:32:45 This UI designer in android studio is... not the best Sep 07 07:34:08 ok, apparently one has to set up some sort of 'network redirection' to use the host machine's ethernet... the instructions are not that clear for users who are not networking specialist computer scientists Sep 07 07:37:38 Hi! Is it alright to have 2 Google developer console accounts? Motivation is I want use one for more public stuff with my name and another for somewhat possibly stupid stuff and experimental apps. Both are are supposed to generate some income. So is it prohibited? If so, can I have personal account and company one or something? Sep 07 07:38:42 bakingbread, it's fine, google actually tells you to make a company account for apps Sep 07 07:39:42 Mavrik: okay good to know! But if I will receive money on the same address is it still okay? Sep 07 07:40:02 probably, but you should really ask their support for that Sep 07 07:41:25 Mavrik: is it accessible? just saying from the experience from the other great Google products - you can't simply contact support Sep 07 07:42:25 good question, never tried it honestly, we use a separate account for out company, but the address is an office Sep 07 07:42:32 so I can't say much about it :/ Sep 07 07:43:07 darwin, how can you be a developer and not know a simple IP forwarding setup? -_- Sep 07 07:47:50 I did not specialize in that stuff Sep 07 07:48:16 but developers are not the only people who may want to use an emulator, anyway Sep 07 07:49:11 there are basics and then there's specialization Sep 07 07:49:54 if it wasn't okay to have two accounts, nobody would be able to do work as more than one company ever Sep 07 07:56:07 can anyone tell me, if there is a way to get apps which come on android natively and open them up in android studio to study the code please ? Sep 07 07:56:25 sim0ne, depends what do you want to study. Sep 07 07:56:37 sim0ne, source of bundled Android apps is available as part of Android source Sep 07 07:56:43 i just use ack & vi to study those apps Sep 07 07:56:45 source of Google apps and other 3rd party apps is closed. Sep 07 07:56:58 heh, eventually there won't be anything left :| Sep 07 07:57:10 excelt the caclulator Sep 07 07:57:15 sp Sep 07 07:57:26 g00s, still better than ipad then :P Sep 07 07:58:14 calendar and email are good examples to go through Sep 07 07:58:24 i get the impression other stuff is rotting, like music Sep 07 07:58:29 well i mean the app i created . i wanted add some colour and i wanted to add some nice fluidity .. for example i am trying to mimic the people app list view on my app liste view i got the image and text and divider all done but it kinda has all contacts .. under a letter and when you scroll it has that animation.. Sep 07 07:58:54 so .. i mean need to download the android source code and just open and compile it in android studio ? Sep 07 07:59:42 so would i be able to see the people app code ? Sep 07 08:01:25 g00s, music is dead Sep 07 08:01:35 since it was replaced with GPM on pretty much anything that ships Sep 07 08:01:40 Mavrik do you know what musicFX is ? i saw that in the repo also Sep 07 08:01:51 isn't that the equalizer_ Sep 07 08:01:57 oh, k Sep 07 08:02:43 sim0ne, you can't just compile whole android in android studio Sep 07 08:02:49 sim0ne, and I don't get why would you have to Sep 07 08:02:57 since you want to see the source only Sep 07 08:03:19 yeah .. i mean it would be nice to put break points and see where the app is going which functions and what not Sep 07 08:10:34 Mavrik: so using repo .. i get the whole source for android ... but thats i mean i am installing android from scratch to a device ? sorry please bear my stupid questions Sep 07 08:14:41 I am not sure if .. its because my list view i used the design editor to move my views around but when i run it on my device .. now .. it really sluggish .. i mean very choppy to .. or is it coz i am displaying a picture image that it caused it to be slow Sep 07 08:16:54 yup its the images Sep 07 08:16:55 blah Sep 07 08:26:42 http://omapzoom.org/ Sep 07 08:27:08 is that what you guys were referring to Sep 07 09:04:49 Anyone here got a LG Optimus G2? :P Sep 07 09:04:58 Or any other Snapdragon 800 device? Sep 07 09:05:12 Really want to get in touch with someone that has one :D Sep 07 09:29:19 Hello world!' Sep 07 09:33:17 Ah, back. Hello world! Sep 07 09:33:52 When I'm using a FragmentTransaction to "replace" my own Fragment onto android.R.id.content, when will it actually attach the Fragment to the activity? Sep 07 09:34:51 I figured it would be attached upon calling the .commit() on my FragmenTransaction? Sep 07 09:36:42 (The error itself is thrown upon me trying to do getActivity() in my Fragment, but that's after commiting) Sep 07 09:40:13 public abstract int commit () Sep 07 09:40:13 Schedules a commit of this transaction. The commit does not happen immediately; it will be scheduled as work on the main thread to be done the next time that thread is ready. Sep 07 09:42:56 Ouf, can't believe I missed to read that part. Sep 07 09:43:15 (Hi again SimonVT, by the way :)) ) Sep 07 09:43:43 anyone know which ar app has dutch - english translation? Sep 07 09:52:30 are there examples of port redirection for Android's emulator to use its host's wired LAN device, or at least web or other network access on that? I did not study port redirection, no matter what people claim a developer would know (where I studied, it may be a networking topic, which is not a basic scientific computing topic), and I do not claim to be an Android developer--I was just told to come here for emulator questions... and avera Sep 07 09:52:30 ge users of the emulator who have no idea what the redirection documentation is all about could probably use some examples Sep 07 09:53:05 android's emulator is qemu Sep 07 09:53:09 hmm Sep 07 10:25:23 ok, I should be able to figure it out eventually then Sep 07 11:15:51 hello Sep 07 11:15:57 does it worth to use android studio ? Sep 07 11:18:27 no Sep 07 11:19:14 why Sep 07 11:19:15 that Sep 07 11:19:34 its sometimes buggy Sep 07 11:19:47 so stick with eclipse ? Sep 07 11:20:23 if u r comfortable with eclipse stick with it Sep 07 11:21:17 AS works fine Sep 07 11:21:30 hm ok... Sep 07 11:21:39 everyone says that heh Sep 07 12:10:24 "In order to demonstrate our superior intelligence, we now ask you a question you cannot answer". Sep 07 12:12:00 I am referring to the project import dialog which asks questions like "Use gradle wrapper (recommended)", "Use bundled gradle distribution: (blabla)", "Use local gradle distribution" Sep 07 12:14:08 The bundled distribution apparently doesn't know what is android-18, the wrapper say "Task 'wrapper' not found in root project'" etc. This thing just doesn't work for the time being. Fair enough, it is 0.2.x software. Sep 07 12:14:39 Is it possible to create an intent to change tabs? Sep 07 12:25:55 hello world. can anyone tell me how is named module responsible for sdcard. I have one AOSP ROM and CM kernel and sdcard with new update is not recognized. thanks in advance. Sep 07 12:27:37 #android-root for root questions Sep 07 12:33:18 my phone speaker no longer works Sep 07 12:33:32 the external works ok Sep 07 12:33:44 can it be a rom or kernel issue? Sep 07 12:34:00 I remember it working days ago Sep 07 12:34:59 This channel is for app dev. Try #android or #android-root Sep 07 12:35:11 ok ty Sep 07 13:43:25 hello, I am trying to populate a ListView with items from an Array, for this I am using an ArrayAdapter, but when I try to set that adapter to my listview the application crashes Sep 07 13:43:39 any idea on what I have to lookout for ? Sep 07 13:50:27 Hi all, I need to devel a calendar week layout like this: http://smartphoneblogging.com/wp-content/gallery/android-2-2-froyo/android_2-2_froyo_week_view.png what kind of view shoud I use to make the hours-grid? Sep 07 13:50:50 I have to put objects inside the grid with a start/end date and a name Sep 07 13:54:18 Steran, have you check all the text view ids? Sep 07 13:54:26 just to make sure they're matching up? Sep 07 13:54:59 I'm trying to send a Notification, but I get this error: "Not posting notification with..." not sure if I understand this error. Sep 07 13:55:29 Also have you set the adapter for the list view steran Sep 07 13:55:56 Have you got a BroadcastReceiver alexfu Sep 07 13:56:08 markyosullivan: yes. Sep 07 13:56:57 Are you using a pending indent to set up the notification? Sep 07 13:58:38 Can anyone help me with my code? Sep 07 13:58:46 or give me advice? Same problem as last night Sep 07 13:59:01 hello Sep 07 13:59:12 Trying to edit a list view but I get the wrong list view item to edit Sep 07 13:59:12 is there something like SIP_HEADER for iax2 ? Sep 07 13:59:16 markyosullivan, yes I set the adapter to my listview, I don't understand the part of checking the text view ids Sep 07 13:59:44 markyosullivan , what I have is this; http://pastebin.com/jKBYwyfW Sep 07 13:59:44 Have you made a layout for your array adapter to display the data? Sep 07 14:00:23 markyosullivan: no. What's the role of a pending intent in the context of a Notification? Sep 07 14:00:39 yes I have a layout, in that layout I have a textview and a ListView Sep 07 14:01:00 alexfu: I use a pending intent because the user can pick a time to set the notification to go off Sep 07 14:01:35 It's pending because the intent isn't activated until the desired time that the user wants Sep 07 14:02:16 markyosullivan: well, i just want it to display some text. nothing else Sep 07 14:02:20 steran I'm guessing you haven't matched up your songList array item with the textview in your array adapter layout Sep 07 14:03:00 Why could I get: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.darkraven.shoppinglist/com.darkraven.shoppinglist.ShoppingList}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment When getting the tag from my fragment? Sep 07 14:03:05 That's simple alexfu Sep 07 14:03:58 You need to check your code for your Broadcast Receiver Sep 07 14:04:07 that's where you set the text for the notification Sep 07 14:04:23 markyosullivan: I know it's simple, in any case, I already figured it out. Sep 07 14:04:28 Okay then Sep 07 14:04:39 markyosullivan: Notifications REQUIRE an icon otherwise they will not display Sep 07 14:05:37 I don't know what you're trying to ask Sep 07 14:06:32 markyosullivan: simply put, my notification was not showing up at all and I kept seeing this error in the logcat "Not posting notification with... " Sep 07 14:07:52 markyosullivan: Looking through the source code for NotificationManager, turns out that if notification.icon == 0, that error is thrown and notifications dont show up. Sep 07 14:08:13 Why not just set an icon and see if it works? Sep 07 14:08:35 is there something like SIP_HEADER for iax2 ? Sep 07 14:08:39 markyosullivan: i did... and it works.. i mentioned that before... Sep 07 14:08:40 *function Sep 07 14:12:31 Why not just put an icon for the notification? Sep 07 14:12:35 Why don't you want an icon? Sep 07 14:39:44 Does Fragment#getTag() return the tag set in the FragmentTransaction? Sep 07 14:42:15 yes Sep 07 14:46:23 SimonVT: think I found a solution to my problem last night. Instead of transfer an array item which has the full payment date, I'm splitting the array items down to payment day, month, year so I can transfer everything I need Sep 07 14:46:50 Can I transfer an array item even if I have the visibility for it in my layout as "gone"? Sep 07 14:53:28 Not sure what that means Sep 07 14:53:43 Or why you're not just using the cursor Sep 07 14:55:18 Not sure how to use the cursor to get it to work Sep 07 15:01:27 SimonVT, I don't understand my NPE while checking the tag Sep 07 15:01:37 if it does indeed return that tag Sep 07 15:03:02 ok Sep 07 15:03:22 ... Sep 07 15:03:26 Why could I get one? Sep 07 15:03:43 Because you're calling a method on a null object Sep 07 15:04:19 Or accessing a field on a null object Sep 07 15:04:28 NullPointerException 101 Sep 07 15:04:55 Yeah. Sep 07 15:05:06 "foo".equals(tag) if the tag is a string Sep 07 15:05:07 Why does getTag() return null? Sep 07 15:05:10 (pro tip) Sep 07 15:05:24 alankila, not new to Java ;) Sep 07 15:05:41 It returns null if the fragment has no tag or has not been added Sep 07 15:06:01 Why would it return null if it does have a tag set? Sep 07 15:06:09 Because it doesn't have a tag set Sep 07 15:06:09 I don't start the fragment without a tag Sep 07 15:06:29 also I got to wonder... why does android have tags everywhere in all APIs? Wouldn't it be a better design to not lose the object than tag it and then have a method to retrieve it by a tag... Sep 07 15:06:32 Or does setContentView() start the fragment on a FragmentActivity? Sep 07 15:06:53 though I guess the object recreation problem may be a cause for this particular oddity Sep 07 15:11:03 mpeg-2 streams can't natively be played right? what's the alternatives. i read something about gstreamer - seems heavy weight Sep 07 15:45:28 hi, we can't add a fragment to linearlayout, is this right? Sep 07 15:51:49 What should I import to get getContext() in FeedReaderDbHelper mDbHelper = new FeedReaderDbHelper(getContext()); ? Sep 07 15:53:52 you don't import to get methods Sep 07 15:55:19 pfn: How do I get that one? Sep 07 15:55:39 you pass a context Sep 07 15:57:57 pfn: just to be sure we are on the same wave http://developer.android.com/training/basics/data-storage/databases.html Sep 07 15:58:15 they're using that function Sep 07 15:58:47 doesn't mean you can copy paste their code without context Sep 07 16:00:20 pfn: I'm expecting a function getContext() to be defined... Sep 07 16:00:37 why... Sep 07 16:01:01 it won't be unless your code is completely identical up to their class definition Sep 07 16:01:01 pfn: because the documentation uses it... Sep 07 16:01:13 but the documentation doesnt Sep 07 16:01:17 it's an example Sep 07 16:01:34 pfn: so how am I supposed to replace it? Sep 07 16:02:19 by learning more java and what a context is Sep 07 16:02:41 pfn: do you have any good links about it? Sep 07 16:03:20 d.android.com Sep 07 16:04:19 pfn: too vague Sep 07 16:04:39 read some java tutorials on oracle.com Sep 07 16:05:50 u_u Sep 07 16:10:39 Does anyone debug NDK apps with the eclipse ADT? I am debugging a shared library and i can get it to stop at my breakpoints but i can not inspect any variables. Any ideas? Sep 07 16:11:36 GDB keeps telling me No symbol "dt" in current context and the expression window in eclipse gives a similar error Sep 07 16:12:28 it appears that all my files are being built with -g -O0 and GDB "info sharedlibrary" shows the symbols pointing at the unstripped shared library binary Sep 07 16:12:44 May as well as ask again since there are more active people. Anyone have a Snapdragon 800 phone, like the LG G2 or Xperia Z Ultra, that I can prod for a short while? Sep 07 16:18:19 I have a dragonball CPU in a device - though i don't think that'd help you Sep 07 16:20:13 or snapdragon? Sep 07 16:21:51 lol Sep 07 16:33:51 mpeg-2 playback in android.... anyone ? Sep 07 16:35:13 http://developer.android.com/guide/appendix/media-formats.html not officially supported. so it would require some library/whatever Sep 07 16:36:00 yes Sep 07 16:36:01 i know Sep 07 16:36:15 just wondering what's most light weight for this purpose Sep 07 16:38:45 as a user, i would go for vlc (there is a beta for android) Sep 07 16:38:48 but as a dev.. no clue Sep 07 16:39:37 ok .. i really want to avoid broadcasting intents for such a simple task Sep 07 16:43:12 not such a simple task when it isn't really even supported, is it Sep 07 16:43:40 how about you convert your large and ancient mpeg2 files to some supported codec? Sep 07 16:45:08 there are JNI which uses NDK to do this in C (e.g. gstreamer) Sep 07 16:45:26 Why there is "dp" measurement if we have "mm" ? Sep 07 16:45:29 alankila: i want to stream my content directly from a satellite stream Sep 07 16:45:39 Or why there is "mm" if there is "mm" ? Sep 07 16:46:05 alankila: by transcoding it on the server i'm facing several issues far more complicated Sep 07 16:46:15 Hi Sep 07 16:46:19 fine, fine. So you are stuck with mpeg2-era tech. Sep 07 16:46:19 and less perfomant Sep 07 16:46:31 I mean to me it seems that "dp" "pt" "mm" "in" behave the same. Sep 07 16:46:35 alankila: mpeg-2 is the standard av all sat-streams Sep 07 16:46:42 How do big games like Asphalt and Unity games not get killed on low memory? Sep 07 16:46:54 I can only recommend embedding a decoder library and trying to arrange for some efficient memory sharing thing that allows decoder to write directly to gpu memory if it's possible on android. Sep 07 16:47:12 Or killed, but seamlessly (same menus, same level, same player/object position) Sep 07 16:47:48 They don't appear to be in foreground services, there's no "app is running" notification on 4.3 Sep 07 16:48:16 alankila: i wish i found a low-level, lightweight lib for that Sep 07 16:48:39 it's too time consuming to make such a manual decoding perfomant Sep 07 16:48:41 I don't think they save state externally Sep 07 16:48:46 The state is too big Sep 07 16:49:00 And virtually everything is preserved Sep 07 16:49:59 SiPlus: how so? So far the state you are talking about is a few bytes. How do you know that the state is too big? Object positions may take 4 or 8 bytes per object. Sep 07 16:50:37 alankila, that's not just position Sep 07 16:50:47 It doesn't matter what exactly, my point is you can probably fit 100 objects in a kilobyte without even trying Sep 07 16:50:54 well, I'm thinking about savegames Sep 07 16:50:55 but Sep 07 16:51:03 the menus are preserved entirely Sep 07 16:51:14 Don't understand what you mean. Sep 07 16:51:21 menus? like, settings? Sep 07 16:51:57 Do big games really store every little thing? Sep 07 16:52:11 in ondestroy state Sep 07 16:52:16 I think not. Most save stating is really cheating a lot. Sep 07 16:52:35 state saving, too. Jesus. Sep 07 16:52:36 Such as animation positions Sep 07 16:52:44 But how then? Sep 07 16:53:00 I'll state my save! Sep 07 16:53:19 Why isn't the game restarted for me if I leave the game in background and play other heavy games for a hour or two? Sep 07 16:53:25 isn't crap like unity open source? it's a question that is answerable if you look into it. Without, we can talk about how much state is too much. I maintain that you can store a ton of state in a relatively trivial amount of memory like 1 kilobyte. Why do you think it's too hard? Sep 07 16:53:58 alankila, because of the amount of variables needed to collect Sep 07 16:54:13 variables to be collected * Sep 07 16:54:24 I do understand that it's not *easy*. It's irritating work to do, no question about it. But when it comes to size, that's probably not the problem. Sep 07 16:54:44 No, not just file size Sep 07 16:55:11 The number of things the game needs to save and restore Sep 07 16:55:42 anyway the easiest save technique is checkpoints + forbid player from going backwards. So you only have to save a very small number of things and can reconstruct the rest. Most games seem to do it like this. Sep 07 16:55:43 Do games that use scripts save entire VM state similar to Windows hibernation or what? Sep 07 16:56:02 What about purely native-code games? Sep 07 16:56:19 I don't think storing the entire heap, stack and all registers is a good way to store game state Sep 07 16:56:22 it's all manual work for sure. There is no support in android for anything like that. Sep 07 16:56:44 alankila, I'm not talking about the level progress Sep 07 16:56:55 it's easy to implement through quicksaves-like system Sep 07 16:56:57 they simply have a "marshal" and "unmarshal" hook for every object and during save or application stop time, they call it and put the data somewhere on disk or wherever Sep 07 16:57:14 (however, I don't think games use quicksaves-like things for game state) Sep 07 16:57:26 when recovering killed activity Sep 07 16:57:38 I'm talking about other stuff like GUI Sep 07 16:58:02 Do big games usually not store small things at all? Sep 07 16:58:04 the game I had to work on did, actually... but it was saving every 1 minute anyway Sep 07 16:58:05 or what? Sep 07 16:58:11 I don't really understand what you are getting into. Have you made any android applications? Sep 07 16:58:34 It sounds like you haven't encountered the android object state persistence stuff Sep 07 16:58:39 alankila, yes, but it uses multiple activities like pages Sep 07 16:59:06 and everything was saved the same way as on orientation/keyboard change Sep 07 16:59:11 by the system Sep 07 16:59:25 I didn't do anything specifically to implement killed activity restoration Sep 07 16:59:28 Right. Android does much of the grunt work for an average application. Sep 07 16:59:32 Only onSaveInstanceState/onCreate Sep 07 16:59:45 So you don't understand how they save state just cus there's a lot of it? That's like saying it's harder to save a list of 100 items than a list of 10 items Sep 07 17:00:02 SimonVT, I'm not talking about uniform data like items Sep 07 17:01:00 But if games just store known variables Sep 07 17:01:08 where did they put the saved state? Sep 07 17:01:15 into a Bundle, I bet Sep 07 17:01:19 usually, I mean Sep 07 17:01:50 alankila, oh, maybe Sep 07 17:01:55 as byte arrays Sep 07 17:02:01 I assume Sep 07 17:02:07 the real kickass method is to just use ObjectOutputStream and have your crap implement java.io.Serializable and avoid having any android objects in them Sep 07 17:02:23 kind of annoying maybe but you can get entire object graph on disk and restored just like that Sep 07 17:02:48 well, I want to know not the way saving can be implemented Sep 07 17:02:55 android apps don't usually use Object*Stream stuff though Sep 07 17:02:59 but the way that is commonly used in big games Sep 07 17:03:11 like Unity games Sep 07 17:03:19 I'm trying to implement an interface across two projects; is there a way to (or better way) to do this without having the desktop project have to reference the android packages in the interface? Sep 07 17:03:20 and Gameloft games Sep 07 17:03:31 oh Sep 07 17:03:38 I remember one programmer from Gameloft Sep 07 17:03:44 gonna message him on Steam Sep 07 17:04:10 I think I know one from gameloft that used to go to GamingWorld Sep 07 17:04:14 when it existed Sep 07 17:11:49 "The ratio of dp-to-pixel will change with the screen density, but not necessarily in direct proportion." Sep 07 17:12:09 but not necessarily in direct proportion ? Sep 07 17:12:10 What this mean ? Sep 07 17:12:14 *does mean ? Sep 07 17:14:42 ? Sep 07 17:16:25 maybe the notion that android has more exotic pixel arrangements than array of RGB components which make a single pixel Sep 07 17:16:58 It's just because of density buckets Sep 07 17:17:14 hi guys Sep 07 17:18:06 bluesm_: i'm trying to figure it out and i can't either Sep 07 17:18:12 alankila: SimonVT : I can see not connection. Sep 07 17:18:35 px = dp*density/160 Sep 07 17:18:54 Will 100 dp be a different amount of pixels on a 150dpi screen compared to a 170dpi screen? Sep 07 17:19:05 yes Sep 07 17:19:09 No Sep 07 17:19:11 SimonVT: Yes Sep 07 17:19:14 They're both in the mdpi density bucket Sep 07 17:19:22 So their density when converting dp is 160 Sep 07 17:19:50 Makes dp a rather dubious metric, but I guess this supports the idea of not scaling images which are themselves given in particular density buckets Sep 07 17:19:51 imho, dp is distance, like if you measured in mm or inches Sep 07 17:20:07 so folks who don't want that probably are to use mm Sep 07 17:20:23 What happens when OpenGL ES context gets lost during the rendering process? Sep 07 17:20:30 Or during context restoration Sep 07 17:20:33 SiPlus: it will be recreated. Sep 07 17:20:38 By application Sep 07 17:20:45 so 10mm are different amount of pixels on a 150dpi screen compared to a 170dpi screen Sep 07 17:20:47 alankila, yes Sep 07 17:20:52 whatever textures and vertex arrays and crap you needed, you will upload again Sep 07 17:21:00 but if it occurs during calls to gl stuff Sep 07 17:21:08 or between calls in a frame Sep 07 17:21:29 Well to be honest I don't expect rendering context to vanish while you are rendering Sep 07 17:21:40 there's probably a mutex to prevent that kind of thing Sep 07 17:21:52 but it can happen at any other time and you need to be prepared for it Sep 07 17:22:20 What if the rendering is performed not in the main thread? Sep 07 17:22:27 it usually isn't, I guess Sep 07 17:22:36 In a loop, not in a frame callback Sep 07 17:22:48 at least rendering threads are pretty commonplace from what I've seen Sep 07 17:22:50 SuD: You'd have to check how the framework does the conversion Sep 07 17:22:57 If it uses the actual density of the density bucket Sep 07 17:23:01 s/of/or/ Sep 07 17:23:19 and Sep 07 17:23:27 SimonVT: px = dp*density/160 => 100dp * 150dpi/160dpi = 93.75 =~ 94 Sep 07 17:23:40 can the context get lost during its restoration process? Sep 07 17:24:03 i don't know about density buckets, but according to original definition it should be linear dependent Sep 07 17:24:04 bluesm_: On a 150dpi screen it would be 100*160/160, as I just explained Sep 07 17:24:14 SimonVT: px = dp*density/160 => 100dp * 170dpi/160dpi = 106.25 Sep 07 17:24:31 oh, well, I'll add a spinlock/mutex for context restoration Sep 07 17:24:40 another question Sep 07 17:24:52 Same on a 170dpi screen Sep 07 17:24:52 what do GL functions do when the context is lost? Sep 07 17:24:57 nothing at all? Sep 07 17:25:15 or give an exception? Sep 07 17:25:31 what about framebuffer read functions? Sep 07 17:26:06 SimonVT: I see, so little differences in density doesn't affect numbers of pixels ? Sep 07 17:26:33 SimonVT: And because of that you CANNOT say that 1 inch = 160 dp ? Sep 07 17:26:39 SimonVT: Right ? Sep 07 17:26:42 You can say that Sep 07 17:26:49 Because it is roughly true Sep 07 17:26:55 The difference is neglible Sep 07 17:27:18 SimonVT: But not in android, when comes to the screen with density that are not exactly "the bucket value" ? Sep 07 17:28:52 SiPlus: I do not know the answer to that question. It just hasn't come up. The docs for this, for once, explain quite clearly that context can be lost at any time and you will be given an opportunity to set it up if you need to do it Sep 07 17:28:59 SimonVT: So if you need to be EXACTLY "one inch" you need to specify it in "inches" or "pt" or "mm" ? Sep 07 17:29:14 I'm trying to build a C library for android. First I need to write a header that configures the library for your machine Sep 07 17:29:33 Unless you're making a ruler, you don't need exactly one inch Sep 07 17:29:36 SiPlus: in general opengl calls don't get failure feedback so my *guess* is that the calls simply appear to do nothing. There's some "unbreak me" wrapper you can add into the opengl function chain that actually tells you about failed opengl calls, and you have to set it up to use it manually Sep 07 17:29:55 when I built it for Windows, you can compile and run a program called ckconfig.c, and it generates the proper header for you Sep 07 17:30:19 not sure how I can run this program and also get the header file it creates Sep 07 17:30:24 I want to remove action bar title and icon, and show only two text buttons (Accept and Discart). I tried setting to false both setDisplayShowTitleEnabled and setDisplayUseLogoEnabled methods, but all I got is this result ( http://img90.imageshack.us/img90/8236/87go.png ). Any idea to remove icon and set these two buttons to fit whole action bar size? Sep 07 17:30:24 thanks!! Sep 07 17:31:45 SimonVT: Thank you :) You're awesome :) Sep 07 17:32:28 SimonVT: They make those density bucket for performance ? I mean, they have already computed values for each of the bucket so this doesn't have to be computed in runtime ? Sep 07 17:32:37 Sepho: setDisplayShowHomeEnabled Sep 07 17:32:42 icon != logo Sep 07 17:33:39 SimonVT I tried but then action bar buttons are showing under tabs Sep 07 17:33:59 Sepho: Yep, that's a known bug Sep 07 17:34:05 ops Sep 07 17:34:07 I think some people set a transparent icon Sep 07 17:34:13 Or just not use action bar tabs at all Sep 07 17:34:30 bluesm_: No, it just makes sense in some cases. Like when dealing with drawables Sep 07 17:34:34 So Sep 07 17:34:40 I tried to launch Asphalt 8 Sep 07 17:34:47 You know your app icon should be 48dp (or whatever it is) Sep 07 17:34:56 With "don't keep activities" Sep 07 17:35:05 It just didn't start Sep 07 17:35:19 If dp was converted exactly, you would have to provide icons that pretty much scaled to an infinite amount of pixels Sep 07 17:35:27 When I removed the flag, the game was started from scratch Sep 07 17:35:29 That would look horrible Sep 07 17:35:45 So, games don't save state when killed at all or what? Sep 07 17:35:45 reading though ckconfig.c, I think it would suffice to run the preprocessor. From there I should be able to write the header Sep 07 17:35:54 Instead, you provide 3 or 4 pixels sizes and can be sure they'll be shown at those pixels sizes as well Sep 07 17:36:02 so, how do I tell which compiler ndk-build is using? Sep 07 17:36:52 there should be an option to have it print the commands it is running (including path to compiler binary). I don't remember what it is :) Sep 07 17:37:15 It appears that games really don't save state when killed Sep 07 17:37:27 (which is also why vector drawables aren't going to happen, it just doesn't work like people thinks it works) Sep 07 17:38:15 Set bg proc limit to 2 => opened Asphalt 8 => pressed home => opened stuff like gmail and messaging => went back to Asphalt 8 => it restarted Sep 07 17:38:45 SiPlus: it depends on how the game is implemented Sep 07 17:38:53 Will try on Unity games Sep 07 17:39:03 it's possible to write it in such a way that it saves state. that one apparently didn't :) Sep 07 17:39:12 of course, it depends on how the process is killed too Sep 07 17:39:26 if it's gets an orderly shutdown, or is just outright killed Sep 07 17:39:49 Is it a bad thing to call exit (or raise(SIGTRAP)) on Android? Sep 07 17:40:00 I use global variables and malloc really a lot in native code Sep 07 17:40:15 It's not my game engine, I'm porting it, and it's huge Sep 07 17:40:19 so I have to deal with it Sep 07 17:40:31 you want to avoid it if possible Sep 07 17:40:37 but, if it's not possible Sep 07 17:40:38 * JesusFreke shrugs Sep 07 17:41:11 Or Sep 07 17:41:29 Is the process killed if all activities and services are destroyed? Sep 07 17:41:49 Guaranteed to be killed, I mean Sep 07 17:41:51 there's no guarantee it will be killed, or when it will be killed in that state Sep 07 17:42:04 it will eventually be killed if/when the system needs the resources Sep 07 17:42:09 So I guess I need to kill the process explicitly, right? Sep 07 17:42:19 the VM itself Sep 07 17:42:29 JesusFreke, in case you're curious, I figured it out. Pass the -n flag (dry run) Sep 07 17:42:40 RustyShackleford: gotcha, sounds right Sep 07 17:42:57 so I'm runiing arm-linux-androideabi-4.6 Sep 07 17:43:06 my ndk also comes with 4.8 Sep 07 17:43:39 does it matter which version I use? The only thing I can think of is maybe better C++11 support with 4.8 Sep 07 17:44:48 no idea. I would stick with default, unless you have an explicit reason not to. Sep 07 17:45:39 http://www.phoronix.com/scan.php?page=news_item&px=MTMzMzk Sep 07 17:45:48 Has ARM performance improvements in it Sep 07 17:47:02 I'll be using C++. Maybe I should use it then? Sep 07 17:47:13 now I gotta figure out how to specify compiler version... Sep 07 17:49:51 okay, so I'm trying Dead Trigger Sep 07 17:50:05 back to the game after pressing home => paused Sep 07 17:50:28 back to the game after doing stuff with 2 apps => paused Sep 07 17:50:53 back to the game after leaving 2 apps in bg => full restart Sep 07 17:51:01 so I don't have to worry about state preservation Sep 07 17:53:40 won't mess with foreground services then Sep 07 17:56:03 losing and restoring GL context in a multithreaded environment is the only issue left Sep 07 17:58:39 will use exit(0) or raise(SIGKILL) for exit Sep 07 18:19:47 Is there any easy way to change action bar appearance to show only two buttons like this app does? ( http://img10.imageshack.us/img10/899/mv83.png ) Sep 07 18:52:18 can you specify a local source folder for a project? Sep 07 18:52:32 er, in Android.mk Sep 07 18:52:56 all my source files are located in src/ Sep 07 18:53:19 do I need to prefix each source file with src/? for example, src/main.c? Sep 07 18:54:56 SimonVT: "No, it just makes sense in some cases. Like when dealing with drawables" What do you mean ? Sep 07 19:02:52 JakeWharton did google remove the pooling classes from aosp used in snooker ? Sep 07 19:03:34 the only one i can find now, is a single hidden class in plain android.util. the others used to be in internal.util or something Sep 07 19:04:44 How would I access my app's main Activity to pass it from another class? Sep 07 19:05:10 I'm using libgdx if that matters (hence why I'm using another class to make it platform independent) Sep 07 19:15:14 Quick question: Is a Spanned serializable? Sep 07 19:15:54 Yomic: I would imagine just passing in the context via "this" would work, unless you're talking about a deeper level of control Sep 07 19:25:42 where can i look for errors if my app freezes before the application's onCreate()? It's not anything being done statically. Sep 07 19:26:23 there's no error in logcat that I can find. Or reference to my package anywhere at any level Sep 07 19:28:00 it it an android studio bug possibly? Sep 07 19:29:32 (freezes before oncreate(), but action bar is shown) Sep 07 19:34:17 can I modify this Android.mk to see the output of the preprocessor? Sep 07 19:37:49 cheese1756, since I was @Override-ing onCreate() I made the layout static and grabbed it in the class I wanted (Context context = MainActivity.layout.getContext(); Activity activity = (Activity)context;) Sep 07 19:38:52 Yomic: Nice solution :). I do something similar for services, and it actually works really well Sep 07 19:39:27 cheese1756, it's the only way I could see working with libgdx so the desktop version doesn't see any of it Sep 07 19:56:55 in what path do sqlite databases go? Sep 07 19:57:28 what's with studio not installing the damn apk? Sep 07 19:57:45 it's been regressing for a few iterations Sep 07 19:58:03 is machine code compatible across all ARM-based android devices? Sep 07 19:58:15 assuming I'm not using OpenGL Sep 07 19:58:51 it just says process main is running Sep 07 19:58:54 but i killed it Sep 07 19:58:56 uninstalled Sep 07 19:59:07 killed adb Sep 07 19:59:12 killed everything Sep 07 20:01:14 bel3atar: /data/data/your-app-package/ IIRC Sep 07 20:01:31 might be in 'databases' or similar folder under data folder Sep 07 20:06:03 holy crap does it really take several minutes to start the android emulator? Sep 07 20:07:05 oh yes it does Sep 07 20:07:14 hours even Sep 07 20:07:24 HOUR ERS Sep 07 20:07:28 that's hours with an S Sep 07 20:07:32 I just want to run some native code that genrates a file, then extract that file Sep 07 20:07:43 my phone isn't rooted, so I can't pull it with adb Sep 07 20:07:45 you can use snapshots to make it boot faster Sep 07 20:08:46 I could also examine the preprocessor output. Not sure how to do that with Android.mk Sep 07 20:10:56 What exactly ARE primitive pointers? Are they memory references that contain the value itself as opposed to a memory address of the value? Sep 07 20:11:23 incognitto: where have you encountered the term? Sep 07 20:11:56 java! Sep 07 20:12:01 brb xD Sep 07 20:12:07 if address relocation is in play perhaps? or maybe its a msb/lsb thing? Sep 07 20:12:15 incognitto: probably means pointer, instead of VM reference Sep 07 20:12:27 as in, pointer to actual "primitive" data Sep 07 20:15:50 do you guys test studio before you release it? Sep 07 20:16:57 it's probably tested a bit, but remember, it's still experimental pre-release Sep 07 20:24:21 hello, i have a question, where do i create an assets folder on android-studio? Sep 07 20:24:40 is there anything i have to do to work? i'm trying to load a custom font and it's not working Sep 07 20:26:30 um, are all the framework unit tests in frameworks/base/tests ? this can't be , hardly anything here Sep 07 20:31:16 ok, the location it's on ProjectName-ProjectName.iml Sep 07 20:31:24 ASSETS_FOLDER_RELATIVE_PATH Sep 07 20:33:31 k, found moar tests Sep 07 20:37:57 Hello all. I'm trying to access the tag attribute I set in my layout XML on a custom widget (http://hastebin.com/pojonafoxe.xml) inside my onStopTrackingTouch event (http://hastebin.com/kovebiyori.avrasm). I'm a little stumped on how to find this through reflection of the SeekBar passed into the listener. Sep 07 20:38:55 Can anyone tell me how to make my application's main activity show when they click my notification? I have looked on the android training guide, but it explains it for opening a different activity within the app, making you add a taskstackbuilder and such. This seems unnecessary for my case, or does it _have_ to be done that way> Sep 07 20:45:29 Which is best IDE for android development (Eclispe with plugins or Android Studio) ? Sep 07 20:46:01 IMHO IntelliJ, eventually Android Studio :> Sep 07 20:46:12 KeyboardNotFound: Depends on personal preference I guess. I prefer Android Studio myself, but keep in mind it is still under development Sep 07 20:46:51 Can you please send me ebook for learn android development ? Sep 07 20:47:11 I'm trying to make sure I have the back stack concept down before I answer a question I posted. Sep 07 20:47:15 KeyboardNotFound: Use this guide http://developer.android.com/training/index.html Sep 07 20:47:31 if I have an activity that creates a dialogfragment, that activity is automatically added to the back stack. Sep 07 20:48:24 if the new dialogfragment creates another new dialogfragment, without creating a fragment transaction, it is not added to the back stack. Sep 07 20:48:47 thus if I press back from second_dialogfragment, I will return to the calling activity. Correct? Sep 07 20:55:38 If TextView is "50sp" height , what should be the size of the font ? Sep 07 20:56:25 To acquire biggest font without going outsied the textview ? Sep 07 20:57:49 bluesm_: you want to use dp for height, sp for textSize Sep 07 20:58:20 jaynewstrom_: Shouldn't textView adjust to the text view ? Sep 07 20:58:25 jaynewstrom_: Wrap content ? Sep 07 20:58:54 that would be best, set your textSize to whatever you want, and set height to wrap_content Sep 07 21:02:06 jaynewstrom_: Ok. Thank you very much :) Sep 07 21:03:32 Sorry to ask again, but does anyone know how to make my notification open the (already existing) instance of my app? Sep 07 21:03:41 when clicked* Sep 07 21:04:20 All I can find in guides is how to open a different activity in the app using taskstackbuilder Sep 07 21:04:39 I just need to bring my main activity to veiw Sep 07 21:05:48 JamoBox: google notification.setContentIntent(resultPendingIntent); Sep 07 21:06:19 what is the CWD in native code? Sep 07 21:06:39 (current working directory) Sep 07 21:06:58 Rescue9: I have similar code to the guide that that search returns. But it is not what I'm after; I just want it to bring my app to view Sep 07 21:07:13 say I fopen("foo.txt", "w"). Where does the file get created? Sep 07 21:09:23 JamoBox: it's what I use to bring my app forward. I used it in conjunction with a taskstackbuilder Sep 07 21:10:26 Rescue9: http://pastebin.com/fSZ6La0X this is what I'm using; it seems top create a new instance of the app Sep 07 21:11:22 when clicking the notification it opens the application but it acts as if it is a seperate instance from the initially opened one Sep 07 21:12:42 if my listview inflates beyond the size of the screen, my button at the bottom seems to disappear.. any idea why? http://pastebin.com/xvDBZqjC Sep 07 21:13:30 acts how? Sep 07 21:13:49 e.g. [Flashlight on] *click notification* [app shows that flashlight is off (while it is infact on)] *press button a few times to toggle flash* [flashlight still continuosly on] Sep 07 21:15:28 ALthough it may be a case that the way my code is called is not releasing the flash, but I don't see hy I should need to release the flash if it just brings the application to view Sep 07 21:15:38 why* Sep 07 21:15:50 are you running the flashlight in a service? Sep 07 21:16:10 no, I have a different git branch for orking on implementing that Sep 07 21:16:14 working* Sep 07 21:16:18 kkomw: your height is set to fill_parent. That isn't going to work if you want to put something under it. Try using a relative layout instead Sep 07 21:16:52 Rescue9: Should it be used as a service for this to work? Sep 07 21:17:01 JamoBox: take a look here... seems to be describing exactly what you're wanting. https://github.com/CyanogenMod/android_packages_apps_Torch Sep 07 21:17:28 hi. im trying to build a shared lib for android, but unfortunately it outputs *.so files with sonames for versioning (*.so.x.y.z) which isn't supported by android. does anyone know how to strip the version numbering? Sep 07 21:17:40 Rescue9: Thanks, I'll take a look Sep 07 21:17:41 I run a service with my app & the notification works well. Sep 07 21:17:42 np Sep 07 21:32:27 doesn't android-studio have a tool for manipulating sqlite files? Sep 07 21:35:16 Does the "pt" and "in" behave the same way ? Sep 07 21:35:24 pt in and mm Sep 07 21:40:14 jaynewstrom1: hey Sep 07 21:46:19 Hey quick question is there anything special that needs to be added to the manifest file in order for Google now to recognize my app when i say "Open "? I'm having difficulty getting Google Now to recognize it by it's label alone... Sep 07 21:46:31 anyone know if char is signed/unsigned on android devices? Sep 07 21:49:40 Disregard my question - I guess I have to specify "open app " Sep 07 21:50:25 can I use an Android.mk to build a lib without a project? I get an error like [Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.] ... but i dont have a project Sep 07 21:53:00 RustyShackleford: char is same as int, signed Sep 07 21:53:26 a char is a byte, an int is 4 or 8 bytes Sep 07 21:53:41 what am i missing Sep 07 21:53:55 funkbox: you're right, my bad Sep 07 21:54:12 I'm working with native code Sep 07 21:54:26 so I'm referring to the way C/C++ handles it Sep 07 21:54:36 hey, i've done a bit of googling, but i'm still uncertain what the easiest way to implement a dump of the accelerometer's values for my students would be Sep 07 21:54:37 was it short int = 2 bytes ? Sep 07 21:54:49 doesn't java have 16 bit chars anyway? Sep 07 21:55:16 well java isn't C++ Sep 07 21:55:16 the trouble with a straight textview is that appending to the textview causes it to scroll out of view very quickly (of course) Sep 07 21:55:40 they've just finished their 'hello, world' application, so it may be a bit too soon to talk about nesting a textview inside a scrollview Sep 07 21:55:50 could throw it a listview Sep 07 21:56:22 that's true; that'd make it easier to manage the length of the buffer and prepend to it, too Sep 07 21:56:39 Why we use "dots per inch" not "pixel per inch" ? Sep 07 21:56:40 well no it'd be an array of things Sep 07 21:56:45 Isn't this would be the same ? Sep 07 21:56:53 Regarding to the screens ? Sep 07 21:57:16 i think the term comes from printers Sep 07 21:57:17 I thought that "dpi" is reserved to the printers, where calling "dot" a dot make sense. Sep 07 21:57:40 SuD: But we use it with regard to the screen density Sep 07 21:57:45 bluesm_: you may be mistaking dpi for dip, which stands for 'device independent pixel', i think Sep 07 21:57:52 bluesm_: resolution happens to be described in terms of dots for a long time Sep 07 21:58:02 it doesn't really matter, either way twerks Sep 07 21:58:32 diphtherial: Yes I still think about "dpi" NOT "dip" Sep 07 21:58:50 also, dpi is resolution, not density. the amount of pixels horizontally and vertically is just canvas size Sep 07 21:58:55 diphtherial: That was just typo. Sep 07 21:59:14 p_l: dpi or dip ? Sep 07 21:59:16 also, pixel and dot is pretty much the same Sep 07 21:59:18 bluesm_: dpi Sep 07 21:59:36 pixel = "picture element" Sep 07 21:59:59 p_l: Where is "x" ? :P Sep 07 22:00:18 bluesm_: from shortening "picture" Sep 07 22:01:51 p_l: Why "dpi" is resolution ? Isn't "dpi" unit to length, represented by 160 dpi display ? Sep 07 22:02:12 has anybody published an app? I have some questions before publishing. Sep 07 22:02:18 i think that's "dp" Sep 07 22:03:26 SuD: Ahh. I'm lost.. Sorry. right. Sep 07 22:03:28 newbieto: what are your questions? Sep 07 22:04:43 p_l: Anyway, dpi stand for "dots per inch" so it is not resolution because You don't know size of the screen. Sep 07 22:04:46 ? Sep 07 22:05:30 this is my first app so I only tested in eclipse Sep 07 22:05:49 is there a way to test it in different devices without having the devices or to make sure it will work out ok? Sep 07 22:05:54 http://developer.android.com/guide/practices/screens_support.html dpi=density, resolution=size in pixels, dp=physical size Sep 07 22:06:14 newbieto: sure, you can add more devices in the android virtual device manager Sep 07 22:06:32 but is that enough to make sure at least it will run ok ? Sep 07 22:06:45 should I just launch the app after that testing is done? Sep 07 22:06:46 in eclipse, you can get at that from the menu bar, 'Window' -> 'Android Virtual Device Manager' Sep 07 22:07:00 newbieto: You can download device configs for the emulator if you want to test specific devices Sep 07 22:07:01 launch as in deploy it to the market? Sep 07 22:07:18 yeah deploy Sep 07 22:07:27 so thats all I need to make sure before deplying? Sep 07 22:07:31 i'd recommend trying it on a few different virtual devices via the emulator first, depending on your target hardware Sep 07 22:07:38 Device configs for the emulator don't let you test a specific device Sep 07 22:07:52 newbieto: : Doesn't hurt trying it out on an actual device if you or a friend has one handy either Sep 07 22:08:04 It lets you test a different device (the emulator) at the resolution and density of another device Sep 07 22:08:07 yeah but i cant try all devices Sep 07 22:08:22 but thanks for the suggestions Sep 07 22:08:49 SimonVT: I'm sure for a first app that's all that is needed. Sep 07 22:09:18 Sure, but you're implying that you can test a specific device with the emulator Sep 07 22:09:34 It was contextual to the conversation really Sep 07 22:09:39 SimonVT: you make a good point Sep 07 22:09:42 It's wrong Sep 07 22:09:54 still, i think differences in resolution are going to be the dominant thing until he runs into some real bugs with specific devices Sep 07 22:10:02 *is going to be the dominant thing Sep 07 22:10:33 Sure Sep 07 22:10:35 and since he doesn't actually own a variety of devices, there's no way he can test them. the emulator's better than nothing imo. Sep 07 22:10:48 yeah diph u get what im saying Sep 07 22:10:55 SimonVT: wether it's right or wrong does not matter, as I said, it was contextual to the conversation. He wanted to try his first app out on some devices Sep 07 22:10:58 damn launching an app is tough Sep 07 22:11:42 newbieto: it's up to you how much testing you want to do before you launch it; it'll come down to fixing it before launch (and not looking like you've pushed an incomplete app) versus fixing it after launch... Sep 07 22:11:50 can anyone give me some advice wrt building a native lib for android? I'm trying to invoke ndk-build on an Android.mk but nothing happens Sep 07 22:11:58 you of course can't test everything, so some of that needs to happen after launch Sep 07 22:12:10 im a one man team thats gonna be tough Sep 07 22:12:50 and im trying to build a lib thats part of android already... with an Android.mk copied from the AOSP: https://github.com/android/platform_external_freetype Sep 07 22:13:05 You can tell him he can test his app at different screen sizes and OS versions with the emulator. You shouldn't tell him he can test specific devices Sep 07 22:13:20 i agree, that was a mistake on my part Sep 07 22:13:57 (er, sorry, i don't think that was addressed to me, on second thought) Sep 07 22:16:35 SimonVT: I pretty sure no harm was caused Sep 07 22:16:53 on the contrary Sep 07 22:16:58 thanks guys for your info Sep 07 22:18:48 No harm, just wrong information Sep 07 22:20:17 if i'm inheriting from, say, TextView, is it typical to override all of the base constructors in the class? Sep 07 22:20:49 (i'm making a variant of it that holds a queue of lines of a limited size and allows you to push to that queue, evicting the last element if it's full) Sep 07 22:21:00 diphtherial: if you're doing anything at all in any constructor you probably want to handle all of them in some way Sep 07 22:21:13 I usually do, but depends how you're going to use it Sep 07 22:21:26 diphtherial: also consider using composition instead of inheritance Sep 07 22:21:38 In xml, I believe only the Context, AttribtueSet one is used Sep 07 22:21:48 ah, like have an internal TextView that the View creates inside of itself and then manages? Sep 07 22:21:56 diphtherial: yes Sep 07 22:22:13 what's the advantage of that over inheritance, out of curiosity? Sep 07 22:22:43 just to give you the full story, the point of making this widget is to allow my students to see a log of recently-collected accelerometer readings with some limit to the size of the log Sep 07 22:22:58 Why not a listview? Sep 07 22:23:20 yeah, I'm with SimonVT, text view might not be the best widget for your use case Sep 07 22:23:58 i'd have to get into creating a layout for each listview element, and i don't need anything special to occur when they interact with the list... Sep 07 22:24:13 also, won't there be separators and padding for each element by default? i think it'd look a little odd Sep 07 22:24:29 You'd just need a list of strings and an arrayadapter Sep 07 22:25:18 And a layout with a textview Sep 07 22:25:29 hmm, alright, but i think i'm still going to stick it inside a custom class that they can use rather than having to make them learn how to do all of that Sep 07 22:25:31 And you can remove the divider between each element Sep 07 22:25:35 they've just finished their 'hello, world' assignment Sep 07 22:26:07 on second thought, maybe it's better for them to just dive in to listviews, etc. as they'll have to learn them eventually Sep 07 22:26:09 Make a fragment, have them call fragment.addReading(..) or something Sep 07 22:26:41 Then you can handle state saving for them if they're not ready yet :p Sep 07 22:27:39 i'm not sure i'm ready to teach them how to deal with fragments... Sep 07 22:28:02 (i learned what little i know about android dev before fragments were introduced, and i still haven't quite caught up_ Sep 07 22:28:03 *) Sep 07 22:28:48 the purpose of the class isn't so much to learn how to develop android apps as to give them a brief introduction to using android as a sensing platform Sep 07 22:31:03 i think making apps suck Sep 07 22:31:07 takes too long Sep 07 22:31:34 heh, i'm not sure what you're expecting... Sep 07 22:31:46 i wasnt expecting it could take months Sep 07 22:32:10 maybe having a one man team is what sucks Sep 07 22:50:15 no, only motodev studio has that Sep 07 22:50:29 bel3atar ^ Sep 07 23:27:57 fun article on Bluetooth http://www.bbc.com/future/story/20130905-the-rise-of-bluetooth?ocid=global_future_rss Sep 07 23:31:14 interesting for those who stay up late http://www.sci-news.com/othersciences/neuroscience/science-night-light-color-mood-01333.html Sep 07 23:31:21 I use bluetooth for my Pebble, amazed at how well it works, I'm sure there will be more and more uses for it, especially since the prices is going down Sep 07 23:32:21 I need a bluetooth dongle for my desktop Sep 07 23:32:27 or card or whatever Sep 07 23:32:43 g00s: funny you should mention that right as my screen fades from white to a nice orange-y color thanks to f.lux :) Sep 07 23:33:08 albeit i doubt that's enough of a change to stave off the changes they're referring to in the article Sep 07 23:33:31 diphtherial yeah, i use flux too :D Sep 07 23:34:20 it's been pretty helpful in terms of making it easier to sleep; i've had to seek out equivalents for night browsing on my mobile devices Sep 07 23:34:43 (sadly none of the ones i've found use the ambient light to set the brightness, which i think would be ideal...) Sep 07 23:35:06 ah, never mind, seems like lux does this now Sep 07 23:35:09 flux just helps me at night Sep 07 23:35:14 screen blinds me otherwise Sep 07 23:35:24 i still need to turn the lcd brightness way down though. i'm sad to see that zebralight no longer makes their red light headlamp; thats probably the cheapest way to go hardcore red-only after dark Sep 07 23:35:54 one of the few that used cree red leds Sep 07 23:36:33 maybe another possibility is orange glasses that only pass reds/oranges Sep 07 23:37:09 yeah bummer, discontinued http://www.zebralight.com/H51r-Red-LED-AA-Headlamp_p_63.html Sep 07 23:37:10 :( Sep 07 23:40:18 :| Sep 07 23:40:34 i'm wondering if having a full listview is overkill for just displaying lines of text Sep 07 23:40:46 why not just have a textview that i settext on every time the underlying arraylist is changed? Sep 07 23:41:19 (i'm writing a little widget that's supposed to show a dump of the last 20 or so accelerometer values, with the most recent ones at the top so i don't have to scroll the stupid thing) Sep 07 23:41:27 If you're having trouble implementing a listview, post what you have and I'll help you out Sep 07 23:42:16 i appreciate the offer, but it's not so much that i'm having trouble with it that i'm wondering if it's necessary. i'd prefer to keep the code as simple as possible... Sep 07 23:42:28 i'll implement it and see if it's too crazy, heh :) sorry, i tend to waffle on things like this Sep 07 23:43:04 using something like an array adapter it shouldn't be too much code, probably simpler than hacking a textview Sep 07 23:56:43 omg, wtf http://www.androidbeat.com/2013/09/say-hello-hideous-new-usb-3-0-cable-new-smartphone-tablet-will-come/ Sep 07 23:58:36 lol Sep 08 00:08:17 hello Sep 08 00:08:31 i have a doubt about main and strings xml Sep 08 00:09:45 someone know about it/ Sep 08 00:09:46 ? Sep 08 00:12:18 What about it? Sep 08 00:15:01 well, i an using colors and dimensions in strings.xml Sep 08 00:15:08 i liked the idea Sep 08 00:15:16 but i want to pass others values Sep 08 00:15:33 like a integer to android:layout_weight Sep 08 00:16:27 so i can name it weightl1 and can change a group of weights instead of changing one by one Sep 08 00:16:40 this is just a example) Sep 08 00:17:35 the thing is, if i put, let's say, 1 in a string tag, when i call it in main.xml the attribute will receive a string and not a integer Sep 08 00:18:13 but i don't know if to xml everything is a string Sep 08 00:19:32 because if that is true, then i can just make ' and call android:layout_weight="@string/weightl1" Sep 08 00:20:26 1 Sep 08 00:22:05 You need to use dimens resources for values and color resources for colors. They should be in different files Sep 08 00:22:37 diphtherial: you still trying to get the list working? Sep 08 00:23:01 ok, but it's not a dimen neither a color Sep 08 00:23:09 it's a integer Sep 08 00:23:30 for exemple, a weight in android:layout_weight Sep 08 00:23:44 or a column in android:layout_column Sep 08 00:24:04 there is a getResources().getInteger(R.dimen.int_resource_goes_here) if you're trying to use it in code. Sep 08 00:24:21 no, is just in the main.xml Sep 08 00:24:25 So make it an integer Sep 08 00:24:36 i want to put all values apart of the main.xml Sep 08 00:24:45 even the weights, spans and etc Sep 08 00:24:53 but dont have a integer resource Sep 08 00:24:59 just color, dimen, string... Sep 08 00:25:08 there is a array, but not a integer Sep 08 00:25:12 Yes, there's an integer resource Sep 08 00:25:29 where? i am new lol Sep 08 00:25:34 and i am using eclipse Sep 08 00:25:40 (like, REALLY new) Sep 08 00:26:28 and also... dimens have the dimension, where i put color, in style? Sep 08 00:26:41 http://developer.android.com/guide/topics/resources/more-resources.html Sep 08 00:26:49 o ty :) Sep 08 00:27:03 np Sep 08 00:30:30 I have a surfaceview with a gesturedetector Sep 08 00:30:52 The gesturedetector's onTouchEvent gets called - but ACTION_MOVE never gets called Sep 08 00:42:31 /join #nutrition Sep 08 00:42:33 oups Sep 08 00:44:30 #fail Sep 08 00:44:51 at least it wasn't identify! username and password! Sep 08 00:45:04 true that lol Sep 08 00:45:15 I always do those in the status screen to be safe Sep 08 00:45:28 for sure! Sep 08 00:45:31 just to say, i loved the string.xml and etc Sep 08 00:45:37 is a very neat idea Sep 08 00:46:01 yeah, it allows for some pretty cool stuff. Sep 08 00:46:30 my wife is a designer and that way she can work in her part without having to search in things that she don't understand Sep 08 00:47:14 yeah, i was saiying to her that she can have her colors.xml file and use it in every android project Sep 08 00:47:37 Just fyi, names of xml files in values/ doesn't matter Sep 08 00:47:42 so, she can use @color/magenta instead of a hexadecimal code Sep 08 00:47:46 Just the tag Sep 08 00:47:52 ? Sep 08 00:48:10 SimonVT: can you have any directory names in your res folder? Sep 08 00:48:34 no Sep 08 00:48:58 There's a list of valid folder names Sep 08 00:49:16 akruz: the tags inside your xml files is what matter etc... Sep 08 00:49:20 SimonVT: thanks, didn't know Sep 08 00:49:41 jaynewstron, ok, but why the name don't matter Sep 08 00:49:55 You can put strings in notstrings.xml if you want Sep 08 00:49:58 is not using the name that they will find what is the color? Sep 08 00:50:02 the file name doesn't matter you can have blah.xml and have colors strings anything in there Sep 08 00:50:02 aaaa Sep 08 00:50:07 It just makes sense to put them in strings.xml since they're strings Sep 08 00:50:08 now i understand Sep 08 00:50:22 i can name whatever i want then Sep 08 00:50:37 i can name papaya.xml? XD Sep 08 00:50:58 yeah, i generally separate my strings files out by module, if you have different sections to your app, name them modulename_strings.xml Sep 08 00:51:17 hum, so my wife can really have a myColors.xml Sep 08 00:51:28 with the most common colors and use it in each project Sep 08 00:51:34 that is really coll Sep 08 00:51:39 no caps in res files Sep 08 00:51:53 so my_colors.xml would work Sep 08 00:52:03 a ok Sep 08 00:58:17 * jmpp_ greets! Sep 08 00:58:42 jmpp_: welcome :) Sep 08 00:59:08 * jmpp_ was just about to ask a question, but a call came in through the cell phone ;) Sep 08 00:59:45 :p Sep 08 00:59:47 and just most men out there, I can't do just about more than one thing at a time :S Sep 08 01:00:28 lol Sep 08 01:07:51 hello guys :) i want to add following custom button to keyboard mg ng ml kg mcg. what is the easiest way to do it ? i created custom keyboard based upon keycodes. since keycodes are not available for mcg mg . anyeasy way to do it? Sep 08 01:12:42 http://s7.postimg.org/cny0kp6d7/calcu.png Sep 08 01:15:48 hey, when i use a View-derived class in a layout, which of its constructors get invoked? Sep 08 01:16:27 also, is there a typical way to implement all three constructors? do you just pull the common code out into a function and call that from each? Sep 08 01:16:40 or do you perhaps invoke one constructor from another? Sep 08 01:17:04 (Context context, AttributeSet attrs) { Sep 08 01:17:32 ah, thanks Sep 08 01:17:37 constructor chaining is pretty common Sep 08 01:18:14 just be sure to call super at some point Sep 08 01:18:46 right, which complicates the whole constructor chaining thing, since i assume you don't want to invoke the superclass constructor twice Sep 08 01:19:32 right, if you do constructor chaining, you would only call super in the "designated" constructor Sep 08 01:21:23 is there any preference over which constructor should be the designated one? i assume it'd be the one with the most arguments, since the other ones could pass whatever the 'null' value is for that argument, i suppose... Sep 08 01:21:37 although things would get hairy if the superclass constructors did different things Sep 08 01:23:15 first one is generally what I do Sep 08 01:23:53 so (Context context, AttributeSet attrs)? sounds reasonable :) Sep 08 01:24:34 there should be one with more... Sep 08 01:24:37 ps: http://pastebin.com/EpxxUVwr Sep 08 01:25:19 aha! So I was about to ask Sep 08 01:25:43 I am building my android app through Eclipse, with some custom rules expressed as ant targets in a custom_rules.xml file Sep 08 01:26:36 those targets are running fine after selecting them in the corresponding builder's settings in Eclipse, but I can only hook into the "Manual build" & "Auto build" aspects of the whole compilation process Sep 08 01:27:04 I am interested in hooking into some kind of "pre-packaging" step of the apk creation process, but haven't been able to Sep 08 01:27:47 are you talking about when you sign the apk type of step? Sep 08 01:28:23 jaynewstrom: thanks :) Sep 08 01:28:26 the ${sdk.dir}/tools/ant/build.xml says in its comments that we can implement a "-post-compile" target in our custom rules, but I can't find any way of telling Eclipse/Ant to execute it Sep 08 01:28:42 jaynewstrom: now, just prior to the apk being created Sep 08 01:29:03 jaynewstrom: I am using what you taught me about assigning the targets in the builder's configuration Sep 08 01:29:09 diphtherial: np Sep 08 01:29:19 but, as i said above, through taht Ican only customize manual & automatic builds Sep 08 01:29:49 jmpp_: awesome. I'm not quite sure how to do what you're talking about though. Sorry Sep 08 01:30:06 :( Sep 08 01:33:36 take a look at what ${sdk.dir}/tools/ant/build.xml says at one point: empty default post-compile target. Create a similar target in your build.xml and it'll be called instead of this one. Sep 08 01:34:09 but no matter where I put a test -post-compile target, or even post-compile, whether that's in custom_rules.xml or in build.xml, it never gets run Sep 08 01:34:23 hello guys :) i want to add following custom button to keyboard mg ng ml kg mcg. what is the easiest way to do it ? i created custom keyboard based upon keycodes. since keycodes are not available for mcg mg . anyeasy way to do it? Sep 08 01:34:37 http://s7.postimg.org/cny0kp6d7/calcu.png Sep 08 01:35:08 Daejeo: are you just trying to intercept touch events? Sep 08 01:41:49 so, no one have an idea on how to hook into the pre-packaging stage when producing an apk through Eclipse/Ant? Sep 08 01:44:51 jmpp_: you might look into this http://stackoverflow.com/questions/11830542/ant-start-target-after Sep 08 01:44:53 anyone ever encounter the problem in phonegap for android 4+ of attaching event handlers with refinement (example object.onclick) and those handlers only firing the first time? Sep 08 01:44:56 jaynewstrom: no Sep 08 01:45:25 cheers! looking... Sep 08 01:45:43 jmpp_: depends keyword might do something? Sep 08 01:45:55 i am using keycodes according to keylabels Sep 08 01:46:47 jaynewstrom: I can have some custom target depend on another one, but I'd still have to get Eclipse/Ant recognize my custom post-build/post-complile/pre-package target Sep 08 01:46:59 unless you have something lese in mind and I'm not following you... Sep 08 01:47:04 anyone please advice for a newbie.. How do I create "widgets".. I get the whole idea s a pyqt/c++ and a bit of all.. but newbie with android.. Sep 08 01:47:30 jmpp_: eclipse isn't picking up a target for ? Sep 08 01:47:48 What I want to do is create a glareshield for FlightGear.. the free flight sim.. eg such as this.. http://www.cpflight.com/images/mcp737el.jpg Sep 08 01:47:54 exactly! Sep 08 01:48:19 not -post-compile, post-compile, -post-build, post-build, etc... Sep 08 01:48:23 So first what I need is an "led display".. .. Sep 08 01:49:12 From qt experience, and probably a bad things... it that I need to create a "layout" and an autonomout widgets that send messages.. and work together as a set etc.. Sep 08 01:49:48 jmpp_: I think you should try the depends, should do what you want. should run your builder after that Sep 08 01:49:57 and pointers in right direction would help.. I think I have to creeate these in code though.. cos they will need a lot of value checking etc.. Sep 08 01:50:29 but how so? I can't figure out how I could get it to run exactly before the apk is produced Sep 08 01:52:25 try adding depends="-post-package" in the target you want to run before building the apk Sep 08 01:53:22 isn't there pre-package? from what I understand, the apk *is* the package, and I want this to run before it is created Sep 08 01:53:54 I really don't understand what's going on with the Master/Detail activity template Sep 08 01:54:15 Is there a good guide that explains how the phone+tablet layout stuff is working there? Sep 08 01:54:52 jmpp_: there isn't a pre-package. but you're right, you probably want to do depends="-package-resources" Sep 08 01:55:48 another question about xml... Sep 08 01:55:49 oh, OK, that seems plaussible. Let me see if it works... Sep 08 01:56:05 first, what would be the best tag for the value 1,2,3 Sep 08 01:56:47 akruz: depends what you're using it for. is it an array, a string? Sep 08 01:57:00 jmpp_: let me know Sep 08 01:57:02 used in android:stretchColumns="1,2,3" Sep 08 01:57:13 i don't know for sure Sep 08 01:57:24 looks like a array of integers Sep 08 01:57:41 also, someone use the id xml? and why? Sep 08 01:58:28 you can put stuff directly in xml, something like stretchColumns might belong directly. I've never used it before. But if you really want to take it out, it looks like a string to me Sep 08 01:58:36 what do you mean the id xml? Sep 08 01:58:43 android:id attribute? Sep 08 01:58:49 no the tag id Sep 08 01:59:01 http://developer.android.com/guide/topics/resources/more-resources.html Sep 08 01:59:07 not tag Sep 08 01:59:25 is right, you don't have to separate everything into resource files. Sep 08 02:01:38 so why i would create a and then android:id="@id/id_name Sep 08 02:01:56 yes, i am very modular... But i think that even i have a limit Sep 08 02:01:57 lol Sep 08 02:02:30 lol! it can be less typing especially if you're using a relativelayout and doing stuff like toLeftOf="@+id/resource_id" Sep 08 02:02:39 akruz: so you can have 1 central place to define ids, rather than defining them on the fly with the @+id/id_name syntax Sep 08 02:03:04 hum... I think that i could use it Sep 08 02:03:11 like i said, i am very modular Sep 08 02:03:28 depends on what you like. Personally, I just use the @+id/id_name style. Sep 08 02:03:29 putting things in separate files doesn't automatically make you modular... Sep 08 02:03:36 when i start to make my true first app, i probaly will have tons of xml files Sep 08 02:04:21 Also, I believe the style is used for public resources, and let's you explicitly set the resource id Sep 08 02:04:23 jaynewstrom, no, but things that are layout related and text related make, because tou can just pass those files to who will handle then Sep 08 02:04:40 but it's rare that you'll need to export public resources in an app :) Sep 08 02:04:56 rare, or maybe even non existent :) Sep 08 02:05:16 It's useful if you're a library Sep 08 02:05:29 a library? Sep 08 02:05:36 ah, right Sep 08 02:05:39 jaynewstrom: don't know where/how to hook my target for Eclipse/Ant to see it and recognize it has to be run after package-resources Sep 08 02:05:47 e.g. a viewgroup. You don't necessarily have views with a specific id Sep 08 02:05:51 But maybe the user can provide one Sep 08 02:05:57 you saiying use it on others apps? Sep 08 02:06:02 No reason to create a layout file that defines the id just for that case Sep 08 02:06:07 if I add the targets in the builder's settings, it gets during manual and/or automatic build Sep 08 02:06:23 Or if you want to use id's in code Sep 08 02:06:24 and if I include the depends clause, i create a problem and the build fails Sep 08 02:06:48 jmpp_: I'm not sure, maybe someone else could help Sep 08 02:06:55 That don't necessarily exist in your other resources Sep 08 02:06:59 SimonVT that was the example developer.android.com Sep 08 02:07:07 for this to work, I would need some kind of way of getting Eclipse to notice the custom target, and then the depends clause would do its magic Sep 08 02:07:45 well, in the end, i will not use it by default, i will just do the @+id Sep 08 02:07:58 the only way I currently see of getting Eclipse to notice a custom target is in the builder's settings, and that only allows for the manipulation of the build stage Sep 08 02:08:00 but well, never knows, is there for a reason lol Sep 08 02:08:01 :( Sep 08 02:08:08 ty anyway Sep 08 02:09:57 ah, android:stretchColumns is a string Sep 08 02:10:03 :), problem solved Sep 08 02:14:49 akruz: I did tell you that... Sep 08 02:15:46 :) Sep 08 02:17:10 anyone ever read through the source code of activity? 5330 lines :0 Sep 08 02:17:43 eh, that isn't too bad Sep 08 02:18:18 I feel as though 1 class with 5000 lines is too much... that could be separated... Sep 08 02:18:41 granted half of more is comments... but still Sep 08 02:20:42 well, at least you don't get a error in a unknown line :) Sep 08 02:21:12 like a friend of my that said that the delphi log just have said catastrophic error (in which line, don't know) Sep 08 02:21:19 hrm xml Sep 08 02:21:21 Activity isn't bad.. I bet it's more than half that's comments Sep 08 02:21:27 TextView is bad Sep 08 02:21:41 Oh. I should ask again while there are people here. Anyone got a Snapdragon 800 device, like a LG G2 or Xperia Z Ultra, that I can slap around for a few moments? :D Sep 08 02:22:13 SimonVT: 9000 lines... wow Sep 08 02:23:25 android.view.View is almost 19000 Sep 08 02:41:19 it's over nine thousand !!!!!! Sep 08 02:43:25 yes Sep 08 02:47:14 hello all can i get some help with the android sdk kit please ? Sep 08 02:47:23 wonder how many of those lines have test coverage :) Sep 08 02:47:34 So, how many people here know what represents in a drawable resource? Sep 08 02:58:04 http://developer.android.com/guide/topics/resources/drawable-resource.html Sep 08 02:58:40 An XML file that defines a geometric shape, including colors and gradients Sep 08 02:58:52 android:shape=["rectangle" | "oval" | "line" | "ring"] > Sep 08 02:59:04 Nilium **** ENDING LOGGING AT Sun Sep 08 02:59:59 2013