**** BEGIN LOGGING AT Mon Nov 25 02:59:58 2013 Nov 25 03:00:17 and I am sure that not everyone here is only targeting high-end or otherwise never devices Nov 25 03:01:14 And since GB is still 26% of the users, maybe not the users that are going to pay for an app, but still very real users, I think it's way too early to frop GB support for most apps now Nov 25 03:01:28 it's 26% of global Play Store actives Nov 25 03:01:36 not 26% of your app users Nov 25 03:01:37 And not everyone had the options of maintaining an old and a new version at the same time Nov 25 03:01:51 you don't maintain old versions, you leave them behind on old versions Nov 25 03:01:52 JakeWharton: for My app, it's going to be more than 26%. Nov 25 03:02:34 gah wth, why is AS creating release APKs that have debugging enabled! Nov 25 03:02:53 What is your app needs to communicate to a webserver somewhere? Then you'll need to keep that compatible with some old version, because 1/4th of your requests are coming from a old version Nov 25 03:02:57 what if* Nov 25 03:03:03 (just a random example) Nov 25 03:03:04 what if I never upgrade Nov 25 03:03:09 same problem Nov 25 03:03:33 Users who don't upgrade while they can, are shooting themselves in their feet (imho) Nov 25 03:03:46 s/upgrade/upgrade phones/ Nov 25 03:03:47 What is the best way to run some code that accesses an online API in the background say, every minute? Nov 25 03:03:58 oh, phones Nov 25 03:04:29 if you are planning on using your GB phone in 2016, yeah, have fun. You'll be alone\ Nov 25 03:05:07 but *today* it's still 1/4th of all Google Play users. Maybe less for your app, maybe more for someone else. Nov 25 03:05:25 I suspect it's less for almost all apps Nov 25 03:05:27 but less for most Nov 25 03:05:43 Does anyone have a reason to believe that? Nov 25 03:06:07 sure, take a look at stats that aren't global Play Store weekly actives Nov 25 03:06:14 take a look at anything regional, for instance Nov 25 03:06:25 Where do I find such stats? Nov 25 03:06:37 we could ask if anyone here has an app with significant installs who has more than 25% we have two apps that meet that Nov 25 03:08:05 well one, depending on your definition of significant Nov 25 03:08:50 What is the best way to run some code that accesses an online API in the background say, every minute? Nov 25 03:09:09 AlarmManager Nov 25 03:09:10 maybe 2 Nov 25 03:09:29 JakeWharton: could I maybe have a doc link Nov 25 03:10:02 no Nov 25 03:10:03 https://chrome.google.com/webstore/detail/android-sdk-search/hgcbffeicehlpmgmnhnkjbjoldkfhoin Nov 25 03:10:07 install that, type 'ad AlarmManager' Nov 25 03:10:20 ok Nov 25 03:10:37 or type alarm manager into d.android.com Nov 25 03:12:18 ok, thanks. :) Nov 25 03:13:38 JakeWharton: hey, I think you might be able to help me with this. Nov 25 03:13:47 oooooo Nov 25 03:13:50 you worked on betterpickers, right? Nov 25 03:13:54 no Nov 25 03:14:02 ah, sorry, must be thinking of the wrong person Nov 25 03:14:09 pretty chrome extension Nov 25 03:14:10 $102.51 in ad revenues so far today, cool Nov 25 03:14:16 That was one of my big milestones Nov 25 03:15:11 $102.50 wasn't cutting it Nov 25 03:15:35 well, $100 was the milestone Nov 25 03:15:42 I figured :) Nov 25 03:16:11 But ad rates shoot up at the end of the year Nov 25 03:16:49 why? Nov 25 03:17:05 Having worked at a few companies, my guess is: Nov 25 03:17:18 Business units have money left over and spend it on ads Nov 25 03:17:38 People want their apps on people's minds when everyone gets new phones and tablets for Christmas Nov 25 03:17:57 makes sense Nov 25 03:18:08 Also, business deliverables (apps) might not come out until the end of the year - so that's when they promote it Nov 25 03:18:24 right Nov 25 03:18:53 Then February it drops to nothing Nov 25 03:19:14 So I'll save this money now and use some of it to buy ads for my apps in February Nov 25 03:41:44 I can't find national or regional android version usage statistics :p Nov 25 03:42:23 Most dutch articles I could find just cite Google's numbers Nov 25 03:42:44 (including blurry screenshots and everything) Nov 25 05:07:04 I'm trying to upgrade my app to 4.4 and setting targetSdk to 19 breaks my Javascript interface. I can't find anything which i needed to migrate between 18 to 19, anyone have an idea as to what might be the issue? Nov 25 05:07:30 The interface functions are properly annotated Nov 25 05:09:00 rocketnine: http://developer.android.com/guide/webapps/migrating.html Nov 25 05:10:46 alas I read through this and my code lines up just fine Nov 25 05:14:36 every UI toolkit is not thread safe. Why is that? Wouldn't it make things easier on programmers to make them threadsafe? Nov 25 05:23:15 Is an AsyncTask's onProgressUpdate a good solution for a chat client? Nov 25 05:31:43 Is there a bit list of labeled ui elements somewhere? Nov 25 05:33:10 big* Nov 25 05:40:56 Eviltechie: what do you want? Nov 25 05:43:32 damccull: I want to avoid spending time looking up the ui components are called. I spent a few minutes to find what I needed was a navigation drawer Nov 25 05:44:47 oooh Nov 25 05:45:11 I'm new to this stuff, so I'm getting used to what everything is called Nov 25 05:45:20 Eviltechie: May this would help : http://developer.android.com/guide/topics/ui/index.html Nov 25 05:45:29 The best resource I can point you at for that (personally, at least) is d.android.com. The design tab talks a lot about UI elements and design patters. The Develop tab talks about how to use them all. Nov 25 06:12:59 AsyncTask says it can be executed only once and will throw an exception if it's tried to execute again...is this talking about ALL instances of the same extended class, or just a single instantiaion? Nov 25 06:13:46 just the one Nov 25 06:19:49 so just the single instance, you mean? Nov 25 06:19:55 sweet. Nov 25 06:20:44 Next question. Say I want to access the same socket from two different inner asynctask classes...would it be better to pass it as a parameter or just access it from the parent class? Nov 25 06:22:50 that seems like a recipe for disaster Nov 25 06:23:12 what if they try to use it at the same time? Nov 25 06:24:20 damccull: what do you need from the socket from each asynctask? just some data? why not use a thread for socket send/receive&use handlers to send data to listening clients, or use a service and connect to said service and get what you need Nov 25 06:25:18 canvs2321: Hmm. Well I'm not very experienced at this multithreading thing. What I want to ultimately accompish is this: UI thread handles ui, one thread handles receiving text from socket, another thread handles sending text to socket. Nov 25 06:25:32 I figured two asynctasks operating on one socket with defined roles would do that ok Nov 25 06:25:48 why can't the latter two be one network thread Nov 25 06:26:19 durka42: doesn't inputStream.read() block? I can't be blocking while I want to send data Nov 25 06:27:12 well, there might be a way to register a callback when data is available Nov 25 06:27:21 but this suggests that two threads is a common approach http://stackoverflow.com/questions/8449064/java-sockets-can-you-send-from-one-thread-and-receive-on-another Nov 25 06:27:53 as far as I can tell, callbacks and sockets don't mix in Java. I would REALLY love that, though, since coming from C# I like that approach Nov 25 06:28:21 damccull: can you a service, and keep a seperate thread for strictly reading, and allow for a method to send to socket Nov 25 06:28:22 Hi I have two module :MapBase(library project :MapImpl(android project) I wonder if they can have the same package name? Nov 25 06:29:08 canvs2321: services are started on the UI thread anyways, so I'd need to thread in that anyhow. And that's what I am doing. Service handles the connection and talks to the UI. That way the UI can close and leave the connection open. Nov 25 06:29:11 can you a service = can use a service Nov 25 06:29:34 yeah start a thread in the service, or you can keep it all in an activity if you aren't changing Nov 25 06:30:16 just need flags set or make sure to kill threads once activity onPause's or onDestroys based on your needs Nov 25 06:30:23 canvs2321: that still leaves the question, are two asynctasks the best way to do this? ;) And it so, can I safely access the socket as a member of the outer class, or do I need to pass as paramter? Nov 25 06:30:52 just use thread, asynctask i don't think are supposed to be persistant, how long is your connection? Nov 25 06:31:11 maven__: every android project must have a unique package name. One can be a subpackage of the other, however, i believe. Nov 25 06:31:25 long running as a possibility, but not activity life running? Nov 25 06:31:41 canvs2321: as long as user wants. Making a chat client. Sad though, cause asynctask seems so simple. Threads seem evil. Nov 25 06:32:23 damccull, Thanky you. Nov 25 06:32:25 threads aren't evil, asynctask use threads, they just add all the stuff you'd put in a thread to post to ui, and allow setting things up before/after run Nov 25 06:32:51 canvs2321: yeah but asynctasks are easy. Lol. just implement methods and the magic happens for you Nov 25 06:33:26 like making a higher abstract layer to threads, but maybe not meant for a long or ever lasting solution. i may be wrong :) Nov 25 06:35:24 hmm. I wonder why they say asynctask isn't useful for long running tasks. Maybe there's some performance issue. Nov 25 06:38:13 Do the items in ListViews need to be equal in height? Nov 25 06:42:43 damccull: think about it, if it has postexecute, how will that ever be used if long running? just seems, preexecute,dobackground,updateprogress,postexecute seem like a timed event. you want everlasting...make sense? Nov 25 06:43:29 Yeah, but I don't really need to use onPostExecute...I can send the messages to UI in the onProgressUpdate. Nov 25 06:46:14 or you can use handlers or runonuithread within a well maintained thread :P Nov 25 06:48:40 canvs2321: true. I'm looking at something called a Handler now. Nov 25 06:48:55 not much documentation on it that i can find Nov 25 06:49:12 damccull: there is tons of info on handlers Nov 25 06:49:23 i must be googling wrong then Nov 25 06:49:31 i'll change search terms Nov 25 06:49:35 and they work great with sending detailed messages to UI to do whatever you want with what the thread is doing Nov 25 06:50:23 what are your search terms? Nov 25 06:51:45 android thread handler tutorial worked. Before I just did android handler and got a lot of examples but nothing explaining how it relates to everything else Nov 25 06:52:02 oh crap. how'd I miss this in the dev guide? Nov 25 06:52:04 reading Nov 25 06:52:32 oh, heh. Cause I always use the API guides, instead of the training tab :D Nov 25 06:54:23 :) definately check out handlers&threads,can be very useful for your situation Nov 25 06:55:36 main thing though with creating your own threads is to make sure when you activity or app is no longer needing them to kill them or set a global variable to false to make sure the thread stops etc.... Nov 25 07:15:05 What is the best way to have two pieces of data in a list row seperated by a centered divider? Nov 25 07:15:15 (UI-wise) Nov 25 07:16:12 custom adapter? Nov 25 07:16:27 canvs2321, I'm aware of how to do it technically. Nov 25 07:16:32 I'm wondering about UI stuff. Nov 25 07:16:40 As in how to make it look pretty. Nov 25 07:16:48 For lack of a better word. Nov 25 07:18:16 follow guidelines for margins/padding and target your OS of choice as theme? Nov 25 07:20:23 Sorry if this is a "Google it" thing, but where would I find the margin/padding standards? Nov 25 07:21:10 from the developers website for google. tells you standards, not sure of the link off hand Nov 25 07:21:39 and yes it's a google it thing Nov 25 07:22:43 All I can find is general descriptions. No numbers. Nov 25 07:23:08 why does android studio think my min api level is 10? I changed it to 14 in android manifest and build.gradel Nov 25 07:23:26 damccull, Did you sync with gradle? Nov 25 07:23:28 damccull how did you change it? Nov 25 07:23:39 hmm. hwo do i sync? Nov 25 07:24:08 damccull, There's a little button in the bar on the top which looks like a gradle symbol with an arrow under it. Nov 25 07:24:27 If you hover over it, it'll say "sync project with gradle files". Nov 25 07:24:54 I can't find anything in the design docs about question-answer format lists. Nov 25 07:24:58 Hah! that fixed it. thanks. Nov 25 07:25:03 It's all stuff that are title-subtitle. Nov 25 07:25:32 i use the ndk and i try to get a string from a jstring by (*env)->GetStringUTFChars(env, stringVar, 0); but it is giving me a segfault (env and stringvar both are non-null). I want to have Envorinment.getExternalStorageDirectory().getAbsolutePath() in my c library. Any hints what could be wrong? Nov 25 07:33:25 How can I get a string from resources without being in a service or activity? Nov 25 07:34:46 pass around a Context Nov 25 07:42:01 JakeWharton: is this solution going to cause me problems in the future? http://stackoverflow.com/questions/4391720/how-can-i-get-a-resource-content-from-a-static-context/4391811#4391811 Nov 25 07:42:29 no, it's just a weak pattern Nov 25 07:42:46 Oh. Well I don't want to be weak. Heh. Nov 25 07:43:18 Doesn't passing contexts cause memory leaks if you screw it up? Nov 25 07:43:30 yes Nov 25 07:43:37 but that's true for a lot of things Nov 25 07:43:48 Contexts are just exceptionally heavy objects so it matters all the more Nov 25 07:44:18 I see. Nov 25 07:44:25 WHat makes the solution I pasted a weak one? Nov 25 07:44:51 it's usually indicative of code that can be refactored to not need access to a static context Nov 25 07:45:02 Ah. I see. Nov 25 07:45:37 Isn't the context I'd be passing ultimately a static one, being that it goes up to the built in Application class anyways? Nov 25 07:51:43 yes, in that pattern Nov 25 07:55:55 I see Nov 25 07:56:33 ok. so, next question, in an AsyncTask, my android studio says the constructor I made for it is never used...is this accurate? can I give it a constrcutor? Nov 25 07:57:56 heh nm i'm dumb Nov 25 07:58:08 it really WASN'T being used. Adding a call to it alleviates that error Nov 25 08:09:22 i'm having this problem: http://stackoverflow.com/questions/20181118/softreference-prevents-activity-from-getting-garbage-collected any ideas guys? Nov 25 08:13:37 i'm told that you should never use SoftReferences on Android Nov 25 08:13:43 they're not as soft as the ones on the JVM Nov 25 08:14:05 they skew to both sides of the strong/weak spectrum and are never really soft Nov 25 08:14:22 i see Nov 25 08:14:27 it's internal unfortunately Nov 25 08:14:32 not something i wrote Nov 25 08:14:36 (core android) Nov 25 08:14:58 it's in the OS? Nov 25 08:15:08 well, core android API Nov 25 08:15:17 it's from adding a text watcher to an EditText Nov 25 08:15:30 that's my theory anyway, trying to removeTextWatcher() in onStop() now Nov 25 08:15:41 removeTextChangedListener * Nov 25 08:17:01 DDMS is my new crack Nov 25 08:17:11 well, DDMS + MAT Nov 25 08:25:47 elo guys Nov 25 08:27:44 IntelliJ 13 "Sync project with Gradle Files" Nov 25 08:28:04 how do i get that option to show? i have added it in the toolbars but its not showing up Nov 25 08:29:58 or is that not possible without AS? Nov 25 08:31:31 Whats in scoop with ART? Nov 25 08:42:07 Hey guys Nov 25 08:43:57 How do I refresh an activity with a refresh button? Nov 25 08:44:34 What do you want to refresh? Nov 25 08:44:53 A ListView Nov 25 08:45:20 Well, when a user submit a comment, it will automatically refresh the ListView Nov 25 08:46:43 I've google'd for it and so far I only got a tutorial for creating a Refresh button on an ActionBar Nov 25 08:46:46 piracyd3: did you try notifyDataSetChanged() on the Listview adapter? Nov 25 08:47:11 ok, you were talking about adding a refresh button to the actionbar right? Nov 25 08:47:44 No. The refresh activity. Nov 25 08:48:06 Um, I managed to insert a button to the actionbar, now I want to make it functional Nov 25 08:48:56 How do I do that? It's suppose to be simple I guess. But no tutorial has done this part yet. Nov 25 08:51:35 Oh no... Nov 25 08:51:46 It's Monday Nov 25 08:52:35 Batten down the hatches! It's time for work.. uh i mean War@ Nov 25 08:53:52 yup, Monday, the day every grown fears/hates most DarkSlay3r Nov 25 08:54:38 You know what bothers me the most? Nov 25 08:54:47 Bosses are freshly rested Nov 25 08:55:06 With soo much energy and enthusiasm Nov 25 08:55:11 lol Nov 25 08:55:48 I was yelled at this morning for no apparent reason Nov 25 08:56:18 This would never have happened on a Friday Nov 25 08:56:21 dat enthusiasm Nov 25 08:59:18 hello, i want to took a picture from a website that is shown on a android smartphone. there should be a button "took picture" and dthen it should be transfered to a server. how to do? Nov 25 09:00:02 I'm sorry, what? Nov 25 09:01:01 piracyd3, read up on listviews. notifyDataSetChanged() is the correct way to refresh a listview Nov 25 09:01:07 refreshing the entire activity is wrong Nov 25 09:01:10 sonOfRa: thanks Nov 25 09:05:48 wow.. stackoverflow is offline? Nov 25 09:06:50 not entirely , seems theyre doing maintenance Nov 25 09:07:20 so, what did you shout out for DarkSlay3r lack of caffeine ? ? Nov 25 09:08:01 piracyd3: Did you fix your actionbar issue? Nov 25 09:08:50 I'm looking at notifyDataSetChanged() Nov 25 09:11:06 Why the Project Structure in android studio been changed to this? http://imgbin.org/images/15803.png Nov 25 09:11:39 * Looney hopes that DarkSlay3r won't yell at him Nov 25 09:12:29 maven__: are you using the canary channel? Nov 25 09:12:39 what is the best way for truncating a table? Nov 25 09:13:00 dck28, I do not know Nov 25 09:13:46 i know that the dev channel for studio hasn't released an update in a while... Nov 25 09:15:36 :( Yes, I am in the canary channel, I do not remember I choose this manually Nov 25 09:16:11 Is it possible to back to the stable channel? Nov 25 09:30:51 Does the android studio can use a pre-installed gradle ? Nov 25 09:33:39 are we able to re-use the same instance of a DialogFragment? Nov 25 09:34:16 ie: after calling show() and then dismiss() can we show() it again (passing in the fragment manager and tag) ? Nov 25 09:55:15 Hi all, how can I support a language for TTS (Text To Speech) which is not default available on the device? (Dutch) Nov 25 10:00:56 I need to interpret serial data over bluetooth that come with escape sequenzes, any idea how i could accomblish this without writing my own emulator?` Nov 25 10:03:14 any idea how to cancel an OnClickListener from firing if an onLongClickListener was consumed? Nov 25 10:09:27 Is it possible to show a country on Google Maps and it's Islands? For example, Spain and the Canary Islands (which are a bit far away) Nov 25 10:13:12 And if someone could formulate my question in a better way so that people can actually understand it Nov 25 10:17:22 So no standard way to interpret serial data with vt100 escape sequences? Nov 25 10:26:10 I have a text: "Box 3 confirmed" but I need to support multiple languages. Can I create a string in values/strings.xml where I can put the number 3 from code? Nov 25 10:30:08 Box %1 confirmed -- getString(R.string.the_name).replace("%1", "3"); ? Nov 25 10:47:07 hi, can someone make me an app ? Nov 25 10:47:19 how much are you paying? Nov 25 10:48:33 not much. Nov 25 10:49:24 i'm sure people can make you an app, it's a question of whether they'd be willing to...you have to make a worthwhile offer Nov 25 11:30:37 what is the difference between android SDK build tool and sdk platform? Nov 25 11:32:19 Is it possible to show a country on Google Maps and it's Islands? For example, Spain and the Canary Islands (which are a bit far away, show like two maps in one map) Nov 25 11:34:48 hi guys, AlertDialog isnt a blocking event ? I mean it doesnt even wait my answer to the alert to start executing all the code after the alertdialog Nov 25 11:40:13 macTAR: Then you are doing it wrong Nov 25 11:40:41 zap0: I could consider Nov 25 11:40:52 although i want all rights and control of the app Nov 25 11:41:05 i will not provide attribution Nov 25 11:49:47 If I had a penny for every time someone asked to have an app built with no budget, i'd have enough have an app a built Nov 25 11:50:52 if i had $10.00 for every time someone told me to fix a bug when it was a bug in their software. Nov 25 11:50:59 i'd probably never have to work again Nov 25 11:52:01 if i had a penny for every time a client said something wasn't working, when in fact it was and they're just stupid, i'd have enough money to purchase their company, and then fire them for being so stupid Nov 25 11:53:06 * wmealing_ ponders rubberducking out loud Nov 25 11:53:16 i've tried by myself with no luck Nov 25 11:53:48 its good to talk to yourself about a problem, i find it very helpful Nov 25 11:53:54 usually helps Nov 25 11:54:02 or a colleague, or if you don't have anyone, just post here Nov 25 11:54:08 or on twitter Nov 25 11:55:46 i'm doing this as a hobby, I'm alone doing this Nov 25 11:56:17 best thing to do is surround yourself with other devs on twitter/irc and other places Nov 25 11:56:50 i have a spinner, and i'm almost sure i've seen interested.getSelectedItem().toString(), .. and not return the string value of the .. array used in the selector Nov 25 11:57:18 but rather a value in the xml that wasn't the value between the tags Nov 25 11:57:48 what was the value being returned Nov 25 11:57:52 This is what appears on the screen Nov 25 11:57:59 in the above example, first was returned Nov 25 11:58:06 i saw this a while back, but it is my memory Nov 25 11:58:09 so i might be entirely wrong Nov 25 11:59:58 maybe it was even an id Nov 25 12:00:00 * wmealing_ thinks Nov 25 12:00:34 ah Nov 25 12:00:36 http://developer.android.com/guide/topics/resources/string-resource.html#StringArray Nov 25 12:00:38 i'm not going mad. Nov 25 12:01:51 that gives me better search terms Nov 25 12:02:54 Ok... Now this is why i hate Mondays... I basically have to do a huge task with no budget while the manager screams at me to do something without uttering a word as to what i am supposed to do Nov 25 12:03:13 (y) Nov 25 12:03:32 sounds more like an issue with your management/job Nov 25 12:03:46 Management... Nov 25 12:04:00 I have the worst Management in existence Nov 25 12:04:00 'management' Nov 25 12:04:18 shouting at people and not giving direction isn't management Nov 25 12:04:35 It gets worse... Nov 25 12:04:44 talk to their manager Nov 25 12:04:45 about management Nov 25 12:05:02 do you work for a large company? Nov 25 12:05:25 this is why I like working for small companies, a lot easier to get your voice heard if something isn't going well (most of the time) Nov 25 12:05:28 Apparently the manager decided that the solution to the problem is to drop the responsibility on to our shoulders Nov 25 12:05:39 my last job only had 4 people, and the boss was an utter twat Nov 25 12:05:58 So now i am responsible for something i do not understand Nov 25 12:06:09 :/ Nov 25 12:06:12 * DarkSlay3r bashes head into wall Nov 25 12:06:18 Mondays... Nov 25 12:13:59 hello :) Nov 25 12:18:02 i've some special task - i want to clone the layout of a app at runtime and i'm searching for ways to do this. its okay to modify android source for this goal Nov 25 12:19:00 i wouldnt. Nov 25 12:19:17 clone the layout of an app, why not just.. use the layout again.. Nov 25 12:19:27 no, i mean any app Nov 25 12:21:21 for example i want the system to log the "build" of the layout and do this with my app by this log again - thats only a example, the purpose is another Nov 25 12:22:11 i feel like you're skinning the cat the wrong way Nov 25 12:22:13 if you get my drift Nov 25 12:22:26 but i may be entirely wrong, so i'll shut up Nov 25 12:22:50 the aim is to display it on a remote target Nov 25 12:23:32 but with keeping layout information and borders to be able to interpretate inputs Nov 25 12:23:50 so i cant use remote by images Nov 25 12:24:52 and this should work with any app that is made by the normal android widgets Nov 25 12:26:50 i was able to create a log of constructed views, but for example then i am not able to reconstruct the hierarchy, i dont know, which view is in which layout - so i'm looking for alternatives and was hoping anybody here has maybe an idea of approach Nov 25 12:27:53 one alternative would be to transfer the apk and analyze the xml files, but because of the binary format i think, thats very unefficient Nov 25 12:36:49 Is it possible to show a country on Google Maps and it's Islands? For example, Spain and the Canary Islands (which are a bit far away, show like two maps in one map) Nov 25 12:41:09 Dreyfax: not an easy problem to solve tbh Nov 25 12:44:42 what does tbh mean? :) Nov 25 12:44:55 and yes i think so too :D Nov 25 12:46:10 to be honest Nov 25 12:50:22 ah, thanks Nov 25 12:51:18 maybe it is possible to install the app on both devices and sync notifications/events Nov 25 12:53:08 DarkSlay3r, uses GPS to detect slowing down; turns the screen red. basically a GPS driven stop sign for a vehicle. thats it. how much? Nov 25 12:54:20 i take it you didnt read my terms Nov 25 12:54:43 zap0, I would consider too Nov 25 12:54:54 is there a standard way to authenticate a user via twitter? Nov 25 12:55:04 oauth Nov 25 12:55:08 rhcake, yes, the twitter API Nov 25 12:55:37 zyngawow_, your nick does not inspire confidence. Nov 25 12:55:49 zap0, and DarkSlay3r does Nov 25 12:55:53 Fine Nov 25 12:56:01 rhcake, google works too http://www.androidhive.info/2012/09/android-twitter-oauth-connect-tutorial/ Nov 25 12:56:07 DarkSlay3r, i don't think there is any IP worth protecting. you can retain all pownershiip Nov 25 12:56:24 Thanks Nov 25 12:57:18 is there a way to give a transparent image in an image view a drop shadow? Nov 25 12:57:47 If it matters, if I develop an app for someone, I will not want control of it Nov 25 12:57:52 It's yours. Forever Nov 25 12:59:15 lemonxah, wild guess... have you tried doing it as in a normal ImageView? Nov 25 12:59:56 zyngawow_, i dont want the imageview to have a drop shadow Nov 25 13:00:10 lemonxah, so? Nov 25 13:00:14 have you all noticed that the View.startDrag() & co drag APIs causing excessive drawing ? seems something changed in 4.4 and i can't find the root cuase Nov 25 13:00:14 i want the image inside it that is transparent to have a dropshadow Nov 25 13:00:25 sorry if i am completely stupid Nov 25 13:00:31 lemonxah, how can a transparent thing have a drop shadow? Nov 25 13:00:38 you mean translucid? Nov 25 13:00:54 lemonxah: do you want only the opaque section to have a drop shadow? Nov 25 13:00:57 programmatically Nov 25 13:01:14 i am not english and that might be it .. basically its a circle on the inside butt he outside is transparent Nov 25 13:01:20 yes funkbox Nov 25 13:01:36 can you make the image itself have the drop shadow? Nov 25 13:01:37 i could do it programmatically was hoping for layout :) Nov 25 13:01:47 lemonxah: no layout. has to be code Nov 25 13:01:50 or alter the image Nov 25 13:01:52 i'd alter the image Nov 25 13:01:56 lemonxah, AH! So you have a circle, and you want it to have a drop shadow Nov 25 13:02:02 I'd do what funkbox suggests too Nov 25 13:02:17 do the laziest possible thing Nov 25 13:02:23 it's usually the best way Nov 25 13:02:53 http://www.goodreads.com/quotes/568877-i-choose-a-lazy-person-to-do-a-hard-job Nov 25 13:02:58 lemonxah, in case you wonder: http://stackoverflow.com/questions/3693234/custom-imageview-with-drop-shadow Nov 25 13:03:03 There is the "good" solutionç Nov 25 13:03:13 2nd answer, the one with 54 upvotes Nov 25 13:03:42 zyngawow_: that wouldn't take into account irregular paths Nov 25 13:04:03 funkbox, he said a circle Nov 25 13:04:23 This draws a shadow layer below the main layer, with the specified offset and color, and blur radius. Nov 25 13:04:29 Doesn't really say anything about shape Nov 25 13:06:32 By the way zap0, not hiring someone because of his nickname really says a lot about you Nov 25 13:06:43 this is close... but it says stop based on just about any movement of motion sensor https://play.google.com/store/apps/details?id=com.maxcom.brakelamp Nov 25 13:07:22 zyngawow_.. information is information. Nov 25 13:07:42 zap0, sure. Good luck finding a dev Nov 25 13:08:02 By the way, I get what you want Nov 25 13:09:31 zyngawow_: ah, i guess he could just draw a circle Nov 25 13:10:28 speaking of hiring, where do y'all usually hire? i'm looking to hire a seniorish person with remote allowed but little luck thus far Nov 25 13:10:56 funkbox, most of us in here try to get hired instead of trying to hire Nov 25 13:10:58 but... Nov 25 13:11:17 Local press usually, you could try a freelancing site, job postings... Nov 25 13:13:28 if my nick was pedorapist would you ignore that fact when deciding if i'm hiring material ? Nov 25 13:14:09 lol Nov 25 13:14:24 zap0, sure, because zyngawow has a lot to do with illegal and nonproffessional stuff Nov 25 13:15:55 zyngawow_: oh.. but posting jobs is anti-policy Nov 25 13:16:17 funkbox, huh? Nov 25 13:16:20 or maybe it's kosher to say "if you're looking for a job PM me" ? Nov 25 13:16:31 He posted it, not me Nov 25 13:16:35 on freenode usually it's very bad taste to hijack rooms with hiring etc... Nov 25 13:16:47 I know, it's on the topic Nov 25 13:17:03 This is just name discussion right now Nov 25 13:18:06 is the trading of bitcoins for programming work considered hiring or data transfer? ;p Nov 25 13:18:21 Hiring Nov 25 13:18:43 Provided that bitcoins are money Nov 25 13:19:15 but is it? Might depend on wjo you're asking Nov 25 13:19:33 are they money or credit? Nov 25 13:19:57 zap0, according to Germany (only country to state anything), money Nov 25 13:21:50 interesting. seems like it's hit a tipping point where simply discrediting it in the media is no longer keeping it from becoming `legit` Nov 25 13:22:43 i wonder if any of those currency exchange web site list it yet Nov 25 13:23:28 it still behaves much more like a commodity than a currency Nov 25 13:23:28 zap0, I'm looking for a new nickname, what do you suggest? Nov 25 13:23:36 Leeds, a bubble mostly Nov 25 13:25:33 maybe zynga works for you in this context; i'm not saying it's wrong, just implies a bunch of stuff, to me those things are negatives. Nov 25 13:25:47 wow is negative? Nov 25 13:26:01 or is it the _ Nov 25 13:26:25 not sure if you're baiting or not Nov 25 13:26:41 but Zynga is known for its re-processing of existing games Nov 25 13:26:53 wmealing_, yet he finds zynga ok Nov 25 13:26:57 and integrating them into its franchise with an "ville" after the end of it. Nov 25 13:27:04 * wmealing_ dunno Nov 25 13:27:27 up to you .. you get all the love that the company built. Nov 25 13:27:40 For a name I made up even before zynga was famous Nov 25 13:27:45 Will you hire me now? Nov 25 13:27:55 wmealing_, yeah... you get it ;) Nov 25 13:28:16 it doesn't matter Nov 25 13:28:23 there are 50 people called micheal bolton Nov 25 13:28:31 and only one of them sings for money Nov 25 13:28:41 gr8 b8 m8 i r8 it 8/8 Nov 25 13:28:42 the other 49, dont like him so much, even if they are older Nov 25 13:29:02 I think you'd be surprised... if you offer all of them money, more than one is likely to sing ... ;) Nov 25 13:29:04 >why should i change it, he's the no talent assclown Nov 25 13:29:14 49 of them probably go by Mike ;) Nov 25 13:29:19 yeeep Nov 25 13:30:01 Alright, so to be a programmer I need to get a new nickname Nov 25 13:30:08 Do you want my real name, zap0 ? Nov 25 13:31:42 that is what i use Nov 25 13:33:27 if you are aware of the association with those innovation parasites, why would you persist with that nick? Nov 25 13:34:36 zap0, because most people know me for it Nov 25 13:34:54 And because my surname is not nice to pronounce in other languages Nov 25 13:37:01 I'm fan of the nick reduction: zyngawow -> zyngawo -> zyngaw -> zynga -> zyng -> zyn -> zy -> z Nov 25 13:37:10 any one of them is a nice nick. Nov 25 13:37:17 I like z Nov 25 13:37:56 Aand I'm officialy autrilla Nov 25 13:38:04 If anyone want zyngawow... Nov 25 13:38:08 wants* Nov 25 13:38:31 i think i might just try to implement something in browser.. if a browser can obtian access to location.. turning the screen red is trivial. And i mean you no personal disrespect, i'm sure you're a good developer, just an unfortunate choice of nick. Nov 25 13:39:12 Sure, do whatever you want Nov 25 13:39:18 Instead of even asking for a price Nov 25 13:39:42 see you Nov 25 13:42:08 if you're interested... this seems to be the js code: http://stackoverflow.com/questions/3343562/how-google-chrome-knows-my-current-gps-location-and-how-to-use-it-in-my-code Nov 25 13:52:13 hello guys, have any one worked with parsing data from rss2 for wordpress ? Nov 25 13:52:43 is that an android question? Nov 25 13:53:14 yes given I have an issue while parsing it with android. Nov 25 13:53:23 and the java channel guys said it was an android question. Nov 25 13:53:37 ok Nov 25 13:54:10 zap0 have you done something similar before ? Nov 25 13:54:10 it really doesn't sound very android specific. Nov 25 13:54:37 rss is basically just XML Nov 25 13:54:39 zap0 let me ask the question and if it's not android specific, I'll try to ask it in its specific channel k ? Nov 25 13:55:44 hello Nov 25 13:55:55 I have added my android studio project at git repo Nov 25 13:56:05 you parse XML using a programming language... like java. the fact it's running on android is mostly irreveleant. Nov 25 13:56:08 When i try to open it from another computer it fails Nov 25 13:56:21 zap0, try explaining that to the java channel :) Nov 25 13:56:25 Android studio changes the path and indexes all the Nov 25 13:56:26 files Nov 25 13:56:35 and then can find support lib Nov 25 13:56:44 although i have downloaded them from sdk Nov 25 13:56:46 manager Nov 25 13:56:47 must be a hell of a question Nov 25 13:56:50 zap0 anyway, you are right, whatever. Nov 25 13:57:01 since you've been completely unable to actually ask the question Nov 25 13:57:02 tonyMontana9099. perhaps you are not explaining it well. Nov 25 13:57:25 tonyMontana9099, is the problem about network connections or obtaining the data... or parsing it once you have the data? Nov 25 13:57:57 zap0, well, I need to get the attribute from a tag inside an xml Nov 25 13:58:12 have a look http://pastebin.com/NZRzqgia Nov 25 13:58:33 sounds a lot like a XML API issue, which is quite remote from teh actual platform. Nov 25 14:02:16 media:thumbnail sounds like you have a namespaced document Nov 25 14:02:53 now if your parser is namespace aware, the element is called thumbnail but its namespace is whatever media is defined to be Nov 25 14:03:44 alankila aha, does it work with this way or I need to change something ? Nov 25 14:03:48 if your parser isn't namespace aware, chances are it would find the tag by ame 'media:thumbnail' Nov 25 14:04:03 i am using sax. Nov 25 14:04:04 I generally run xml parsing jobs without namespace awareness because I'm a lazy git Nov 25 14:04:10 hello android dev Nov 25 14:04:36 hi Nov 25 14:04:55 guys, is there a way to my app send a file to the google drive app? Nov 25 14:05:06 Question How can I capture the output of a Crashed application? I see a debug Diagoug appears for to >>>send to what I assume is developer? How can I capture this log output with adb??? like? Nov 25 14:05:12 tonyMontana9099: afaik SAX is merely an API for reading XML, says nothing about how it's parsed or whatever Nov 25 14:05:52 when i first create an app with a blank activity and i run it i can see the the app displaying on the emulator. But.. since i change anything following http://developer.android.com/ tutorial, i hit again 'Run' and nothing happens Nov 25 14:05:56 well its google hangouts> and the Galery application and Focal Nov 25 14:06:05 i can't see no error and nothing strange Nov 25 14:06:24 SidGBF: yes, look up "google drive android sdk" Nov 25 14:06:24 Godfather, what does logcat say? Nov 25 14:07:04 tonyMontana9099: you might want to start by using SAXParserFactory, setNamespaceAware(false), then get a parser... This isn't semantically quite valid way to parse XML because the meaning of XML can be the same even if the namespace prefix changed Nov 25 14:07:23 alankila, i want to dig into that url however :D how can I do it ? Nov 25 14:07:47 but since namespace prefixes rarely change it's probably just the same in practice and avoids having to deal with that xmlns shit Nov 25 14:08:10 since the update to 4.4 a library that I am using seems to be hitting a permission denied error when using a ParcelFileDescriptor to decode an image from a URI. has there been any changes to the security of KitKat that would cause this? Nov 25 14:08:38 funkbox: I saw that, hadn't time to read... So google drive app will actually intercept the http request? Nov 25 14:09:18 tonyMontana9099: if you want to do it properly, you need to use the "NS"-suffixed versions of getElementByTagName and like. Nov 25 14:10:19 you need to provide the element's name within the namespace, and the namespace URI, which qualifies the name to such a degree that it will be identified correctly even if the used namespace prefix changed. Nov 25 14:10:34 SidGBF: er.. what did you actually see? there's a demo app, check i tout Nov 25 14:10:43 ok Nov 25 14:12:37 CallumTaylor in the house Nov 25 14:12:48 sup Nov 25 14:12:53 nm mate Nov 25 14:13:05 i was just talking with alankila regarding an issue im facing, Nov 25 14:17:46 tonyMontana9099: what's your issue Nov 25 14:18:18 whats the issue Nov 25 14:19:41 Sounds like we will be getting 64bit soon Nov 25 14:20:05 Anyone excited? Nov 25 14:20:12 DarkSlay3r yes me :D Nov 25 14:20:26 DarkSlay3r: what hardware ? Nov 25 14:20:30 Yeah Nov 25 14:21:28 funkbox DarkSlay3r CallumTaylor, so my issue is that I am trying to parse an RSS 2 feed (from wordpress),, but cannot get into a tag to get its value.... here is a pastebin http://pastebin.com/NZRzqgia Nov 25 14:22:23 http://www.vogella.com/articles/AndroidXML/article.html Nov 25 14:22:34 ew xml Nov 25 14:22:37 i'm not sure but isn't rss just xml? Nov 25 14:22:39 yeah I can't help with xml Nov 25 14:22:40 Hi, how can I create a focus feedback for a camera? green image if focus is oké, red if focus is not good Nov 25 14:22:45 yeah it is Nov 25 14:22:57 CallumTaylor: I believe you can do anything Nov 25 14:23:06 CallumTaylor me too :D Nov 25 14:23:07 no I don't do xml Nov 25 14:23:10 i only do json Nov 25 14:23:14 i'm gay for json Nov 25 14:23:15 the term can't isnt made for you :))) Nov 25 14:23:17 Lies Nov 25 14:23:21 He can do anything Nov 25 14:23:22 i literally have the tshirt Nov 25 14:23:27 CallumTaylor hahahahahaha Nov 25 14:23:43 apparently the issue is a namespace issue,, and sax cant handle it.. Nov 25 14:23:49 I saw the man bring Fortran back to life Nov 25 14:23:58 He is the One Nov 25 14:24:32 DarkSlay3r he's the Anakin Skywalker Nov 25 14:24:45 The force is with him Nov 25 14:25:15 yes, 100% Nov 25 14:25:59 (old pic) http://s.scruffyfox.me/json.jpg Nov 25 14:26:31 hahahahah, nice one ! Nov 25 14:27:06 i think ima read the article and change the way I am parsing the xml :/ this sax thing isnt really working apparently. Nov 25 14:27:57 Lol Nov 25 14:28:04 Nice office space though Nov 25 14:28:16 yeah we have to move out soon :/ Nov 25 14:28:21 yaaaa, CallumTaylor do you have any openings ? Nov 25 14:28:21 we're in a data centre building Nov 25 14:28:31 we have tier 1 internet, its awesome Nov 25 14:28:59 CallumTaylor: 6 figure salary and generous relocation package and you can have me Nov 25 14:29:13 6 figure? i wish i was on 6 figures Nov 25 14:29:16 DarkSlay3r keep dreaming :) Nov 25 14:29:20 Dental plan negotiable Nov 25 14:29:26 lol Nov 25 14:29:27 CallumTaylor, we all know you are on 7 figure :D Nov 25 14:29:28 nhs man Nov 25 14:29:31 I'm on 6 figures Nov 25 14:29:46 i should bring this up during my next review meeting Nov 25 14:29:50 Leeds, no doubt. Nov 25 14:29:51 i'll use you all as references Nov 25 14:30:14 6 figures in which currency? Nov 25 14:30:20 i'll also add a condition : i need to be at every judge jules concert. Nov 25 14:30:25 tip'o'the'hat to Mavrik Nov 25 14:30:36 leeds where do you work? Nov 25 14:30:43 CallumTaylor: at home Nov 25 14:30:47 livin' Nov 25 14:30:49 the dream Nov 25 14:31:02 although I don't work well at home :/ Nov 25 14:31:12 CallumTaylor, i work at home though. Nov 25 14:31:14 my home is the enemy of all things work Nov 25 14:31:17 but now I am looking for an office. Nov 25 14:31:23 too many distractions Nov 25 14:31:32 10 min task tends to take 1.5hrs Nov 25 14:31:49 become a hipster: work from starbucks Nov 25 14:31:53 I don't work well at home either - been doing it over a year now, but I get a lot of TV watched, and I've killed a *lot* of zombies on my N7 Nov 25 14:32:01 haha Nov 25 14:32:10 leeds do you make your own software? or do you freelance? Nov 25 14:32:11 Leeds true.. hard to work with the fridge against you. Nov 25 14:32:17 Starbucks is a security risk Nov 25 14:32:45 You'll be surprised at the kind of information you can gather looking over peoples shoulders Nov 25 14:33:00 awesome, i didnt know about R.integer or R.integer-array Nov 25 14:33:09 I could work there if starbucks installs cubicles Nov 25 14:33:11 i work from coffee shops sometimes, if im in the mood. Nov 25 14:33:18 CallumTaylor: mostly the latter - mostly working for one guy Nov 25 14:33:32 cool, i couldn't freelance, I hate dealing with clients Nov 25 14:33:45 Leeds: how the hell could you make 6 figures working for 1 guy? Nov 25 14:33:52 and I couldn't make my own software because I don't have any good ideas and my current app isn't self sustainable :/ Nov 25 14:34:01 tonyMontana9099: setup an office in your home and make that the work area Nov 25 14:34:03 DarkSlay3r: did you see what Mavrik said? Nov 25 14:34:09 let others know you're working an are not to be bothered Nov 25 14:34:11 CallumTaylor, at what point do you call an app self sustainable Nov 25 14:34:13 Oh... Nov 25 14:34:30 darken: when it makes enough money to support myself Nov 25 14:34:39 ;) Nov 25 14:34:42 How much is that Nov 25 14:35:05 well my current app makes 1/4 of what I make in a month from my day job Nov 25 14:35:05 personal question.. Nov 25 14:35:08 if not, less Nov 25 14:35:14 funkbox: I could do that... but after an hour of work.. mysteriously the office area will integrate into the living room Nov 25 14:35:27 unless you're *incredibly* good and/or *incredibly* lucky, you're very very unlikely to make a living from a single app... 5 apps, on the other hand, if they can all be moderately successful... Nov 25 14:35:42 CallumTaylor, would you quit current job only if it made equal or more? or would you switch if it is less but enough to sustain yourself Nov 25 14:35:43 if you have enough ideas for 5 apps Nov 25 14:35:48 yes, in a heartbeat Nov 25 14:35:56 I want a 5 star app that makes millions of dollars but i'm not talented... Nov 25 14:36:02 or creative Nov 25 14:36:25 I'm planing on just writing software in my free time until i can get a steady income from it and then decide then Nov 25 14:36:31 I've got enough ideas for 5 apps, but i spend way to long perfecting and updating already existing apps Nov 25 14:36:32 but that is my end goal I think Nov 25 14:36:46 CallumTaylor, i wish you all the best mate :) Nov 25 14:36:48 even if these apps "failed" Nov 25 14:36:49 darken: i have the same issue, I'm currently re-writing my app for the third time Nov 25 14:36:58 and it's still not 1.0 Nov 25 14:37:08 though failure is a harsh word, 4+ star average Nov 25 14:37:11 CallumTaylor: what's the app Nov 25 14:37:12 just not popular Nov 25 14:37:17 https://robinapp.net Nov 25 14:37:37 Nice page Nov 25 14:37:54 Great app Nov 25 14:37:56 yeah i work on the app with a designer who's done all the front end stuff Nov 25 14:38:11 on that dialog Nov 25 14:38:15 This guy is what i want to be... Nov 25 14:38:22 hows the top bar done with , cancel and play button Nov 25 14:38:32 just a custom layout? Nov 25 14:38:34 yeah Nov 25 14:38:37 kk Nov 25 14:38:41 activity with a dialog theme Nov 25 14:38:59 activity with dialog theme? so not a dialog fragment Nov 25 14:39:02 no Nov 25 14:39:12 activity, it has to be accessible from anywhere Nov 25 14:39:32 Is app.net growing? Nov 25 14:39:33 for example there's a "quick post" setting which is a persistent notification Nov 25 14:39:37 when tapped, opens the dialog Nov 25 14:39:40 TheTrash: I'd say so Nov 25 14:39:49 i don't actually know what app.net is lol Nov 25 14:39:52 it definitely has potential, there's a lot of creative apps built on the platform Nov 25 14:40:02 not just microblogging apps like mine Nov 25 14:40:11 if you want an invite Nov 25 14:40:18 http://join.app.net/from/jcnwrwkthn Nov 25 14:40:20 well what does it do Nov 25 14:40:26 its a platform Nov 25 14:40:31 with different aspects Nov 25 14:40:52 one of which is microblogging (similar to twitter), there's a chat system, feed system and they've just launched their broadcast system Nov 25 14:40:58 so its a social platform? Nov 25 14:41:01 yeah Nov 25 14:41:01 g+/facebook Nov 25 14:41:20 the idea is you can use different apps as drop-in replacements using the same account Nov 25 14:41:33 like I can use a photo app with all my photos, and a microblogging app with the same account and data Nov 25 14:42:10 looks slightly developing centered Nov 25 14:42:16 yeah it's only a year old Nov 25 14:42:35 do i get any use out of it if i don't know anyone on there? Nov 25 14:42:40 new platforms are always going to be, until the devs create an ecosystem of apps which normal users can use Nov 25 14:43:03 I do, i find the micoblogging aspect of it much better than twitter because its more conversation and thread based Nov 25 14:43:31 does your designer do this on the side too? Nov 25 14:43:44 yeah he did most of the design/icon/website for the app Nov 25 14:43:48 i do the other 95% Nov 25 14:43:56 but hes not living of it either Nov 25 14:44:04 no Nov 25 14:44:28 aren't app.net trying to change more into a push messaging bus? Nov 25 14:44:42 no, that's just the latest thing they've released Nov 25 14:45:36 the videos are in desperate need of updating on the website :/ Nov 25 14:46:58 CallumTaylor, difficult to get huge download numbers if the app targets a specific platform Nov 25 14:47:13 you only target a portion of app.net users Nov 25 14:47:33 so unless app.net becomes big, your app will neither =/ Nov 25 14:47:57 darken: yes it is, however it is growing Nov 25 14:48:12 diaspora is probably growing as well... Nov 25 14:48:13 and they have a developer initiative program that helps Nov 25 14:48:33 but I got in early and already established a good loyal userbase Nov 25 14:49:00 so I have the upper hand compared to the other apps on Android. Usually people recommend my app when others ask Nov 25 14:49:55 CallumTaylor, thats awesome Nov 25 14:49:56 when have you released the app? Nov 25 14:50:12 we released the app in jan, but i've been working on it since last august Nov 25 14:50:16 CallumTaylor, i always get a fuzzy feeling when people recommend my app to others without my involvement Nov 25 14:50:23 yeah its good :) Nov 25 14:51:07 I'm re-writing it because there's a few issues in the current app which is too large to fix, once i've done that i'll be releasing it as 1.0 Nov 25 14:51:14 its been in 'beta' ever since the start Nov 25 14:51:24 what are those? Nov 25 14:51:38 the issues? Nov 25 14:51:40 ya Nov 25 14:52:10 the way I handle API responses isn't great, and because the way its structured is too large, I can't try new things without spending a lot of time updating every reference Nov 25 14:52:41 so the new way I'm doing it is to abstract the common code into single re-usable classes to make maintenance a lot easier, and general performance stuff as well Nov 25 14:53:10 i always enjoy tinkering and refactoring more than writing from scratch Nov 25 14:53:18 re-writing the app helps identify things that could cause massive performance hits in the list views, so its nice to be able to identify them from the start Nov 25 14:53:30 I'm not going to 100% re-write it, but i'll re-write the core base of the app Nov 25 14:53:51 i've also moved it over from eclipse to android studio/gradle which is also awesome Nov 25 14:54:21 Well it's no robin Nov 25 14:54:34 but your SO might appreciate some love Nov 25 14:54:43 Show this app some love by sharing Nov 25 14:54:43 https://play.google.com/store/apps/details?id=com.wolfden.android.heartswallpaper Nov 25 14:55:29 DarkSlay3r, Wait for valentines day, rebrand it a little bit, ???, Profit Nov 25 14:55:30 okay guys, apparently this is not possible using SAX parsing Nov 25 14:55:40 rebrand the hearts as snowflakes Nov 25 14:55:46 then you have yourself a christmas app Nov 25 14:55:50 See Nov 25 14:55:54 how can I play AnimationDrawable more then one time? Nov 25 14:55:55 thats buisness sense right there :D Nov 25 14:56:11 invert the direction + speed, make them lights, new years app Nov 25 14:56:12 :D Nov 25 14:56:37 tonyMontana9099: try TRUMPET or TROMBONE parsing Nov 25 14:56:57 Hi all, does someone here have experience with fragments and transitions? Nov 25 14:56:57 I am having some issues trying to make a transition between a fragment and a nested sub-fragment Nov 25 14:56:57 the "core" of the parent fragment is replaced by the child nested fragment, but some UI controls (a button) from the parent still remain in the view Nov 25 14:57:14 * CallumTaylor needs more gyro, change the direction of the hearts based on the tilt of the phone Nov 25 14:58:02 CallumTaylor, battery hog =/ Nov 25 14:58:09 add it as a setting Nov 25 14:58:12 off by default Nov 25 14:58:23 that is what lwps for - to hog batteries Nov 25 14:59:07 Is there a way to make a GoogleMap v2 not load until I have initialized the position with a CameraUpdate? Otherwise it jumps from the initialization point. Nov 25 14:59:55 I've made a simple preferences activity and Im wondering: how to make the preferencescreen behaviour in activities (without making a new activity)? Nov 25 15:00:35 any idea how to spit vertically Nov 25 15:00:52 with an axe Nov 25 15:00:54 project and structure tool window in android studio ? Nov 25 15:01:01 or mitosis Nov 25 15:06:29 anyone with fragment experience that could give me a hand with a problem Im having? Nov 25 15:06:49 just ask the question and someone may answer it Nov 25 15:08:27 I basically have a situation where I try replacing a fragment with a child nested fragment. The fragment is partially replaced, as the "core" of the parent fragment is replaced by the child fragment, but a button from the parent fragment remains Nov 25 15:08:56 I've added the relevant code to the specific question o stackoverflow: http://stackoverflow.com/questions/20150524/view-controls-remain-after-fragment-is-replaced-by-nested-fragment Nov 25 15:11:33 Heya Nov 25 15:12:10 Trying to write an android app and I'm new to Java.. But can someone tell me what I'm borking when i get "Cannot resolve constructor" when trying this: http://pastebin.com/MVpEU7X9 Nov 25 15:13:00 Can anyone recommend me a good guide or OpenSource Library for creating circular progressbars? Nov 25 15:13:04 and items is an array declared earlier and R.layout.simple_textview is a layout file with just a textview in it Nov 25 15:13:31 nunne: the issue must be with this then Nov 25 15:13:32 I need to put one progressbar inside another Nov 25 15:13:53 is 'this' an activity or a derivative of a context? Nov 25 15:14:44 CallumTaylor: derivative i would think. but java is still a bit messy in my head. Nov 25 15:14:53 post the whole file Nov 25 15:14:59 i'm trying to do this inside a fragment Nov 25 15:15:08 replace this by getActivity() Nov 25 15:15:10 you need to call "getactivity()" instead of "this" Nov 25 15:15:29 fragments don't have contexts as they get it from the parent activity Nov 25 15:15:49 CallumTaylor: http://pastebin.com/MnZcfQPx Nov 25 15:16:14 yes, replace 'this' with 'getActivity()' Nov 25 15:16:38 or this.getActivity() which amounts to the same thing Nov 25 15:16:43 CallumTaylor: thanks alot! its now gone :) Nov 25 15:16:53 the error i mean :P Nov 25 15:16:59 Ankhwatcher, why would you do that? Nov 25 15:17:39 ? Nov 25 15:21:40 its a static inner class, calling this.x isn't really necessary Nov 25 15:21:49 there won't be any reference conflicts Nov 25 15:26:38 If you wanted to initialize a map v2 on a user's position, how would you do it such that the map doesn't initialize on Africa then jump once "MyLocation" is found? Nov 25 15:32:39 theblang: store the last known location so you can start there to begin with, and zoom the map out to world-wide? Nov 25 15:32:49 theblang: alternately, use coarse location to get approximate immediately before GPS turns on Nov 25 15:33:45 CallumTaylor: Thanks man Nov 25 15:34:01 dragorn my ideal situation would be to not show anything until the location is found, but I can't seem to figure out how to do that Nov 25 15:34:02 I appreciate the rating Nov 25 15:34:05 np Nov 25 15:34:46 dragorn because no matter what you do, the map is going to jump shortly after initialization (once MyLocation is found) Nov 25 15:34:49 theblang: Don't show the map fragment then, show another view and then swap it to view.gone? Nov 25 15:35:02 and once you get a gps lock make the fragment visible Nov 25 15:38:55 Hey, I am working on an application that lets you send files over to my server This works fine, but I need to implment a sort of queue. Doing a quick search on SO, there seems to be a Queue object in Java. Do you guys recomend doing this… or what else to add a queue? Nov 25 15:39:25 eghdk: you could just do a list, too Nov 25 15:39:46 ArrayList? Nov 25 15:40:22 Any benefit over using Queue, List, or ArrayList? I've only ever done ArrayLists. Nov 25 15:42:54 eghdk, how huge lists are we talkinga bout Nov 25 15:43:40 Ideally it would only have to handle about 3 or 4 "message" objects, but theorhetically, it may have to handle like 20-30. Nov 25 15:43:44 and an arraylist is a list Nov 25 15:43:52 dragorn yes! thank you dragorn. I was being silly, trying to mess with visibility on the GoogleMap, and forgetting that I could just use the MapFragment handle to toggle visibility. Now I just set invisible when initalizing, then if invisible in onLocationChanged I set to visible. works great now Nov 25 15:43:59 in that dimensions use what ever you find easist Nov 25 15:44:12 if you send the messages queue style, use a queue Nov 25 15:45:30 but there is no performance upside downside for your case, convenience wins Nov 25 15:45:50 Gothca. Thanks Nov 25 15:46:23 For that dimensions it doesn't really matter Nov 25 15:51:30 guys why do I get an error here ? Nov 25 15:51:31 XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); Nov 25 15:51:32 factory.setNamespaceAware(true); Nov 25 15:51:58 because you're doing something wrong, obviously... but without telling us *which* error, it'll all be guesswork Nov 25 15:53:08 ecraven, there you go . http://pastebin.com/6NeNyZ0w Nov 25 15:53:42 http://codeworkx.de/wordpress/wp-content/uploads/2011/12/jacoj.jpg Nov 25 15:54:08 Dark-Side :) Nov 25 15:54:36 darken, the pastebin was about to be sent, if you could only wait couple of seconds more :))) Nov 25 15:55:10 I'm just bored waiting for a dl :) Nov 25 15:55:26 darken: that image is moot Nov 25 15:55:40 Stacktrace has no power here Nov 25 15:55:54 Hello fellow D's Nov 25 15:56:03 hehehehee Nov 25 15:56:03 i'm not a D Nov 25 15:56:08 He wants the D Nov 25 15:56:08 somebody turn on the light :) Nov 25 15:56:19 Dirty South stuff Nov 25 15:56:27 hilight all the names eh tonyMontana9099 Nov 25 15:57:21 yeeeeeee Dark-Side Nov 25 15:57:28 what's all this about Ds i hear? Nov 25 15:57:49 D for Dantetta Nov 25 15:58:35 CallumTaylor, can you check this mate ? Nov 25 15:59:17 check what Nov 25 15:59:25 http://pastebin.com/XJMFymDr Nov 25 15:59:34 yeah i DONT DO XML Nov 25 15:59:45 sorry Nov 25 15:59:46 camps Nov 25 15:59:48 caps* Nov 25 15:59:58 I dont do XML Nov 25 15:59:59 oh yea yeah, i recall my bad mate Nov 25 16:00:06 didn't mean to shout Nov 25 16:00:47 CallumTaylor, incase you do, you are forgiven in advance :) Nov 25 16:08:04 guys what is the best xml parser for android ? Nov 25 16:08:18 sax is causing issues with namespaces... as it cant parse normally from rss2 feed from wordpress. Nov 25 16:08:50 Why aren't there string resources like @android:string/action_share and @android:string/action_settings to make localisation (and using UI strings in general) easier Nov 25 16:09:28 Most, if not all, of my UI text is available in the system itself (and tons of other apps) anyway Nov 25 16:15:44 Peetz0r_, can't rely on those strings to be available in all android versions Nov 25 16:18:18 darken: eh, well, those string are not available *at* *all* now. It's a sort-of feature request ;) Nov 25 16:18:27 ah i see Nov 25 16:18:43 but would you really want to publish an app hoping the android version has a certain string? Nov 25 16:18:44 But it'd be nice of they would be available in some version in the future (and all later versions) Nov 25 16:19:59 Nu, I wouldn't hope, I would read the docs, and check there. If it says "this string is avaliable in at least 20 languages in Android 4.5 and later", then I'd use it somewhere in 2016 maybe ;) Nov 25 16:20:36 But for now, I'll provide them myself. In only 2 languages... Nov 25 16:20:53 (olny 1 atm, will translate later) Nov 25 16:45:32 guys, any idea which one is the local and which one is the namespace in this Nov 25 16:46:54 is it possible to create and test an app with bluetooth low energy on an emulator? Nov 25 16:47:01 Is it possible to show a country on Google Maps and it's Islands? For example, Spain and the Canary Islands (which are a bit far away, show like two maps in one map) Nov 25 16:47:14 FrancescoV, I wouldn't get my hopes on it Nov 25 17:04:13 someone here was soliciting coder here, any idea what his budget was ? ? Nov 25 17:04:42 I was leaving office and could only hear him saying he wanted to spend minimal amount to get max output Nov 25 17:06:03 he didn't say anything Nov 25 17:06:26 ok Nov 25 17:07:01 Surely it wasn't in this channel, advertising jobs isn't allowed Nov 25 17:07:27 SimonVT: ok, only if you say so Nov 25 17:08:53 yeah it was Nov 25 17:09:53 debugging ListView scrolling performance is really painful.. Nov 25 17:10:07 bubbleguuum I feel your pain Nov 25 17:10:33 bubbleguuum my issue was using a tablerow and weights in my list items Nov 25 17:10:34 Not even Google Music scrolls smoothly on a Nexus 10 Nov 25 17:10:57 bubbleguuum really? ill have to check that out Nov 25 17:10:58 if Google cannot get it smooth right, there no way I can do it Nov 25 17:11:06 that's not true Nov 25 17:12:08 bubbleguuum after I switched to relativeLayout instead of using weights, which was a stupid mistake that is mentioned in the docs, my ListView became pretty smooth Nov 25 17:12:16 JakeWharton: There's always garbage colection getting in the way, when dealing with image in list items Nov 25 17:12:26 you can reduce it but not totally Nov 25 17:12:39 bubbleguuum: really, the only time it it black and white when it coems to preformance is when you start screwing with information that lazy-loads Nov 25 17:12:58 do you have other high memory usage apps open that could potentially be causing excessive GC calls? Nov 25 17:13:06 garbage collection is evil, when something is animated (transitions, scrolling etc) Nov 25 17:13:22 you are caching your views with ViewEntry, right? Nov 25 17:13:26 of course Nov 25 17:13:31 CallumTaylor: GC is scoped to the process Nov 25 17:13:39 yeah, that's about all you can do (that I could find at least) Nov 25 17:13:49 limited GC by using bitmap as small as possible Nov 25 17:13:54 but still Nov 25 17:14:23 it can be very smooth - then hiccup - very smooth - hicup , etc Nov 25 17:14:31 yeah. I hate ListView. It makes me cringe so hard. Nov 25 17:14:37 it's horrible Nov 25 17:15:29 JakeWharton: if you have an app in mind that scroll smoothly ListView at moderate scrolling speeds, let me know Nov 25 17:15:38 with images of courses Nov 25 17:15:45 if I were to have a while (1) in my activity in which I check for my thread to finish execution, won't my activity do the heavy lifting/processing in UI thread Nov 25 17:16:10 and the purpose of using thread die Nov 25 17:17:23 bubbleguuum the Reddit is Fun app is really smooth Nov 25 17:17:27 Looney: yes Nov 25 17:18:05 Yeah, he was asking for people here on this channel. And he didn't like me because of my nickname Nov 25 17:18:29 so, if my idea is right, then it means mind is working Nov 25 17:18:39 so now I can commence coding Nov 25 17:21:30 Redit sync is pretty smooth for me Nov 25 17:22:29 that's what I use Nov 25 17:24:48 I am always on look for good reddit app Nov 25 17:25:00 came across a reddit mail app Nov 25 17:25:24 had so much resolution that won't fit on my phone's scree Nov 25 17:25:27 had so much resolution that won't fit on my phone's screen Nov 25 17:28:43 I like Reddit sync, it annoys me that it doesn't utilise beaming though Nov 25 17:29:04 I want to be able to beam to my friend while we're in the pub Nov 25 17:33:39 i get "Exception raised during rendering: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup" when trying to design a view, what happen? Nov 25 17:39:11 zokier`, wrong import? Nov 25 17:40:58 Is it possible to detect if a push notification has been read/acknowledged? Nov 25 17:43:27 im sorry, i meant layout. this is the xml im working on https://gist.github.com/zokier/114b60689fe1f55d39d2 Nov 25 17:44:04 jimi_: have the phone make a web request to notify you when that happens? Nov 25 17:44:07 what is the best way to send messages to and handle them in a background thread, from a service? Nov 25 17:44:11 make a Handler on the thread? Nov 25 17:44:43 everybody writes howtos on how to post messages from a thread to the ui, but not for the opposite Nov 25 17:44:57 Handler or AsyncTask probably Nov 25 17:45:06 durka42, maybe, i wasn't sure if that was an option, just from 'seeing' the notification Nov 25 17:45:30 I'd rather prefer a long-running thread and not asynctasks Nov 25 17:45:38 jimi_: yeah, I'm not sure if there is any automatic process Nov 25 17:46:07 but, you told google to send the push message Nov 25 17:46:14 even if google got a read receipt, it's not clear to me how you'd find out Nov 25 17:46:26 maybe there is a way though Nov 25 17:48:50 Anybody know what to do about this error: "Test run failed: Instrumentation run failed due to java.lang.NumberFormatException" Nov 25 17:49:00 ah, what I need is a Looper class Nov 25 17:49:19 that's from my attempts to do jUnit testing on an android app gui Nov 25 17:52:38 oh .... i just did something stupid with trying to convert an int to a String Nov 25 17:52:42 \that's what was causing that Nov 25 18:16:08 <_biff> hi Nov 25 18:16:15 <_biff> could anybodry help in my google api app?:) Nov 25 18:17:06 <_biff> i use 2.3.4, but using supportfragment my app crashes Nov 25 18:17:21 <_biff> if i dont use then i cant see any map iamge just the google frame Nov 25 18:17:38 you have got app to worry about and here my usb just crashed Nov 25 18:17:42 :'( Nov 25 18:17:52 the idea I am working on is cursed Nov 25 18:17:54 :-( Nov 25 18:18:02 <_biff> every library linked correctly i mean, googl play services etc... Nov 25 18:18:11 <_biff> but nithing can help Nov 25 18:18:26 <_biff> tutorials often missing more things i found on net Nov 25 18:20:50 sudden brain freeze. The requestCode used in startActivityForResult(target, requestCode) -- there's no reason it needs to be unique across the various activities that might start the target activity -- correct? Nov 25 18:21:56 the requestCode is passed back to you Nov 25 18:22:07 it's just for you to identify which startActivityForResult is returning Nov 25 18:23:47 durka42: yes, I get that - though that wasn't what I wanted to know. To put it a different way, is some hidden portion of the system that happens to use the passed-in request_code alone, to also map to the calling activity in some way. Nov 25 18:24:00 s/is some hidden/is there some hidden/ Nov 25 18:25:09 hmm, don't think so, but I've never experimented Nov 25 18:25:20 I assume it stores some combination of the calling activity and the request code Nov 25 18:25:35 it has to know whose onActivityResult to call, anyway Nov 25 18:27:37 right - that would make sense; but maybe some 'clever' code hidden in is mapping the caller by the request_code, or some similarly subtle issue. random brain freeze, didn't immediately see anything that assured me that I didn't need to make request codes globally unique [as opposed to per calling activity.] Nov 25 18:44:23 hello... how do I set a udp source socket? When I am sending data, the src socket is random, and its causing issues on my other end. Nov 25 18:54:58 sim Nov 25 18:58:28 I li Nov 25 19:00:15 ugh, 4.4 tethering widgets checknsubscription status now... Nov 25 19:00:31 can't tether anymore :( Nov 25 19:01:43 hey guys Nov 25 19:01:45 whats up? Nov 25 19:02:04 i'm searching a way to display a date like "in 4 Days" or smth Nov 25 19:02:09 i tried getRelativeDateTimeString Nov 25 19:02:25 but it shows me "in 2 days 00:00" Nov 25 19:02:35 I'm getting the day from a unix timestamp Nov 25 19:02:38 any ideas? Nov 25 19:03:57 no? Nov 25 19:04:32 getRelativeDateTimeString(…).split(",")[0] ? :p Nov 25 19:06:50 -.- Nov 25 19:06:59 i love you ! Nov 25 19:07:01 thanks Nov 25 19:07:05 and i'm stupid Nov 25 19:21:52 Hey everyone. Nov 25 19:22:16 hey guys - i know i'm not supposed to advertise jobs in here, so i want to be clear that that's not what i'm doing. That said, where\how do i find good Android developers for hire? Nov 25 19:22:45 We've had good results with uhhhh Nov 25 19:22:45 jedir0x, right here buddy Nov 25 19:23:06 I forget who they are… Nov 25 19:23:07 haha Nov 25 19:23:45 jedir0x, seriously thuogh looking for an android role atm I have a couple of interviews lined up so sell it to me before it's too late Nov 25 19:24:24 I'm getting a lint error when I try to export, Class referenced in the manifest, com.parse.ParseBroadcastReceiver, was not found in the project or the libraries. It is definitely in the libraries and it even logs messages to logcat when run the app in debug mode... Nov 25 19:24:39 Would proguard affect lint? Nov 25 19:25:35 hello guys, can somebody please help me with some android debugging questions? Nov 25 19:25:50 hepL3r: yeah, i'm bored Nov 25 19:25:58 CocoStorm, i guess my only sell would be that the iOS version is #2 in top free, and the android version is #56 in top new (google play - been release for a week) with many thousands of downloads daily. Nov 25 19:26:02 I wanna debug android's native libraries like webkit, but I dunnu how to start Nov 25 19:26:25 jedir0x, sold Nov 25 19:26:32 hepL3r: yeah, idk how to do that. sorry Nov 25 19:26:34 I have worked with both GDB and IDA in linux, but never tried them in android Nov 25 19:26:40 ah Nov 25 19:26:57 oh, and we all work remotely over skype Nov 25 19:26:58 :) Nov 25 19:27:40 uhhh Nov 25 19:27:51 Flipagram? Nov 25 19:27:54 yes Nov 25 19:28:08 Cool! Nov 25 19:28:16 i shouldn't talk about it in the channel though - against the rules. Just having trouble finding people to take over what iv'e started. Nov 25 19:28:36 People interested should /query you then Nov 25 19:28:40 yes Nov 25 19:33:37 does anyone know how large the font size of sans-serif-light should be? Nov 25 19:33:45 and what color on a white bg? Nov 25 19:34:14 i'd guess 15 sp but i it looks very different Nov 25 19:34:58 I wrote disclaimer text on my hexed app with 20 or 25 perhaps Nov 25 19:36:05 that's pretty large? Nov 25 19:36:17 i want just medium size Nov 25 19:36:21 just for text content Nov 25 19:36:33 like in the new magazines app Nov 25 19:44:54 jedir0x, post on Craigslist... Nov 25 19:45:08 usual job boards Nov 25 20:00:05 Hmmmmmmm Nov 25 20:00:13 Nobody in #parse knows if this is normal Nov 25 20:00:21 ah nvm I got a way to test it Nov 25 20:11:10 slow day today Nov 25 20:11:30 pfn: sure Nov 25 20:11:33 it's the holidays Nov 25 20:11:53 yep, I'm on my way to the cruise port now Nov 25 20:12:29 no asshole on #android-dev for two weeks Nov 25 20:12:45 Hey guys, quick question - ANdroid is spitting out "invalid color" when trying to use Color.parseColor() with the string #333 Nov 25 20:12:56 #333333 Nov 25 20:13:00 Any way around this or do I need to manually turn #333 into #030303 Nov 25 20:13:34 You probably don't want to turn #333 into #030303. Nov 25 20:14:14 yeah, just figured.... so 333333? Nov 25 20:18:53 manually converting is easy, just repeat the digits Nov 25 20:19:22 yeah, realized that Nov 25 20:33:46 I need to getWindow in a class that has nothing to do with activity. How would I go about doing this? I have access to context. Ideas? Nov 25 20:37:58 I have a list view row that includes several textviews and a checkbox. I was wondering if it is possible to have the row block the checkbox. The checkbox is just really a visual element for the user so I would like to have all click events handled by the row's onListItemClick Nov 25 20:39:23 good day guys Nov 25 20:39:25 Betray1st_: when the row is clicked, toggle the checkbox Nov 25 20:39:33 how is it going ? Nov 25 20:40:06 Betray1st_: set the checkbox clickable to false, set the row onclickhandler to set the checkbox state Nov 25 20:40:35 guys, anyone with experience of parsing xml in android ? Nov 25 20:41:10 Betray1st_: you may need to set an attribute in the row to have the listview treat it as clickable; I forget what but google will find it for you. Basically tells it to override, however if all the children are set clickable=false in the xml it should Just Work Nov 25 20:45:00 PRIVMSG dragorn Thanks for the response. I have tried what you mentioned before, but the checkbox is still clickable even when I have android:descendantFocusability="blockDescendants" along with android:clickable="false" for the checkbox Nov 25 20:45:50 awkward Nov 25 20:46:16 haha Nov 25 20:46:30 Maybe he's using telnet for IRC. Nov 25 20:46:32 well that shows this is my first time on here.... Nov 25 20:46:50 you probably meant /msg depending on the client Nov 25 20:54:52 Is there anyway to lock a layout during editing in xml? Nov 25 20:55:07 I'm trying to drag a view into place, but it keeps snapping into another layout. Nov 25 20:56:46 just go to the xml view Nov 25 20:56:50 eghdk as far as i know you have to live with it... Nov 25 20:57:34 Alright. Just making sure… heh. Nov 25 21:03:07 guys, anybody experienced in DOM xml parsing ? Nov 25 21:03:29 kitkat, finally Nov 25 21:05:34 tonyMontana9099: I've done it in the past. It's mostly paged out of my memory by this point. Nov 25 21:06:22 Anyone have any ideas on how to get the list items onlistitemclick() to steal click events from a checkbox? I've tried blocking descendant focus as well as setting both focusable and clickable to false for the checkbox Nov 25 21:07:57 dragorn, well, maybe you can hint me, and save the day :) Nov 25 21:08:11 I am parsing from wordpress rss 2 feed. Nov 25 21:10:14 So, with KitKat, and the Android WebView, I'm getting this issue where, when I touch different parts of my screen the div where I tap becomes selected with an orange border. Nov 25 21:10:20 It seems to be eating tap events on other components. Nov 25 21:10:28 Is there a way to disable this sort of behavior? Nov 25 21:10:59 tonyMontana9099: ok? Nov 25 21:11:59 I get a StackOverflowError when I call String s = someJsonObject.toString(). Anyone got ideas what can I do about this? Nov 25 21:13:01 dragorn, i am stuck at Nov 25 21:13:08 somehow can't parse in it. Nov 25 21:13:17 I know it cant happen with SAX, so I am trying with DOM Nov 25 21:15:14 tonyMontana9099: probably getElementsByTagNameNS is what you need Nov 25 21:15:33 tonyMontana9099: and hopefully 'media' is a properly defined NS in the XML Nov 25 21:15:55 dragorn, what does your second line mean ? Nov 25 21:16:15 tonyMontana9099: ... Foo is a namespace, bar is a tag Nov 25 21:16:36 tonyMontana9099: For the XML to be valid, foo must be defined as a namespace (google xml namespaces, look at a layout file as a reference too) Nov 25 21:16:47 okay, let me check Nov 25 21:17:03 NodeList getElementsByTagNameNS(String namespaceURI, String localName) Nov 25 21:17:09 localName = tag ? Nov 25 21:17:17 tonyMontana9099: a namespace is vaguely like a class scoping; foo:tag and bar:tag can both be 'tag' because they're in different namespaces Nov 25 21:17:33 tonyMontana9099: but each namespace can define the tag differently Nov 25 21:17:41 ohh, thanks for clarifying. Nov 25 21:18:17 so apparently, the thumbnail can be present at places other than media.. Nov 25 21:18:31 tonyMontana9099: so you'd need the URI of the namespace, and the namespace tag... so whatever the 'media' ns URI is, and 'thumbnail' Nov 25 21:18:54 tonyMontana9099: well, not necessarily, but for completeness they define it as a namespace since it could be used elsewhere Nov 25 21:19:19 dragorn, how can I retrieve the URI of the namespace? Nov 25 21:19:47 tonyMontana9099: it should be in the top of the xml file Nov 25 21:20:07 tonyMontana9099: in a xmlns definition Nov 25 21:20:24 writteninr3d: flatten your stack Nov 25 21:20:33 Nov 25 21:21:30 tonyMontana9099: also look at getNamespaceURI Nov 25 21:22:06 tonyMontana9099: tho that may be more for xpath, i forget Nov 25 21:22:15 possible. Nov 25 21:22:27 dragorn, in the below paste, does the namespace uri appear ? Nov 25 21:22:41 tonyMontana9099: many. xmlns:foo=uri Nov 25 21:22:47 <|0xD34D|> xmlns:media="http://search.yahoo.com/mrss/" Nov 25 21:22:57 |0xD34D| good catch Nov 25 21:23:52 so i'll be using something like : getElementsByTagNameNS("http://search.yahoo.com/mrss/", "thumbnail") ?? Nov 25 21:24:16 tonyMontana9099: also look at http://stackoverflow.com/questions/8939468/retrieving-namespaces-from-element-in-java-using-dom Nov 25 21:24:25 which gives some ways to get namespaces and such Nov 25 21:24:34 todays lesson: XML is hard. heh. Nov 25 21:24:40 dragorn, let me check. Nov 25 21:24:49 yes it is, json's much easier. Nov 25 21:24:52 but yes, that might work. You could also try to cheatypants it with xpath Nov 25 21:24:58 hi everybody... can anybody tell me who/what is resonsible for always checking the "Android Dependencies" and "Android Private Libraries" in the Order&Export Section of my Android Project in Eclipse? Nov 25 21:25:11 Every time I uncheck them and clean hte projects and build again, they are set again Nov 25 21:25:23 dragorn, you said 'that might work' for getElementsByTagNameNS("http://search.yahoo.com/mrss/", "thumbnail") Nov 25 21:25:25 ? Nov 25 21:25:34 yes Nov 25 21:26:36 so now, this returns me the nodelist. Nov 25 21:26:48 I need to put that in another element and then get the value ? Nov 25 21:27:09 then you need to get the value of the attribute 'url' on the node Nov 25 21:27:22 I forget the call for that. Nov 25 21:29:44 dragorn, i try this but it fails. Nov 25 21:29:59 NodeList n = element.getElementsByTagNameNS("http://search.yahoo.com/mrss/", "thumbnail"); Nov 25 21:29:59 Element e = (Element)n; Nov 25 21:29:59 String urlStr = e.getAttribute("url"); Nov 25 21:40:33 I'm trying to understand how backward compatibility works in android Nov 25 21:40:47 it seems that most people recommend using the support library, instead of developing against a lower API version Nov 25 21:41:00 that's what i've done Nov 25 21:41:04 but i haven't tried the other way. Nov 25 21:41:09 but how good is the support library? does the support library *always* work? are there any corner cases in which the support library doesn't work? Nov 25 21:41:32 how does the support library affect memory usage? from what I understand the support library is a reimplementation of newer API features, but this library is then statically linked in your app Nov 25 21:41:46 does this mean that on newer devices the support library essentially wastes memory? Nov 25 21:46:03 dragorn. still stuck hehe Nov 25 21:46:59 tonyMontana9099: don't really know, sorry, been like a year since i've done XML Nov 25 21:48:03 dragorn no worries, just wanted to tell. I will try using xpath now, they say its easier. Nov 25 21:49:01 does anybody know? :( Nov 25 21:51:58 FooBarWidget: it wastes some storage. If the linker is doing its job it should be wasting ram on loading Nov 25 21:53:01 dragorn, i think the whole concept of using getElementsByTagNameNS was wrong from the first place hehe Nov 25 21:53:43 tonyMontana9099: possible Nov 25 22:20:55 How can I read/modify Android settings (in the "ContentResolver"?) from adb shell? Nov 25 22:21:03 From "Settings.Global" Nov 25 22:24:23 hi ppl, problems with json parsing Nov 25 22:24:37 i have an app that reads json data from a server Nov 25 22:24:44 it works like a charm usually Nov 25 22:25:03 but sometimes the server gives invalid json Nov 25 22:25:16 and i can't fix that Nov 25 22:25:28 Ah, it's an sqlite3 db at /data/data/com.android.providers.settings/databases/settings.db Nov 25 22:25:38 but what i want the app to do is that whenever the json is invalid it tries another url Nov 25 22:25:55 not the app just closes if json data can't be parsed Nov 25 22:26:45 i want that the app shows a toast like "The json data was invalid, trying another source" and then it tries another source Nov 25 22:26:59 but not close Nov 25 22:27:09 no idea how to achieve this Nov 25 22:27:52 what are you parsing it with ? Nov 25 22:28:06 is there any library or so that i can use? simply i just give the validator server url and it gives me boolean back Nov 25 22:30:48 anyone, ideas? Nov 25 22:31:02 Lazeeee: the JSON parsing throws an exception? Nov 25 22:31:06 Lazeeee: can't you catch that? Nov 25 22:31:58 Peaker: yes it throws and i see the exception in eclipse. But how to prevent app closing? Nov 25 22:32:33 when it goes to catch block the app wouldn't close but continues and tries another source Nov 25 22:33:09 invalid json causes whole app closing Nov 25 22:33:17 put it in a try/catch, catch the error, present something, keep working Nov 25 22:33:29 standard java try/catch procedure Nov 25 22:33:31 Lazeeee: bankai_ asked: How are you parsing the JSON? If it "goes to the catch block" why not use the catch block? What's the problem? Nov 25 22:36:16 hi , i am making a app with password protection to open the app , where should i put the password string for best use SQLlite or make a file type ? Nov 25 22:36:40 hi Nov 25 22:37:38 is anybody here ? Nov 25 22:39:39 chinu: extremely complex question. Depends how much you actually care about security. Nov 25 22:39:53 If the goal is to keep someones kid from opening the app - sure. Throw it sql or preferences or something. Nov 25 22:39:59 If the goal is to protect someones banking data - absolutely not. Nov 25 22:40:09 if whatever you're passwording actually matters, you have a very complex challenge. Nov 25 22:40:21 security is high Nov 25 22:40:32 Yeah. You have a problem then. Nov 25 22:40:38 its transaction calculator Nov 25 22:40:44 Your only real option is to require the user to enable the keystore Nov 25 22:40:48 and store it in that Nov 25 22:41:14 or make an encrypted file and store all the user data in that, and require the user to input their credentials Nov 25 22:41:35 You may be able to extend sqlite to work with encrypted files. I haven't looked at it. You definitely can't just store a password and compare if security actually matters Nov 25 22:41:45 ok the encrypted file type option suits me Nov 25 22:42:12 that's your best bet. You'll need to do encrypted io to the container, not do decryption to a temp file Nov 25 22:42:32 It's not proof against a rooted device w/ a trojaned app that exports the password somehow, but it's the closest you're going to get on android today Nov 25 22:42:58 you can use the system keystore to hold data as well, but since you'd need to protect your data in app storage, your best option is probably an encrypted database file Nov 25 22:43:23 you're still only going to protect against casual attacks; if someone can get the device and subvert it you're done Nov 25 22:43:33 ok thanks for clearing my mind dragorn :) Nov 25 22:44:19 dradorn : is it absolutely wrong to run a timer in a service ? Nov 25 22:44:31 dragorn :is it absolutely wrong to run a timer in a service ? Nov 25 22:44:39 nope Nov 25 22:44:40 chinu: why use a timer? Nov 25 22:44:50 though I'd used a runnable and postdelayed for short time stuff Nov 25 22:44:54 and an alarm for long term stuff Nov 25 22:44:59 what dragorn said Nov 25 22:45:14 save it as a salted and stretched sha-3 (or sha-512) hash, if you do that correctly, then it's save to store it in PreferenceManager Nov 25 22:45:34 Peetz0r: However if he doesn't encrypt his data, it's pointless Nov 25 22:45:39 true Nov 25 22:45:51 and if he does encrypt the data, then the user password can be the encryption key Nov 25 22:46:07 yes, that was what I was going to say next :) Nov 25 22:46:09 i am making a app which checks if user has opened his whatsapp then after 5 minute my apps starts automatically and displays adds relative to whatsapp and so on whatever app user open Nov 25 22:46:28 wow that sounds absolutely terrible. Nov 25 22:46:37 Hey. Nov 25 22:46:38 chinu: that sounds like a fantastic way to get banned from google play Nov 25 22:46:42 yeah Nov 25 22:46:44 so by all means, go ahead and publish that app Nov 25 22:46:45 remind me to never install anything you do like that. Nov 25 22:46:45 don't do that Nov 25 22:46:56 what's your package name? Nov 25 22:46:57 never EVER do that Nov 25 22:47:16 i will ask user permission for that , its a commision based ads , where user earns for watching ads Nov 25 22:47:19 like locket Nov 25 22:47:27 but quite different Nov 25 22:47:30 I'd uninstall your app, print your logo, set it on fire, and then piss on it. Sorry, but really, don't do that Nov 25 22:47:30 and yeah, i'd sure hope that would be something google would kick out Nov 25 22:48:05 I'd rather earn money by working, than by looking at ads at moments that I don't actually have time to do so Nov 25 22:48:37 id install the app, shove the phone up my ass and then poop it out. Nov 25 22:48:50 Peetzor : but there is a very wide audience intrested in such kind of revenue model Nov 25 22:49:18 chinu: really? I can't think of anyone I know who wants to be interrupted every time he/she has used whatsapp Nov 25 22:49:50 well, no-one can stop you from doing it, read the google TOS very very carefully Nov 25 22:49:54 there is a option to STOP that app , i am not creating a malware or spam service :) Nov 25 22:49:58 And expect some negative reactions Nov 25 22:50:06 Sure, some people would like to earn money by looking at ads, but they'd like to determine when, and not have it determined for them in a very awkward way Nov 25 22:50:48 Is there a breakdown of android version for the US only? Nov 25 22:50:57 and whatsapp is way too personal to use it for targeting ads (okay, google and facebook do the same really, but not in a annoying way) Nov 25 22:51:11 I've seen that dashboard page, but I also came across something last night which said that included foreign markets, whic I don't want to target Nov 25 22:51:16 Eviltechie: I was looking for that for the Netherlands yesterday, and couldn't find it Nov 25 22:51:44 Eviltechie: yes, that page is worldwide. It includes me, and I've never been even close to the USA Nov 25 22:52:05 Peetzor : ads are like games , simple pop and break stick , 100 Door like doors , so its users own decission to play that app and earn revenue Nov 25 22:52:11 Should a WebView connecting to a local socket provided by the same app work? Nov 25 22:52:17 i dont see any harm in that ? I just want to give it a try Nov 25 22:52:20 (don't forget, there are more android users outside your country than inside it. This applies to every country) Nov 25 22:52:48 Peetzor :true Nov 25 22:53:06 Peetz0r :true Nov 25 22:53:08 chinu: don't let anyone in here stop you. You go and do your thing. Personally, I'm looking forward to you coming in here asking why your app got banned :) Nov 25 22:53:33 chinu: go ahead and try, but dobn't expect any positive reaction. And please read the Play Store guidelines before uploading it. You can always host it yourself somewhere. Nov 25 22:54:06 is keeping a track on the recent open stack is against google policies ? Nov 25 22:54:24 I wouldn't knoe Nov 25 22:54:26 know* Nov 25 22:54:49 But targeting ads based on whatsapp conversations between me and my mom definately is Nov 25 22:55:04 i just need a proper method of keeping the track of user opened apps (recent apps from app stack) i have a alternate method of running a service which keeps an eye there Nov 25 22:56:19 I am not keeping track of conversation , just the app user open ( like he open whatsapp means he is inttrested in apps like whatsapp so ad contains line add , wechat add and so on) Nov 25 22:57:24 Peetz0r : ?? Nov 25 22:57:49 hire a lawyer or take your chances Nov 25 22:58:00 oh, just what apps I use? Nov 25 22:58:07 I'm back with my json parsing problem. http://jankakoira.dyndns.org/jsonparsing.txt Nov 25 22:58:12 here is the basic parser code Nov 25 22:58:14 Peetz0r :Yes Nov 25 22:58:34 that would at least reveal what city I live in, even while you've never asked location permissions. very shady at least Nov 25 22:58:43 I'd also advise for a lawyer Nov 25 22:58:54 but, at the very least, read the Play Store rules Nov 25 22:59:36 don't ask me for them, my apps aren't even 1/10th as shady as yours so I just know that I'm good without knowing the actual rules ;) Nov 25 22:59:36 Peetz0r : okay can you tell me a simple best waay to keep a eye on user opened apps except for running a timer in service ? Nov 25 22:59:41 how can i prevent app closing automatically when parsing goes wrong? Nov 25 22:59:49 chinu: I wouldn't know Nov 25 22:59:56 and try another url instead? Nov 25 23:00:02 Lazeeee: try/catch around your parsing Nov 25 23:00:24 there is try catch everywhere.. Nov 25 23:00:48 Lazeeee : wrong catch then Nov 25 23:00:54 try again Nov 25 23:01:49 this code works very well when server produces valid json. but it produces sometimes invalid json and it makes app crash. Nov 25 23:02:17 what should i do in catch block to prevent this Nov 25 23:02:38 hey guys, anyone familiar with sdcard io here ? Nov 25 23:02:43 i'm having poor performance Nov 25 23:02:58 steeve : ask your question not about users in here :) Nov 25 23:03:33 Lazeeee : pastebin your code please Nov 25 23:03:52 chinu: i gave the url already? Nov 25 23:04:04 http://jankakoira.dyndns.org/jsonparsing.txt Nov 25 23:05:43 chinu: well, i'm porting libtorrent on android Nov 25 23:06:06 chinu: and when I set it to download on the SD card, after a while, the writing becomes very slow, and eventually stalls Nov 25 23:06:34 and it does not happen on /data Nov 25 23:06:46 Lazeeee : print what you are getting ? the wrong JSON what it is ? if you have example would make the sollution easy Nov 25 23:07:47 http://tieinfo.mustcode.fi/tieinfo/liikenne/tiedotteet/?json Nov 25 23:07:58 for example now the server produces invalid json Nov 25 23:08:05 it breaks at some point Nov 25 23:08:08 chinu: and yeah the use case if random write/reads Nov 25 23:08:30 the end is not valid Nov 25 23:08:32 steeve : no idea , do you have code to show ? Nov 25 23:08:43 chinu: well, libtorrent Nov 25 23:09:15 and the catch block gives me "Error parsing data blah blah blah" Nov 25 23:09:28 which i fully understand coz the source fails Nov 25 23:09:33 i'm just wondering if it's something people knew about Nov 25 23:10:02 simply i want to avoid app crashing but trying another url Nov 25 23:11:05 do you also get a Buffer Error ? Nov 25 23:11:28 Lazeeee : Buffer Error ? Nov 25 23:11:43 no Nov 25 23:12:11 your second try block not caching the error , the exception you used is not right Nov 25 23:12:36 Lazeeee: if you're getting an uncaught exception, then you're not catching the exception type it's throwing. Catch the right exception. If you're feeling especially daring, use a finally block. Nov 25 23:12:47 which of course can hide severe issues if you use it improperly Nov 25 23:13:25 dragorn is absolutely right here Lazeeee Nov 25 23:14:02 i'm not getting any uncaught exceptions Nov 25 23:14:42 but this JSONException which prints out this "Error parsing data..." Nov 25 23:14:54 if your app is crashing and printing a stack trace and an exception Nov 25 23:14:58 then that's an uncaught exception. Nov 25 23:15:41 Error parsing data org.json.JSONException: Expected literal value at character 413 of {"root": [{"class":"tieinfo.Bulletin","id":47912,"description":"Pohjois-Savo. Erikoiskuljetus. Liikenne pysäytetään ajoittain. \nErikoiskuljetus välillä Pälkäne - Iisalmi. \nKuljetus liikkuu seuraavien tuntien aikana reitillä; tie 5 Siilinjärvi - Iisalmi. \nErikoiskuljetuksen pituus: 45 m Kesto: 25.11. klo 00:15 - 26.11.2013 klo 01:1 Nov 25 23:18:06 this is the error message Nov 25 23:18:19 json invalid Nov 25 23:18:38 hos to handle so that the app wouldnt crash? Nov 25 23:18:41 hwo Nov 25 23:18:42 how Nov 25 23:19:03 have you tried catching and handling the exception? Nov 25 23:20:10 And/or provide valid JSON. Nov 25 23:20:30 try/catch the exception, write your application to understand when it's empty because the exception triggered. Nov 25 23:20:33 as we've been saying. Nov 25 23:21:18 I have this class with this method: public ArrayList Translate(String text) { and this class is called from inside another class with this: AnsiColorParser.MUTextRun[] outRuns = ansiColorParser.Translate(new String(contentBytes,"UTF-8")).toArray(); But I am getting incompatible types. Why does .toArray() return an array of Object instead of MUTextRun? Nov 25 23:22:25 damccull: create the array with the appropriate size first Nov 25 23:22:37 and then pass that array to the version of .toArray that accepts an array Nov 25 23:22:50 it will fill the existing array, if the data fits. Or return a new one of the same type Nov 25 23:24:13 http://developer.android.com/reference/java/util/List.html#toArray(T[]) Nov 25 23:24:50 You'll note the signature of the no-arg version is Object[], while that of the one that accepts the array is T[] Nov 25 23:25:20 the no arg one doesn't work Nov 25 23:25:34 Balls[] x = collection.toArray(new Balls[0]); Nov 25 23:25:37 its' a generics thing Nov 25 23:26:15 It's slightly better to create the array with the size of the list Nov 25 23:26:24 so it can use the array you pass in, instead of creating a new one Nov 25 23:26:40 But, it's only a single 0-element array, so not a big deal. Nov 25 23:27:40 * pfn gone 2 weeks & Nov 25 23:28:59 Take care Nov 25 23:41:07 I don't know what to write inside the catch block. The app just crashes no matter what is in the catch block Nov 25 23:41:28 Toast didnt show up Nov 25 23:45:45 love computer crashes Nov 25 23:46:05 JesusFreke: what were you saying about the appropriate size? Nov 25 23:47:07 can't return a value from catch block Nov 25 23:47:11 damccull: the only message from me after you left was "But, it's only a single 0-element array, so not a big deal." Nov 25 23:47:29 Hmm. Nov 25 23:48:11 just do list.toArray(new ElementType[list.size()]) Nov 25 23:48:48 Hmm. I see. Nov 25 23:48:53 I'll google why that works. Nov 25 23:49:06 What's a good way to generate a unique hash for each user? Nov 25 23:49:41 md5 or sha1 the base64 encoding of what?? Nov 25 23:50:23 damccull: http://developer.android.com/reference/java/util/List.html#toArray(T[]) Nov 25 23:50:33 "JesusFreke: You'll note the signature of the no-arg version is Object[], while that of the one that accepts the array is T[]" Nov 25 23:50:48 it works because it returns T[] instead of Object[] Nov 25 23:50:55 Oooh...cool. Nov 25 23:52:10 Anyone know if there's a helper for the GCM library? Nov 25 23:52:18 The real reason is because generics are implemented via type erasure - meaning that the List implementation doesn't know at runtime the type of its elements, so it can't dynamically create an array of the correct type Nov 25 23:52:19 just because I'm lazy af Nov 25 23:52:54 but if you pass in an array, you're essentially telling it what type the elements are, so it can use that to create a new array of the correct type (if needed) Nov 25 23:53:11 but if you pass in an array of the correct size, it doesn't even need to create an array, it just fills in the one you pass it Nov 26 00:10:07 * Lekensteyn facepalms Nov 26 00:10:18 "Resource merging alters XML files in res/raw/" wth Nov 26 00:10:33 new Thread(new Runnable() { ... }).run(); // find out why I get an ANR... Nov 26 00:15:51 JakeWharton i just noticed your adt-dev post about offline AS; i've never noticed this before and i'm offline a lot. i wonder whats going on Nov 26 00:19:10 i also hope it doesn't start acting up :| Nov 26 00:22:10 Hi, I am writing an app which should be able to handle a Intent- but I cannot wrap my head around the documentation regarding intent filters Nov 26 00:22:28 how do I make my app recieve geo: uris? Nov 26 00:23:13 e.g. when someone shares his location on WhatsApp, a user can then choose to view that location in either Google Maps or in my app Nov 26 00:24:05 g00s_: what? Nov 26 00:24:50 what's going on is there's no option for it. like i said. Nov 26 00:24:53 what would act up? Nov 26 00:25:16 i've never had AS not build if i was offline Nov 26 00:25:45 right because things are cached and therefore don't need to connect to any servers Nov 26 00:26:14 ah, so were you in a state where the build system needed to grab something from maven central ? Nov 26 00:26:29 i updated the gradle project model and needed to refresh it in AS Nov 26 00:26:46 but said refresh triggers a dependency check as well Nov 26 00:26:51 there was no way to tell it that i was offline Nov 26 00:26:58 therefore i could not update the project model Nov 26 00:27:06 ok Nov 26 00:27:15 command line builds worked fine with the offline switch Nov 26 00:27:23 Oh man :( How can I send a custom class through a broadcast intent? Nov 26 00:27:24 Peetz0r: something like Nov 26 00:27:31 damccull: make it parcelable Nov 26 00:27:40 evanc: thanks Nov 26 00:27:58 evanc: and I should place that inside ? Nov 26 00:28:14 Peetz0r: yes Nov 26 00:28:15 evanc ok i'll google it :D Nov 26 00:28:16 thanks Nov 26 00:28:23 damccull: no problem Nov 26 00:29:01 evanc: it's my main activity, which already has a intent filter. should I add it as a second filter, or just add to the first filter? Nov 26 00:29:14 add a second one Nov 26 00:29:19 thanks Nov 26 00:29:38 now I'll have to gifure out how to receive the geo:...,... data Nov 26 00:29:48 figure* Nov 26 00:30:00 first check if it shows up :) Nov 26 00:30:36 Peetz0r: sounds like a good plan :) Nov 26 00:31:19 nope, it doesn't Nov 26 00:31:57 should I force-close and restart whatsapp, to force it to refresh that list? Nov 26 00:32:28 well, I just did that, and it didn't help Nov 26 00:32:49 Peetz0r: you put the options in as well as the , right? Nov 26 00:32:53 I've created an app, that contains a database that is used to populate spinners.... for some reason, the database, can not be opened on Nook Hd's. Is there something different about the nook, than other android tablets? Nov 26 00:33:02 burmat: nope. Nov 26 00:33:10 Waitaminute, I'll post the whole Nov 26 00:33:38 There: http://paste2.org/ELe7Okx2 Nov 26 00:33:39 eppo i dont think its an android tablet if it didn't pass CTS; it's android based … good luck :) Nov 26 00:34:08 Peetz0r: yeah, try following this example (SO): http://stackoverflow.com/a/4392898/586859 Nov 26 00:34:22 eppo oh wait, it does have gapps, huh Nov 26 00:34:47 burmat: what does the priority=0 do? Nov 26 00:35:43 Peetz0r: from google docs: Use this attribute only if you really need to impose a specific order in which the broadcasts are received, or want to force Android to prefer one activity over others. Nov 26 00:35:48 you can probably ditch that Nov 26 00:36:01 in case you want to read up a little more also: http://developer.android.com/guide/topics/manifest/intent-filter-element.html Nov 26 00:36:11 oh, maybe I should also accept http-urls, because I think the WhatsApp-location-thing does that Nov 26 00:36:20 Since it also lists webbrowsers there... Nov 26 00:36:26 headache starts here :p Nov 26 00:36:57 (WhatsApp is quite populair with my users, so this is important enough) Nov 26 00:37:20 Peetz0r: idk what you mean by that, sorry. Nov 26 00:37:42 once you can get it to show up in the list though, you should be able to get the data tied to the intent by using getIntent() Nov 26 00:37:45 the rest is a breeze Nov 26 00:37:54 ehm, I think not Nov 26 00:38:17 : D Nov 26 00:38:18 Peetz0r: watch logcat when you click the whatsapp link; it'll tell you the intent that's starting the activity; make sure your intent-filter looks like it Nov 26 00:38:20 I have to support geo: uri's *and* http://maps.google.com uri's Nov 26 00:38:30 ohhhh Nov 26 00:38:32 evanc: good one :) Nov 26 00:38:49 Peetz0r: pastebin that line from logcat (with e.g. coordinates removed) and your manifest if you're having trouble Nov 26 00:39:03 can I stick an ArrayList into an intent? Nov 26 00:39:06 removed/changed/obfuscated Nov 26 00:39:23 damccull: no, but you can make myobj parcelable and put a parcelable array into the intent Nov 26 00:39:41 evanc: so myobj[]? Nov 26 00:39:52 yeah Nov 26 00:39:55 sweet Nov 26 00:40:11 you have to make myobj a parcelable and then use parcelablearray. if myobj isn't a parcelable, bad luck Nov 26 00:40:12 myobjList.toArray(new myobj[myobjList.size()]); Nov 26 00:42:15 I/ActivityManager( 240): START {act=android.intent.action.VIEW dat=http://maps.google.com/maps?q=loc:53.296014,5.058177 (Jij) cmp=android/com.android.internal.app.ResolverActivity} from pid 22756 Nov 26 00:42:39 (fake location of my favorite lighthouse, so don't worry and click it :p ) Nov 26 00:42:54 evanc: thanks. I'm making it parcelable right now :D Nov 26 00:43:20 Peetz0r: Nov 26 00:43:39 from memory, so it's probably wrong; but it'll get you on the right track Nov 26 00:43:53 I don't remember if you need the / in front of the path or not, for example Nov 26 00:43:55 so yeah, I'll really have to support both, since http://maps.google.com is a common way, but geo: is 'the right way' Nov 26 00:43:56 Hi guys- im thinking about making a pizza delivery/ordering app. I was wondering where i could find good API's to help me Nov 26 00:44:11 Peetz0r: also support https Nov 26 00:44:26 like in locating local pizza restaurans, and ordering etc Nov 26 00:44:28 Peetz0r: you'll need in your , too Nov 26 00:44:59 I'll copy the SO code and modify where needed Nov 26 00:45:11 actually, hmm; that's just starting the resolver activity. Anyway, it might still work; just play around and it should work. Maybe look at the next I/ActivityManager logcat line. Nov 26 00:45:12 but it's hard to test all this stuff Nov 26 00:45:16 Peetz0r: or that Nov 26 00:45:47 the nest line is I/ActivityManager( 240): [AppLaunch] Displayed android/com.android.internal.app.ResolverActivity: +116ms Nov 26 00:45:51 next* Nov 26 00:46:15 I haven't yet selected one, the list is till on the screen Nov 26 00:46:28 Peetz0r: select one and then watch logcat Nov 26 00:46:41 I selecten Google Maps, and then... Nov 26 00:46:42 I/ActivityManager( 240): START {act=android.intent.action.VIEW dat=http://maps.google.com/maps?q=loc:53.296014,5.058177 (Jij) flg=0x3000000 cmp=com.google.android.apps.maps/com.google.android.maps.MapsActivity} from pid 240 Nov 26 00:46:46 I/ActivityManager( 240): [AppLaunch] Displayed com.google.android.apps.maps/com.google.android.maps.MapsActivity: +1s354ms Nov 26 00:47:01 ah yeah, you'll need then Nov 26 00:48:12 also completely unrelated, my phone spits out errors (complete stacktraces) about not finding /proc/mtprof/status in almost every action Nov 26 00:48:45 but that's probably a bug somewhere in device vendor code Nov 26 00:51:17 I have a ToggleButton that needs to change state asynchronously (depending on the service response). How can I prevent the state from changing? I have an onCheckedListener for this ToggleButton. Nov 26 00:51:31 evanc: do I read the members back in same order I write them out? Nov 26 00:51:38 or must I reverse it? Nov 26 00:51:39 Should I use onClickListener instead? Nov 26 00:54:58 Oh, by the way, My app also has the possibility of sharing locations. How do I prevent the app from sharing a location to itself? Nov 26 00:55:01 damccull: same order Nov 26 00:55:41 JesusFreke: thanks. How about this new and apparently required version of createFromParcel that includes a ClassLoader as a second argument? What do I do with it? Nov 26 00:55:59 heck if I know :) Nov 26 00:56:23 nm, instantiated wrong class :D Nov 26 00:56:26 I would guess MyParcelableClass.class.getClassloader() or similar Nov 26 00:56:40 don't need it if I actually use Creator instead of ClassLoaderCreator :D Nov 26 00:56:58 do I really just leave describeContents as a 0? Nov 26 00:58:00 yes Nov 26 00:59:20 damccull: same order I believe Nov 26 01:00:01 evanc: putParcelableArrayListExtra Nov 26 01:04:44 What do these 2 lines in logcat mean? http://pastebin.ca/2481531 Nov 26 01:05:27 Some_Person: something related to a2dp, which is a bluetooth profile for audio Nov 26 01:07:07 What I'm trying to do here is troubleshoot something: I've got this bluetooth FM transmitter that when you hold down the call button, it makes my phone (by default) open the Voice Dialer. This works every time. However, I have another app that can respond to this same event, but if I have it open that, it doesn't work every time Nov 26 01:07:24 This is the key line in logcat: D/HeadsetStateMachine( 9529): processVrEvent: state=1 mVoiceRecognitionStarted: false mWaitingforVoiceRecognition: false isInCall: false Nov 26 01:07:41 When state=1, it works. When state=0, it doesn't. Nov 26 01:08:06 So I need to figure out how to set this to 1 I guess when the program exits Nov 26 01:09:35 I wouldn't know Nov 26 01:10:07 When it's 0, all I get in logcat is that one line and it doesn't even try to launch anything Nov 26 01:10:42 this never happens when the Google Search app runs, so it must be doing something Nov 26 01:22:57 morning morning morning Nov 26 01:25:21 too much coffee for you Nov 26 01:26:38 Good morning. It's 02:26 where I live Nov 26 01:27:15 and I was planning on sleeping two hours ago, but planning is just a way of thinking what you're not going to do anyway :p Nov 26 01:34:46 Hi, my app save some data to the sd card, however in the Setting-Applications-My APP, the `Clear Data` button is disabled, what this problem? Nov 26 01:35:32 the sd card isn't part of your app data Nov 26 01:35:34 it is external storage Nov 26 01:35:58 unless you stored it specifically inside the app data directory on the sd card (which i forget what it is; check the docs) it doesn't count towards your application Nov 26 01:42:50 is the duplicate ANDROID_ID problem still a problem in 4.0+, or was it fully solved? Nov 26 01:43:09 the internet doesn't seem to have any updates after 2011. Nov 26 01:55:19 well, if anyone knows the answer, I've put the question up on SO: http://stackoverflow.com/questions/20207147/is-android-id-still-unreliable-in-2013-4-x Nov 26 01:55:54 I want to pass a context, AND a callback listener to a class....do I do myclass(this,this) or just once and pass the listener? Or the activity? Heh. this,this seems redundant Nov 26 01:56:30 totally depends on what the method expects Nov 26 01:56:31 if your class implements the listener then you can pass just the class Nov 26 01:56:38 if it expects two things, and you are both, then yes, pass it twice Nov 26 01:56:55 that, too Nov 26 01:57:26 it's like when a form says "the secretary and treasurer must both sign this" and your chapter has 4 people and you are both the secretary and treasurer Nov 26 01:57:37 heh Nov 26 01:57:46 <— went to college at a small school Nov 26 01:58:00 so it's a service, calling a class. the class requires a context so it can get string resource, and has a callback listener Nov 26 02:00:15 can i bring my arguments down to one? Nov 26 02:03:12 Chani: I was reading about that last night, and I beleive it was only an issue with motorola devices running 2.2. Don't quote me on that though. Nov 26 02:10:58 i fail to understand why I have to make my own LocalServiceBinder...there is literally NO application specific code in mine except the package name... Nov 26 02:13:22 Eviltechie: it was also the galaxy tab and a bunch of others. it *might* have been fully fixed in 2.3 but I can't be sure. Nov 26 02:14:20 there were some people talking about it still being a problem in 2011, and it's not clear whether they meant there were still un-upgraded phones in the wild or that phones with 2.3 were still not fixed. Nov 26 02:17:07 So...I have an object that starts threads. Here's what I want to do with it. I want to instantiate it in my UI thread, then pass it to a method on a bound service, then in the service I want to kick of it's thread and report back to the UI from the service with the results of the object's thread :D Can I? Nov 26 02:17:16 Also, did I make that confusing enough? Nov 26 02:20:22 damccull, yes - you can do that. You'll need to use Handlers Nov 26 02:20:32 and sendMessage Nov 26 02:20:35 wow, amazingly you understood it :D Nov 26 02:20:36 or, just use AsyncTask Nov 26 02:20:48 actually i think I just need to pass a string and then let the service create the object Nov 26 02:20:56 my mind generally works backwards initially Nov 26 02:28:33 I feel like I"m making this more complicated than I need...but ths way I can add more concurrent connections easier in the long run Nov 26 02:28:46 I probably just suck at programming Nov 26 02:45:11 Is there a way to unlock the phone onCreate() ? Nov 26 02:45:31 I think I'm close to solving my problems but I need to do this somehow Nov 26 02:46:26 I need it to turn on the screen and unlock it Nov 26 02:46:43 Some_Person: is it for when I say 'ok google!' ? Nov 26 02:47:53 No, it's an app that launches the normal google voice search instead of the dialer when you hold down the call button on a bluetooth device, so you can do things other than just phone calls Nov 26 02:48:13 cool Nov 26 02:48:36 I keep running into problems, but I think I've solved most of them, if I can just figure out how to turn on/unlock the phone Nov 26 02:49:28 Right now, it just breaks if you try to do it while the phone is off Nov 26 02:50:28 Some_Person: http://stackoverflow.com/questions/8073631/android-wake-unlock-phone Nov 26 02:53:02 or this http://musicm122.blogspot.in/2011/10/locking-and-unlocking-android-phone.html Nov 26 02:56:08 Problem is, this app doesn't display a window Nov 26 02:56:36 maybe you need to hide it after launch Nov 26 02:59:03 I need to incorporate this StandOut feature in to my video player app ... http://forum.xda-developers.com/showthread.php?t=1688531 **** ENDING LOGGING AT Tue Nov 26 02:59:58 2013