**** BEGIN LOGGING AT Thu Nov 21 02:59:59 2013 Nov 21 03:10:53 hm, i'm going to try to disable play service, see what that does :D Nov 21 03:11:56 please don't implode the universe Nov 21 03:12:59 JesusFreke have you noticed PLay Services munching on your battery ? Nov 21 03:13:07 past few days Nov 21 03:13:52 haven't noticed anything Nov 21 03:18:29 Settings -> Battery says its taking 40% Nov 21 03:31:52 JesusFreke question; when google pushes out an update (say, for this 2013 n7) what is the 'window' in time length where they are gradually rolling out;i think its weird my device hasn't seen an update; wondering if something is misconfigured Nov 21 03:32:16 they even put out and update to their update :| Nov 21 03:32:34 i know i can go grab images myself, just wondering Nov 21 03:33:01 1 week? a couple of weeks ? Nov 21 03:33:52 shmoooz: i dont understand what you mean Nov 21 03:34:08 Hi everyone, I'm having a problem with camera, any clue on this ? http://bin.cakephp.org/view/280418140 Nov 21 03:41:49 g00s: theres a feedback loop Nov 21 03:42:01 if there's a problem (and there was) things are paused till it's fixed Nov 21 03:43:12 spikebike ah, so something was amiss. thanks Nov 21 03:58:54 I think it started again last night Nov 21 03:59:28 I have 3 devices waiting for it, no luck yet Nov 21 04:02:41 Anyone use Android Studio? I've started getting a "ClassNotFoundException: Didn't find class [...] on path" when i try to run my code. No idea what I did to cause it, since the manifest and class look correct. Nov 21 04:04:23 what class? Nov 21 04:05:36 spikebike ok, thanks. Nov 21 04:05:56 bankai_: The class I have listed in the manifest as the launcher, in this case "UserInterface" Nov 21 04:06:35 bankai_: I'll pastebin the whole trace, moment. Nov 21 04:06:35 what's the entry and package etc. ? does it all match ? Nov 21 04:07:06 bankai_: if it doesn't it's something hilariously subtle. I'll put the trace, the manifest, and the class in question. Nov 21 04:11:24 waaaait... Ok, hold on, I may be trying to fix a symptom and not the problem... Nov 21 04:17:40 ok, I think I know what's going on. I think I have my permissions goofy, so when I tried to tell it to check for google play services, it nope'd right out of there. Nov 21 04:17:52 but it didn't include it as part of the logs for the app itself, so i wasn't makign the connection,. Nov 21 04:19:00 oops i did a 1-row query on the ui thread - hope police don't come after me Nov 21 04:19:45 i'm writing a client, not a broker Nov 21 04:20:01 oops, wrong chan :) Nov 21 04:22:53 *rereads API documentation* Nov 21 04:36:21 How can I check what classes actually got included in an APK? Nov 21 04:36:48 like is there an objdump type program that'll let me dump out the dex? Nov 21 04:37:10 Anyone got experience using Spinners inside Fragments? Nov 21 04:38:26 I've got them in a FragmentPager and when they go too far out of view, when they get recalled it fires the OnItemClickListeners Nov 21 04:39:57 Krampus: so basically decompiling an apk? Nov 21 04:40:51 desmin88: yeah, dumping a symbol table for example. Nov 21 04:41:00 Rename .apk into .zip, get the classes dex file, then use dex2jar to get a rough decompilation for the classes Nov 21 04:41:07 To get the resources, you have to use apk tool Nov 21 04:41:19 hmmm, i think this is just not including the libraries i think it is consistantly... Nov 21 04:41:38 desmin88: yeah, it's not to reverse engineer anything, it's to figure out how my build is going so horribly wrong. :) Nov 21 04:44:05 well you asked how to figure out what classes are included Nov 21 04:44:06 that is how Nov 21 04:49:17 :( Hi, I have an activity which provide the ui for user to search route, and then display the routes below. And the route result is a list of data displayed by a ListView , this is what I have done http://imgbin.org/images/15745.png But when the device changed to landscape view, the view below the `Get Route` button may be hidden. So I tried to use the `ScrollView` for the whole layout, but this will meet the problem "ListView inside the SrollView", Nov 21 04:49:18 any alterkative idea? Nov 21 04:53:08 could make get route open a new view with just the routes Nov 21 04:55:14 Impossible to put them together? Nov 21 04:56:08 could make your two locations a popup dialog then when you click get routes, it disappears and shows you the list and drive plan Nov 21 04:56:58 i think the latter would be better Nov 21 05:03:51 :( Can not use listview inside scrollview, this is really a f****** design. Nov 21 05:05:40 BTW, I am using android studio 0.3.6, and I found that I have to rebuild the project once I run my app after made some chagnement, is there anyone have the same problem? Nov 21 05:16:09 maven__: erm, wouldn't you expect to have to rebuild it before you can run it? Nov 21 05:17:45 Hi. I'm new to android dev just playing around a bit. I have this button in my view and I set up an event handler doStuff(View view){} which does get triggered when I click the button. Nov 21 05:17:51 I'm trying to figure out how to change the button text in that event handler. I thought there would be a method like view.setText() but there is nothing Nov 21 05:18:07 mikehaas763: there is that method. Nov 21 05:18:09 Krampus, No, I mean if I hit run after the changement, I won't get the latest app in the elumator, now I have to do the following steps: modify codes/xml -- rebuild -- run app -- modify code..... Nov 21 05:18:41 Normally, I only need to modify code -- run -- mocify ..... Nov 21 05:20:12 And I found this issue: https://code.google.com/p/android/issues/detail?id=56843 However, this issue is reported at version 0.1.x and now I am using the latest (0.3.6) Nov 21 05:20:18 Krampus: ahh my bad I didn't realize I had to cast it to a Button first Nov 21 05:20:26 mikehaas763: so then you can just cast it to a Nov 21 05:20:27 yeah. Nov 21 05:20:28 that. :) Nov 21 05:21:10 speaking of which, does java have an equivalent to C#'s 'as' casting? eg 'view as Button'. It doesn't throw an exception and can be useful when you don't want an exception to be thrown during a cast Nov 21 05:23:13 argh. Ok, so basically as soon as my app calls a GooglePlayServicesUtil method, it blows up. Nov 21 05:23:18 but it's listed as a gradle dependency. Nov 21 05:28:02 how do you have a cast that won't throw an exception Nov 21 05:28:14 what happens if it's a bad cast Nov 21 05:52:45 I'm using and alarmmanager to call a broadcast receiver which then calls an activity which launches a dialog to ask the user if they have something new to report. If they don't how do I return to whatever the user was doing before? Nov 21 06:11:36 anyone have any experience taking android platform internal apps and converting them to regular sdk apks? Nov 21 06:11:45 hi Nov 21 06:13:08 I have a function that will be ran be multiple threads: run() { //code for step 1// //code for step 2// } . what is the simplest method to wait for all the theads to finish the //step 1// part and then continue to //step 2// ? Nov 21 06:13:17 *this in NDK Nov 21 06:16:39 hello someone know wich /dev/... is used to call a phone on android kernel? Nov 21 06:47:45 if I have a WebView and I want to "type" some stuff wherever the user has placed the cursor Nov 21 06:47:52 do I just have to call dispatchKeyEvent a bunch of times? Nov 21 07:14:55 I'm testing my app on an android 2.3.6 device. I'm trying to register the app to GCM services using the new GoogleCloudMessaging class APIs. I receive a gcm key through a REGISTRATION intent in the broadcast but the app still doesn't receive any gcm messages. Should the app register old devices to c2dm using the old intent broadcast method discribed here http://developer.android.com/google/gcm/c2dm.html#client ? After a while I also get an Nov 21 07:14:55 intent to unregister in my broadcast. Does anyone has a clue? Nov 21 07:21:36 compengi: all I can offer is that when we coded up GCM in a way that worked on android 4, it did not work on 2.3, just as you describe Nov 21 07:21:41 so if there is an "old way", I would try that Nov 21 07:22:02 but, I can't say whether it's the right idea or not Nov 21 07:24:18 durka42, that's actually very weird. I've checked the updated app demo and they are supporting minSDK of 8 and not even applying an intent-filter for REGISTRATION anymore in the Manifest, makes me wonder. Nov 21 07:25:12 durka42, even stating this: Nov 21 07:26:45 well, as I remember, we got the old phone a registration ID, but it never received any messages Nov 21 07:26:55 unclear if the broadcast receiver service was running or not Nov 21 07:27:59 durka42, Same thing here, although after a while I receive an intent for unregistering from gcm Nov 21 07:29:30 durka42, it sometimes really makes me doubt the correctness of documented APIs and the demos Nov 21 07:31:13 :/ Nov 21 07:50:45 ugh Nov 21 07:50:55 is there a way to "unplug" a genymotion instance so that eclipse doesn't freak out Nov 21 07:51:11 so I don't have to restart eclipse every time to keep logcat working Nov 21 08:42:33 does anyone have tried decode raw h264 stream using MediaCodec? Nov 21 08:43:02 if i am encapsulating a viewgroup as to simulate like a dialog fragment, would be a good idea to make the activity implement an interface to respond to userEvents in the viewgroup (that require changes to other objects in the activity)? Nov 21 08:43:47 I'm able to decode the stream from my host computer at the emulator. But when I tried over network, dequeueOutputBuffer is always returning -1 Nov 21 08:46:38 Binbo, is your H.264 properly encoded for streaming? Nov 21 08:46:54 did you give the decoder PSS/SPS frames? Nov 21 08:47:21 Mavrik : The encoder is actually a Windows app which uses x264 encoder Nov 21 08:47:52 Mavrik : The problem is streaming from host to emulator, I'm able to render it Nov 21 08:48:04 that's not what I asked. Nov 21 08:48:10 yes of course Nov 21 08:48:26 did you pass SPS/PSS data to the decoder so it can start running? Nov 21 08:48:35 yes Nov 21 08:48:51 thats why its working locally Nov 21 08:50:05 actually what are the posible causes for dequeueoutputbuffer returning -1? Nov 21 08:50:13 tons of them Nov 21 08:50:18 driver-related as well Nov 21 08:50:48 Its very hard since I cant found any live-streaming scenario example online Nov 21 08:51:40 it becoming very hard as I dont know the reason =( Nov 21 08:55:25 if you're lucky the device's decoder driver will tell you what's wrong. Nov 21 09:03:28 Mavrik: Now I found something. Just now I tried on my mini-PC and the errors shown Nov 21 09:04:03 H264_DEBUG : "Param set Activation" Nov 21 09:04:37 "second_chroma_qp_index_offset" Nov 21 09:04:50 and PIC_PARAM_SET decoding Nov 21 09:18:57 Hi, how to add fragments in own files and then return the fragment instance in public Fragment getItem ? Nov 21 09:48:59 Anybody managed to get Android Studio to install and run on OSX Mavericks using java 1.7? AS is bitching it still needs 1.6, but that's not true so I need to convince it to use my 1.7 installation... Nov 21 09:51:21 hmm Nov 21 09:51:39 no way to check if there is an item in an LruCache without also moving it to the head of the queue Nov 21 09:51:52 I could do a snapshot and then check Nov 21 09:56:10 Hello Nov 21 09:56:30 I'm developing my custom viewgroup and i need to implement the computescrollextend Nov 21 09:56:36 to determine the size of the scrollbar Nov 21 09:56:45 i don't get it working properly. Anyone knows the algorithm please? Nov 21 10:13:41 can't you measure the total height of the view and take the ratio with the viewport size ? Nov 21 10:14:41 Does anyone know if I can perform join statements on the sqlite tables through/represented as the native content providers? Nov 21 10:33:01 I'm trying to run ProGuard on my project however executing, "ant release" doesn't read the proguard config file I have definedi in project.properties Nov 21 10:33:12 In the output I see -release-obfuscation-check: [echo] proguard.config is "${proguard.config}" Nov 21 10:33:30 I've set proguard.config property in project.properties Nov 21 10:33:38 but Ant doesn't read that file Nov 21 10:33:39 Why? Nov 21 10:33:48 I'm running in release mode Nov 21 10:33:57 as documented at https://developer.android.com/tools/help/proguard.html Nov 21 10:34:16 Inside project.properties I have proguard.config=proguard-project.txt Nov 21 10:34:26 and proguard-project.txt file exists in my root of the prject Nov 21 10:46:45 so... Nov 21 10:47:28 I have multiple webviews. One of them loads an /intent url, which just redirects to a myapp://login?login=info type scheme Nov 21 10:47:48 the scheme triggers an activity that takes care of the login logic, and then fires a notification when login completes Nov 21 10:47:59 This causes all the listeners (all the webviews) to refresh Nov 21 10:48:24 the problem is that the calling webview is still pointed at /intent, which will call the scheme again, creating a stupid loop Nov 21 10:48:29 ideas of how to solve? Nov 21 10:48:41 <|RicharD|> hi Nov 21 10:48:43 like... 'refresh all but the caller' would work, but i dont know if ic an do that Nov 21 10:49:16 and by notification, I mean using LocalBroadcastManager Nov 21 11:10:21 hello Nov 21 11:10:45 which is the best place to put code to ask user when goes back from an activity ? Nov 21 11:10:53 like are you sure etc Nov 21 11:13:36 have a back button listener or something Nov 21 11:19:20 Baluse, this is a very bad practice. Why you want to do that? Nov 21 11:25:27 how an opengl es context works in android? i guess the opengl commands renders the scene in an offscreen buffer, which will be copied on the screen, right? Nov 21 11:28:48 trying to build a sony kernel, Nov 21 11:28:49 http://qp.mniip.com/p/xs Nov 21 11:29:38 oh oops Nov 21 11:29:42 this would be -root, right? Nov 21 11:33:09 compegni it is requirement Nov 21 11:33:37 but i see no reason it is bad practice really Nov 21 11:33:55 like if you are drawing something and save it Nov 21 11:34:04 optionaly Nov 21 11:34:27 not accidentally hitting back twice like on some phones Nov 21 11:36:04 uughh fuuuuuccckk webview based apppppssss Nov 21 11:42:18 hi ppl :) Nov 21 11:42:28 Baluse, I would make it an option in your settings rather than always having it on Nov 21 11:43:08 one thing about android apps is that they have too many settings Nov 21 11:43:19 Baluse, I would rather actually show a save dialog Nov 21 11:43:31 maybe a 'dont ask me again' check would be ok Nov 21 11:44:42 otiose, or that, but I won't force people something that may bother Nov 21 11:45:43 yeah i dont think you should force it Nov 21 11:45:58 but so many specific settings that just dont really matter Nov 21 11:46:13 i see it so often, and its a pretty clear sign it was a programmer who designed the app haha Nov 21 11:47:48 'show the percentage next to the progress bar of the image upload on the profile page' Nov 21 11:47:53 otiose, haha, even then setting must make sense and many things can be neglected most of the time by just by apply some checks Nov 21 11:51:04 Baluse, it's fine to put it in your activity or fragment Nov 21 11:51:06 i have a question, i have a custom class that extends imageview with an onclicklistener, and two buttons placed on top of them Nov 21 11:52:28 if i return true in my custom class i can't click the buttons, if i return false my handler doesn't get processed Nov 21 11:53:06 am i approaching this wrong? Nov 21 11:54:02 fffuuu Nov 21 11:54:17 have activites A, B, C Nov 21 11:54:34 C opens an activty X (indirectly, so cannot do startForResult() Nov 21 11:54:50 but when X finishes, i want to refresh A and B, but not C Nov 21 11:54:52 wat do? Nov 21 11:55:20 notifications dont work, because A B C are all sublclasses of SUPER, where the notifications handling owuld go Nov 21 12:03:15 otiose, I would have created an activity manager class which stores all opened activities as listeners. Each activity should implement an interface. Then you call all the listeners from your super class to refresh Nov 21 12:04:38 well ill keep that in mind Nov 21 12:04:54 but the problem is that they can all be listening (they are) Nov 21 12:05:07 but then when it times come to refresh, i have no way of telling which one i dont want to refresh Nov 21 12:05:14 i got some messed up stupid hack working Nov 21 12:05:27 and since im already working 2 hours overtime, they're going to have to put up with it Nov 21 12:11:07 so i have a surfaceview defined in xml, when i set the background to a drawable, the background is set, but any drawing done on the surface view doesn't work Nov 21 12:11:10 ie, i can't see it Nov 21 12:11:14 am i doing something wrong ? Nov 21 12:12:14 perhaps i thought it draws the background last Nov 21 12:12:16 over all my drawing Nov 21 12:16:20 hi, i'm compiling a c++ application with ndk-build. I have a many packages which are compiled as static libraries and the main application is compiled as shared library. When i check the generated shared library, the filesize is way too small to contain all static libraries. Shouldn't they be inside the shared library? Nov 21 12:17:57 Android doesn't come with any kind of system help stuff does it? Nov 21 12:19:05 rayo: you would expect it to, or at least i would Nov 21 12:19:15 lasserix: your question is vague, can you reword ? Nov 21 12:19:29 like a tutorial ? Nov 21 12:19:40 or something like that Nov 21 12:20:14 there might be a bloatware form, but the android system itself doesn't not have any reference material for a user on how to use android within their phone's system? Nov 21 12:20:23 *doesn't Nov 21 12:21:50 wmealing: the resulting shared library is like 500kb, but the linux build is like 10MB. Is it enough to add LOCAL_STATIC_LIBRARIES := to the main applications Android.mk? Nov 21 12:23:18 there is that firstboot thing, that says click on things, do this, do that Nov 21 12:23:20 like an overlay Nov 21 12:23:37 rayo: ive only had experience doing it on linux proper. Nov 21 12:23:39 yeah but nothing i can match against keywords... Nov 21 12:23:41 okay Nov 21 12:23:44 just making sure Nov 21 12:23:47 less work for me to do :) Nov 21 12:24:24 rayo, obviously you need to add linker parameters to link in the static libraries Nov 21 12:24:31 just like you have to do when compiling Linux libraries Nov 21 12:24:34 rayo: it seems like it isnt linking / including properly, i'd try adding Nov 21 12:24:34 it's the same. Nov 21 12:24:49 * wmealing_ lets Mavrik finish Nov 21 12:25:36 rayo, so add proper -l parameters for those libraries... of course, the static artifacts must be compiled for same arch as well :) Nov 21 12:27:30 do i need to set LOCAL_LDLIBS? it's strange that the linker doesn't complain when it links the shared object file, there should be many symbols missing Nov 21 12:28:34 Does anyone know where I can find more information on how Google Voice Typing works? I assume it uses Google Voice but can't find an official source for this. Nov 21 12:29:59 rayo, well the other option is that linker throws out all unused code :) Nov 21 12:30:08 hard to tell without looking at what you have Nov 21 12:30:09 homelinen: http://stackoverflow.com/questions/11789791/android-speech-to-text-example Nov 21 12:31:32 lasserix: That's just how to use it. Was more about how the Google backend works. For a university paper Nov 21 12:33:08 ooohh Nov 21 12:33:19 specifically for google's stt? Nov 21 12:33:35 lasserix: Yeah Nov 21 12:34:44 Mavrik: ohhh god, i'm stupid. The main application gets generated to use all those static libraries (like 150) and there was an error in the generation and the file was an empty main -_- the linker threw out all unused code Nov 21 12:48:34 android lacks tons of things ios has Nov 21 12:49:10 and visa versa Nov 21 12:49:22 like the inability to attract hipsters? Nov 21 12:49:58 *err i mean the unusual magnetism to hipsters ;) Nov 21 12:50:33 not to mention the self righteousness :) Nov 21 12:54:49 Will google say anything about me selling premium on a webpage instead of using in-app purchase? Nov 21 12:56:03 they will come to your house and wreck up the place to set an example if you decide to do that Nov 21 12:56:24 don't you know they have pictures of where you sleep?!?! Nov 21 13:14:03 i'd save a lot of drawing code if paint was able to be stored in xml. Nov 21 13:14:39 i imagine there is a reason for not allowing it Nov 21 13:19:35 any idea how to add this to gradle ? Nov 21 13:19:35 http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22android-switch-backport%22 Nov 21 13:20:48 i figured out Nov 21 13:22:07 in a minute? you should consider rubber duck debugging Nov 21 13:23:05 heh Nov 21 13:23:13 however I still have problem Nov 21 13:35:59 I'm using Android Studio. How to I simulate sending an SMS to my app running an emulator whilst in debug mode? Nov 21 13:39:14 NerdKelly: http://stackoverflow.com/questions/3537307/simulating-sms-on-android-devices-when-developing Nov 21 13:39:58 procton: thanks, I'll take a look Nov 21 13:46:01 Hi all, how can I take a screenshot (bitmap) from my activity. This must be done from a fragment Nov 21 13:56:00 has anyone used this with android studio / Nov 21 13:56:48 https://github.com/BoD/android-switch-backport Nov 21 14:05:50 HI all, I've a question about ListView without solutions on net (by my searches). I've a listview with a "Text 1, Text 2, Edit 1, Text 3" row where I would like that: Text 1 cels are all of maximum size of Text 1 * cols, Edit 1 cols are all of same defined size, Text 3 cols are all of maximum size of Text 3 * cols, and Text 2 cols are of remaining space. There is a way to obtain that ? Nov 21 14:06:10 Francesco the root layout viewgroup of the fragment can be cast as a view and then you can call toBitmap or whatever the method is Nov 21 14:06:52 shineworld layout weight Nov 21 14:07:04 you basically want horizontally space formating between them? Nov 21 14:07:14 (in each row) Nov 21 14:07:44 use a linearlayout in horiz mode, give appropiate layout weights that look right, setting widths to be 0 Nov 21 14:08:08 then the views will be given a % of the total (if you set layout width of the linear layout to match parent) view space Nov 21 14:08:23 you can use gravity on the textviews to align the text however you want (eg, center) Nov 21 14:08:38 this will horizonatly format your list view row layout in such a way that is uniform Nov 21 14:08:55 hello I don't know why I am getting an NumberFormatException..it says: Inavild double "" here is my code:http://pastebin.com/v9PTneRj Nov 21 14:09:16 I'm trying to do ... but weight take in care about ACTUAL text size or is only a way to divide total space ? Nov 21 14:09:53 the later Nov 21 14:10:04 I think line 79 is causing the error but I don't know how to fix it Nov 21 14:10:16 so that not solve completly my needs.... Nov 21 14:10:21 so you can use gravity="center" then they'll all align on 4 axis that run through the horizontal center of each view Nov 21 14:10:45 sorry your question is unclear but that's how i would do it Nov 21 14:10:52 tweak the weights till you get what you want Nov 21 14:11:03 can I public my code so you can better understand ? is a simple project Nov 21 14:11:14 if its online Nov 21 14:11:17 a sec Nov 21 14:11:20 t4nk809: what is the value you are trying to convert to double? look at it in a debugger Nov 21 14:12:52 shineworld better if you just do a paint of what your idea is supposed to look like Nov 21 14:13:09 ok ... then 5 mins :) Nov 21 14:15:41 rayo: I am not so familiar with debugging.. Nov 21 14:16:59 can you take a screenshot from whole screen (not on a view only) ? Nov 21 14:17:38 t4nk goto window show view other android logcat Nov 21 14:17:45 then scroll until you see a bunch of red Nov 21 14:17:50 that's called a stack traces Nov 21 14:17:54 "stack trace" Nov 21 14:17:56 Is there a way to create a URL from a String, but ignore any unknown protocols? I need a url made for an custom url Nov 21 14:18:11 i.e. mystuff://blah Nov 21 14:18:24 it will list the methods in reverse order that they were called that led to the line of code that caused your app to crash Nov 21 14:19:10 so typically you want to look through it until you recognize your java class name (because it will often contain internal android api method calls / class names in the list) Nov 21 14:19:15 lasserix: yeah I always use logcat Nov 21 14:19:19 and it will conviently tell you exactly the line that caused the problem Nov 21 14:19:48 lasserix: it says NuberFormatException Invalid double "" Nov 21 14:19:57 well Nov 21 14:20:01 your code is kinda weird Nov 21 14:20:17 lasserix: now i am trying to debugg it..i think line 79 causes the problem Nov 21 14:20:58 t4nk809: the exception says invalid double "" <-- so the string is empty and it can not be converted to a double Nov 21 14:21:11 ahh Nov 21 14:21:28 hello Nov 21 14:21:37 i get exception that gradle 1.9rc3 is required Nov 21 14:21:39 *sorry your code is not wierd, i am just unable to see clearly ;p Nov 21 14:22:23 so I first need to check if string is empty Nov 21 14:22:32 t4nk you might mask against " " as input by using string.trim() and then checking the length Nov 21 14:23:18 ok thanks Nov 21 14:24:59 Ahh, should be using URI not url. doh. Nov 21 14:26:11 shineworld you finish? Nov 21 14:26:11 lasserix: but I am catching the exception and set it do the default value 0.0 Nov 21 14:26:15 i have to sleep Nov 21 14:26:26 lasserix: I think I am confused right now ^^ Nov 21 14:26:32 double tipAmount = Double.parseDouble(tipAmountET.getText().toString()); Nov 21 14:26:43 you dont catch line 79 Nov 21 14:27:09 in onTextChanged from 64-74 you use the catch to verify Nov 21 14:27:19 on line 79 you don't use a catch to verify Nov 21 14:27:29 a sec lasserix ... internet is so busy that upload is slow Nov 21 14:27:30 lasserix: oh right..looked at the wrong line Nov 21 14:27:47 lasserix: thank you now I will try catching the exception Nov 21 14:28:25 t4nk809 make sure you know how to read the logcat Nov 21 14:28:38 usually you can always figure out things with logcat Nov 21 14:29:00 lasserix: yeah I am familiar with logcat but I don't use the Debugger Nov 21 14:29:28 lasserix: I need to get more familiar with the debugger ^^ Nov 21 14:30:06 is there a debugger for android in eclipse? Nov 21 14:30:11 i have never used it ;p Nov 21 14:30:11 lasserix, this is sample app https://www.dropbox.com/s/gq1sbd45mgybfga/OMERLiftManager.tar.gz and this is the screen snap :https://www.dropbox.com/s/oap6hwpaoj66mu9/device-2013-11-21-152810.png Nov 21 14:30:22 and image is better of thousand words: Nov 21 14:30:24 lasserix: yeah it is Nov 21 14:30:31 Gradle version 1.6 is required. Current version is 1.9-rc-3 Nov 21 14:30:36 t4nk typically i use logcat to debug in passive interactive mode Nov 21 14:30:54 how you can see T4 contains the "unit" which can be void, bits, s, ms, etc. Nov 21 14:31:04 so it have a variable size Nov 21 14:31:19 same for T2 (Legs number, etc) Nov 21 14:31:27 so what I would like is: Nov 21 14:32:04 - T1[] widths of maxium size of of this column Nov 21 14:32:36 - E1[] of fixed width enough to keep my desired digits (2,4,6,10) Nov 21 14:32:54 - T3[] widths of maxim size of this column Nov 21 14:33:08 - T2[] all with remaining size from previous calcs Nov 21 14:33:34 well in this case you could use a relative layout Nov 21 14:34:00 relative ? never used before (sorry I'a newbie with Android) Nov 21 14:34:03 just do the pg-xx align left and then the name is to the right of the pg Nov 21 14:34:16 look up relative layout but it'll look like Nov 21 14:34:28 PG-01 will have align_parentLeft = true Nov 21 14:34:56 Legs Numbers will have align_toTheRightOf="@+id/whateverthepgtextview" Nov 21 14:35:03 then the bits textview will be align right Nov 21 14:35:07 err Nov 21 14:35:10 alignParentRight Nov 21 14:35:22 and the edittext will be toTheLeftOf bitstextview Nov 21 14:35:50 then you can use set widths for pg-03 and bits (use max length string unit) Nov 21 14:35:57 and wrap content on the other two Nov 21 14:36:11 you just have to be carefuly the screen is wide enough to contain it all Nov 21 14:36:11 Ok I will search docs for relative :) thank you for suggestion Nov 21 14:36:17 :) Nov 21 14:36:26 np goodluck Nov 21 14:36:30 adios Nov 21 14:36:34 I will prepare some items.xml for any my supported size Nov 21 14:37:10 where is gradle home ? Nov 21 14:42:17 You are using unsupported version of Gradle. Nov 21 14:42:17 Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.) Nov 21 14:42:48 "unsupported version of Gradle" ? Nov 21 14:43:04 oh. n/m Nov 21 14:43:42 anyone with windows with 5 min of his time? Nov 21 14:55:08 no Nov 21 15:01:24 FYI all https://pay.reddit.com/r/androidapps/comments/1r3zl5/question_why_do_android_apps_cost_so_much/ Nov 21 15:04:19 What is the best way to have code execute once after onCreate is finished? Nov 21 15:05:17 I guess overriding onStart would work. Basically I don't want this code to fire off everytime the user comes back to the app. Nov 21 15:05:30 onPostCreate Nov 21 15:06:05 pfn perfect, thanks! Nov 21 15:16:50 This SO answer talks about a bug with GoogleMap.getMyLocation, that it always returns null. It also mentions that the bug was fixed. I am calling the function after onCreate is done, so in onPostCreate. I seem to still be getting null. http://stackoverflow.com/a/13830598/1747491 Nov 21 15:21:54 best ad network for the Droid Nov 21 15:22:03 other than ad-mob Nov 21 15:25:29 Looney: I charge £2.49 for my app :l Nov 21 15:25:36 people say its worth way more though Nov 21 15:25:43 hello Nov 21 15:25:52 are aar files usable ? Nov 21 15:25:53 CallumTaylor sup mate Nov 21 15:26:04 I am thinking of two versions Nov 21 15:26:06 sup Nov 21 15:26:10 nm !! Nov 21 15:26:17 stuck at some point lol Nov 21 15:26:21 if you want free, then better luck dodging ads Nov 21 15:26:35 my fragmentList shows loading with a progress bar Nov 21 15:26:37 i *hate* ads so much Nov 21 15:26:39 is this normal ? Nov 21 15:26:40 else, join the 1337 clube by paying Nov 21 15:26:54 * tonyMontana9099 too Nov 21 15:26:59 id rather charge and have my app pirated than ruin it by putting ads in it Nov 21 15:26:59 CallumTaylor: I hate them more than you Nov 21 15:28:50 guys any hints ? Nov 21 15:29:11 no idea Nov 21 15:29:17 damn it. Nov 21 15:29:31 im using actions tabs. Nov 21 15:29:31 CallumTaylor: what's your app? Nov 21 15:29:34 I have 3 Nov 21 15:29:40 http://rbn.im/store Nov 21 15:30:15 once you add them to the action bar, do the fragments for them start to load automatically ? Nov 21 15:30:58 bastard, someone did a 1 star with no review Nov 21 15:31:23 CallumTaylor, i liked the 'million hour part' Nov 21 15:31:59 literally a million hours Nov 21 15:33:41 worth it ! Nov 21 15:34:00 I'm currently re-writing it Nov 21 15:34:06 so did I tonyMontana9099 Nov 21 15:34:08 for the third time Nov 21 15:34:49 so, do you rely on the revenue from this app's sales or ... Nov 21 15:34:52 CallumTaylor: I think it looks pretty good, I may check it out later. Nov 21 15:35:05 Looney: no I have a full time job Nov 21 15:35:30 apart from maintaining this app you mean ? ? Nov 21 15:35:33 yes Nov 21 15:35:37 great Nov 21 15:35:39 thats nice Nov 21 15:35:45 I'm quite literally a full time developer heh Nov 21 15:35:57 and you make apps at your full time job Nov 21 15:36:02 been working on that app for over a year Nov 21 15:36:03 yeah Nov 21 15:36:04 or some other developemen Nov 21 15:36:16 android dev through and through, I work for http://3sidedcube.com Nov 21 15:38:46 on homepage there is a * on We are ready to help Nov 21 15:38:59 no disclaimer footnote found on page Nov 21 15:39:08 yeah the website is bad (i didn't write it) its like 4 years old now heh Nov 21 15:39:13 we need to find some time to re-do it Nov 21 15:41:45 guys, whenever I add a tab to the action bar inside onCreate Nov 21 15:41:49 the green looks good to my eyes Nov 21 15:41:58 actionBar.addTab(actionBar.newTab().setText("Contact Us").setTabListener(this)); Nov 21 15:41:59 lol you should see our office Nov 21 15:43:06 if (tab.getPosition() == 0) Nov 21 15:43:06 { Nov 21 15:43:07 myFrag f1 = new myFrag (); Nov 21 15:43:07 getFragmentManager().beginTransaction().replace(R.id.container, f1).commit(); Nov 21 15:43:07 } Nov 21 15:43:16 this is inside onTabSelected Nov 21 15:43:22 does it automatically get called ? Nov 21 15:44:06 i don't think so Nov 21 15:44:26 there should be a method to call setPosition or something which would then call that in the listener Nov 21 15:44:49 exactly. Nov 21 15:44:57 but it is getting called in here :/ Nov 21 15:45:35 can you paste the whole file into pastebin? Nov 21 15:45:43 yes, doing that mate. Nov 21 15:48:27 CallumTaylor there you go. Nov 21 15:49:29 ? Nov 21 15:49:49 http://pastebin.com/a390wYsb Nov 21 15:50:20 so what's the issue? Nov 21 15:50:31 does dex2jar translate dalvik VM bytecode in a .dex file to JVM bytecode? Nov 21 15:51:43 does this make the MyFragOne, MyFragTwo, MyFrag3 run at the beginning ? Nov 21 15:52:42 it'll instantiate myFragTwo Nov 21 15:52:45 well it should Nov 21 15:53:03 thats what I thought too, but apparently it does not. Nov 21 15:53:06 hm Nov 21 15:53:14 what's the output for tab.getPosition() Nov 21 15:53:23 or does onTabSelected not get called Nov 21 15:53:28 good question lemme check. Nov 21 15:53:32 CallumTaylor no it does. Nov 21 15:53:39 I do get whatever I should get. Nov 21 15:53:50 but with a progress bar which I cant get from where did it come. Nov 21 15:54:08 + I also get the myfragone and myfrag3 stuff running ( i can see in logcat, xml parsing stuff) Nov 21 15:54:41 um not sure about the progress bar stuff Nov 21 15:55:20 me either hehe Nov 21 15:55:47 lol Nov 21 15:55:53 trying to get the number wait Nov 21 15:57:23 well, apparently, it automatically selects the first tab whenever you create the action tab. Nov 21 15:57:28 oh Nov 21 15:57:41 so it is running whatever it is in there.. Nov 21 15:57:46 so i need to put a flag obviously.. Nov 21 15:58:10 might be worth doing a check if the fragment is empty Nov 21 15:58:31 if it is, load the default one, else do the current pos check Nov 21 15:58:43 actionBar.setSelectedNavigationItem(1); Nov 21 15:59:00 is there any other function you are aware to select a tab ? Nov 21 15:59:27 not that I know of, I rarely use the tab system to be honest Nov 21 15:59:35 oh okay Nov 21 15:59:42 its the first project I am using it too, so a noob lol Nov 21 16:01:50 hello guys, anyone managed to use AlignmentSpan.Standard to align a part of text inside a RadioButton? I'm trying to use it for right-align a portion of a string but it doesn't works. If I use another kind of Span (like bold) it works. Any idea? Nov 21 16:02:59 CallumTaylor how to check for the empty fragment ? and what purpose does it serve ? Nov 21 16:03:20 well if there isn't a fragment already, you can do the initial load of what ever fragment you want Nov 21 16:03:33 else i guess it'll just select tab 0 Nov 21 16:03:49 well, thats a way to go. Nov 21 16:10:50 does anybody know if ListFragment comes with a default progressBar and Loading text ? Nov 21 16:12:21 apparently yes. Nov 21 16:18:25 guys, how can I show progressbar inside the action bar from a fragment ? Nov 21 16:20:25 tonyMontana9099: https://github.com/scruffyfox/SwipeToRefresh/blob/feature/abc_support/src/net/callumtaylor/swipetorefresh/helper/RefreshHelper.java#L359 this might help Nov 21 16:20:41 i find the action bar and inflate a view into it Nov 21 16:21:06 If I try to create a bitmap from my surfaceview, I receive a black image, how can I fix this? Or is it possible to get a bitmap from the screen instead of doing it on a view? Nov 21 16:22:00 leme check scruffy Nov 21 16:22:36 thanks for the very short class :P Nov 21 16:22:47 tonyMontana9099, I would try something like this http://stackoverflow.com/a/9060543/321354 Nov 21 16:23:22 or if you want to use the standard action bar progress stuff then do ^ Nov 21 16:23:37 my class adds a horizontal progress bar to the top of the action bar Nov 21 16:23:54 CallumTaylor the standard would be more than enuf.. Nov 21 16:24:07 yeah do what rciovati suggested then Nov 21 16:24:09 however, rciovati, CallumTaylor does the link work from fragment ? im afraid it does not. Nov 21 16:24:21 call getActivity() in your fragment Nov 21 16:24:28 I did Nov 21 16:24:30 getActivity().setprogress.... Nov 21 16:24:42 you'll need to also set the window feature in your activity Nov 21 16:24:49 requestfeature must be called before setting content Nov 21 16:24:52 tonyMontana9099, getActivity.setProgressBar... Nov 21 16:25:13 guys, where should I do that ? Nov 21 16:25:25 getActivity().requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); Nov 21 16:25:25 getActivity().setProgressBarIndeterminateVisibility(false); Nov 21 16:25:45 gives : AndroidRuntimeException: requestFeature() must be called before adding content Nov 21 16:26:00 I am doing this inside onActivityCreated(Bundle savedInstanceState) Nov 21 16:26:01 no no Nov 21 16:26:11 call request windowfeature in your activity before setContent Nov 21 16:26:20 then call get activity.setprogres…. in your fragment Nov 21 16:26:35 okay lemme try Nov 21 16:27:58 same :/ Nov 21 16:28:09 wait. Nov 21 16:28:10 my bad. Nov 21 16:28:12 retryng Nov 21 16:28:49 done. Nov 21 16:29:10 works. Nov 21 16:39:46 tonyMontana9099, good Nov 21 16:46:53 Any idea how to fix this error when trying to use Java 7 sources? bad class file magic (cafebabe) or version (0033.0000) Nov 21 16:47:17 leslie: by not trying to use java7 for android. Nov 21 16:47:24 why not? Nov 21 16:47:33 leslie: because of bad magic. Nov 21 16:47:40 Android 4.4 claims to support it Nov 21 16:48:33 no it doesn't. Nov 21 16:48:44 the compiler can use some syntatctic shugar Nov 21 16:48:51 it won't load your Java7 bytecode files. Nov 21 16:49:03 well, I setup a new project in Android Studio, hit run, and it just doesn't work Nov 21 16:49:16 i have an edittext that loses focus and regains it immediately. the soft keyboard suggestions strip goes away and then pops back in. is there a way to suppress this? Nov 21 16:57:10 anyone know what might cause the padding to have no effect in my Map? https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/CameraUpdateFactory#newLatLngBounds(com.google.android.gms.maps.model.LatLngBounds, int) Nov 21 16:57:55 The link isn't parsing correctly, it is the newLatLngBounds function. Nov 21 17:00:59 BTW, I asked on stackoverflow my question above: http://stackoverflow.com/questions/20127089/alignmentspan-not-working-for-radiobutton-text Nov 21 17:06:41 funkbox no idea mate :( never occured to me. Nov 21 17:11:22 guys, any idea how can I add a textview (lets say, "error in connection") inside a ListFragment ? Nov 21 17:12:50 I want to accomplish the following : when there is no data (from the parser, due to an whatever error), do show show the list, rather show a textview that says retry later. Nov 21 17:13:34 https://developer.android.com/reference/android/widget/AdapterView.html#setEmptyView(android.view.View) Nov 21 17:13:41 tonyMontana9099, inside your ListFragment call setEmptyText(...) Nov 21 17:13:41 Look at empty view Nov 21 17:13:43 Hi, is there any way to keep webview from not reloading when i flip my phone? Nov 21 17:13:55 Dragonya, yes Nov 21 17:14:08 rciovati how? Nov 21 17:14:26 lemme check guys, thanks :))) Nov 21 17:14:44 Dragonya, sorry I read Activity. For WebView sorry I don't know Nov 21 17:15:00 well how would you do it for an activity? Nov 21 17:15:39 Dragonya, you add the following inside the activity tag inside manifest Nov 21 17:15:42 implement onSaveInstanceState/onRestoreInstanceState Nov 21 17:15:57 tonyMontana9099, no, don't do that Nov 21 17:16:10 configChanges give you a lot of troubles Nov 21 17:16:25 rciovati, it does. but its a nice way to get out of issues fast :)) Nov 21 17:16:32 onsaveinstancestate gives you more issues with webviews Nov 21 17:17:24 tonyMontana9099, try your app with "don't keep activities" flag on and take a look at the result Nov 21 17:17:45 CallumTaylor agree. Nov 21 17:18:00 CallumTaylor, as I said don't know for webviews Nov 21 17:18:11 well if your activity only has a web view then its irrelevant Nov 21 17:18:15 rciovati, isnt that option discouraged to use :P ? Nov 21 17:18:39 webview.savestate just doesn't work as it should Nov 21 17:19:08 tonyMontana9099, yeah but it recreates some conditions that can occurs. And in my experience some users use it and complains that your app doesn't works Nov 21 17:19:52 ohhh Nov 21 17:20:17 honestly, the other day I was goofin around with my phone in bed, I hit that option... I said from my mind "who the hack uses this..." Nov 21 17:20:40 btw, I have to give u the thumbs up for setEmptyText(...)... Nov 21 17:20:41 some users do Nov 21 17:20:55 worked like a charm.. Nov 21 17:24:07 ok so i tried with the onSaveInstanceState and when i flip the phone, the screen becomes blank instead of keeping the loaded page Nov 21 17:46:35 is it possible to test without having to restart the vm on each test? Nov 21 17:48:50 sure. Nov 21 17:48:56 close the app, and reopen it. Nov 21 17:49:06 lol im such an idiot Nov 21 17:49:15 Dragonya, dont say that. Nov 21 17:49:27 I've been restarting the VM for each test Nov 21 17:49:34 it was taking AGES to do testing Nov 21 17:49:35 sometimes, we are just too busy and overworkers, that we miss out on the basics. Nov 21 17:49:55 Dragonya, yes, the emulator is slow. way slow actually. Nov 21 17:50:04 Dragonya, what is ur pc specs u are using ? Nov 21 17:50:13 also, specs of the emulator play a role in being slow or no. Nov 21 17:50:14 oh its a badass gaming rig Nov 21 17:50:26 look at Genymotion Nov 21 17:50:37 CallumTaylor, have u used it before ? Nov 21 17:50:41 Yes Nov 21 17:50:44 I use it every day Nov 21 17:50:48 CallumTaylor, i never used it. I use the real device. better. Nov 21 17:50:58 CallumTaylor is it relatively much faster ? or just 'meh' faster ? Nov 21 17:51:04 Genymotion is better than a real device for functional testing Nov 21 17:51:15 because it uses the system resources Nov 21 17:51:34 its as fast as your computer is Nov 21 17:51:43 CallumTaylor link ? Nov 21 17:51:48 and, does it support push ? Nov 21 17:51:50 genymotion.com Nov 21 17:52:29 installing gplay http://t.co/8f1vA6KjVM Nov 21 17:53:04 does rotate restart the activity? Nov 21 17:53:11 yes Nov 21 17:53:24 so any saved strings are lost? Nov 21 17:53:35 correct Nov 21 17:54:09 Dragonya, unless you use onSaveInstanceState Nov 21 17:54:36 or use static saving like db, preference, which is not recomended for trivial stuff Nov 21 17:55:45 bleh Nov 21 17:55:47 this is a pain Nov 21 17:56:44 Dragonya, remember. If it was easy, everybody would do it. Nov 21 17:56:56 haha i guess so Nov 21 17:57:15 i suppose this is one of those professions where you really can't fake it Nov 21 17:57:24 CallumTaylor, I am creating a username/pass at the geny thing, i will give it a try, i watched the video, and it looked impressive. Nov 21 17:57:34 CallumTaylor, I will dl the software right ? Nov 21 17:57:51 Dragonya exactly. you either have a running software, or you dont. Nov 21 17:58:21 tonyMontana9099 sometimes i feel like programming is more about bugfixing than actually writing code Nov 21 17:59:18 Dragonya possible. but, if you are going to build something, you really have to write some code. Nov 21 17:59:31 current day programming is mainly standing on the shoulder of giants. Nov 21 17:59:49 meaning? Nov 21 18:00:04 i mean the shoulder of giants thingie Nov 21 18:01:48 that is, some people do the work (the hard one) and you contiue from there Nov 21 18:02:12 take java for example.. you just use it, to do stuff, inside for example eclipse.. which was written by others. Nov 21 18:04:18 did someone say Java? Nov 21 18:05:22 Dragonya: Sage wisdom says: to catch the unexpected Nov 21 18:05:38 do as you must as long as there is try Nov 21 18:06:03 * DarkSlay3r resumes his meditation Nov 21 18:06:09 DarkSlay3r in the house yoooo Nov 21 18:07:36 tonyMontana9099 ah but thats the march of progess Nov 21 18:08:47 *progress even Nov 21 18:10:57 Dragonya it is. Nov 21 18:11:11 I last year met a very senior java developer in my area, and we had a career talk. Nov 21 18:11:20 he said "its been 3 years I have not written a single line of code." Nov 21 18:11:51 then what had he been doing? o.O Nov 21 18:12:12 Maintenance Nov 21 18:12:17 I've been in that position... didn't really feel I was worth the money they paid me. Nov 21 18:12:21 most likely Nov 21 18:12:35 maintenance involves writing code Nov 21 18:12:39 TheTrash he said the same. Nov 21 18:12:45 He said I get paid a lot with less work. Nov 21 18:12:52 well, he writes some stuff when it is needed. Nov 21 18:12:53 I'd take that Nov 21 18:12:57 less work for more money is better Nov 21 18:13:02 But i thought if you do less work, you'll forget. Nov 21 18:13:06 that leaves more time for personal projects, or personal time Nov 21 18:13:12 pfn 100% Nov 21 18:13:18 pfn: Wrong! Nov 21 18:13:18 tonyMontana9099, just because you have less work doesn't mean you can't do other things Nov 21 18:13:19 pfn: I thought I'd feel that way... but I quit after 4 months. Nov 21 18:13:24 More time for reddit Nov 21 18:13:28 and Hacker news Nov 21 18:13:32 I don't read reddit or hn Nov 21 18:13:35 waste of time Nov 21 18:13:46 especially since fuckers on reddit can't be bothered to post summaries 90% of the time Nov 21 18:14:02 hehehehe Nov 21 18:14:04 I go there for cats Nov 21 18:14:10 im still in school, so i've told myself any job i get i'll be happy with xD Nov 21 18:14:17 Hacker news to stay upto date Nov 21 18:14:17 pfn you shouldnt quit hehehe Nov 21 18:14:19 prolly u got bored. Nov 21 18:14:39 if I quit a job, I quit because I find something better, or something is terrible there Nov 21 18:14:48 but not because I don't have anything to do Nov 21 18:14:57 HN and Reddit don't really lead to a fullfilling life, in the end. Nov 21 18:14:57 because I can always make up shit to do Nov 21 18:15:12 pfn probably they didnt allow to drink coffee hehehe Nov 21 18:15:15 pfn: tried that. Gets boring really fast. Nov 21 18:15:41 TheTrash: /. ? Nov 21 18:15:43 i thought the reason why most programmers chose to be programmers is that they might get lucky and make something that turns popular and makes you rich Nov 21 18:15:58 Dragonya, that is now. after the appstore. Nov 21 18:16:02 before that, it was not like that. Nov 21 18:16:11 Dragonya: i write code because i like to Nov 21 18:16:14 besides, you dont need to be programmer to be rich. you can hire a one. Nov 21 18:16:15 not for money Nov 21 18:16:23 most people write code because they love it. Nov 21 18:16:28 DarkSlay3r: let me rephrase... reading a handful of websites every day isn't a really fullfilling life. Nov 21 18:16:33 DarkSlay3r yea but surely you didnt start programming because you liked writing code? Nov 21 18:16:40 too shame, non programers never get this. Nov 21 18:16:50 Seriously... I did Nov 21 18:17:00 but thats a paradox Nov 21 18:17:03 i went into CS because i liked it Nov 21 18:17:08 i thought my salary would cap at $45k Nov 21 18:17:11 and i was fine with that Nov 21 18:17:14 how could you know you liked writing code before you started doing it? Nov 21 18:17:19 Dragonya, honestly, the reason i chose computer science at the university is because "it is one of the few majors that needs 0 budget, but allows you create many things" Nov 21 18:17:21 TheTrash: The daily mail? Nov 21 18:17:47 tonyMontana9099 ah.. I chose it because i get to create something from nothing Nov 21 18:17:48 Dragonya , you see it on TV, read about it, research. Nov 21 18:17:58 Dragonya, exactly. thats what I meant to say. Nov 21 18:18:03 and my advisor asked me this. Nov 21 18:18:07 Dragonya: i started by repairing customers (like Geek Squad, but local company) Nov 21 18:18:12 *repairing computers Nov 21 18:18:17 I expected it to be more like Minority Report :P Nov 21 18:18:20 I like science stuff Nov 21 18:18:30 she also said "if this is because you want to have your x's email password, you are at the wrong place" Nov 21 18:18:30 i started to learn you could automate repairs, like install 10 applications with 1 script Nov 21 18:18:33 I guess the salary cap is the biggest problem I have with coding for life. Nov 21 18:18:33 hehe, there is litterally nothing as fulfilling as the feeling of pride you get once you've finished a product :P Nov 21 18:18:38 there is nothing more science than a computer Nov 21 18:18:39 then i decided to go into CS because i saw there was a lot i didn't know how to do Nov 21 18:18:55 Second problem is having to code all sorts of boring stuff someone else wants you to write. Nov 21 18:19:07 lol TheTrash, yea that sucks Nov 21 18:19:40 TheTrash: yeah, if i ever got stuck in a full time programming position i would be scared about getting stuck making error dialogs or something Nov 21 18:19:53 hehehe, these are all normal guys. Nov 21 18:19:57 burmat: error dialogs would be fun. Nov 21 18:20:01 remember, you are getting for your time. Nov 21 18:20:01 It get's worse than that... Nov 21 18:20:05 Managing strings Nov 21 18:20:07 burmat: Try creating csv reports for everything Nov 21 18:20:08 like Nov 21 18:20:09 everything Nov 21 18:20:11 oh, the horror Nov 21 18:20:26 you're right. i hope i don't have nightmares tonight now. Nov 21 18:21:28 burmat relax lol u wont Nov 21 18:21:41 Has anyone done architecture compliance modifications? Nov 21 18:22:17 Where you basically rewrite stuff to comply with the UML drafts Nov 21 18:22:53 Hello! Nov 21 18:23:16 DarkSlay3r: I haven't, and I'd run like hell too. Nov 21 18:23:21 I want a TextView that has @mentions and #hashtags, but I handle the clicking of these links by myself, not by Linkify... Nov 21 18:24:58 public final static String EXTRA_MESSAGE = "com.example.myfirstapp.MESSAGE"; Nov 21 18:25:05 this string is to be used later in PutExtra() Nov 21 18:25:10 can i just put anything inside the "" ? Nov 21 18:25:24 anew yes. Nov 21 18:25:35 ok Nov 21 18:25:37 anew, except my mug. as i am drinking from it. Nov 21 18:25:37 thx Nov 21 18:25:41 lol Nov 21 18:25:45 DarkSlay3r: no Nov 21 18:25:52 DarkSlay3r: that sounds like a bad idea Nov 21 18:25:59 anew, and I hope by anything you mean any string. Nov 21 18:25:59 refactoring for the sake of refactoring Nov 21 18:26:13 tell that to software architects Nov 21 18:26:15 tonyMontana9099, can i just do EXTRA_MESSAGE = ""; Nov 21 18:26:18 leave it empty Nov 21 18:26:27 DarkSlay3r: i'd rather work at a place that doesn't have "software architects" Nov 21 18:26:43 anew, sure. Nov 21 18:26:53 i dont understand why this tut put all that other stuff in there then Nov 21 18:27:11 anew, does it have the keyword static before it anywhere ? Nov 21 18:27:27 yes Nov 21 18:27:28 public final static String EXTRA_MESSAGE = "com.example.myfirstapp.MESSAGE"; Nov 21 18:27:43 what is the name of the class this variable is created in ? Nov 21 18:27:55 MainActivity.java Nov 21 18:28:15 src/com.example.myfirstapp Nov 21 18:29:14 well, you can use this EXTRA_MESSAGE anywhere in your app by calling MainActivity.EXTRA_MESSAGE Nov 21 18:29:26 and most probably he is using it, hence he used this method. Nov 21 18:29:31 yes Nov 21 18:29:43 if i leave it "" i cant use MainActivity.EXTRA_MESSAGE ? Nov 21 18:29:56 You can't leave it empty, it's a key. Nov 21 18:30:03 yes you can. but MainActivity.EXTRA_MESSAGE will revert to "" whenever used. Nov 21 18:30:07 oh tonyMontana9099 said i coulc Nov 21 18:30:15 not null, but ""; Nov 21 18:30:30 that is, the variable will have a presence in the heap. Nov 21 18:30:39 and a reference to it. Nov 21 18:30:43 anew: extras are key / value. You store a value with a key, and later you can retrieve it with the same key. Nov 21 18:30:58 yeah but my question is, does it matter what the starting value is Nov 21 18:31:03 because later in the app i see Nov 21 18:31:08 Not really, just shouldn't be empty. Nov 21 18:31:10 intent.putExtra(EXTRA_MESSAGE, message); Nov 21 18:31:26 ok Nov 21 18:32:04 anew: you could just do intent.putExtra("thisIsMyString", message) all over the place. Making a constant out of it just prevents you from making typos in the key strings. Nov 21 18:32:07 * alankila considers a lot of that namespacing and constant declaration stuff to be waste of time. I prefer intent.putExtra("msg", message) style code. It will work just the same, and you can clearly see that it means "msg", and it's hard to mistype Nov 21 18:32:14 * alankila is also a lazy git Nov 21 18:32:27 I don't really see the added value of namespacing it either. Nov 21 18:32:32 yeah Nov 21 18:32:33 ok Nov 21 18:33:00 I wouldn't even call it lazy, it's adding complexity. Nov 21 18:33:12 it has its place in APIs, I think, but when you're doing both ends of the shit, it doesn't really matter that it's done according to the book Nov 21 18:33:38 or well, that it's NOT done Nov 21 18:33:40 TheTrash I have seen it in other tutorials too. Nov 21 18:34:29 in general I prefer enums over string constants anyway where you need one like that Nov 21 18:35:11 alankila might be overhead in some trvial cases. donno. Nov 21 18:35:11 Yes, agreed, but enums can't go into intents. Nov 21 18:35:19 exactly. Nov 21 18:35:25 maybe the term overhead was not correct. Nov 21 18:36:10 Ok so i realize that i have the unpopular opinion here Nov 21 18:36:12 yeh not on android Nov 21 18:36:27 DarkSlay3r: which one? :P Nov 21 18:36:39 i wouldn't use enums Nov 21 18:36:45 I prefer the string constants Nov 21 18:37:24 I'd use the string constats too. Nov 21 18:37:39 as long as they do the job, why bother doing other stuff. Nov 21 18:37:41 Why? It's more work. Nov 21 18:38:20 There's the minor argument that enums could easily be more efficient and are naturally typo resistant, and have had longstanding support for use in switch-case statements ... but it's not a serious argument that I'm advancing here. Nov 21 18:38:29 After we finish this Holy War, I'm curious about options for representing what is, essentially, an enum in SQL. I've started using an enum, and storing it as the string version (.toString() and .valueOf()), but I'm still not entirely comfortable that there isn't a better way out there. Nov 21 18:38:38 Just see enums as generally more proper than string constants, or OR'ing flag combinations. Nov 21 18:38:57 alankila, +1 for typo resistance. Nov 21 18:39:06 but so do final Strings so.. same same imo. Nov 21 18:39:11 xalbo: alternative is to store them as ints... that of course has its drawbacks as well. Nov 21 18:39:15 xalbo: I believe your only option is either ordinal value, or the string value. I, personally, choose string value every time. Nov 21 18:39:32 It'll never be perfect, probably. Nov 21 18:40:00 JPA supports @Enumerated(EnumartionType.String) or some such shit so your bo's can have enums quite naturally Nov 21 18:40:07 conversions happen behind the scenes Nov 21 18:40:27 Yeah, my last app I stored the ordinal value. It's probably more efficient that way, but after I had to debug the SQL too many times I realized it wasn't worth it. Thankfully I never had to reorder things, though. Nov 21 18:40:35 when it comes to raw SQL, you're probably stuck with valueOf because JDBC didn't have any enum-getting/setting facility. Nov 21 18:40:53 I wish database devs and programming language devs finally talked to each other and added real enums to databases. Nov 21 18:41:13 I'm not familiar with JPA. Nov 21 18:41:21 I thought oracle would have done that when they bought Java Nov 21 18:41:57 I personally do not have much faith in the ORM stuff Nov 21 18:42:19 I've been experimenting with just pure bare-bones ORM-like stuff and doing direct SQL queries by a couple of helper functions that make it less of a pain... Nov 21 18:42:26 Oracle's acquisition of Sun went a bit like this: "Let's buy Sun!" "Ok, now we have it, what do we do now?" "Dunno". Nov 21 18:42:37 Meaning I wrote my ORM myself and most work is done by simple query(sql, Object... parameters) function Nov 21 18:42:44 String sql that would be Nov 21 18:43:01 TheTrash: iLaughed Nov 21 18:43:09 JPA is alright, once you figure out the quirks. Nov 21 18:43:33 using JPA annotations and checking them so that if someone does SimpleDAO.find(Foo.class, 1), it introspects Foo on the spot and finds the column annotated by @Id and writes the query in such a way that it selects all the values etc. Nov 21 18:43:35 Definitely less work than rolling your own stuff. I've tried, and whatever I wrote, I was always "JPA already does this". Nov 21 18:43:43 it's almost as good as hibernate for me :-/ Nov 21 18:44:12 also not handling foreign key refs is much simpler. Nov 21 18:44:15 Yeah, so you rewrote Hibernate :P Nov 21 18:44:22 in 150 lines of code :-p Nov 21 18:44:45 but I'm not peddling this seriously, just kind of saddened by the awful state of ORMs and how much pain all of them are Nov 21 18:44:52 I do not know where you people get all this knowledge from damn it Nov 21 18:45:01 to the point that fucking braindead implementation like mine is pretty much just as good as far as I'm concerned Nov 21 18:45:14 Is there like a secret website or something? Nov 21 18:45:24 what the hell did i miss? Nov 21 18:45:24 DarkSlay3r: heh, just a few years in the field. Nov 21 18:45:26 I feel like I have so much boilerplate, converting between SQL tables, ContentProviders, Activities that are just a form for changing a field, and Objects that are each a row in a table. Nov 21 18:45:52 Yes, it's quite boring. Nov 21 18:46:17 I'm contemplating selling vegetables instead (not 100% non-serious). Nov 21 18:46:24 At least I'll get to talk to people. Nov 21 18:47:13 I tried selling vegetables once Nov 21 18:47:17 I kind of thought about going into starting a restaurant business because I was sick of programming too Nov 21 18:47:37 I'm well on my second decade of this crap commercially and I got to admit that it has lost most of its veneer of shine Nov 21 18:48:05 it's just same awful crap year in year out. Not that I mind, I'm very stoic in that way, it's just definitely not something that I could get much kicks out of anymore Nov 21 18:48:26 it's just work. Works finance hobbies. If you have cheap hobbies, you can minimize work-time too. Nov 21 18:48:36 * pfn shrugs Nov 21 18:48:38 * pfn enjoys programming Nov 21 18:48:48 have for almost 20 years now Nov 21 18:49:03 I want to be pfn so badly right now Nov 21 18:49:17 I've enjoyed java programming the most so far. Maybe I've just been stuck with utter shit... Nov 21 18:49:21 liars Nov 21 18:49:22 On the whole, I enjoy programming too. All of my Android dev work *is* just a hobby. Nov 21 18:49:24 too bad i'm just self taught coding in my bedroom Nov 21 18:50:16 a mature system that doesn't have a whole lot of warts that make every normal simple thing painful. That is what java is for me. Nov 21 18:50:39 but it's the sort of thing a *lot* of people would look at and think that's a ridiculous claim, they'd go and say the exact opposite. Nov 21 18:50:41 ^ but makes complex things a lot easier Nov 21 18:51:00 No no no it's not complicated Nov 21 18:51:07 It's just mature Nov 21 18:51:43 it sucks for web ui Nov 21 18:51:48 I like it enough for it to still be my tool of choice, but there's certainly a whole lot I have to do myself that the language or tools should just do. Nov 21 18:51:50 like, i haven't found a web framework in java that i've liked Nov 21 18:52:00 I use wicket on java for web stuff Nov 21 18:52:01 jbraeg: tried Play? Nov 21 18:52:13 Java was never designed for the web Nov 21 18:52:14 I kind of like it though it is by no means optimal Nov 21 18:52:17 no TheTrash, that's what i'm going to look at next Nov 21 18:52:21 Play is the scala framework? Nov 21 18:52:25 alankila, I don't enjoy java programming :p Nov 21 18:52:33 wicket makes applications on the web feel like they were normal desktop applications Nov 21 18:52:38 I don't like wicket Nov 21 18:52:40 jbraeg: well yeah, but works reasonably well with Java. Nov 21 18:52:42 tried it a few times over the years Nov 21 18:52:46 it gives you the illusion that object members stay around as long as the browser is navigated on the same page Nov 21 18:52:46 and it feels all wrong writing it Nov 21 18:52:47 alankila: i've used wicket, i didn't like it so much Nov 21 18:53:05 i would hate java programming if it weren't for intellij Nov 21 18:53:08 user may press a button and that fires an all new http request and so on, but server-side, it feels like that same class instance that generated that page got invoked to handle the press Nov 21 18:53:27 this feature excuses pretty much every fault wicket can have for me Nov 21 18:53:39 it is actually possible to compose unrelated things together into one page and have the whole thing just work Nov 21 18:53:56 one of the main features of wicket is that it's spposed to make it easier for designers to work with templates Nov 21 18:53:59 I never found that to be the cas Nov 21 18:54:00 they say it's a component web framework, somewhere. This is what they mean. Nov 21 18:54:14 hello. how can i force the build system to regenerate out/dist/build.prop ? Nov 21 18:54:26 redondos, rm out/dist/build.prop; make Nov 21 18:54:26 ? Nov 21 18:54:34 that didn't do it Nov 21 18:54:55 basically I want ro.build.version.incremental to update every time I build Nov 21 18:54:59 yeah, wicket's templates are just xml documents ... I don't think there's that much designer friendliness, though I can see that it kinda-sorta works Nov 21 18:55:35 for instance if you have a repeating element, the designer should just design one row of the data and then you pepper the repeating row + other stuff with the wicket:id crap. I guess I can see that there could be more tool "purchase" into that sort of responsibility split Nov 21 18:55:53 there's generally very few magical tags, most pages just have wicket:id's Nov 21 18:56:32 sadly, wicket is forced to rewrite the actual xml id of an element if it occurs within a panel or some such component, so some CSS can break as a result Nov 21 18:58:54 the other thing that I actually hope java help for is wicket models Nov 21 18:59:14 they are basically promises to reference to a value at some later time. Model's purpose is to act as a generic container that can fetch the data from some underlying storage object Nov 21 18:59:42 you end up writing a lot of those, though many simple cases like array indices, or hashmap keys, or object properties have generic accessors Nov 21 19:00:26 I really would like it if it was possible to write, say, #foo.bar to reference object's foo bean property bar, rather than say 'new PropertyModel(foo, "bar")' Nov 21 19:00:49 property references would be great. And wicket could probably use java.lang.reflect stuff instead of these models a lot of the time. Nov 21 19:01:20 anyway, end of that. I do like wicket, it has made writing for the web humane for me. Nov 21 19:02:14 That's what Play did for me... at least temporarily. Nov 21 19:03:35 public static Result whatever(){ return ok("hi!"); }, add a route to the routes file (this is compiled), run. Nov 21 19:04:09 sounds kinda like another ruby-on-rails inspired framework. Nov 21 19:04:17 It is, kind of. Nov 21 19:04:28 Though the 1.x version was much more so. Nov 21 19:04:32 java's downside is that there tends to be a code generation step involved because the language lacks sufficient dynamicness Nov 21 19:05:14 some of the more adventurous code generators are actually executing on runtime. Like, there exists a class that can take List of elements and construct an object that invokes a method on all the objects in that list. Nov 21 19:05:30 so you write something like forEach(foo).something() where something is a method declared on the class of foo.get(0) Nov 21 19:06:00 alankila: well, Play's templates are a compiled DSL that supports most of Scala, so you can actually do that in Play. Nov 21 19:06:07 I guess it beats spelling out a for loop for some people Nov 21 19:06:42 If my app has a reminder, is the proper Android way to use a notification for that? Nov 21 19:10:24 on this one why does he do keyboardHidden and keyboard? http://stackoverflow.com/questions/11121094/how-save-webview-when-screen-orientation-was-changed Nov 21 19:11:16 bdbaddog: makes sense, unless you have specific requirements for your reminders that don't fit the framework (but you'd better have a good reason not to use it). Nov 21 19:11:50 The remidners are "do you have any new information to report?" click on that should bring up the app. Nov 21 19:12:56 Dragonya: I beleive because if there is a physical keyboard, the orientation will automatically switch to landscape. this prevents that behaviour Nov 21 19:13:12 Dragonya: it's for physical slide-out keyboards (/me weeps about the death of qwerty sliders) Nov 21 19:13:36 I miss my D1 and D3. those things were fantastic devices. Nov 21 19:13:38 TheTrash would this be neccesary to include? Nov 21 19:14:01 http://developer.android.com/guide/topics/manifest/activity-element.html#config Nov 21 19:14:10 If it's necessary for you to include the behavior. Nov 21 19:14:43 scratch that, the damn thing didnt work, it still reloads the page when i rotate Nov 21 19:16:25 Dragonya: what happens if you remove the onConfigurationChanged method? Nov 21 19:16:36 Or at least don't call super. Nov 21 19:18:03 Also make sure there's nothing in onResume, etc., that's causing this. Nov 21 19:18:05 TheTrash it still resets the page Nov 21 19:18:41 If you add that line to the manifest, onCreate() shouldn't get called, but the rest of the lifecycle stuff is still called. Nov 21 19:19:00 If onCreate() is still called, you're doing it wrong :P Nov 21 19:19:06 oh Nov 21 19:19:12 yea im still calling onCreate Nov 21 19:20:01 but where will the app start if there is no onCreate() ? Nov 21 19:20:18 there is always an oncreate Nov 21 19:20:32 It will go through onCreate() when the activity is started... just not when it's rotated, if you add that manifest thingy. Nov 21 19:21:00 What normally happens during rotation: activity gets destroyed, new one is started, just as if the user first moved to it. Nov 21 19:21:18 What overriding it does: not call onCreate() during rotation. Nov 21 19:21:32 i must be doing it wrong Nov 21 19:21:46 POssibly Nov 21 19:21:54 Or likely, since it's not working :P Nov 21 19:24:45 Hmmmm... Nov 21 19:25:05 TheTrash problem, i think, is that im trying to get it to keep a 2nd page (after clicking link) when i rotate. If i dont click any links, it seems to work fine. Nov 21 19:25:48 Hi. I'm not sure my question is covered by the channel topic. Would it be appropriate to ask for websites where I could hire Android developers in Germany? Or would that be advertisement for a job? Nov 21 19:26:43 I guess you just asked it anyway, heh. Nov 21 19:26:54 That would not be appropriate Nov 21 19:27:13 Okay, then I won't ask. :) Nov 21 19:28:09 Would it be okay to ask for a place where it would be okay to ask? If not, is there any level of indirection that would lead from this channel to the answer? Nov 21 19:28:30 Maybe try stackoverflow Nov 21 19:28:57 Or post on news.ycombinator.com, if you're a hip startup. Nov 21 19:29:21 Okay thanks. Nov 21 19:31:31 Now, for something completely different: I'm dealing with images which might be large but it should be possible to open them instantly. If I simply preload them I might run into memory issues. So I thought that maybe I should keep mipmaps of them in storage and only load those (i.e. half resolution, quarter resolution and so on). Also, I need reference counting on those images since they might be linked in multiple places but can Nov 21 19:31:32 be deleted once they are no longer linked anywhere. Is there something that helps me with this, or should I implement it all by myself? Nov 21 19:32:52 My hope is that quickly displaying large images is such a common task that somebody already did this in an awesome way. Nov 21 19:40:03 i'm confused, wasn't gradle always used to make ? https://plus.google.com/+AlexRuiz/posts/C7MGeDw7hCW Nov 21 19:40:25 no Nov 21 19:40:31 or it shouldn't have been... Nov 21 19:41:08 oh, that's nice Nov 21 19:41:35 How usable is Studio at this point? How complex can an app get before you run into shortcommings? Nov 21 19:41:41 hmm, moto x dev edition has factory images now, meh, they should just unlock the bootloader then Nov 21 19:41:51 and no. I think that's what caused a lot of the build issues with AS - because gradle and idea sometimes had different ideas of how it should be built Nov 21 19:41:53 for all moto x Nov 21 19:42:36 RedNifre i'm going to have to reread this a few more times to let it sink in; if i'm still confused i'll ask more :) Nov 21 19:42:45 oops sorry RedNifre , that was to JesusFreke / pfn Nov 21 19:43:25 Phew, for a moment there, both of us were confused! Nov 21 19:43:29 AS has used 'Make' to build Nov 21 19:50:19 another puzzling (for me) announcement: mathematica on the rpi O.o Nov 21 19:51:30 "Future Raspbian images will ship with the Wolfram Language and Mathematica by default" Nov 21 19:52:08 quick question, should i ever mess with the R.java file? Nov 21 19:52:19 hm, so is the wolfram-engine some library one can license and even say use on android, maybe through the ndk ? Nov 21 19:52:34 Dragonya no Nov 21 19:55:42 so JesusFreke / pfn , when was older AS using the regular 'Make' ? I got the impression, maybe if i was editing a file gradle was not involved in that, but I did notice once in a while where i would edit file X and then file Y would not pick up the changes - is that what this solves ? Nov 21 19:56:16 g00s: afaik, it was just using the internal intellij build system Nov 21 19:56:41 O.o i thought it was using gradle :O Nov 21 19:56:48 but take that with a grain of salt. I haven't really looked into it :) Nov 21 19:56:55 heh Nov 21 19:57:06 I'm pretty sure it wasn't using gradle to actually perform the build. (but not positive) Nov 21 19:57:34 rather, it was keeping the AS project and the gradle project in sync, so you could build with either. (as I understand it) Nov 21 19:57:49 (weasel word weasel word) Nov 21 20:00:14 i thought it was using gradle to perform the final build, but using as for more finer gran / incremental tasks Nov 21 20:00:23 finer grain Nov 21 20:00:36 oh wells Nov 21 20:02:08 The latest design for an app has a semitransparent ActionBar that can be scrolled beneath Nov 21 20:02:16 Should I use ActionBarSherlock or fake it? Nov 21 20:02:29 the action bar supports that... Nov 21 20:03:00 Mmm? couldn't find a reference, I must be google-dumb Nov 21 20:03:06 Thanks Nov 21 20:12:55 look for overlay Nov 21 20:13:01 it's called an overlay action bar Nov 21 20:13:49 Is there any way I can have instrumentTest resources with the Gradle build tools? Android Studio (IntelliJ IDEA 13) does not recongnize stuff I put under instrumentTest/resources as resources. I can't even tell it that they are resources. Help! :) Nov 21 20:14:13 Sorry, instrumentTest/res Nov 21 20:14:44 Hmm... I might have done it with instrumentTest/resources. Lemme see, I may only be an idiot. :D Nov 21 20:16:09 Nope, does not recognize them. Nov 21 20:18:53 JakeWharton, thanks, got it working! Nov 21 20:18:59 Huh. gradle assembleTest puts the resource file into build/res/all/test/values/values.xml, but AS does not recognize it. Nov 21 20:19:20 what characterstyle do I use to color some text? Nov 21 20:19:31 stdim: use res, not resources Nov 21 20:19:33 I see a BackgroundColorSpan Nov 21 20:19:46 JakeWharton: yep :) Nov 21 20:19:47 ForegroundColorSpan Nov 21 20:19:49 oh derp, Nov 21 20:19:52 Yea, thanks! Nov 21 20:20:01 OH! the R is PACKAGE_NAME.test.R :D Nov 21 20:20:28 JakeWharton: Also, thanks for ABS! :D Nov 21 20:21:49 JakeWharton: is there a ClickableForegroundColorSpan? Nov 21 20:22:04 i doubt it, but you could write one Nov 21 20:22:10 stdim: i'm glad it's useful to you! Nov 21 20:24:29 good afternoon everyone. I'm the pressureNET dev and I'm trying to debug Nexus 5 sensor crashes after a period of time. Does anyone have experience with this? Nov 21 20:24:54 In logcat, I sometimes see "Sensor Event is null for Sensor", but never on the N5, only on the N4 Nov 21 20:25:18 additionally, the issue seems to crash ALL sensors in the device, and it seems to happen after background barometer apps run for a while Nov 21 20:28:08 I've a problem. When i rotate my screen the url i recieved from the previous activity is lost, and therefore the screen turns blank Nov 21 20:29:43 g00s: Doesn't Mathematica on the pi fit in line with the whole "it's for education" thing? Nov 21 20:30:04 sure, i didn't think it had the kutzpah to run it though Nov 21 20:30:43 Being painfully slow is the most important lesson. Nov 21 20:30:51 (for any product, not necessarily that) Nov 21 20:34:41 hey guys Nov 21 20:35:10 Is there any good way to find out which files in a certain folder changed since last run of the app? Nov 21 20:35:21 (without having it running in the background) Nov 21 20:35:31 Gumboot i hope some day to get an individual license, i think they are around $300 Nov 21 20:35:37 I read about FileObserver but I fear it detects only momentary cahnges? Nov 21 20:36:23 wolframalpha is about the extent of my experience with it. Nov 21 20:36:34 Which is something I do find quite handy. Nov 21 20:37:04 pfn did you see http://www.androidpolice.com/2013/11/21/motorola-wises-up-stops-voiding-warranties-on-developer-handsets-for-unlocking-will-start-hosting-factory-images/ Nov 21 20:37:05 stdim, why would you put them in "resources" it looks for assets Nov 21 20:37:17 g00s, yes, but I'm not on a DE devic e :( Nov 21 20:41:28 pfn: Dunno, I am an idiot apparently. :) Nov 21 20:49:19 pretty fascinating about the GCM IDs http://www.androidpolice.com/2013/11/20/google-engineer-dan-morrill-sheds-some-light-on-the-nexus-ota-process-urges-you-to-never-clear-google-service-framework-data/ Nov 21 20:49:32 i have to admit, i'm one of those that would probably have cleared that out :D Nov 21 20:50:15 "some apps use the GCM ID as an ID on their own server" i've never done it, but seems like it has to be handled carefully Nov 21 20:50:30 dan morrill is the funny guy Nov 21 20:50:58 this is also crazy tool about the induction charger http://www.androidpolice.com/2013/11/21/bug-watch-wireless-chargers-cause-freak-crashing-on-android-4-3-with-the-latest-google-play-services/ Nov 21 20:51:04 Can anyone tell me why its showing up blank when i rotate the phone? http://pastebin.com/za8KV64t Nov 21 20:51:25 now i wonder, when induction charging is going on, what Intent comes back from the power manager Nov 21 20:51:48 BatteryManager.BATTERY_PLUGGED_AC ? Nov 21 20:52:04 probably not BatteryManager.BATTERY_PLUGGED_USB Nov 21 20:53:17 ah, it would have to be BATTERY_PLUGGED_WIRELESS Nov 21 20:53:40 g00s: yeah. I was going to say I've seen things that know you're being inducively charged Nov 21 20:53:44 hm, so thats API 17; if your behavior changes if you're plugged in - and not checking that flag, hmm Nov 21 20:55:19 OK so I got thsi to work, but a connectedInstrumentTest gives me errors like ndroid.content.res.Resources$NotFoundException: Array resource ID #0x7f040000, on resources in test.R. Nov 21 20:55:41 Why? :/ Nov 21 20:55:53 gdrc i was going to clear Play Services data, etc , since it still seems to be taking most of my battery Nov 21 20:56:02 thought it worth a try Nov 21 20:58:42 Can one overdo it (performance wise) with styles? I like to create a style for almost anything I display... Nov 21 20:59:51 At some point it gets annoying to maintain Nov 21 21:00:42 I mostly just put stuff in styles I want to change based on configuration.. Or if I'm using the same style for stuff in several layouts Nov 21 21:01:01 Creating a style just to create a style doesn't add any value Nov 21 21:02:58 when you start another activity, will the parent activity be paused or keep running? Nov 21 21:03:40 SimonVT: I see... well these are all generally reusable / easily-themable views I use so I guess it's OK. Nov 21 21:05:07 yy: Starting an activity puts that activity in the foreground: https://developer.android.com/images/activity_lifecycle.png Nov 21 21:05:17 If the activity is not transparent, your activity is no longer visible Nov 21 21:06:32 Thanks Nov 21 21:07:49 can you step into the android library source in AS? Nov 21 21:08:21 or easily view the source via ctrl-click Nov 21 21:08:34 so far all I see is compiled summaries of the classes Nov 21 21:09:26 Someone? http://stackoverflow.com/questions/20131911/instrumenttest-resources-with-android-gradle Nov 21 21:16:25 man, battery life on moto x is best ever Nov 21 21:16:37 yeah? how good is it? Nov 21 21:16:39 1 day, 6 hours on battery and 1 hour of screen on, and my phone is still at 34% Nov 21 21:16:45 1h15minute screen on Nov 21 21:16:54 nice Nov 21 21:16:58 wait, you mean 18 hours, or 30 hours? Nov 21 21:17:00 I apparently plugged it into the wrong usb cable last night Nov 21 21:17:05 haha Nov 21 21:17:06 1 day, 6 hours Nov 21 21:17:10 so 30 hours Nov 21 21:17:17 not too shabby Nov 21 21:17:23 30 hours off charger, + >1hr of usage, and 34% battery left Nov 21 21:17:34 I plugged it into the usb cable that wasn't plugged into the wal... Nov 21 21:17:40 hah! Nov 21 21:17:53 well, pretty shabby, considering the battery life of the flip phones of yesteryear, but for a smartphone... Nov 21 21:18:13 pfn, only 1 hr of screen on? Nov 21 21:18:15 I'm trying to make an irc client app, and I need some advice on how to maintain the tcp connection. should I have a background task listening to responses from the server? Nov 21 21:18:18 pfn: you should set the "usb plugged in" sound to something loud Nov 21 21:18:28 Mavrik, yeah, only 1hr, I didn't use it very much yesterday until now Nov 21 21:18:31 mhm Nov 21 21:18:42 I get something like that with my One too Nov 21 21:18:43 I use it a lot more on weekends, but not much during the week Nov 21 21:18:47 since I'm always at my computer anyway Nov 21 21:18:51 sadly... as soon as I start to use it it goes to hell :/ Nov 21 21:19:13 supposedly people are getting like 5-6hours of screen on + 8 hours of off charger Nov 21 21:19:17 which sounds nuts... Nov 21 21:19:47 so, in summary, I like my moto x a lot, I just wish the bootloader were unlockable Nov 21 21:19:56 I really don't want to have a dev edition device just to unlock bootloader... Nov 21 21:20:01 :/ Nov 21 21:20:07 that is absolutely my only complaint against the moto x Nov 21 21:20:38 can some one tell me how i can change the layout to display different information on the same activity via button click? Nov 21 21:21:15 lots of ways, re-set the content view, add a new view to the layout, change the visibility of a view in the layout Nov 21 21:21:16 etc. Nov 21 21:21:21 add and remove fragments Nov 21 21:21:36 goddard: Use fragments if you need to change a lot of things. Nov 21 21:21:58 im still so stumped on this stupid retrofit/endless adapter thing :( Nov 21 21:23:09 active display and speech commands are the best thing ever Nov 21 21:23:22 ok im gonna get icecream, then come back Nov 21 21:23:29 see if i can get it thehn Nov 21 21:23:44 it's sad that the moto x isn't more popular Nov 21 21:24:57 well Nov 21 21:25:45 when I tried to get one they told me they have no intention of bringing it to EU Nov 21 21:25:54 that's pretty disappointing Nov 21 21:26:01 not really a wonder it's not selling :) Nov 21 21:26:25 i think the moto x sold about 500K units Nov 21 21:26:57 that's what the tech blogs say Nov 21 21:27:09 also, the moto x marketing is so much weaker than galaxy and iphone Nov 21 21:27:09 stdim: ok ill search for that Nov 21 21:28:54 there can only be so many android phones; i think its pretty crowded scene Nov 21 21:29:25 well honestly Moto X didn't carry all that much of an upgrate to the dirt-cheap Nexus 4 Nov 21 21:29:49 with S4/One/Nexus 5 out there it's even a worse proposition Nov 21 21:30:41 Got fed up waiting for N5 availability in Norway, flashed KitKat on N4 and got no transparent status bar. Yeah, guess I need a 1337 device for such fancy things! Nov 21 21:31:17 kjeldahl is that just the Now part of launcher ? Nov 21 21:31:53 Eh? Nov 21 21:31:56 there was some thing special to the n5 can't remember Nov 21 21:33:07 kjeldahl, you just need the N5 launcher. Nov 21 21:33:09 or Nova. Nov 21 21:33:59 Mavrik: Ok, and that's the apk I need to sideload to active the stuff in the search apk? Or is it a regular package in Play Store? Nov 21 21:34:07 activATE Nov 21 21:35:20 kjeldahl, Nova Launcher Beta is available via G+ communities Nov 21 21:35:34 kjeldahl, Nexus 5 launcher needs an additional APK which was published on AndroidPolice Nov 21 21:36:47 Mavrik: Ok, thanks, I remember reading about it. They really are chopping all the Android stuff into lots of pieces... Nov 21 21:38:17 Uhhh.. If I have a Uri: "com.foo.bar.baz://whiz" shouldn't .getPath() return "whiz" ?? Nov 21 21:38:28 Cuz Its Not ;D Nov 21 21:38:39 to be fair, whiz is actually "@whiz" Nov 21 21:39:05 hello I have a problem and I don't know why I am getting the error..the problem is in line 275: http://pastebin.com/uNhkeYp6 Nov 21 21:39:30 Hey Guy I'm trying to stop my listview from duplacating new entries any help? http://pastebin.com/gVdcEstb Nov 21 21:39:54 t4nk809: lol there is no line 275 in your paste Nov 21 21:40:14 burmat: haha Nov 21 21:40:23 oh sry I mean line 117 Nov 21 21:40:48 when I use the code from line 121 to 124 it works Nov 21 21:40:49 MrMeTooo: I already told what you needed to fix, didn't I? Nov 21 21:40:51 I dont know hy Nov 21 21:40:56 *why Nov 21 21:42:10 I'm new to Android development environment. I'm watching the adb log and my application is getting an error: Error calling method on NPObject Nov 21 21:42:12 wtf Nov 21 21:42:40 howdy - I'm back to trying to transcode videos in my app Nov 21 21:42:47 I implemented that still with the same results based on what I implemented and researched that just makes my listview more effective frames per sec Nov 21 21:42:53 new Uri("com.foo.bar.mention://@explodes").getPath() => null // Why is this Nov 21 21:43:02 t4nk809: should it be %.2f, not %0.2f? Nov 21 21:43:10 i mean, idk, I'm asking. Give it a try Nov 21 21:43:11 explodes Nov 21 21:43:25 burmat: I will try it out Nov 21 21:43:27 do you folks know of any good libraries for that kind of thing that are already generally put together for android? Nov 21 21:44:31 t4nk809: Yeah, that *should* fix it. If not, dump the trace that is occurring Nov 21 21:44:52 burmat: yeah thx it works now but why? I thought it should be %0.2f? Nov 21 21:45:28 ideally, I'd just somehow write code to replicate int main() in ffmpeg.c, but I'm not sure how feasible this is Nov 21 21:46:28 with the convertView == null implemented it still duplicates entries Nov 21 21:46:30 burmat: can you pls tell me why "%0.2f not wkring? Nov 21 21:46:36 *not working Nov 21 21:47:05 MrMeTooo: Is that the real data that you are using? You may have duplicates in your data Nov 21 21:47:12 omg Nov 21 21:47:16 i got the rotation to work Nov 21 21:47:29 instead of overriding half the API i just made it go into a new activity when a new page loads Nov 21 21:48:31 t4nk809: you best read the docs and take this with a grain of salt, but from my understanding everything after the % is the variable passed into the formatter method and I think that the 0 throws a a formatter exception Nov 21 21:48:55 well, I know that it does given the problem you were having Nov 21 21:49:36 as to what constitutes the proper syntax for formatting arguments, the docs or maybe someone in here might be able to help you out more. Nov 21 21:49:38 burmat: yeah you are right it throws a formatter exception...but I have used "%0.2f" before and now I have just implementet a seekbar to change the value Nov 21 21:49:56 burmat: why did it work before Nov 21 21:50:10 explodes Yes...its simple really take the bundle of 1 edittext and 2 spinners in one activity to the receiving bundle in the other activity ...and set the text of the layout Inflator to those values Nov 21 21:50:30 t4nk809: sorry : ( wish I understood it a little more, I have never used a %0.* before, it has always be %.*, if i had more time I would read the docs myself to try and help you out Nov 21 21:50:33 Everything is dynamic Nov 21 21:50:50 burmat: ok no problem, thank you very much Nov 21 21:51:24 for those who dont know what we are talking about http://pastebin.com/gVdcEstb Nov 21 21:52:37 Hellooo guys :) Nov 21 21:53:52 I have this question 3 website's nobody got it yet Nov 21 21:54:24 how can i get the width/height of a view on the screen? Nov 21 21:54:32 getWidth(), getHeight() Nov 21 21:54:43 ive got a scrollable view that getWidth()/getMeasuredWidth() report 7000+ Nov 21 21:54:44 nebkat: DisplayMetrics and ^ Nov 21 21:55:16 it seems like it could be a 4.4 bug, getWidth() always returned the right width previously Nov 21 21:55:39 nebkat: SO answer: http://stackoverflow.com/a/4744499/586859 Nov 21 21:55:52 make sure you don't run it until onCreate() is 100% done Nov 21 21:55:57 4.4 caches measurement calls Nov 21 21:56:03 Hey JakeWharton :)) Nov 21 21:56:13 SO http://stackoverflow.com/questions/20052735/android-listview-duplicates-entries Nov 21 21:56:35 Hello to the rest of you guys (and girls) too! Nov 21 21:56:41 burmat: width of the view in parent view, not the screen width Nov 21 21:56:54 nebkat: oh, sorry. I misunderstood Nov 21 21:56:55 JakeWharton: how does it ever come up with 7000+? Nov 21 21:57:17 are you measuring the ScrollView or it's child? Nov 21 21:57:53 its the 4.4 launcher Nov 21 21:57:57 hello, can you generate an android app that exposes all android API? Nov 21 21:58:03 PagedView Nov 21 21:58:04 that uses all of API Nov 21 21:58:18 looks like i found something Nov 21 21:58:18 // Convenience methods to get the actual width/height of the PagedView (since it is measured Nov 21 21:58:18 // to be larger to account for the minimum possible scale) Nov 21 21:58:18 int getViewportWidth() { Nov 21 21:58:54 well there's your answer! Nov 21 21:59:42 yes, thank you :P Nov 21 22:00:49 hi, how can i create an option menu with icon and text? Nov 21 22:00:58 anyone else want take a swing at it???? Nov 21 22:02:15 i have this menu, http://pastebin.com/uywh49f0 i see only title text Nov 21 22:04:09 pepigno75 http://learnandroideasily.blogspot.in/2013/01/creating-option-menu-in-android.html Nov 21 22:05:44 saml: ... what Nov 21 22:06:09 i want an android app that i can script Nov 21 22:06:17 the script can use all android api Nov 21 22:06:31 I still have no idea what you're asking for Nov 21 22:06:34 so i can use the app to build apps (ran inside the app as user script) Nov 21 22:06:58 MrMeTooo, i know.. I know.. :) but tutorial doesn't resolve my problem Nov 21 22:07:06 saml: https://code.google.com/p/android-scripting/ Nov 21 22:07:54 nice thanks Nov 21 22:09:32 pepigno75 i got nothing Nov 21 22:12:46 anyone else want take a swing at it?? http://stackoverflow.com/questions/20052735/android-listview-duplicates-entries Nov 21 22:14:14 or maybe this one? http://www.daniweb.com/software-development/mobile-development/threads/467832/android-listview-duplicates-entries#post2038509 Nov 21 22:15:04 MrMeTooo: what happens when you don't call notifyDataSetChanged()? Nov 21 22:16:19 burmat nothing shows.. but let me try it again its been i while since i messed with that part of the code Nov 21 22:16:52 JakeWharton: I think I solved it. Create an inner class that is a callback that I can add to a list or tag it, this class will pass the results to my adapter. When the adapter refreshes, it will just wait for that callback to try and give results and ignore it based on its tagging. Nov 21 22:16:57 What do you think about that? Nov 21 22:21:44 burmat same thing Nov 21 22:22:26 well then at least you know you don't need that line Nov 21 22:22:32 unless nothing is showing Nov 21 22:22:38 in which case you do :P Nov 21 22:23:06 got a point there Nov 21 22:23:24 you're doing this in onCreate() I can assume? Nov 21 22:23:46 sorry, missed that on your SO post, looks like it wasn't include in your [code] tags Nov 21 22:23:58 what the heck? I am using setViewValue in setViewBinder for a SimpleCursorAdapter to intercept something and format it. I am getting index of 6 for the column I want to format, but I only have 4 resource id values in the "int[] to" array. I am a bit confused. Nov 21 22:24:34 I'm trying to update a project properties library reference by using android update -l path, the problem is if I run this more than once it adds another lib reference Nov 21 22:24:43 burmat yes here is where I am currently got a feeling I'm in the right direction http://pastebin.com/gVdcEstb Nov 21 22:24:54 can some one tell me how i can change the layout to display different information on the same activity via button click? Nov 21 22:24:59 I am on API level 8 Nov 21 22:25:14 is it possible to just update the project.properties lib reference using android update without it adding multiple lib references for the same library? Nov 21 22:25:43 goddard: you can hide/unhide views Nov 21 22:26:15 MrMeTooo: yeah, i mean the code in that paste looks fine to me Nov 21 22:26:37 there is def something funky with your adapter Nov 21 22:26:43 let me dig up some of my old code quick, brb Nov 21 22:27:32 burmat .....thats what everyone says when they see it....thanks i'll wait Nov 21 22:28:28 porten: oh? Nov 21 22:29:49 goddard: if that's the effect you're looking for, the layout changing Nov 21 22:30:07 goddard: you can also just leave placeholders for the data and populate them on button clicks Nov 21 22:30:28 I'm not sure what effect you're going for Nov 21 22:36:06 porten: i am trying to have a horizontal scroll box that will house buttons and when clicked it will change the information below Nov 21 22:36:45 MrMeTooo: I can't even get your code working ; / Nov 21 22:37:08 burmat what do you mean? Nov 21 22:39:04 burmat do you need the code that sends the bundle? Nov 21 22:40:43 MrMeTooo: nope, that is not the problem. i am trying to get the viewholder to work. Nov 21 22:40:59 is java sdk 1.6 acceptable for android 4.0 build? Nov 21 22:41:10 burmat oh ok Nov 21 22:48:24 update! update! Apparently the "Delete build folder and all plugin references, uninstall plugins and reinstall, then rebuild" fix is very effective Nov 21 22:48:32 burmat I'll wait I've been stuck on this for a while ( 3weeks ) now Nov 21 22:48:38 Online/Offline event registration works now, as well as my camera plugins Nov 21 22:48:47 saaaawwwweeeeeeeeeeeet! Nov 21 22:49:12 MrMeTooo: okay, i give up with that. try getting rid of notifyDataSetChanged() and move list.add before you set the adapter Nov 21 22:50:17 and get rid of the second "setListAdapter(add) Nov 21 22:50:27 just use txtlist.setAdapter(add) Nov 21 22:50:27 ok let me try it real quick Nov 21 22:51:33 MrMeTooo: so it should read: KoreyzAdapter add = new KoreyzAdapter(); list.add(0, Lrg); txtlist.setAdapter(add); Nov 21 22:51:36 post the results Nov 21 22:52:48 or actually that probably won't work because you are not passing the updated "list" into the adapter as an argument for the constructor. You may actually have to use list.add(0,Lrg) BEFORE you create your adapter "add" : | Nov 21 22:52:56 this is frustrating. I hate ListView. Nov 21 22:54:06 burmat so stick to the plan of just those 3? Nov 21 22:55:56 MrMeTooo yeah, sorry to be confusing. try the following: list.add(0, Lrg); KoreyzAdapter add = new KoreyzAdapter(); txtlist.setAdapter(add); in that order and let me know what happens. Nov 21 22:56:18 you may just have to play with it a little until something works : / Nov 21 22:56:42 burmat gotcha give me a min to try it out Nov 21 22:59:41 burmat same....right now I just have the 3 in the order you gave Nov 21 23:00:08 MrMeTooo: same result? you are getting dupes? Nov 21 23:00:22 burmat Nov 21 23:00:26 yes Nov 21 23:01:02 how do you create multiple views? Nov 21 23:01:20 idk how that is possible.. Nov 21 23:02:01 i am trying to have a row of buttons on top of my activty that when clicked will show different data without creating a new activity is this a good idea? Nov 21 23:02:08 should i do this differently? Nov 21 23:02:20 burmat here is how it looks http://pastebin.com/LQbsN2Tr Nov 21 23:03:40 MrMeTooo: I'm writing this shit from scratch Nov 21 23:03:51 you have officially frustrated me : o Nov 21 23:04:11 Lol yea I been stuck on this for about 3 weeks! Nov 21 23:04:21 damn Nov 21 23:04:56 the frustrating part is you its easy as hell not the code itself Nov 21 23:06:13 MrMeTooo: explain to me how you would create a kind of tabbed view? Nov 21 23:06:48 MrMeTooo: give ma little while, don't go anywhere. I will come back with something or get drunk trying Nov 21 23:06:55 ma Nov 21 23:06:56 lol Nov 21 23:07:27 feels good when you finish an app :D Nov 21 23:07:42 burmat Lol nice.... join the party Nov 21 23:08:17 lol burmat i got drunk trying yesterday, but i solved it and now im all done :D Nov 21 23:09:03 drinking + coding = REALLY BAD || REALLY GOOD Nov 21 23:09:04 lol Nov 21 23:11:46 burmat LOL Nov 21 23:11:50 i think its good sometimes cuz it disconnects your brain.. sort of Nov 21 23:12:46 Dragonya: until you wake up the next morning and you look at what you did. it is either a "WTF?!?!" moment or a "ahhhhhh...." moment Nov 21 23:13:00 haha yea Nov 21 23:13:37 though i didnt drink and program, rather i took a break from the programming, got drunk (3 ish beers) and continued the next day Nov 21 23:14:43 goddard: just use actionbar tabs? Nov 21 23:15:39 desmin88: let me see if i can find that Nov 21 23:16:10 desmin88: not sure version 8 has those Nov 21 23:16:19 use compat Nov 21 23:16:30 or up your minsdk Nov 21 23:17:22 I agree Nov 21 23:17:44 Hi! I'm using the Google Maps API v2. When I do googleMap.animateCamera(), then my OnCameraChangeListener's onCameraChange only get's fired when the animation is finished. I'd like to do stuff when the animation is still in progress. Does anyone know a way to do this? Nov 21 23:18:03 burmat I'm standing by Nov 21 23:22:12 MrMeTooo: I'm working Nov 21 23:26:05 MrMeTooo: hey if you don't mind, can you a paste of your list_item.xml layout so I don't have to re-write it from scratch? Nov 21 23:26:16 do a paste* Nov 21 23:28:46 burmat http://pastebin.com/MMKcuu01 Nov 21 23:29:02 ty Nov 21 23:29:59 hello all, I am trying to write an Android Application with a web view (using Cordova) and it seems that my app can only create a single WebSQL database. If I try to create a second one, it crashes with a DOM 18 exception. I read in the documentation that there can only be one application cache per application. Is this also the case for the WebSQL db? Nov 21 23:30:26 (asking here because it seems to be more an Android related issue than a Cordova issue) Nov 21 23:33:45 MrMeTooo: NullPointerException : [ Nov 21 23:33:49 lol almost there.. I can feel it Nov 21 23:35:18 YESSSSS.. Nov 21 23:35:19 hahaha Nov 21 23:35:47 what you got? Nov 21 23:35:49 MrMeTooo: So, before you were getting dupes when it cames to the list entries, right? Like two list items Nov 21 23:36:00 just making sure I have the desired result Nov 21 23:36:04 yes Nov 21 23:36:10 ok, one sec Nov 21 23:40:30 MrMeTooo: http://pastebin.com/Kj4K6mAr Nov 21 23:40:32 words for me Nov 21 23:40:34 one list entry Nov 21 23:40:42 it's been a pleasure, I hope I never have to again though Nov 21 23:41:13 just have to set your variables when you grab your bundle and you should be good to go. Nov 21 23:42:27 ok let me take a look and make the changes Nov 21 23:43:05 yeah, i mean i have it up in my emulator and it looks just fine to me. get back to me with the results, because i am going to drink and play battlefield in a minute here Nov 21 23:45:10 How do I make a line shape drawable that takes the width of an ImageView it has been added to (with src)? Nov 21 23:45:25 ok the part with Lrg = "Lrg Data"; add that exactly? Nov 21 23:47:50 OK nvm. :) Nov 21 23:49:16 Anyone have an material related to how often IP addresses change (non-wifi)? Nov 21 23:50:44 MrMeTooo: nope, assign that to your bundle Nov 21 23:50:50 so for those 3 variables Nov 21 23:51:08 just grab them from your bundle EXACTLY as you were before Nov 21 23:51:22 or, leave them EXACTLY as I provided just to test that what I made actually works Nov 21 23:51:29 those are your two options Nov 21 23:51:42 ok making the changes give me a min Nov 21 23:51:50 your code to grab your bundle from the intent looks 100% fine to me earlier Nov 21 23:52:15 everything else should be duplicated to your project as I wrote it Nov 21 23:59:24 burmat shouldnt public static with the ArryList keep the values?? Nov 21 23:59:45 MrMeTooo: i don't understand your questions, sorry Nov 22 00:02:00 burmat everything looks good I've made all the changes but I want to keep the previous entry before I added "public static" to my ArrayList ( under the ListView txtlist ) line Nov 22 00:03:31 yeah that is fine, give it a try Nov 22 00:07:26 burmat added the public static not keeping the previous values... hmmm strange Nov 22 00:07:51 MrMeTooo: hang on a sec Nov 22 00:08:01 ah what the hell the menu button completely messes up my app Nov 22 00:08:09 is it possible to disable it for my app? Nov 22 00:11:26 MrMeTooo: okay sorry man, was on the phone. Anway, the ArrayList (list) is being declared as a public variable Nov 22 00:11:44 then it is being "created" (in a sense) in onCreate() Nov 22 00:12:06 so it is initialized as null and then created, then the first entry (Lrg) is added to it Nov 22 00:12:18 so the way I did it should work just fine, it is still a static object Nov 22 00:13:13 MrMeTooo: doing it the way you orginally did it should be fine too, just take out: list = new ArrayList(); in the code i wrote Nov 22 00:13:51 Dragonya: A quick google search found this: http://stackoverflow.com/questions/6875924/disable-menu-button Nov 22 00:14:01 ok hold on a sec let me make the changes Nov 22 00:14:30 MrMeTooo Do you want me to send you the entire class so you can just copy and paste it? Using what you orginally sent me at least? Nov 22 00:14:56 burmat sure thanks Nov 22 00:15:21 MrMeTooo: Whats the name of your class? Nov 22 00:16:10 ListActivity.class Nov 22 00:17:06 okay, renamge that to ListActivity_og.class Nov 22 00:18:36 then create a new class called ListActivity.class and copy and paste this entire thing in: http://pastebin.com/6vPfuwj3 Nov 22 00:18:48 but make sure you change your package on the very top to match your package Nov 22 00:19:02 and everything should be good to go duder Nov 22 00:20:15 Sorry, copy and paste THIS one in. Forgot to name the class properly: http://pastebin.com/7EgSHUUA Nov 22 00:20:28 this is stupid, when i press the physical menu button it reloads the page without the custom css and just screws it up despite me having nothing set on that button Nov 22 00:20:43 ok give me a min Nov 22 00:23:55 MrMeTooo if you were talking to me, i solved it :D Nov 22 00:24:14 add the notifyDataSetChanged() ?? Nov 22 00:24:21 i tried overriding the onKeyUp event, but it turns out i had to override the onKeyDown Nov 22 00:25:24 MrMeTooo: if you are talking to me, no you don't need to because you are adding the item to the ArrayList before you are created the adapter. You only need to call that when you are adding *more* things to the list after the adapter has been created :) Nov 22 00:26:57 burmat ok give me a min to make the final changes Nov 22 00:28:35 burmat its still not keeping all entries Nov 22 00:30:04 burmat if I add the my arraylist as I had before will that work? Nov 22 00:32:04 possibly, i guess i misunderstood how your ArrayList was being populated then. The rest of the code works if you populate your ArrayList. Nov 22 00:33:15 burmat yes but it only populates one item so basically for every edittext entry I want a new item added to the list Nov 22 00:35:06 Hi! I'm using the Google Maps API v2. When I do googleMap.animateCamera(), then my OnCameraChangeListener's onCameraChange only get's fired when the animation is finished. I'd like to do stuff when the animation is still in progress. Does anyone know a way to do this? Documentation says "During an animation, this listener may not be notified of intermediate camera positions." but I'd like to know about any alternative option Nov 22 00:35:29 MrMeTooo: yeah, i don't know what that means.. I would have to see the code. are you saying that in the class that calls ListActivity.class, you have EditText objects and for each one you want a ListItem? You are going to have to handle your Bundle differently if that is the case.. Nov 22 00:36:01 I mean, the list adapter will work now, you just have to get your ArrayList right ] Nov 22 00:39:46 burmat hard to explain...basically i want the listview to keep all entrys with all the changes I can only do one entry so the list does not grow Nov 22 00:40:15 MrMeTooo: ... yeah, i don't understand. Nov 22 00:41:42 how do you detect whether or not you're connected to the internet in android? Nov 22 00:41:54 MrMeTooo: with that code, you are essentially putting one thing into the arraylist. that represents one listview item. if you add more things to the arraylist, you just call notifydatasetchange and it will update the list. that is the intended behavious, at least. Nov 22 00:41:55 or better yet whether a webview fails loading or not Nov 22 00:43:04 burmat yes thats what i want it to do. so... if you type dog then submit, cat then submit, fish then submit. the list should read "line 1 = dog, line 2 = cat, line 3 = fish Nov 22 00:43:21 no wait, its detecting it, the boolean is just not being changed Nov 22 00:43:58 MrMeTooo: one sec Nov 22 00:45:08 ok Nov 22 00:48:36 This Linkify shit is making my day difficult Nov 22 00:49:23 can anyone tell me why the boolean failTest isn't changing on this one http://pastebin.com/XfmbR8XQ ? Nov 22 00:57:38 Ok MrMeTooo are you there Nov 22 00:57:51 yea Nov 22 00:58:05 first, let me ask you, is your edittext and submit button in "ListActivity.class" Nov 22 00:58:22 no Nov 22 00:58:48 so you are passing all of your information in through the bundle? Nov 22 00:58:56 yes Nov 22 00:59:03 and I beleive the problem we are running into is located within getView Nov 22 00:59:20 holder.who.setText(list.get(position)); shoud be in the place of holder.who.setText(Lrg) Nov 22 00:59:37 that way, it grabs from the actual position of the ArrayList Nov 22 01:00:21 make that change? Nov 22 01:00:26 and if that doesn't work, I give up. Nov 22 01:00:29 MrMeTooo: yeah Nov 22 01:01:03 done Nov 22 01:01:08 I have a project here that has one class. It now has an EditText and a button and will add content to the list as you type it into the EditText and hit the button. I can zip it up and send it to you and it should compile Nov 22 01:01:24 either way, I am outta here in 2 minutes Nov 22 01:03:16 Yea thats fine im heading out too Nov 22 01:03:59 hey guys Nov 22 01:04:13 hi Nov 22 01:04:42 i'm having an issue with dlopen() Nov 22 01:04:52 i'm trying to find symbols in my currently executing program Nov 22 01:05:00 but dlopen() returns NULL Nov 22 01:05:11 dlopen(NULL, RTLD_NOW) returns NULL Nov 22 01:07:04 Hi! I'm using the Google Maps API v2. When I do googleMap.animateCamera(), then my OnCameraChangeListener's onCameraChange only get's fired when the animation is finished. I'd like to do stuff when the animation is still in progress. Does anyone know a way to do this? Documentation says "During an animation, this listener may not be notified of intermediate camera positions." but I'd like to know about any alternative option Nov 22 01:08:14 do what while its in progress Nov 22 01:08:28 steeve, if you get NULL, check errno Nov 22 01:08:44 or dlerror Nov 22 01:08:45 I suppose Nov 22 01:08:52 yeah, just tried dlerror Nov 22 01:08:54 well damn, my idea didnt owrk Nov 22 01:08:54 "Cannot load library: " Nov 22 01:09:03 Peetz0r ^ Nov 22 01:10:28 I guess it doesn't like NULL Nov 22 01:10:34 what if you just give the path to your main exec? Nov 22 01:10:41 pfn: lemme try Nov 22 01:11:05 usually, 0 should work, but I guess android doesn't like it Nov 22 01:11:17 or whatever binary format it is doesn't like dlopen on the current process Nov 22 01:11:22 pfn: yeah the doc says NULL is fine, didn't find info for bionic tho Nov 22 01:11:47 okay so Nov 22 01:11:51 giving it the executable Nov 22 01:11:52 Cannot load library: load_library(linker.cpp:761): not a valid ELF executable: Nov 22 01:12:31 fyi, the file is Nov 22 01:12:32 build/android_arm/torrent2http: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped Nov 22 01:26:15 Why I can not override the `onResume` method in a CustomView which extends RelativeLayout? Nov 22 01:28:47 <|0xD34D|> there is no onResume in RelativeLayout, or ViewGroup, or View Nov 22 01:31:07 then how to resotre the view state ? Nov 22 01:32:53 <|0xD34D|> maven__: http://developer.android.com/reference/android/view/View.html#onRestoreInstanceState(android.os.Parcelable) Nov 22 01:34:46 ok, I got it Nov 22 01:42:49 steeve, dunno then Nov 22 01:42:54 I guess bionic behaves differently in this regard Nov 22 01:43:19 pfn: doesn't seem to https://android.googlesource.com/platform/bionic/+/6e33b02/tests/dlopen_test.cpp line 37 Nov 22 01:43:27 but i'll investigate more Nov 22 01:43:29 thanks anyway Nov 22 01:48:02 how does one make javadocs? Nov 22 01:48:02 this is probably a general java question, but I'm new to java AND android dev, so here is probably the best place: How do I get java.lang.NoClassDefFoundError at runtime, and how do i fix it? Nov 22 01:48:10 Dragonya, by running the javadoc command Nov 22 01:48:18 regreddit, referencing a class that doesn't exist Nov 22 01:48:22 pfn where can i find said command? Nov 22 01:48:31 Dragonya, in the jdk Nov 22 01:48:39 regreddit, either fix the reference, or fix your build Nov 22 01:48:42 I got that, but at compile time it does, so where does it go? Nov 22 01:48:48 desmin88: I'd like to get updates on the camera position, even while in the middle of an animation Nov 22 01:48:53 regreddit, depends on which class you're missing Nov 22 01:49:04 regreddit, e.g. using too new of an android api on an older device Nov 22 01:49:08 pfn does it automatically generate javadocs? Nov 22 01:49:14 Dragonya, the javadoc command does, yes Nov 22 01:49:26 pfn: indeed, on Android, dlopen(NULL) doesn't work Nov 22 01:49:27 pfn sweet thanks, you're a hero Nov 22 01:49:37 well, I'm using the apache http client lib 4.3.1, in an emulator, and get: org.apache.http.entity.mime.content.ByteArrayBody Nov 22 01:49:42 steeve, registered as a bug somewhere? Nov 22 01:49:51 so where do I start figuring out how to fix it? Nov 22 01:49:53 then your build is not including the necessary library Nov 22 01:50:03 doesnt that lib get compiled into my app? Nov 22 01:50:06 pfn: don't know, but i'm not the first guy to have that issue Nov 22 01:50:07 include the library that declares that class Nov 22 01:50:13 i have it Nov 22 01:50:28 else it would not resolve in the ide, would it? Nov 22 01:50:29 then fix your build to include it Nov 22 01:50:40 im using gradle, and it's right there Nov 22 01:50:40 depends Nov 22 01:51:20 org.apache.http.entity.mime.content.ByteArrayBody is the class Nov 22 01:51:42 and in gradle, I have: org.apache.httpcomponents:httpmime:4.3.1 Nov 22 01:51:52 then do a clean build Nov 22 01:57:32 tryin that now Nov 22 01:57:59 I guess im still confiused on how a dependency is lost at runtime, when it compiles fine - Nov 22 01:59:54 these things dont get bundled into the apk? Nov 22 02:21:32 Anyone know of commands to get things like screen size of a device and color depth? Nov 22 02:23:22 so… screen_bright_wake_lock and friends are deprecated. replaced with flag_keep_screen_on etc. but — what's a Service to do when it wants to keep the screen on? Nov 22 02:24:59 a clean and rebuild seems to have done the trick Nov 22 02:26:26 pfn: i stand corrected, bionic supports dlopen(NULL) since gingerbread Nov 22 02:26:40 pfn: i was calling too early (in a GCC ctor) Nov 22 02:43:44 steeve, indeed Nov 22 02:43:55 the more you know i guess Nov 22 02:44:41 pfn: i'm wondering tho Nov 22 02:44:46 here are the symbols i'm resolving Nov 22 02:44:49 handle=0x400e6ac0 Nov 22 02:44:50 crosscall2=0x1e6d70 Nov 22 02:44:50 _cgo_allocate=0x1e6ca0 Nov 22 02:44:51 _cgo_panic=0x1e6d40 Nov 22 02:45:06 they seem a little low in memory Nov 22 02:45:19 and i'm getting a segfault when trying to call them (crosscall2) Nov 22 02:46:45 here's what readelf tells me: Nov 22 02:46:46 28361: 001d6d70 20 FUNC GLOBAL DEFAULT 1 crosscall2 Nov 22 02:48:27 what's the backtrace, though... Nov 22 02:48:29 ndk-gdb :p Nov 22 02:51:23 pfn: yeah i'm having issues using it :) Nov 22 02:51:40 pfn: i'll do that tomorrow, it's almost 4am here :) Nov 22 02:51:52 Hello, all Nov 22 02:52:27 I'm a n00b here, and in need help, if anyone is interested in a challenge Nov 22 02:55:13 Anyone here know anything about huawei H866C's? Nov 22 02:59:04 Or am I in the wrong channel for this problem I have? Nov 22 02:59:11 you have't said anything about a problem Nov 22 02:59:43 Netgodddd: if you're starting by mentioning a device, there's a good chance you are in the wrong channel... but please continue :) **** ENDING LOGGING AT Fri Nov 22 03:00:00 2013