**** BEGIN LOGGING AT Sat Sep 28 02:59:58 2013 Sep 28 03:01:07 hey guys. is there some sort of debugging tool that will let me debug an application i don't have the source for? Sep 28 03:01:16 i want to reverse engineer what it does Sep 28 03:08:29 ERROR/dalvikvm(11605): dlopen("/data/app-lib/aaa.bbb.act-1/libjnetpcap.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1636): could not load library "libpcap.so" needed by "libjnetpcap.so"; caused by load_library(linker.cpp:746): library "libpcap.so" not found Sep 28 03:08:51 Both .so files are in that same directory. Sep 28 03:12:04 <^cheeky> i feeel so stupid!!!!!, all i needed was sleep! Sep 28 03:39:21 str4d: thanks, yeah i saw that if i instantiate it in code I can pass the arguments, but i was trying to do it for an xml one too. i resorted to having a private data member on the fragment which the activity sets with a setter, and i read that in the fragment's onCreateView. donno if that's ideal Sep 28 03:48:39 i'm trying to import android.bluetooth.BluetoothManager, but am getting an error. Gradle: error: cannot find symbol class BluetoothManager . i can import the BluetoothAdapter from android.bluetooth, but not the manager Sep 28 03:52:33 I'm trying to get a command-line JUnit test working. But it fails when I include the "package" line. I get NoClassDefFoundError and then it adds "wrong name". Sep 28 03:52:57 I have a short example (along with with my command line operations) at http://pastie.org/8361593. Sep 28 03:59:49 where is the best place/article/document/video/book to start learning android application development? Sep 28 03:59:58 I need to make application that will connect with web service Sep 28 04:00:08 how can I do this Sep 28 04:02:19 what is the best way to make android app that will embed iframe with javascript? Sep 28 04:05:22 dev1: use WebView Sep 28 04:10:34 what I need is simpel connection of application to internet Sep 28 04:10:35 I guess Sep 28 04:10:50 I have one scritp tag which is dynamicly loading iframe Sep 28 04:10:57 sometihng like facebook api etc Sep 28 04:11:05 WebView can do this? Sep 28 04:11:17 yes, but you need to start at d.android.com Sep 28 04:11:37 to build a basic app, and then look into WebView Sep 28 04:12:07 ok Sep 28 04:12:09 yeah Sep 28 04:12:14 I am seeing that I will ok Sep 28 04:12:22 but good to know that WebView can do this ok Sep 28 04:12:32 so I don't need to embed browser engine into my app Sep 28 04:12:35 like webkit Sep 28 04:12:47 that's kindof what webview is Sep 28 04:15:37 ok nice Sep 28 04:15:56 other than this I guess I have to embed browser engine into my app so it can connect to internet right shmoooz ? Sep 28 04:16:20 yes, WebView is the browser engine Sep 28 04:17:04 no Sep 28 04:17:15 I mean if I want my app to connect to internet without WebView Sep 28 04:17:31 that's possible too Sep 28 04:18:32 here http://developer.android.com/guide/webapps/overview.html Sep 28 04:26:12 Guys, I know this is really cheeky, and good ideas are few and far between, but I am about to enter my final year at University, and am really struggling for an idea for a mobile application/mobile system. Does anyone here have anything that might be a good idea? Sep 28 04:26:43 My biggest downfall is I am not an ideas man... :/ Sep 28 04:32:17 Anthaas https://www.coursera.org/course/innovativeideas Sep 28 04:33:20 actually maybe not that much about ideas ... had it in the name Sep 28 04:33:42 JimmyCarter: Was just about to say that haha. Sep 28 04:33:59 JimmyCarter: Thanks for helping though - Im quite stuck and getting quite stressed about it. Sep 28 04:34:24 JimmyCarter: We keep being told we should be pretty close to having ideas now. I had one set up but it fell apart when my contact left the company. Sep 28 04:36:14 Need to get proposals in quick etc. Sep 28 04:38:51 Anthaas: make an Acronym dictionary app, so people can lookup acronyms fast Sep 28 04:39:50 shmoooz: Can you elaborate? Sep 28 04:43:40 Anthaas: you know what is an acronym right ? Sep 28 04:44:12 Yes, a word that is made up of the initials of several words, but pronounced as one, for example NASA, Laser, SCUBA, etc. Sep 28 04:44:29 Which is different from an initialism in that initialisms are not pronounced as a word, e.g. FBI, CIA, etc. Sep 28 04:44:29 yeah so a dictionary that looks up what it is Sep 28 04:44:55 How would that differ from a normal dictionary? Don't most normal dictionaries also do that? Sep 28 04:45:20 yeah but a normal dictionary is too much work Sep 28 04:45:30 to build Sep 28 04:45:44 But an Acronym dictionary wouldn't fit a purpose. Sep 28 04:45:57 ok then any dictionary that lets you look up anything simple Sep 28 04:45:58 Its a good idea, but Im thinking about my course and how they will see it. Sep 28 04:45:58 my game runs beautifully on nexus7, but like crap on galaxy nexus... how do i control and set reasonable minimum hardware requirements for my game? Sep 28 04:54:12 JimmyCarter: Testing Sep 28 04:54:38 When SMSs/Calls are sent/received, is there a broadcast sent out that can be picked up? Sep 28 04:55:02 and if so, what details about both actions are also able to be picked up? Sep 28 04:55:24 For example, could I report than an SMS had been received by +447777777777 Sep 28 05:02:54 I have just come with a great idea! I think! Sep 28 05:03:03 Would need to run it over a lecturer though Sep 28 05:04:53 Now I just need to learn photoshop :P Sep 28 05:06:33 Anthaas: what's the idea ? Sep 28 05:06:50 Does anyone know if there is a broadcast that can be picked up when an SMS is received by a device? Sep 28 05:06:53 same with a call? Sep 28 05:07:57 Ahhh, SMS_RECEIVED exists as an Intent Action Sep 28 05:08:41 call HotShots the company and tell them you want to make an app for them that warms people's hands by overclocking their device, it could save lives Sep 28 05:09:36 lol Sep 28 05:09:43 I believe DIAL would be calling out? Sep 28 05:09:54 ANSWER would be call received? Sep 28 05:10:44 Can someone confirm if this is correct? Sep 28 05:25:50 If you use the genymotion emulator it uses adb over tcp/ip so the serial # doesn't show up in adb devices, but i need that to put it as an admob test device, anyone know how to get that info otherwise? Sep 28 05:28:14 use getDeviceId from your app Sep 28 05:28:20 thanks pfn Sep 28 05:42:29 hey guys.. I'm looking to pass an object between two activities. The object however is from a library I've imported so I can't seem to edit the code and implement serialization.. is there another good way to do this? Sep 28 05:42:50 I'm thinking of just importing the source of the library directly into the project.. but yeah. Sep 28 06:22:24 has anyone successfully used 4.3 to read and write bluetooth low energy gatt characteristics? i can only seem to get the device name with the sample apps, even thought they loop through the gatt table (or appear to do so) Sep 28 06:25:46 for IOS I will write a fingerprint fortuneteller app ;) Sep 28 07:10:37 i cannot get android studio or gradle to use BluetoothManager (always says cannot find symbol class) autocomplet finds it, but i cannot build. Sep 28 07:15:52 Android Studio or Gradle? O_o Sep 28 07:19:36 Nilium: gradle is called to build the project in android studio. it also fails using the command line to build the app using gradle Sep 28 07:28:50 I don't think that's either AS or Gradle's problem though. Sep 28 07:29:06 What API level are you targeting? Sep 28 07:32:55 18 Sep 28 07:34:52 there's some strange things that happen when i choose 18 though, like i can't select an android target (should be 4.3), and i can't expand the external library classes. Sep 28 08:11:27 ok im gonna try and integrate the google play multiplayer gave services Sep 28 08:11:39 good luck, man Sep 28 08:11:42 i probably wont be myself for the next few days and apologize in advance for what i may say about Google Sep 28 08:11:48 thanks Leeds Sep 28 08:11:57 blazing a path for the rest of us Sep 28 08:11:58 game* Sep 28 08:12:35 i already have a multiplayer network game, so hopefully its a matter of switching a few write() calls Sep 28 08:13:03 and doing a gui for starting games with friends on google+ or however it works Sep 28 08:18:16 what's the easiest way to save input field values and load them when the application is started again? Sep 28 08:48:59 SharedPreferences Sep 28 08:49:51 ah ok, thanks, I've seen that but I taught maybe there's something that plugs into the input elements automatically Sep 28 08:56:48 Hi there! I am new to android development and I have some questions! I am trying to make a program that needs some configuring, and once it is configured to start on boot, make a check based on the configuration and then exit. I have previous experience to C and C++. My problem is that I haven't found how NOT to start my program on startup if it is not yet configured! What I've done till now is to check on startup whether the SharedPrefere Sep 28 08:56:48 nces is empty (and thus the program unconfigured) and then exit if it is empty, because that means that the program is not configured yet. Is this the correct way to do it? Is there a way to avoid starting on startup without being configured? Sep 28 08:57:20 I think that is the correct way - that's how I do it, anyway :) Sep 28 09:02:28 Leeds, thanks a lot for the answer, I'm glad I got this right. Another question. I want to make the check approximately 1 minute after startup. The check is one time (not scheduled). How can I make this happen using the Timer class? Right now I am using this code: http://paste.ubuntu.com/6166080/ Sep 28 09:03:17 Of course the code goes into my startup service. Sep 28 09:26:51 <^cheeky> if i need send two objects from the UI thread to a message Queue , do i need to use two handlers and two Messages, Sep 28 09:28:11 <^cheeky> ObtainMessage.(What, obj) it only allows one "What" and One object Sep 28 09:29:21 does onTouchEvent really give float coordinates? should i be rounding pixels to nearest integer instead of merely casting? Sep 28 09:50:58 guys does anyone really use UML for in house development or is it just a waste of time, because I've been doing a lot of projects playing just with VCS branches and merging them, but somebody told me that for documentation and stuff it's better to do a UML diagrams first. Sep 28 09:51:11 ^cheeky: one Handler, two Messages Sep 28 09:53:58 JimmyCarter: Yes. Keep track of the pointer position with floats, cast to int when moving views etc Sep 28 09:55:59 <^cheeky> JakeWharton: so i would have to put my objects in a HashMap , coz i cant seem to pass two Messages , as each Message only has one Object to add . Sep 28 09:56:25 if you want to send two things in a single message then yes, you need some type of data structure as the object Sep 28 09:58:00 <^cheeky> thank you Sep 28 10:19:56 need a hello-world kinda example app…where android-machine running a simple service(on http) which could be controlled via other machine on same network Sep 28 10:20:10 any pointer would be appreciated! Sep 28 10:20:27 thing is this service should be running in background and should be invoked on http-request rather from a activity Sep 28 10:48:05 If your country is not listed here: https://support.google.com/googleplay/android-developer/answer/150324 can you do anything at all? Can you e.g. setup a bank account in a supported country? Sep 28 11:53:00 With this setup, will it be possible to parcel MyAndroidClass INCLUDING the list of callbacks? Or does the generic type of the list have to implement Parcelable as well? Sep 28 11:53:43 https://gist.github.com/sonOfRa/6741319 Sep 28 12:05:02 which do you recommend? android studio or eclipse? or something else? totally getting started. Sep 28 12:05:45 android studio Sep 28 12:16:54 <^cheeky> JakeWharton: hi again. i used a syncronizedMap as the data struct, but it only loads some images, is it bad practice to use a hashMap inside another HashMap Sep 28 12:17:37 sonOfRa, generally, you never want to parcel listeners because it won't do the right thing Sep 28 12:17:56 it will do the right thing. the listeners are technically in C Code Sep 28 12:18:02 not to mention, yes, they have to be parcelable Sep 28 12:18:46 is there any way of passing INSTANCES between contexts? Sep 28 12:19:02 Not a new, parcelled instance of the old one, but the old instance itself Sep 28 12:19:02 yes Sep 28 12:19:23 just sharing memory works fine Sep 28 12:19:52 like through any type of singleton Sep 28 12:20:22 singleton was a pattern I wanted to avoid really. But it looks more and more like I can'T Sep 28 12:36:55 No Chaotic and fake Sep 28 12:37:00 Hi! Assuming I have an android device. Should I be able to rebuild a firmware for it? Or this is only true for some devices for which hardware libs are provided by the manufacturer? Sep 28 12:37:07 wtf kind of review is that... Sep 28 12:40:24 hey Sep 28 12:42:18 <^cheeky> YEsss.. Sep 28 12:42:29 <^cheeky> its working 2 Messages one Handler ::)))) Sep 28 12:42:48 <^cheeky> sheesh ^ nothing like 2 girls and one cup or what ever Sep 28 13:46:13 dat android studio is slow Sep 28 13:46:19 or its just me Sep 28 13:47:33 Its not slow for me. Sep 28 13:47:50 Not that I use it that much - I really should though Sep 28 14:07:45 Jackneill, even slower than eclipse? Sep 28 14:08:14 damn.... Sep 28 14:08:21 Hey guy's, having a problem with html5 audio still playing in a webview (thats insid my app) even after the app is minimized (i belive the proper term is suspended state) Sep 28 14:13:15 <^cheeky> hi, Do i need to pass in a datastructure into a message or could i create object from a class which holds other objects and pass it into the MessageQueue Sep 28 14:20:03 Norrin, well havent tried eclipse Sep 28 14:25:26 never seen a java ide that didn't feel like it was running on a 10 year old computer Sep 28 14:25:45 even vim experts say vim sucks for java. Sep 28 14:34:14 <^cheeky> YESSSSS Sep 28 14:34:53 <^cheeky> i can do it instead of data struct,.. then again .. class is a data structure .. Sep 28 14:55:45 vim doesn't suck for java Sep 28 14:55:52 it doesn't do IDE stuff, but it certainly doesn't suck Sep 28 14:56:05 and if you wanted, you can still use exuberant ctags very successfully Sep 28 14:59:13 <^cheeky> so i think i got this gridview with handler and messages working .. and my images .. appear faster than before .. but when i flick .. the images .. show .. and then they switch to the new images .. is that bad ... :( Sep 28 15:00:43 ^cheeky: that would probably be considered a bad thing ;) Sep 28 15:01:44 <^cheeky> N000000000 Sep 28 15:01:48 <^cheeky> :( Sep 28 15:02:00 <^cheeky> oh i suck @ programming Sep 28 15:02:41 just set it to null first. Sep 28 15:05:10 <^cheeky> i am wondering because i am passing a class i created into the Message of the handler .. which i didnt set to synchronize maybe Sep 28 15:06:25 <^cheeky> set the imageView to null ?? Sep 28 15:10:53 imageView.setImageDrawable(null); Sep 28 15:11:03 before trying to load the next image Sep 28 15:12:17 is ADB still not working properly in win8.1? Sep 28 15:21:41 can you help me? i only got a blank screen when i try to run the app in emulator using android studio Sep 28 15:21:55 forget it its oaky Sep 28 15:29:16 Gentlecat: works good Sep 28 15:30:24 Gentlecat, <== :DD Awesome name. Sep 28 15:33:36 * gdrc hates cats Sep 28 15:34:21 gdrc, Omnipotent, thanks Sep 28 15:35:10 <^cheeky> jaynewstrom: i didnt have to set it to null i just added it to one class(Object) to the messageQueue, Sep 28 15:35:29 cool Sep 28 15:35:48 * hamid hugs gdrc ( no homo ) Sep 28 15:40:55 <^cheeky> jaynewstrom: lol i dunno .. if this is right .. it seems to work .. unless .. flikr public apis might have one or two .. duplicates in there .. Sep 28 15:41:59 haha. have you looked into using something like https://github.com/square/picasso Sep 28 15:42:11 the syntax is super easy. and it handles a lot the the crappy stuff for you ;) Sep 28 15:42:27 you might not have weird issues like flickering and duplication ;) Sep 28 15:43:24 <^cheeky> yeah but i see it uses alot of other libs which is cool but since i am really crappy and new to android .. i have learnt alot .. by making mistakes and learning to improve them i keep referring to that and also the sample codes on the dev site Sep 28 15:43:49 <^cheeky> coz i wanna learn to how to make code like in picasso Sep 28 15:43:56 <^cheeky> coz its such re-usable code Sep 28 15:44:19 <^cheeky> so if i could make these mistakes and then refractor it to make my code more re-usable Sep 28 15:46:44 yeah, you might try reading picasso code as well. reading code can be a very good learning tool Sep 28 15:47:06 <^cheeky> yeah yeah i am Sep 28 15:47:22 <^cheeky> my comp sucks !!!! Sep 28 15:47:30 <^cheeky> need to open it up and see why the over heating Sep 28 15:47:39 <^cheeky> coz i have AS and eclipse open to see picasso Sep 28 15:47:55 <^cheeky> but i have to keep eclipse closed over heat Sep 28 15:50:22 i have this code: http://pastebin.com/ds8Aw3sF , whenever i click the button and doTheStuff method is called it crashes the app. Sometimes it reads the data from the link but sometimes it doesn't Sep 28 15:50:37 that code is supposed to request google.com and put it's content in a textview Sep 28 15:58:24 <^cheeky> Reflow: hey .. in your layout did your specify the listener to use and shouldn't the doTheStuff be inside the onCreate() or createView Sep 28 15:59:07 the listener is specified, that's not the problema ^cheeky Sep 28 15:59:28 the problem is after the httpurlconnection is done and the content of the website is received it crashes Sep 28 15:59:46 it works perfectly but it crashes Sep 28 16:00:54 http://pastebin.com/F5NgjHYT Sep 28 16:00:58 Reflow: try that Sep 28 16:01:08 you can't do view stuff in a background thread. Sep 28 16:01:32 if you return "line" and then use it in the onPostExecute (which is run on the MainThread) it should work Sep 28 16:02:23 Reflow: this is far from the best way to do things. there are a ton of other things you need to think about. Rotation for instance. But, this should at least get you pointed in the right direction Sep 28 16:02:49 thanks jaynewstrom i'm just starting android dev Sep 28 16:02:51 any one used androidviewclient ? how does one hide softkeyboard after typing in edittext ? Sep 28 16:06:22 Reflow: no worries. We're here to help. there are lots of good libraries out there to help with things. if you have any questions feel free to ask Sep 28 16:06:48 <^cheeky> Reflow: sorry i did not even see that you had an empty postExecute :/ Sep 28 16:08:44 Someone tried to use layouttransition with a videoview as child in a container ? Sep 28 16:08:54 i cant manage to make it animated Sep 28 16:09:17 ^cheeky heh my bad! Sep 28 16:09:24 tried with a webview and works without problems Sep 28 16:14:00 Hello! How to organize back-end architecture for secure rest calls from android. I mean which architecture solutions(on server side and client side) i should use for secure calling rest methods of my back-end. Sep 28 16:14:05 ? Sep 28 16:48:00 any one used androidviewclient ? how does one hide softkeyboard after typing in edittext ? Sep 28 16:55:29 Is Android Studio stable enough to use for development, or should I stick with Eclipse for now? Sep 28 16:57:30 cheese1756: stable enough Sep 28 16:57:33 there are some gradle quirks Sep 28 16:57:46 desmin88: That's fine. Are those obvious when they appear? Sep 28 16:57:58 yes. Sep 28 16:58:21 wont be able to build lol Sep 28 16:58:40 but they are easily fixable Sep 28 16:58:50 usually the ide and gradle files get mis matched or confused Sep 28 16:58:59 Ah. What's the typical fix for that? Sep 28 16:59:40 Sync gradle files with project, rebuilding Sep 28 16:59:40 etc. Sep 28 16:59:53 you have to manually edit gradle files though Sep 28 17:00:06 I'm fine with that. Thanks for the advice Sep 28 17:00:11 yw Sep 28 17:00:19 if you have any questions just ask Sep 28 17:27:34 Anyone at the Google Dev conference in Waterloo, Canada? Sep 28 17:28:27 well I handled soft keyboard hide on button click in activity code itself Sep 28 17:32:20 <^cheeky> using a HashMap to see check if the view matches corresponding Url is a good way to keep duplicates away in a gridView ? Sep 28 17:32:57 ^cheeky: use an adapter Sep 28 17:33:26 in your adapter use a set as the "data source" Sep 28 17:34:57 <^cheeky> I am Using an adapter but its an arrayAdapter.. so SetAdapter Sep 28 17:35:20 <^cheeky> and a arraylist Sep 28 18:01:43 i'm trying to use a bluetooth low energy module with my nexus 4 (android 4.3). i cann connect, get the name of the device, but when i get to the Gatt portions of the code, things don't seem to work right. Sep 28 18:02:22 gatt connect is ok, but then service discovery fails and gat disconnects (maybe the disconnect is a default action, but i can't find info on developer.android.com Sep 28 18:03:44 here's the link i'm using, and the callback i'm using is onServicesDiscovered. problem is, status is never BluetoothGatt.GATT_SUCCESS Sep 28 18:05:22 <^cheeky> jaynewstrom: Thank you Thank you , i havent gotten it to work , but i am querying g00gle on how to implement it , hope i get it to work coz this stuff is interesting :) thank you again Sep 28 18:06:14 sorry. Haven't been watching this. you bet though. If you have questions feel free to ask Sep 28 18:07:31 <^cheeky> :) Sep 28 18:07:45 here's my code (just a few bits) and the log: http://pastebin.com/MLgan7yt Sep 28 18:08:57 I always end up in line 33, then it keeps repeating for some reason, not sure why it keeps looping either Sep 28 18:12:02 maybe there is more status than success or fail Sep 28 18:12:17 maybe theres also "its already connected" or something Sep 28 18:13:27 really dunno Sep 28 18:14:12 that's a good point, i'll log the actual status and see what I get, but i need to find the map of the int to const to make any sense of it. Sep 28 18:18:27 well, status is 129, and 129 isn't listed in the options Sep 28 18:21:02 dunno maybe its one of constants Sep 28 18:21:33 for example BluetoothProfile.STATE_CONNECTED may mean state 100 or whatever int value it is Sep 28 18:25:40 that's what i'm saying, there's like 6 constants, and none of them are 129 Sep 28 18:26:21 weird allright Sep 28 18:27:24 jnewt, maybe check in the Android source code? Sep 28 18:28:52 EPG: I'm pretty new to this, it took me days to learn enough to get this far. not sure i'm capable of even finding a problem with the android source. Sep 28 18:29:44 thing is, i've narrowed the issue to android, iphones communicate fine with the device. and i know there's bt le apps and examples, but none of them seem to pull the services successfully (they all just get to the point i'm at) Sep 28 18:29:46 ok, if you want I can check in a few minutes Sep 28 18:39:03 jnewt, seems to be driver specific Sep 28 18:39:16 jnewt what type of device are you using? have you tried something basic like a TI sensortag ? Sep 28 18:39:41 sometimes theres weird stuff with bluetooth stack Sep 28 18:39:42 yeah, i have heard some issues with BLE but haven't had a chance to test Sep 28 18:39:55 yeah, BT has always been iffy Sep 28 18:40:07 my phone bluetooth os borked for one. can't connect to my bluetooth odbII device while my hp tablet can Sep 28 18:40:22 XXCoder1 what phone ? Sep 28 18:40:29 it reconnects each time it tries, rebooting bluetooth stack again Sep 28 18:40:32 epic 4g Sep 28 18:40:38 Ok, i'm using a nexus 4, android 4.3, api 18. my device is a bluegiga ble112 Sep 28 18:41:41 jnewt i would get one of these little guys http://www.ti.com/ww/en/wireless_connectivity/sensortag/index.shtml?DCMP=sensortag&HQS=sensortag-bn Sep 28 18:41:51 unless you have other BLE devices around Sep 28 18:42:05 hard to do this kind of work without a few toys to isolate issues Sep 28 18:43:08 g00s, i do, i purchased and designed up the device using a couple of different bluegiga modules. Once I verified their iphone app worked properly, i figured i could isolate the issue to the android phone. Sep 28 18:44:38 that sensor tag is based on the same ti mcu that my bluegiga module is. Sep 28 18:45:36 i'll order one on monday if i have to, but I'll bet it has the same issues, due to the same ti mcu, and probably the same internal software. Sep 28 18:52:13 Hey guy's, having a problem with html5 audio still playing in a webview (thats insid my app) even after the app is minimized (i belive the proper term is suspended state) basically when i backout from the app the audio element is still playing, i want to pause it or stop it Sep 28 18:53:36 i am presumin i am having to do when i need to do onPause() & onResume() ? Sep 28 18:53:47 to do somthing* Sep 28 18:56:50 i am also trying to figure out how the onStop() state differs from onPause & onDestroy... Sep 28 18:58:08 sigh.. Sep 28 18:58:39 ? Sep 28 18:58:53 http://developer.android.com/reference/android/app/Activity.html Sep 28 18:59:07 scroll to Activity Lifecycle Sep 28 19:00:00 yea Sep 28 19:00:09 i was on that website before i asked the question Sep 28 19:00:19 that's how the 3 differ... Sep 28 19:00:21 i dont understand the discriptions of each state Sep 28 19:00:32 okay. I'd be happy to answer any questions Sep 28 19:02:08 Hopefully this is all the info about my issue: http://stackoverflow.com/questions/19070562/bluetooth-low-energy-service-discovery-with-android-4-3-on-nexus-4 Sep 28 19:04:09 bisaclly onpause is called when the app is about to enter the pause state, and onresume when that app is resumed from say the activity manager or w/e and on stop is when the app is about to close i.e. be destroyed, so onstop is always called before ondestroy? or it is called before onpause too? this is what i aint getting Sep 28 19:04:54 atm my app is only using onCreate Sep 28 19:06:00 Anton2k: my connection just dropped out, if you asked a question. Sep 28 19:06:10 bisaclly onpause is called when the app is about to enter the pause state, and onresume when that app is resumed from say the activity manager or w/e and on stop is when the app is about to close i.e. be destroyed, so onstop is always called before ondestroy? or it is called before onpause too? this is what i aint getting Sep 28 19:07:01 the diagram shows it nicely http://developer.android.com/images/activity_lifecycle.png onPause, onStop, onDestroy in that order Sep 28 19:07:02 so i guess what i am asking is, the activity is stoped if its being paused or destroyed Sep 28 19:07:28 no code runs in the activity after onDestroy. that basically means you can't use it anymore Sep 28 19:08:34 so, the answer to your question is destroyed Sep 28 19:09:13 right, so the stop state is only ever called before the destroyed state Sep 28 19:09:30 doing a multiplayer game with basegameclient, i read the docs, what i'm searching for some guide / example for rooms, invites and how they play together when to join, when the are created by whom , etc. any good resources hard to search for tht .. Sep 28 19:09:39 I wonder if maybe i'm not actually connecting to the GATT. I am unsure of the proper context for BluetoothDevice.connectGatt. and simply used getBaseContext(). I could recite what context is, but don't really have a great understanding of when to use which context. Sep 28 19:09:42 i just thought that even though the app was being paused it would have to be stopped first, just my may of thinking i guess lol Sep 28 19:11:17 In most cases onDestroy will be called right after onStop Sep 28 19:11:32 but onStop isn't guaranteed to be called either... Sep 28 19:12:18 i would say onStart and onStop usage is much less common than onCreate onDestroy onPause onResume Sep 28 19:12:55 ah right Sep 28 19:13:39 can you give me a practical example of when i might need to call say on stop, maybe i would have an app that need to save date before being destoryed? somthing like that? Sep 28 19:13:51 jnewt: Context is a commonly misunderstood thing in android. you have context tied to the application, and context tied to views. But either should work in your case Sep 28 19:13:57 data* needs* Sep 28 19:14:33 Anton2k: onStop isn't guaranteed to be called. just override onDestroy in that case. and save the data there Sep 28 19:14:47 ah Sep 28 19:15:00 cheers for the info Sep 28 19:15:04 you bet Sep 28 19:15:38 jaynewstrom: i feel like the context should be the BluetoothDevice, and have seen it here: http://e2e.ti.com/support/low_power_rf/f/538/t/179673.aspx , but device is a BluetoothDevice, not a context, so that doesn't work Sep 28 19:16:03 i have no idea how / why they do that there. Sep 28 19:20:32 onPause is when the Activity is no longer in the foreground, onStop is when it's no longer visible Sep 28 19:23:15 Starting another regular activity would both pause and stop your activity, since it's neither in the foreground nor visible.. Starting an activity that uses one of the Dialog themes would only pause your activity.. It's no longer in the foreground (the activity you started is), but it's still visible Sep 28 19:34:28 ah that makes more sense cheers SimonVT Sep 28 19:37:14 so, if i wanted to pause audio that was playing in my app, i would have to use onPause or onStop to handle it? the other issue i am having is figuring out just how to pause the audio, as it being played within a webview... Sep 28 19:37:36 i suppose i could make the audio play in the app, but it would make the final apk bigger.... Sep 28 19:59:44 how silent has become the channel xd Sep 28 20:08:04 <^cheeky> jaynewstrom: hi again sorry .. would you know of a place where there is an example code for the TreeSet used in the Adapter for the gridView/ListView Sep 28 20:11:24 greetings guys. I am trying to embed a google map in my app, however, i a really fighting with Google Play Services. Right now it is tell me the service is not authentic, any ideas Sep 28 20:16:20 https://developers.google.com/maps/documentation/android/start Sep 28 20:18:11 don't suppose any of you guy's know where this sound is from @ 0:16 http://www.youtube.com/watch?v=uNNBP7uBbbw Sep 28 20:19:57 it's from the gta:vc startup, pretty sure they made it for it Sep 28 20:21:30 ah, pitty, they way they made it has static running though it, was trying to get a hold of a hq clipping on it Sep 28 20:29:38 stop and start can be called many times Sep 28 20:29:56 not just after/before create/destroy Sep 28 20:30:15 but the life cycle order is always the same Sep 28 20:30:18 <^cheeky> could i use ArrayAdapter and inside it use a TreeSet and manually add the values and then when i call in getItem in my adapter i check if it exists in treeset, and display it, there are maybe one or two images that are duplicates, even though in my current logic before my handler posts the image view back i have a Collections.SyncronizedHashMap() that i check the imageView token against and if they match i removed it from the hashma Sep 28 20:30:18 <^cheeky> back to the UI thread to display Sep 28 20:30:54 just extend base adapter Sep 28 20:31:11 array adapter is mostly pointless except for trivial usage Sep 28 20:31:39 <^cheeky> ok ...i tried it but i failed somewhere ill try again Sep 28 20:31:42 <^cheeky> thanks Sep 28 20:40:36 hi, noob here. docs say that by default onSaveInstanceState will save the view state like textview's text, and i see it working fine if i make an activity with a textview, and change orientation. is this not the case for views inside fragments? Sep 28 20:41:57 i've made a main activity with one in the layout, and at runtime i set a textview's text to something, inside the fragment. and that isn't being restored on orientation change - i seem to need to restore it manually Sep 28 20:42:05 TextViews don't save text by default Sep 28 20:42:25 uhm Sep 28 20:42:40 You can tell it to with setFreezesText Sep 28 20:46:50 i'm dumb. thanks SimonVT ;] Sep 28 21:05:51 cheers pfn Sep 28 21:06:34 i am slowy but surly getting to grips with it, i need to get away from using the IDE and use the java & xml more Sep 28 21:06:39 god dam hate the ide Sep 28 21:08:53 wich IDE? Sep 28 21:24:36 ides are good for experienced developers, in the hands of the neophytes it just makes garbage Sep 28 21:46:09 it seems if i cycle my bluetooth prior to scanning, i am able to pick up the low energy services. it also seems that it's poor practice to cycle without user approval. so, i guess everytime my user wants to change something, i need to have them approve a cycle. that sucks. Sep 28 21:48:36 the eclipse ide Sep 28 21:48:50 yea, it adds allot of crap i don't need Sep 28 21:49:10 i mean i want to just make simple apps, the ide just throws buttons at me and i am like wtf Sep 28 21:58:22 You gotta learn how to dodge those buttons Sep 28 21:58:35 A couple of times of getting hit in the forehead, and you'll learn. Sep 28 22:01:02 given that Android is by Google, its odd that it takes so much effort to get Maps working Sep 28 22:01:17 I mean, Maps inside your application Sep 28 22:01:30 xximjasonxx, it's not that hard Sep 28 22:01:38 even with android studio and gradle :d Sep 28 22:01:47 there is still that bug though Sep 28 22:01:54 about having map namespace inside your layout xml Sep 28 22:01:57 SpearThruster, really? 1) Dont get me started on Studio 2) I have been working on it for a few hours no, still no luck Sep 28 22:02:12 you mean the Fragment i persume Sep 28 22:02:13 my graduation final project Sep 28 22:02:14 *presume Sep 28 22:02:22 was something with maps and android :D Sep 28 22:02:24 i Sep 28 22:02:35 "defended" it in Thursday Sep 28 22:02:39 what are you having issues with? Sep 28 22:02:39 the emulator keeps bitching about upgrading Google Play Services Sep 28 22:02:43 ah Sep 28 22:02:57 I never tried it on emulator -> only my Xperia S :> Sep 28 22:03:10 the big thing, I think, is getting the Play Service reference to work properly Sep 28 22:03:11 but still Sep 28 22:03:25 which I dont think is correct inside IntelliJ Sep 28 22:03:26 are you using gradle/android studio? Sep 28 22:03:43 no, not far enough long yet, I tend to run into to many problems with Gradle Sep 28 22:03:55 so I am avoiding it until they make the build system more seamless Sep 28 22:05:05 * ^cheeky like a turtle Sep 28 22:05:56 SpearThruster, this is my current layout XML: http://pastebin.com/FxbHCL1y Sep 28 22:09:49 xximjasonxx, it seems okey Sep 28 22:09:56 what seems to be the issue specifically? Sep 28 22:10:14 just that it keeps asking to update Google Play Services, which I think I might know the answer Sep 28 22:10:35 i was trying, earlier, to deploy this app to an emulator running 4.2.2, not Google APIs Level 17 Sep 28 22:10:55 I just created a new emulator and that was when I started getting this, so I am wondering if I have conflicting versions Sep 28 22:17:47 grr: java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable Sep 28 22:21:29 xximjasonxx, I had that problem that as well Sep 28 22:21:43 but that was due ot me not knowing how to import a library project with gradle Sep 28 22:21:43 X_X Sep 28 22:22:55 both Apple and Google could really learn a lot from the whole DLL concept Microsoft has with its platforms, so much easier. Granted Android is hardly bad usually (Apple is awful), but its just nice to always do the same thing to include a library. Just syaing Sep 28 22:23:12 SpearThruster, did you use Maps v2 or v3> Sep 28 22:23:33 xximjasonxx: ... you know, I think you really, really missed a lot of stuff when writing that ;_; Sep 28 22:24:40 p_l, i am all about learning. What did I miss? Sep 28 22:25:11 xximjasonxx: DLLs by themselves are not really a new concept, and are heavily used in Android and OSX/iOS Sep 28 22:26:06 in fact, Microsoft platforms are infamous for "DLL Hell", where every application and it's pet doggy would try to install its own version of a certain DLL in global place, or had issues in resolving the correct version... Sep 28 22:26:17 Hey all, I have a question regarding settings menus. I have a PreferencesActivity which contains headers (via loadHeadersFromResource()) that point to (via android:fragment in an xml file) a PreferenceFragment. Currently I have to click a Header which opens a new window to display the PreferenceFragment. How can I display the entire PreferenceFragment underneath the header (for non-tablet... Sep 28 22:26:18 ...devices only) Sep 28 22:26:22 p_l, like I said, for the most part Android and Jar files work exceptionally well, this is really the first time I have ever had to do more than normal to get a library to work. For Apple, however, I have NEVER found it that easy and most projects have to include instructions for including the code in your project Sep 28 22:27:02 xximjasonxx: that's both unrelated to DLLs, actually. And Windows DLLs are doubly annoying because you need link libraries most of the time instead of just the DLL Sep 28 22:27:28 p_l, perhaps, but I have found that Visual Studio at least takes of most of that for you Sep 28 22:27:30 unless you're using only CLR, but that's because CLR learnt from Java errors Sep 28 22:27:49 p_l, that would be what I am referring to. I havent done any COM style windows programming in a long itme Sep 28 22:27:52 *time Sep 28 22:27:58 doesn't have to be COM Sep 28 22:28:57 anyway, i am just a bit frustrated because I dont think it should require too much effort to get Google Maps to work on the Google platform Sep 28 22:29:01 perhaps I am doing this wrong Sep 28 22:29:25 I mostly expected it to be like Windows Phone where you specify a Maps view and it just works Sep 28 22:30:10 xximjasonxx: have you checked if a) manifest has the correct data for maps b) you try to run on device that has maps c) you don't have stale files somewhere? Sep 28 22:30:58 p_l, that is what SpearThruster was saying, and I did read something where it seems very hard to get this work on the emulator Sep 28 22:31:29 as for the manifest, I can only say that I have been to three tutorials and I seem to have everything in regards to the Manifest Sep 28 22:31:44 with emulator, you need to make sure you got the right platform image Sep 28 22:32:03 for the people using google places API Sep 28 22:32:04 yeah, already figured that out. Gotta use the Google APIs image, not the 4.2.2 Sep 28 22:32:19 are you guys getting photo references with that are surrounded by ("xxx") Sep 28 22:32:53 cause when i parse that json crap, everything is perfect but they return the reference with ("xxxx"_ Sep 28 22:33:03 like wtf… then you try to escape that crap and it's a mess Sep 28 22:33:27 xximjasonxx: isn't image API deprecated? Sep 28 22:34:31 Image API? Sep 28 22:45:09 hmmm does any one know why ease-out does not work with webkit on android? yet fid in works? Sep 28 22:45:20 woops wrong channel Sep 28 22:45:56 pfn: I don't agree, I'm noob at IDE is very useful Sep 28 22:46:06 at->and Sep 28 22:56:12 Is it possible to place a place a PreferenceFragment underneath a Header in a PreferenceActivity? Sep 28 23:10:54 Does android have any way of performing Async I/O operations? for network and files? Sep 28 23:13:24 AsyncTask Sep 28 23:13:25 http://developer.android.com/reference/android/os/AsyncTask.html Sep 28 23:15:07 gdrc, useful for you to make shitty code, sure Sep 28 23:15:19 hi Sep 28 23:16:31 pfn: why you say so? Sep 28 23:17:28 because it encourages you to autocomplete to find solutions, rather than understanding the problem and using the correct approaches Sep 28 23:19:21 kkomw: That's not async I/O Sep 28 23:20:28 pfn: mmmh maybe but for noobs it's very helpful Sep 28 23:21:08 gavilan2: in asynctask you would perform your io operations Sep 28 23:21:14 i use select() in c++ jni Sep 28 23:21:22 gdrc: I know how async task works... Sep 28 23:21:38 gdrc: But I want real async I/O operations Sep 28 23:21:44 I don't know if android supports it or not Sep 28 23:22:13 I don't think so Sep 28 23:23:02 gdrc: Ok, thanks :(... That's what I wanted to know... Sep 28 23:23:23 maybe I'm wrong Sep 28 23:23:36 gdrc: I don't like using 1 thread per concurrent I/O Sep 28 23:33:03 gavilan2: you should search for third part lib for specific operation you need Sep 28 23:37:40 dear intelliJ R file generation system, I hate. Thanks Sep 28 23:40:39 gavilan2, nio Sep 29 00:05:23 pfn: is there a way to use preferencescreen layout as other common layout? I want to create a about activity/fragment for my app Sep 29 00:14:39 is the source code of gapps available? Sep 29 00:14:42 like of.. gmail? Sep 29 00:14:54 forget it Sep 29 00:14:59 nope Sep 29 00:15:00 or the original `settings' app Sep 29 00:15:02 okay Sep 29 00:15:04 yes. Sep 29 00:15:16 it's not for the google-specific stuff Sep 29 00:15:23 but for the general android stuff, it is Sep 29 00:15:23 you want to look AOSP Sep 29 00:15:31 ah, okay Sep 29 00:22:52 Hi. Has anyone had any luck with jnetpcap? Sep 29 00:37:53 Anyone know why I'm getting "cannot find symbol symbol : variable global_action_reboot" when I try to make frameworks/base/policy? I've added the string to strings.xml in the frameworks/base/res and recompiled the resource module Sep 29 00:48:23 I give up Sep 29 00:48:30 this just do not make sense Sep 29 00:53:49 I assign values to int array Sep 29 00:53:57 reading t back does not get same value Sep 29 00:58:53 Hello. Can someone help me build jnetpcap? I think I built it properly but I get a linking error when I run the app. I looked and the .so files are on the phone and in the .apk file. Sep 29 01:20:03 pfn: you have an IRC app, right? what was it called again? Sep 29 01:20:39 AndroIRC Sep 29 01:20:48 thanks :) Sep 29 01:20:56 No problem. Sep 29 01:21:01 <|0xD34D|> his is like qirc or something like that Sep 29 01:21:03 heh. first result for search term "IRC" Sep 29 01:21:04 <|0xD34D|> not androirc Sep 29 01:21:06 oh, ok Sep 29 01:21:18 yeah, qirc is the one Sep 29 01:22:16 err, qicr Sep 29 01:22:32 silly intentional misspellings Sep 29 01:25:10 fin = rndy * drawme.getWidth(); fin = rndx + rndy; Sep 29 01:25:17 you guys see a problem? heh Sep 29 01:26:16 Hello. Can someone help me build jnetpcap? I think I built it properly but I get a linking error when I run the app. I looked and the .so files are on the phone and in the .apk file. Sep 29 01:34:02 <^cheeky> i need Sleep Sep 29 01:34:17 <^cheeky> cant even do a proper compareTo impl Sep 29 01:37:28 java offends me. c++ is the OTL (one true language) imho Sep 29 01:38:09 the OTL is ASM Sep 29 01:38:13 with javascript closest competition Sep 29 01:39:17 <^cheeky> c++ is nice Sep 29 01:39:44 Ah, nonesense. Real men do 'cat > a.out' Sep 29 01:40:10 or machine code Sep 29 01:48:31 JimmyCarter: what offends you about java compared to C++ ? Sep 29 02:02:28 I like forcing my users to have to use a black background and white text Sep 29 02:09:14 I am building an app to interface with a bluetooth low energy device. I'm testing on the nexus 4 (android 4.3). I can only seem to get a response form gatt.getServices when i cycle the bluetooth off and on before running the app. Sep 29 02:19:11 JesusFreke, no, it's qicr Sep 29 02:23:24 hello, how to change android framework applications install location policy to force install apps to sdcard ? Sep 29 02:26:54 shmoooz, those commands sounded by (not yours) but java ides successfullyl keep me from really getting into it. can't think of one good one. someone today said even AS is slow as retards Sep 29 02:28:59 I remember my teacher promising me java would run fast when I moved from a Pentium 1 120 Mhz with 32 MB ram to a 166 Mhz with 64 MB ram Sep 29 02:29:35 I'm still waiting ;) Sep 29 02:29:47 hello Sep 29 02:34:54 Hello. Can someone help me build jnetpcap? I think I built it properly but I get a linking error when I run the app. I looked and the .so files are on the phone and in the .apk file. Sep 29 02:35:05 runs fast for me... Sep 29 02:35:48 Upon further investigation it seems I built it properly but System.loadLibrary doesn't seem to load it? Sep 29 02:44:23 man this google maps thing is nutty Sep 29 02:44:27 you would think, android being from google, i could just do and have it just work Sep 29 02:48:01 GDG KWC DevFest was awesome. Sep 29 02:57:21 hello, is anyone using JNI with ICS or newer? Sep 29 02:58:01 i need help caching a method ID... it seems that the changes in ICS make so i lose track of my object.... Sep 29 02:59:48 i haven't really noticed anything different in the JNI interfaces **** ENDING LOGGING AT Sun Sep 29 02:59:58 2013