**** BEGIN LOGGING AT Sat Jun 01 02:59:58 2013 Jun 01 03:04:44 this is kind of a weird question, but is it alright to startService() from within the service? Jun 01 03:11:57 beastmanrage, sure Jun 01 03:12:10 it's just going to get a new intent if it's running Jun 01 03:12:32 that would be nice, im worried about the service getting like 50 calls deep Jun 01 03:12:39 and having to return from all of that Jun 01 04:04:13 does JD reliably decompile android class files? Jun 01 04:06:34 I'm looking for an encryption key inside an app, which I know exists. It's hardcoded. I'm not the first person on the internet to undertake this challenge. I just cant seem to find it. I've even gone as far as searching for that string in all the source files output by JD. Yet it's nowhere to be found. Any ideas? Jun 01 04:21:54 I'm downloding a file with asynctask, while i'm downloading the file there is a notification that say the user the download progress. The thing is that when I press the home button (my app goes to background), the asynctask stops downloading the file Jun 01 04:22:16 and the notification freezes Jun 01 04:22:27 someone know why? Jun 01 04:35:07 hehe, samsung, you guys suck http://mobile.slashdot.org/story/13/05/31/2312239/bug-in-samsung-s3-grabs-too-many-images-ups-data-use Jun 01 04:35:30 stop writing software pluuuhze Jun 01 04:44:59 g00s: meh Jun 01 04:45:29 the only reason you know about those bugs is because current crop of journalists loves such articles. They are really minor in the end, IMo :P Jun 01 04:47:55 that is, stuff (mostly) works Jun 01 04:48:07 that's better than some shit out there Jun 01 04:56:22 p_l so samsung replaced the stock browser on the sgs3 with their own ? Jun 01 04:57:02 i dont understand why they would touch those components Jun 01 05:14:32 maybe someone figured stock browser became free game with Chrome for Android Jun 01 05:21:30 hi, where is the ant binary in the android sdk? Jun 01 05:25:11 My favorite browser is Dolphin Jun 01 05:25:49 do you guys know if its possible to get command data from the speech recognizer? Jun 01 06:20:10 im trying to use actionbar in my app and i have added the android-support-v4.jar to my apps libs directory, but still i get java.lang.NoSuchMethodError: com.parspake.OrangeClub.History.getActionBar. please gimme a hint why this is happening Jun 01 06:24:33 what version of Android are you compiling with? Jun 01 06:24:38 the support library has nothing to do with the action bar Jun 01 06:25:09 JakeWharton: minSdk is 8 and targetSdk is 13. and im compiling with 4.0.1 Jun 01 06:25:37 what is History? an activity? Jun 01 06:26:29 JakeWharton: yup. Jun 01 06:26:54 is this a runtime error or a compile-time error? Jun 01 06:27:04 because the action bar only exists on API 11 (Honeycomb) and newer Jun 01 06:27:19 the app works on android 4. i get this error on android 2.3.3. runtime error Jun 01 06:27:57 JakeWharton: yeah exactly. thats why I've added support-libv4 to have Actionbar in older android. Jun 01 06:28:11 the support library doesn't backport the action bar Jun 01 06:28:45 you can try something like this: http://abs.io Jun 01 06:28:47 JakeWharton: really? why not? i thought support library has actionBar backported!! Jun 01 06:29:04 nope. but there are third-party solutions for now Jun 01 06:29:57 jake I heard google mentioned something about that tho Jun 01 06:31:23 yeah at I/O 2012 Jun 01 06:31:39 maybe they'll finally release it by I/O 2014 Jun 01 06:31:45 when it has zero relevance Jun 01 06:31:51 yeah Jun 01 06:32:00 actionbar will be one of those ui patterns that will have gon eawya Jun 01 06:34:50 or 90% of people will be on ICS+ by then Jun 01 06:35:05 I still love my gingerbread Jun 01 06:35:11 or android dies Jun 01 06:37:19 JakeWharton: why didn't android integrate your abs into their sdk ? Jun 01 06:38:13 you would have to ask them Jun 01 06:38:23 Anyone know when admob payout? Its been a few months now Jun 01 06:39:56 well I watched the I/O 2013 talk and they praised your work and said it was great and told the apps that were using it to keep using it, but they replaced their own actionbar with the new ActionBarCompat Jun 01 06:40:31 yeah i've been chatting with two of the guys working on their version Jun 01 06:40:38 its still not ready ? Jun 01 06:40:48 it's close Jun 01 06:41:07 thanks for helping everyone :) Jun 01 06:42:36 well i wrote it for myself so i'm glad it's useful beyond just my stuff Jun 01 06:44:05 that's usually when people make software the best it can be, when they write it for themselves :) Jun 01 06:44:27 having written software for myself, i question your definition of the words "usually" and "best" :P Jun 01 06:48:10 but abs is pretty good ;) Jun 01 06:48:13 when its your own baby and not your bosses baby, you take care of it better ;) Jun 01 06:48:23 i dont actually agree with that Jun 01 06:48:35 although i dont consider my "work" to be my "boss's baby" Jun 01 06:48:40 it's my baby now :) Jun 01 06:48:44 and im paid to take care of it Jun 01 06:48:58 i put a lot of effort into our next release Jun 01 06:49:05 and im much less likely to use hacky code Jun 01 07:14:46 my work I let my boss think is his baby Jun 01 07:14:54 because I value doing shit the right way Jun 01 07:23:46 hi Jun 01 07:24:09 I've a question about android network Jun 01 07:24:15 I want to get the time of response of an access point Jun 01 07:24:25 I notice that last API has a "public long timestamp" in ScanResult Jun 01 07:24:38 but I want something that can run on 2.2+ Jun 01 07:25:13 it's possibile to get the "probe response" packet of access point? Jun 01 07:25:22 and so reading the packet information? Jun 01 07:42:37 hey, how would I go about setting up the layout for a pane that slides in from the edge much like how google hangouts has one on the right for the contacts Jun 01 07:56:31 use the r13 support library Jun 01 07:56:34 SlidingPaneLayout Jun 01 08:07:31 String[] stocks = stockSymobolEntered.getAll().keySet().toArray(new String[0]); Jun 01 08:07:35 What is the meaning of this ? Jun 01 08:10:40 getAll() returns a Map and then it's converting all the keys to a list Jun 01 08:12:35 JakeWharton: Why shared preferences aren't itself map Jun 01 08:12:36 ? Jun 01 08:13:12 they are a map, basically. just behind a different API Jun 01 08:14:51 JakeWharton: After that, Map is converted to Set... Why ? Jun 01 08:15:10 because you're getting the keys Jun 01 08:15:13 which is a set Jun 01 08:18:59 JakeWharton: Why this is set, no array ? Jun 01 08:19:37 Map keys are unique Jun 01 08:42:57 JakeWharton: So because, map is unique, that method will convert to data structure that is also unique ? Jun 01 08:46:52 map keys are unique, yes. that's why it ends up as a set rather than something like a list Jun 01 08:53:48 In my dev console, the numbers for average rating/#ratings are wrong, i.e., some ratings are ignored although they appear in the detailed ratings list. Is anyone else having this problem? Jun 01 08:54:46 EPG: maybe they got downvoted? Jun 01 08:56:18 Ge0rG, is there some documentation on this? Maybe they were downvoted, however, I thought this had no impact on the average rating and especially the number of ratings (seems like non-sense to write "6 ratings" and then list 7) Jun 01 08:59:37 EPG: maybe the numbers come from different database locations and are out of sync Jun 01 08:59:57 EPG: there are so many strange issues with google play, you should not count the votes too much ;) Jun 01 09:00:24 :) yeah, it was just irritating me Jun 01 10:09:38 if I have an arrayList of treemaps, and I want to find a count of a certain value in the treemap, whats the easiest way to do so Jun 01 10:27:50 JakeWharton: Ok. Then we have "toArray(new String])" Jun 01 10:28:08 Then we have. toArray(new String[0]); Jun 01 10:28:22 JakeWharton: Why is this new String[0] ? Jun 01 10:45:20 hey guys… is there a possibility to pre cache sites for my webview with a background task Jun 01 10:45:22 ? Jun 01 10:51:37 jan1337z, you can have Map with key=site, value=content Jun 01 10:52:22 and before doing an fetching a content from a particular URI, checking the Map first for existance of said key Jun 01 10:52:55 do you have a source where I can read more about this? sounds interesting Jun 01 10:55:44 jan1337z, nope X_X Jun 01 10:56:02 but basically you will need a Singleton for the Map (that will be used as your caching mechanism) Jun 01 10:56:49 and then in the Background task you first get the Map from said Singleton -> query for key -> if key exists -> getResult Jun 01 10:57:31 if you haven't used Singleton in Android before, be sure to google it out Jun 01 10:57:33 But how do I save a site? Jun 01 10:57:53 cause you need to extend from Application, so that the OS won't close it asap Jun 01 10:58:11 ewww, how do you mean save site? Jun 01 10:58:17 you mean the HTML right? Jun 01 10:58:26 or is it a webservice result returning XML/JSONM? Jun 01 10:58:37 Images as well Jun 01 10:59:29 I want to cache the full website in a background task on start up … for example the start page of www.zeit.de Jun 01 11:00:22 (by full page I mean online one page but including images and maybe css / js) Jun 01 11:00:43 *only one page but ... Jun 01 11:17:13 what's the preferred way to do a AsyncTask in Android, BUT modify the UI after the task is completed? Jun 01 11:17:34 I just realized you can't modify the UI from onPostExecute, even if you pass the contex to the AsyncTask Jun 01 11:24:00 I'm having a strange issue. On one device my app compiles and runs successfully. But on another device I get: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.meeba.meeba/.activities.DashboardActivity } from null (pid=9032, uid=2000) requires android.permission.INTERNET Jun 01 11:25:27 Apparently you're requiring anyone that starts your main activity to have the INTERNET permission Jun 01 11:28:20 i've got in my manifest file Jun 01 11:28:39 but why does it work on one device and not on the other? Jun 01 11:29:18 You've got android:permission="android.permission.INTERNET" somewhere on your activity or application or something Jun 01 11:29:37 That defines the permission that anyone starting your activity must have Jun 01 11:29:49 So, on your device the launcher has the INTERNET permission.. On other device it doesn't Jun 01 11:30:03 how do i give the other device an internet permission Jun 01 11:30:12 You don't Jun 01 11:30:15 You stop requiring it Jun 01 11:30:19 i'm using ACRA library, so that might be it Jun 01 11:30:36 and acra needs internet permission Jun 01 11:31:30 Remove android:permission="android.permission.INTERNET" Jun 01 11:31:35 Not uses-permission Jun 01 11:31:43 They're two completely different things Jun 01 11:31:48 hey guys, does my AsyncTask need to be inner nested class of the Activity in order for it to be able to modify the UI in onPostExecute method? Jun 01 11:32:44 SimonVT: thanks, i removed that and now it works Jun 01 11:33:17 Now go read up on what the difference is so you don't make the same mistake again Jun 01 11:34:31 Is context keeps track of what is happening in app ? Jun 01 11:34:55 Say: AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); Jun 01 11:35:20 Why class AlertDialog.Builder , takes context in contructor ? Jun 01 11:36:42 Hiho guys Jun 01 11:36:52 Anyone likes challanges Jun 01 11:36:55 ?:< Jun 01 11:37:19 <_Saul_> hello ciurkut ! :D Jun 01 11:37:25 <_Saul_> you helped me last night! xD Jun 01 11:37:25 Hi mate Jun 01 11:37:26 Can anybody help with adding dependencies when using SBT for building? Jun 01 11:37:30 :D Jun 01 11:37:35 I remember Jun 01 11:37:41 :) Jun 01 11:37:55 I saved your ass Jun 01 11:37:58 <_Saul_> haha Jun 01 11:38:04 How is your arkanoid going Jun 01 11:38:08 ?:D Jun 01 11:38:29 <_Saul_> Rtype, not arkanoid Jun 01 11:38:30 SimonVT: Is it possible to just add the sources of a library project instead of a jar? Jun 01 11:39:30 <_Saul_> I can't detach the enemies, don't know why xD Jun 01 11:39:51 :< Jun 01 11:39:57 <_Saul_> but the tutorial was awesome Jun 01 11:39:59 You dont habe much time Jun 01 11:40:07 Better hurry up Jun 01 11:40:11 :p Jun 01 11:40:16 Anyway Jun 01 11:40:19 <_Saul_> I achieved some things I didn't think I would Jun 01 11:40:37 Im looking for help in extracting piece of code from app Jun 01 11:40:48 Nice for you Jun 01 11:40:56 Add meh to credit s Jun 01 11:41:01 :P Jun 01 11:41:05 <_Saul_> I will! Jun 01 11:41:14 :D Jun 01 11:41:44 SpearThruster, still there? Jun 01 11:42:07 :< Jun 01 11:42:40 Anyone wants to try to help me finding how ussd app Jun 01 11:42:45 Does what it does Jun 01 11:42:48 ?:< Jun 01 11:43:53 <_Saul_> sorry, I'm a noob at this, otherwise I'd do it gladly :) Jun 01 11:43:55 SpearThruster, what you are looking for (i guess is) Activity.runOnUiThread(Runnable action) Jun 01 11:44:01 Saul Jun 01 11:44:13 Send me that game after yiu finish Jun 01 11:44:20 :p Jun 01 11:44:27 <_Saul_> if I finish Jun 01 11:44:28 Ill test it Jun 01 11:47:14 :) so anyone wants to help stranger? Jun 01 11:48:50 Just decompile it Jun 01 11:49:03 Yep i did that Jun 01 11:49:10 jan1337z, no I think I need a Handler... cause I am doing some network actions Jun 01 11:49:10 :) Jun 01 11:49:16 But i have problem in dwtermining Jun 01 11:49:29 Which part is the one im looking for Jun 01 11:49:46 But your problem is that you want to do things on the main UI while you are in an async task, right? Jun 01 11:50:06 if you do things on the mainUI you get an exception (as far as i know) Jun 01 11:50:09 Use loader Jun 01 11:50:15 Or async task Jun 01 11:50:29 With onpostexecute Jun 01 11:50:42 To load net things Jun 01 11:50:43 right? Jun 01 11:50:50 How can I get reference to the view ? Jun 01 11:50:52 Yep Jun 01 11:50:55 setContentView(R.layout.activity_main); Jun 01 11:51:02 You crash app Jun 01 11:51:08 activity_main view... Jun 01 11:51:15 If it stops responding for 5secs Jun 01 11:51:29 I don't even know what you're looking for. Jun 01 11:51:53 Ussd code processing Jun 01 12:22:29 If you want to make a 'Mario' jump and run on an Android tech screen in a game, how would you go about doing that , user wise? Jun 01 12:27:17 you will first document yourself about the concept a "game loop", whatever you plan to do Jun 01 12:27:34 johnnyl, your question is far too generic and allow too many answers Jun 01 12:28:31 First, I would obtain funding. Jun 01 12:28:39 adq, I am concerned out to program user input on a touch screen. The game has input features like Mario Brothers. Jun 01 12:29:05 in a minimalist jump & run, only one thing is needed Jun 01 12:29:07 jumping Jun 01 12:29:10 just make some kind of hud Jun 01 12:29:12 so pressing anywhere should do it Jun 01 12:29:35 Or use the accellerometer Jun 01 12:29:46 nope Jun 01 12:29:47 most of the time, dev try to avoid action with finger which hide too many (useful) content on the screen, as the player moving Jun 01 12:29:53 dont fucking use accellerometer Jun 01 12:30:00 its the most useless shit in gaming Jun 01 12:30:03 i hate it :C Jun 01 12:30:09 when game uses it as controls Jun 01 12:30:10 :< Jun 01 12:30:25 s/many/much/ Jun 01 12:30:35 It depends - it can work well. Jun 01 12:30:42 It can be done badly, and be inappropriate. Jun 01 12:31:08 for mario i would go for half transparent hud Jun 01 12:32:21 hud, often at bottom, should no be a problem for a jump & run, because part of the decor preventing the character to fall can be a bit above a little hud Jun 01 12:32:27 touch top left of screen -> move right, bottom left corner -> move left, right side -> jump Jun 01 12:32:28 without taking much space screen Jun 01 12:33:17 Achillion are you serious? :P Jun 01 12:33:22 why not? Jun 01 12:33:54 it would be hard Jun 01 12:34:10 for example Jun 01 12:34:17 i hold phone in my right hand Jun 01 12:34:17 Achillion, does not really feel natural to have top left for moving right & bottom left for moving left lol Jun 01 12:34:19 Most of the time you'll be holding your left thumb at the top-left corner and tapping the right thumb Jun 01 12:34:26 when i press right side Jun 01 12:34:32 i cover all screen with my left hand Jun 01 12:34:33 :C Jun 01 12:35:00 assuming landscape btw Jun 01 12:35:31 it could be a bit tricky with large screen devices Jun 01 12:35:31 :< Jun 01 12:35:39 with my s3 Jun 01 12:35:52 i have to stretch my thumb to reach top left Jun 01 12:36:12 well ok, enlarge the margins. don't make it absolutely strict corner Jun 01 12:36:35 A 'control setup' where you can drag the controls around is nice Jun 01 12:36:43 split the side to top-left, and bottom-left, so if you're even slightly above the middle, it counts as top Jun 01 12:36:49 SpeedEvil: like carmageddon Jun 01 12:39:07 or you can just split the screen into 3 regions so the player can touch wherever, with the general setup. I don't think top-left/forward, bottom-left/backward is as unintuitive as you think Jun 01 12:41:14 first step would be to know how many actions (which require user input) he has/wants Jun 01 12:41:32 then, he might begin to think where and how efficiently provide the input(s) Jun 01 12:43:03 adq: okay Jun 01 12:43:15 it certainly doesn't make a good platform for run/jump/shooters. Jun 01 12:44:02 i would not conclude that so quickly :) Jun 01 12:44:47 johnnyl: download all runner games, see if you like the control scheme, implement accordingly Jun 01 12:45:11 i don't have an android, why do you think i'm asking? :) Jun 01 12:45:58 ... I *thought* you were asking because you're planning on developing a runner game for Android, which someone wouldn't care to do without owning a device Jun 01 12:45:58 hi all Jun 01 12:46:28 Achillion: as well you are most certainly wrong. Jun 01 12:46:39 It appears I am, yes Jun 01 12:46:43 Tankman78: greetings Jun 01 12:47:47 has anyone noticed their Google Play ratings decreasing over the last couple of days? Jun 01 12:48:50 Anyone want to help me in decompiling ussd app? Jun 01 12:48:51 plox Jun 01 12:49:08 i want to extract code used to intercept ussd Jun 01 12:49:15 but there is so much useless stuff Jun 01 12:49:18 that its hard to find Jun 01 12:49:19 :c Jun 01 12:54:07 anyway how does obfuscated app code looks like Jun 01 12:54:18 Tankman78, sometimes it happens i also saw it Jun 01 12:54:22 if i have many files with chinese names Jun 01 12:54:24 Achillion: splitting the screen is a brilliant idea. Jun 01 12:54:34 but i think it might come either from disappearing user account (deleted) Jun 01 12:54:42 or simply readjusting their data Jun 01 12:55:11 adq: does this happen once a year or something? Jun 01 12:55:20 ciurkut: certainly a hud is a good idea too. Jun 01 12:55:34 Tankman78, no the frequency is a bit higher than once a year :) Jun 01 12:56:16 adq: really...ok. I've had my app up for about 9 months, never seen it happen before Jun 01 12:56:33 Maybe there's a secret rating decay :| Jun 01 12:56:36 adq: I lost 14 ratings. Some popular apps lost several thousand Jun 01 12:56:50 i hope you lost 1star ratings Jun 01 12:57:01 adq: nope, all 5 and 4 stars Jun 01 12:57:28 today i got my first request of manual refund :| Jun 01 12:57:38 adq: what happened? Jun 01 12:58:02 He wasn't quick enough to pull the apk within the 15 minute refund window Jun 01 12:58:22 Tankman78, got someone who asked by mail: "I'd like to cancel my order" Jun 01 12:58:31 before the 2days limit and after the 15minutes Jun 01 12:58:32 I love that 15min feature thing. Jun 01 12:58:43 anyone using Volley yet? Jun 01 12:58:52 that's the rule? after 2 days, you cant refund? Jun 01 12:58:54 https://support.google.com/googleplay/answer/134336?hl=en <- i think in the past Jun 01 12:58:55 it seems to have no way to do synchronous network operations *at all* Jun 01 12:59:01 it was automatically handled by google Jun 01 12:59:07 but now it's clearly stated at bottom of the page Jun 01 12:59:12 which is a complete pain when you want to make requests from services, content providers, etc Jun 01 12:59:21 <> Jun 01 12:59:37 so you refunded him like what, 2 bucks? Jun 01 12:59:40 yes Jun 01 12:59:55 what was his beef? Jun 01 13:00:10 oops sorry i'm not a native english speaker Jun 01 13:00:15 what do you mean in your last sentence? Jun 01 13:00:28 'what was his problem/complaint'? (I think) Jun 01 13:00:37 yeah what did he complain about Jun 01 13:00:38 ah no clue, but it's his right Jun 01 13:00:51 he did not complain, just asked politely to got the refund Jun 01 13:01:05 he even provided the order id Jun 01 13:01:12 and his email matched, so i clicked "cancel" Jun 01 13:01:21 ah ok thats fair enough Jun 01 13:01:32 yeah, but now i'm imagining the worst scenario Jun 01 13:01:38 i'm afk for more than 2 days Jun 01 13:01:55 someone asked a refund in this period of time Jun 01 13:02:02 but i'm too late when i come back Jun 01 13:02:09 i don't think ppl will sue you for 2bucks Jun 01 13:02:09 * SpeedEvil thinks adqs imagination of worst case scenarios kinda sucks. Jun 01 13:02:13 did you just publish your app? Jun 01 13:02:15 but still, it's problematic Jun 01 13:02:19 Tankman78, nop Jun 01 13:02:27 for a legal point of view, it's problematic Jun 01 13:02:54 lol SpeedEvil Jun 01 13:03:11 whats your app? Jun 01 13:03:11 Tankman78: I wonder if its deleting ratings from users that have not upgraded to Google plus Jun 01 13:03:30 oo i just realized that the google support page i pasted above Jun 01 13:03:37 states "May 17, 2013 Jun 01 13:03:37 " Jun 01 13:03:49 so weird that i miss a mail about that, if they communicated about Jun 01 13:03:56 * YuviPanda wonders how it would feel like to work for someone other than a non-profit doing apps Jun 01 13:04:13 Tankman78, https://play.google.com/store/apps/details?id=com.rainy.autolock&hl=en this one was the pap Jun 01 13:04:14 app Jun 01 13:04:18 oops no Jun 01 13:04:19 lol Jun 01 13:04:26 https://play.google.com/store/apps/details?id=org.quet.android.autolock Jun 01 13:04:31 ... wrong me. Jun 01 13:04:47 SpeedEvil: I guess it could be. But some apps have hundreds of thousands of non-google plus ratings Jun 01 13:04:56 surely they wont lose all those Jun 01 13:05:08 some sort of fake weeding out? Jun 01 13:05:39 in that case I would assume they'd mostly remove 5's and 1's Jun 01 13:05:50 ive had some 4's removed Jun 01 13:06:21 odd Jun 01 13:07:01 i know that their lof of profiles used for ppl who buy rating on the blackmarket, one of the hypothesis would be that one of these account rated you in a legitim way but were already compromised to provide a "pay for rate" and has been detected by google Jun 01 13:07:20 that is another possibility Jun 01 13:07:25 adq: yeah it could be Jun 01 13:07:27 especially since this threat is highly growing Jun 01 13:07:31 to not say, exponentially Jun 01 13:07:39 and it costs less and less for 5 stars rating Jun 01 13:07:40 i mean it's happening to every single app, not just mine so i'm not too worried Jun 01 13:07:46 totally bad ;( Jun 01 13:08:00 luckily all my ratings are legit :) Jun 01 13:08:23 im just afraid a competitor will pay for people to give me 1 stars Jun 01 13:08:32 it might also happens Jun 01 13:08:57 hey where can i find adb driver for lava xtron jb7? i googled it i cant find it Jun 01 13:08:57 all the 1 stars I've received don't have comments/complaints Jun 01 13:09:10 i saw that all my free apps got a 1star almost at same time a day (some did not have any 1 star, this is how i correlated) Jun 01 13:09:11 so I have no idea why they rated me 1 star Jun 01 13:09:15 it's probably someone who hates me Jun 01 13:09:16 lol Jun 01 13:09:31 hey where can i find adb driver for lava xtron jb7? i googled it i cant find it Jun 01 13:09:39 Tankman78, i think there are bots who does that Jun 01 13:09:39 yeah it sucks that you can't really guard yourself against it Jun 01 13:09:44 without any causes or reasons Jun 01 13:09:50 just to spread more evil Jun 01 13:10:07 Tankman78, stackexchange (eg stackoverflow) had a nice concept Jun 01 13:10:11 based on minimal reputation Jun 01 13:10:13 to be able to rate Jun 01 13:10:21 i think it's great to mitigate this problem Jun 01 13:10:29 mitigate only, because ppl will first build a good reputation Jun 01 13:10:42 to exploit it Jun 01 13:10:46 yeah, but then I guess I'd have a lot less ratings Jun 01 13:10:47 (like on ebay and many others palces) Jun 01 13:10:54 for sure, it helps Jun 01 13:11:17 they forced ppl to not rate as "a google user" like before Jun 01 13:11:27 but it's really a sword hit in the wind (or the water) Jun 01 13:11:38 if you don't adda comment to the rating, you don't appear Jun 01 13:11:42 were you developing apps before the google plus requirement? Jun 01 13:11:48 and it's already full of fake first & lastname Jun 01 13:11:51 so it's not efficient Jun 01 13:11:51 hey where can i find adb driver for lava xtron jb7? i googled it i cant find it Jun 01 13:11:56 hey where can i find adb driver for lava xtron jb7? i googled it i cant find it Jun 01 13:12:00 Tankman78, yes Jun 01 13:12:16 smartracer, on their official site if not contact them Jun 01 13:12:18 adq: did you see a decline in ratings after the requirement? Jun 01 13:12:25 Tankman78, nop Jun 01 13:12:30 really? Jun 01 13:12:34 yes Jun 01 13:12:40 I feel like a lot of people still dont have google plus Jun 01 13:12:52 they cannot Jun 01 13:13:02 if they use google play, they must have a valid account Jun 01 13:13:09 oh really? Jun 01 13:13:11 i didnt know that Jun 01 13:13:12 even if they don't use g+, they are now linked too Jun 01 13:13:13 yes Jun 01 13:13:19 ah ok fair enough Jun 01 13:13:22 so you end up often in a profile empty Jun 01 13:13:27 without any photo or posts Jun 01 13:13:31 but they are linked Jun 01 13:13:54 i just wished I could see what other apps people have rated if they rated mine Jun 01 13:14:23 so for the 1 stars, I can see if they rate all other similar games 1 star, except for a single 5 star which would obviously be their own app Jun 01 13:14:34 Tankman78, i think you can but it requires work or time on your side :) Jun 01 13:14:43 how? Jun 01 13:14:50 just some google query with the profile (if not too ambiguous like john smith) Jun 01 13:15:16 Tankman78, also you have to be aware of, that "haters gonna hate" Jun 01 13:15:25 it's a tiny part of your user population Jun 01 13:15:27 but if they don't comment, I can't see the profile right? If they just rate 1 star without comment? Jun 01 13:15:30 which will never be satified Jun 01 13:15:36 adq: I know :) Jun 01 13:15:38 :) Jun 01 13:15:46 Tankman78, exactly Jun 01 13:15:47 im just curious thats all Jun 01 13:15:54 if they don't comment but only rate, you're in the dark Jun 01 13:16:12 yeah all my 1 stars are just ratings without comments Jun 01 13:16:17 so can't search Jun 01 13:16:21 Tankman78, in case you're interested in advertising, i began to write again on http://tentacleintheads.blogspot.fr/ Jun 01 13:16:41 not fully related to the topic, but .. anyway :) Jun 01 13:16:49 your findings? Jun 01 13:16:51 yup Jun 01 13:17:00 trying to decipher this beast by empirism Jun 01 13:17:08 ah cool Jun 01 13:17:14 so are you a full time developer? Jun 01 13:17:34 somehow despite i don't only code Jun 01 13:18:56 im trying to figure out how to monetize my app Jun 01 13:19:27 you have 3 ways, free with ads, paid app, or free|paid with IAB (in app billing aka cashshop) Jun 01 13:19:42 in fact more, like selling goodies but not sure it's in the scope :) Jun 01 13:20:06 yeah im leaning towards IAP Jun 01 13:20:20 same Jun 01 13:20:35 i never touched it, but i'm happy of the features present in the v3 Jun 01 13:20:45 v3? Jun 01 13:20:48 the version 3 Jun 01 13:21:10 of what? I'm not really that technical Jun 01 13:21:27 of IAB (in app billing) Jun 01 13:21:42 http://developer.android.com/google/play/billing/index.html Jun 01 13:21:51 ah ok i havent looked at it at all Jun 01 13:22:16 im working on an RPG game, so maybe I can sell all sorts of crap Jun 01 13:22:17 haha Jun 01 13:22:21 me too :) Jun 01 13:22:35 what are you working on? Jun 01 13:22:37 sometimes i'm thinking i will never see the end Jun 01 13:22:56 Tankman78, somehow a clone of wizardry Jun 01 13:23:06 how far into it are you? Jun 01 13:23:10 pretty far :) Jun 01 13:23:16 i can already play some part Jun 01 13:23:17 got a demo? :) Jun 01 13:23:21 nop but got screenshots Jun 01 13:23:25 cool show me Jun 01 13:23:29 https://plus.google.com/photos/115462329892247078112/albums/5865939112187962449 Jun 01 13:23:43 and in //, i'm learning opengl https://plus.google.com/photos/115462329892247078112/albums/5846861344299547457?banner=pwa Jun 01 13:24:12 is that all original art? Jun 01 13:24:16 or is that from the game? Jun 01 13:24:19 the game mecanic is completed near 80% Jun 01 13:24:39 the "oiled" paint are not from me, cf CC licenses Jun 01 13:24:44 ah ok Jun 01 13:24:57 looks pretty neat Jun 01 13:25:05 how much longer to go? Jun 01 13:25:13 i'm not a graphist, so i have no choice at this time than to use materials from others (respecting the license of course) Jun 01 13:25:27 yeah art is hard to do Jun 01 13:25:28 Tankman78, i think i need few monthes Jun 01 13:25:32 im trying to do my own Jun 01 13:25:50 want to check out my game? Jun 01 13:25:57 especially i don't have a story (lol) or a title (bis) Jun 01 13:26:08 Tankman78, yes please, i'm curious Jun 01 13:26:18 https://play.google.com/store/apps/details?id=com.badlogic.Arena&hl=en Jun 01 13:26:28 woot you're from badlogic? Jun 01 13:26:39 i came across their tutorials, helped me :) Jun 01 13:26:58 nice Jun 01 13:27:17 i'm not fan of this style of gui, but i have to admit it's consistent/harmonized Jun 01 13:27:23 anyone wants to help me understand what code that i have does? Jun 01 13:27:28 plox Jun 01 13:27:35 im using the game framework, but im not one of the developers :) Jun 01 13:27:36 the combat sytstem seems advanced *.* Jun 01 13:27:38 and how to interact with it? Jun 01 13:28:14 Tankman78, great job! Jun 01 13:28:18 yeah the gameplay is similar to controlling a wow group yourself Jun 01 13:28:21 especially using a gameengine Jun 01 13:28:28 i would not have imagine it's possible to go so far Jun 01 13:29:14 it's not really a game engine, it basically gives you a render loop Jun 01 13:29:20 and you write all your own code from there Jun 01 13:29:42 but obviously it's got classes for textures, sprites..etc so you don't have to make opengl calls yourself...etc Jun 01 13:29:50 :) Jun 01 13:30:45 Tankman78, how much time did it cost to make and relase your game? Jun 01 13:31:12 ...and how much money you make out of it?:< Jun 01 13:31:16 ive been working on it for maybe 6-7 months Jun 01 13:31:22 lol ciurkut Jun 01 13:31:27 Tankman consider annoying ads Jun 01 13:31:29 that's just a demo though, im working on the final version now Jun 01 13:31:34 that when you press back button Jun 01 13:31:39 it shows adds Jun 01 13:31:41 Tankman78, really great :) Jun 01 13:31:44 instead of quiting Jun 01 13:31:44 :C Jun 01 13:31:46 the demo has the first world only Jun 01 13:31:57 i saw topic that some guy is making 200$ per day Jun 01 13:31:57 ciurkut, yeah i think some stuff from appbrain does that Jun 01 13:32:06 truck driving 3d Jun 01 13:32:10 or truck parking 3d Jun 01 13:32:13 forget which one Jun 01 13:32:19 when i first launched it Jun 01 13:32:25 ciurkut: what do you mean? dont put annoying adds? Jun 01 13:32:29 i displayed ads about 5 times Jun 01 13:32:38 problem is dev wants more money from ad and become to really annoy the user with interstitial, video ads & other crazy stuff Jun 01 13:32:46 just to make a bit more money Jun 01 13:32:51 tankman Jun 01 13:32:55 youre in main menu Jun 01 13:32:58 you want to quit Jun 01 13:33:00 so you press Jun 01 13:33:02 back Jun 01 13:33:05 everything ive read about ads is that unless you have hundreds of thousands of active users, you aren't making much Jun 01 13:33:06 than ad shows Jun 01 13:33:19 than you press back Jun 01 13:33:21 yes Tankman78, even more is needed Jun 01 13:33:22 than main menu shows Jun 01 13:33:28 than you press back again Jun 01 13:33:31 ad shows Jun 01 13:33:37 and user is confused Jun 01 13:33:43 i'll include an ads minigame Jun 01 13:33:43 and doesnt know how to leave your app Jun 01 13:33:44 :< Jun 01 13:33:54 agreed, Jun 01 13:33:57 the more ads you watch and click, the more bonus XP you get Jun 01 13:34:12 for every 100 adds clicked, you get a damage buff Jun 01 13:34:30 inotia3 (great rpg) had really annoyed me Jun 01 13:34:41 with their crazy ads behavior, similar to what you describe ciurkut Jun 01 13:34:52 yep Jun 01 13:34:59 also there is tutorial on youtube Jun 01 13:35:01 on making ads Jun 01 13:35:06 where button always is Jun 01 13:35:07 im seeing a lot of 1 stars on angry birds these days Jun 01 13:35:10 so user want to click Jun 01 13:35:10 because of ads Jun 01 13:35:10 worst ad we can have now, is outside of the app in the notification bar Jun 01 13:35:14 and ad pops up Jun 01 13:35:27 it's crazy, it's like you will watch a tv show without ads, but all the other time ads would pop on the tv Jun 01 13:35:35 it's totally annoying and bad Jun 01 13:35:53 some ppl would see their mother for money, so it's not surprising Jun 01 13:35:54 lol Jun 01 13:36:00 s/see/sell/ Jun 01 13:36:24 keep your soul far from the devil, imho Jun 01 13:36:32 I personally don't like games with IAP either...but that's where we are heading Jun 01 13:37:06 i hate all the free to play mmos these days Jun 01 13:37:07 https://github.com/alaasalman/ussdinterceptor Jun 01 13:37:09 guys Jun 01 13:37:16 tell me please how its supposed to work Jun 01 13:37:19 i have nothing against IAB, except in big mmo where it highly disturbs the equilibrium between ppl who plays for free and ppl who paid Jun 01 13:38:15 the problem is that I hate playing a free game...and have no idea how much I have to pay to enjoy it Jun 01 13:38:15 anyone? Jun 01 13:38:16 ciurkut, what do you meant? Jun 01 13:38:22 is able to explain me what does it do? Jun 01 13:38:33 :c Jun 01 13:38:40 i see there is broadcast receiver Jun 01 13:38:43 that starts service Jun 01 13:38:44 http://en.wikipedia.org/wiki/Unstructured_Supplementary_Service_Data Jun 01 13:38:46 on boot Jun 01 13:38:58 it's like the code you type *#*#4636... Jun 01 13:39:00 but how to interact with service Jun 01 13:39:07 to get ussd msg Jun 01 13:39:10 interceptrd Jun 01 13:39:15 i know what it is Jun 01 13:39:19 im asking about https://github.com/alaasalman/ussdinterceptor Jun 01 13:39:33 yup according to the desc Jun 01 13:39:34 i want to understand what it does Jun 01 13:39:35 << USSD Interceptor is an Android service that allows intercepting and receiving USSD calls text results and re-broadcasting them for any listeners >> Jun 01 13:39:50 it will catch for you then rebroadcast it, so you just have to use a broadcast receiver Jun 01 13:40:04 to filter it yourself Jun 01 13:40:14 so it sends broadcasts? Jun 01 13:40:20 i see there is part Jun 01 13:40:29 where it listens to broadcasts Jun 01 13:40:35 to that particular service Jun 01 13:40:35 yes Jun 01 13:40:38 according to the source Jun 01 13:40:39 sendBroadcast(new Intent(Intent.ACTION_GET_CONTENT, ussdDataUri)); Jun 01 13:40:51 and ussdDataUri is filled Jun 01 13:41:48 so now Jun 01 13:41:50 to use it Jun 01 13:41:54 ill have to install it Jun 01 13:41:55 it listens to broadcast to know boot is completed (it's a service which runs at boot) Jun 01 13:41:57 and in my app Jun 01 13:42:09 listen for broadcast Jun 01 13:42:09 what app are you making? Jun 01 13:42:12 that it sends Jun 01 13:42:13 right? Jun 01 13:42:25 and also on ussd of course Jun 01 13:42:46 what? Jun 01 13:42:52 and also on ussd of course? Jun 01 13:42:55 what you mean? Jun 01 13:43:13 in order to forward it, it has first to listen ot it Jun 01 13:43:51 where is that in code? Jun 01 13:44:16 https://github.com/alaasalman/ussdinterceptor/blob/master/src/com/codedemigod/services/CDUSSDService.java Jun 01 13:44:20 i see only broadcast receiver that is used to get msg's from other activities Jun 01 13:44:31 to start/delete forwarding Jun 01 13:44:55 which line? Jun 01 13:45:01 listens for ussd Jun 01 13:45:10 If I copy view. Jun 01 13:45:16 It would have the same id ? Jun 01 13:45:26 ciurkut, starts at line 22 Jun 01 13:45:45 l26: //activity wishes to listen to USSD returns, so activate this Jun 01 13:46:07 so activity sends broadcast Jun 01 13:46:12 on which it reacts Jun 01 13:46:19 starting listener/forwarder Jun 01 13:46:21 right? Jun 01 13:46:38 it looks like Jun 01 13:46:46 so what happens next Jun 01 13:47:17 how it intercepts it Jun 01 13:47:21 where it does it? Jun 01 13:48:30 no clue ciurkut, but in https://github.com/alaasalman/ussdinterceptor/blob/master/AndroidManifest.xml Jun 01 13:48:33 Jun 01 13:48:38 it might be linked to the aidl Jun 01 13:48:55 https://github.com/alaasalman/ussdinterceptor/blob/master/src/com/android/internal/telephony/IExtendedNetworkService.aidl Jun 01 13:49:01 but i'm not familiar (yet) with aidl Jun 01 13:49:05 cannot explain Jun 01 13:54:49 adq Jun 01 13:54:57 so how would an activity Jun 01 13:54:59 work with that Jun 01 13:55:00 ? Jun 01 13:56:59 come back! Jun 01 13:57:00 :C Jun 01 13:57:04 we aint done yet Jun 01 13:57:08 lol Jun 01 13:57:13 why don't you contact the author? Jun 01 13:57:31 https://github.com/alaasalman/ussdinterceptor/commit/b524c59d9038006d0dc629b8a2a5e28866ba6e37 Jun 01 14:05:57 ive messaged him Jun 01 14:06:02 hope he replies Jun 01 14:07:51 adq ive installed it Jun 01 14:07:57 morning everyone Jun 01 14:08:01 and it doesnt shows in running apps Jun 01 14:08:10 morning Jun 01 14:08:26 does anyone know what is the best DB driver for android nowadays? Jun 01 14:08:41 I was using JDBC last yr and am not sure if that is still the bext option Jun 01 14:09:04 ciurkut, it's a service which runs at boot Jun 01 14:09:07 you might have to reboot Jun 01 14:09:18 there is no activity with Launcher Jun 01 14:09:19 i did reboot Jun 01 14:09:26 it doesnt show in running Jun 01 14:09:42 still Jun 01 14:09:49 i cannot help you for that, sorry Jun 01 14:10:05 mr lou Jun 01 14:10:12 maybe you will be able to help me Jun 01 14:10:38 ok. what is it? Jun 01 14:10:42 https://github.com/alaasalman/ussdinterceptor Jun 01 14:10:45 look at it Jun 01 14:10:58 and try to explain to me how it supposed to work Jun 01 14:11:02 or is it not done? Jun 01 14:11:03 or what Jun 01 14:11:14 i mean we figured out Jun 01 14:11:21 that you have to send broadcast Jun 01 14:11:34 ok. am not sure what i'll be looking at Jun 01 14:11:40 first it loads service on boot Jun 01 14:11:49 than this service reacts on broadcasts Jun 01 14:11:57 ok Jun 01 14:12:04 so we have to send broadcast msg to service Jun 01 14:12:11 so it is activated Jun 01 14:12:14 ok Jun 01 14:12:18 than it should forward ussd msg Jun 01 14:12:20 to activity Jun 01 14:12:31 ok Jun 01 14:12:36 but first question Jun 01 14:12:43 after installing it doesnt show in running apps Jun 01 14:12:49 even after reboot Jun 01 14:13:18 ok. have you tried running the application in debug mode with phone plugged to computer? Jun 01 14:13:18 why could that be? Jun 01 14:13:33 i have phone plugged in debug mode Jun 01 14:13:38 how could i check if it runs Jun 01 14:13:42 ok, does that work? Jun 01 14:14:09 what? Jun 01 14:14:14 the way I do it is: I put a breakpoint on first line of onCreate. Jun 01 14:14:14 there is no activity in there Jun 01 14:14:16 only service Jun 01 14:14:23 mmmm Jun 01 14:14:26 there is no activity there Jun 01 14:14:56 you do have an activity that kicks off the process correct? that activity starts the service, correct? Jun 01 14:15:14 nope Jun 01 14:15:20 broadcast receiver starts it Jun 01 14:15:24 i mean its not my project Jun 01 14:15:29 and documentation is lacking Jun 01 14:15:35 so we are guessing right now Jun 01 14:15:44 it should get started on boot Jun 01 14:15:51 https://github.com/alaasalman/ussdinterceptor look at manifest Jun 01 14:15:54 wow. see, I always start my service from an activity; so, am not sure about this as well Jun 01 14:16:18 well, let me ask you this Jun 01 14:16:50 just to make sure that your service is good and workable, can you have it kick off from an activity? Jun 01 14:17:02 this way, you can confirm that it is working properly Jun 01 14:17:04 mkay Jun 01 14:17:06 w8 Jun 01 14:17:15 does that make sense? Jun 01 14:19:22 in the meantime, does anyone know if jdbc is still the best option to interface with a remote DB Server? Jun 01 14:19:28 MS SQL to be exact Jun 01 14:21:24 lou_ it starts now Jun 01 14:21:27 but not on boot :C Jun 01 14:22:47 mmmm...do you think that permissions may be an issue? Jun 01 14:23:05 it has android.permission.RECEIVE_BOOT_COMPLETED Jun 01 14:23:08 so probably nope Jun 01 14:23:44 but now that it works Jun 01 14:23:48 lets go to another step Jun 01 14:24:07 i dont know man. I've never tried a service like that. Are there example services online that startup at boot? Jun 01 14:24:22 wait Jun 01 14:24:25 its not the point Jun 01 14:24:28 now Jun 01 14:24:31 look in service Jun 01 14:24:38 at file in line 24 Jun 01 14:24:44 it starts broadcast receiver Jun 01 14:25:24 well, it's a good point because if there is an example service source code that you can download and try to launch, you can use it as reference, no? Jun 01 14:25:36 yep Jun 01 14:25:40 but now i get it working Jun 01 14:25:45 and know that its ok Jun 01 14:25:49 we will fix that later Jun 01 14:25:58 now ill add button to activate that service Jun 01 14:26:04 ok Jun 01 14:26:04 but how Jun 01 14:26:13 i should send some kind of broadcast? Jun 01 14:26:14 or what Jun 01 14:26:16 ?:< Jun 01 14:26:41 from where? are you testing the kickoff of the service from an activity? Jun 01 14:26:48 nope Jun 01 14:26:52 it started Jun 01 14:26:54 normally Jun 01 14:26:57 ok Jun 01 14:26:58 now i want to activate it Jun 01 14:27:02 cause in service Jun 01 14:27:09 it listens for some kind of intent Jun 01 14:27:14 broadcast Jun 01 14:27:14 yes. Jun 01 14:27:15 * Jun 01 14:27:24 so how would i activate it Jun 01 14:27:25 ? Jun 01 14:27:36 let me reference one of my apps that does it Jun 01 14:27:46 ok Jun 01 14:28:22 I was using a service for socket communication in one of my apps Jun 01 14:28:39 yep Jun 01 14:28:50 im kinda noob in broadcasts etc Jun 01 14:29:01 public void onReceive(Context context, Intent intent) { Jun 01 14:29:02 if(intent.getAction().equals(Intent.ACTION_INSERT)){ Jun 01 14:29:04 that Jun 01 14:29:08 i dont understand Jun 01 14:29:13 so from activity Jun 01 14:29:17 i should start intent Jun 01 14:29:29 but what should it look like? Jun 01 14:29:57 i know. wait. i have to boot up my NAS to get source code Jun 01 14:30:21 pm me. lets not flood the room Jun 01 14:36:39 hi guys, im kinda new in android and now working with fragments, im trying to add buttons into the fragment then replace the fragment when one button clicked Jun 01 14:37:55 but im getting a NPE at btn1.setOnClickListener(btnOnClickListener); in this code http://pastebin.com/pw7SUrHu Jun 01 14:38:24 im thinking if i should notify the activity about that a click event happened, but dont know how to do that Jun 01 14:38:31 can you help me out please? Jun 01 14:41:15 norbi: try making second parameter to inflater.inflate on line 5 to 'null' Jun 01 14:41:54 btn1 is null Jun 01 14:43:26 StupidPanda: same thing happens Jun 01 14:44:05 hmm, sorry. I do remember reading that the container is not to be actually used in inflating layouts... Jun 01 14:44:11 looks like this was unrelated Jun 01 14:44:14 anyone pro enough to help me with my strugle in getting ussd interceptor to work? Jun 01 14:44:17 SimonVT: why would be btn1 null when im inflating the layout wich contains the buttons Jun 01 14:44:18 ? Jun 01 14:44:34 Either you need to clean your project, or your layout doesn't contain btn1 Jun 01 14:44:35 anyone wants try to help me? Jun 01 14:44:53 SimonVT Jun 01 14:44:56 would you? Jun 01 14:44:59 or are you busy Jun 01 14:45:00 ? Jun 01 14:45:02 no Jun 01 14:45:13 mr StupidPanda? Jun 01 14:45:27 not right now, sorry :( Jun 01 14:45:56 SimonVT: here is the http://pastebin.com/uKK8dg9Z layout xml. it does contain the btn1 Jun 01 14:47:17 ja yebie Jun 01 14:52:00 hello, who has already installed the new Androïd IDE please? Jun 01 14:53:02 as i have to work for my money and don't betatest for google, i wait for the 1.4 release ;) Jun 01 14:53:23 okay Jun 01 14:57:59 who has already installed the new Androïd IDE please? Jun 01 14:59:17 i have tried a new IDE Jun 01 14:59:38 i like it very much Jun 01 15:04:31 anyone want to help me with my struggle with ussdinterceptor? Jun 01 15:05:06 plox? Jun 01 15:39:57 jdapunsa-_-: have you started using gradle as well? Jun 01 15:41:57 no not yet Jun 01 15:46:22 Grr Jun 01 15:47:11 Has anybody worked with AccessibilityNodeInfo? Jun 01 15:49:19 I don't like getting a NPE for this: if(n.getChildCount()==1 && n.getChild(0).getClassName.equals("android.widget.TextView")) Jun 01 15:50:22 getClassName()... Jun 01 16:12:19 marrrk any reason you're not comparing the class objects Jun 01 16:12:57 I could Jun 01 16:13:02 Wouldn't solve the problem, though Jun 01 16:13:11 so which part is null Jun 01 16:13:31 the getChild(0) returns null Jun 01 16:13:33 any one can tell me what hardware i need to create/debug a own rom from f.e aosp? Jun 01 16:13:46 ive found pandaboard Jun 01 16:14:03 if i understand it correctly is it officially supported by google Jun 01 16:18:20 Guys I have simple app. I run camera intent and then I want to get whatever video was run and then send it somewhere(probably youtube not sure) here is code http://pastie.org/7993495. problem is i launch the camer aok i record video but program does not seem to enter onActivityResult method after i hit back button on camerat in order to return to my app from camera app Jun 01 16:23:54 so xorgate does that leave you as baffled as it does me? Jun 01 16:25:50 marrrk no but i guess that's cause i'm not as invested in the matter as you are :) Jun 01 16:26:51 Well it clearly has one child. But it returns null to me. That is an offense! Jun 01 16:38:01 Hi Can any one advice me while creating a media player service and updating the UI as my service progress, how can I achieve this Jun 01 16:38:30 hi Jun 01 16:39:58 Sorry, I'm completely new to dev. I'm hanging around to see what sort of problems people run into and what kind of advice the more experienced users give out. Jun 01 16:40:34 Cafzalone, there are several ways, depending on whether your service will be used cross-process or no Jun 01 16:40:59 Mavrik> Cross process in the sense? Jun 01 16:41:08 in the sense of… cross process. Jun 01 16:41:30 another process calling your service in your process. Jun 01 16:42:14 Mavrik> No no other process will call my service Jun 01 16:42:56 Cafzalone, then you have several options since you can call into your service directly Jun 01 16:43:20 you can expose a static listener interface, you can use a message bus (like Otto) or you can use intent broadcasts and broadcast receivers Jun 01 16:43:43 Mavrik> what i need is I need a media player to play audio file and i need to show the progress in ui and Iwant to control it(start stop seek etc) Jun 01 16:44:09 can I get a sample code of any of these approach Jun 01 16:45:29 check Otto homepage Jun 01 16:45:52 for first approach, you DO know how to call a method in another class right? That's it. Jun 01 16:47:13 Does anyone know if its generally more efficent to pass around an object or making a db call to populate the object when you need it? Jun 01 16:47:47 flipture, depends on use case Jun 01 16:47:54 passing around objects is very cheap Jun 01 16:48:09 but they do eat up memory… accessing DB makes you hit IO and is generally undesireable Jun 01 16:48:25 if you have a small dataset, keeping objects loaded is way better for performance Jun 01 16:53:03 can you write c apps in android? Jun 01 16:53:10 live on tablet Jun 01 16:53:25 i have access to root and a terminal Jun 01 16:53:26 Hello. What happen when i start an Activity with moveTaskToBack(true)? Does the current Activiy call onPause or does it really create the stuff in the background and keep it in background? Jun 01 16:53:50 bitgod. yes. Native coding is possible Jun 01 16:53:57 ok Jun 01 16:54:12 now how can i watch a youtube video AND type on terminal at same time? Jun 01 16:54:19 youtube for c/c++ tutorial vids Jun 01 16:54:26 i know android doesnt do multi app on screen Jun 01 16:54:34 ? They do. Check Samsung Multiwindow. Jun 01 16:54:46 im on a toshiba thrive Jun 01 16:54:49 honeycomb Jun 01 16:55:23 Mavrik: ok awesome. Thanks. It is quite a small dataset... Jun 01 16:55:24 It's possible. But it seems like that you should read the basics before doing that. Why do you need C for that? You can (hardly) do it with Java too. Jun 01 16:55:54 cuz id like to f--k w/ learning c Jun 01 16:56:00 while downstairs having coffee Jun 01 16:56:04 and not be tied to my pc :P Jun 01 16:56:15 andi dont own a laptop nor can afford one :) Jun 01 16:56:35 Then do not code on an android device. This is really not a good solution of coding/learning C Jun 01 16:57:24 lovely Jun 01 16:57:27 bitgod: you wont be getting proper C experience. If you want to be downstairs having coffee while working on your C programming, might I suggest you connect to your desktop remotely? Jun 01 16:57:29 so we got a linux core Jun 01 16:57:34 and a terminal and gcc on it Jun 01 16:57:38 but cant code small apps Jun 01 16:58:39 I do a lot of work by remotely opening files in VIMtouch and running through SSH on my desktop Jun 01 16:58:56 VIMtouch is? Jun 01 16:59:00 VIM for android Jun 01 16:59:08 guys, does mobile internet on an android phone usually let you host a webservice, i mean can i access my web service over internet using the mobile net ip address? Jun 01 16:59:19 whats vim Jun 01 16:59:26 i doubt it norbi1 Jun 01 16:59:32 security reasons over air Jun 01 16:59:48 bitgod: a text editor that's very popular with programmers Jun 01 17:00:08 http://en.wikipedia.org/wiki/Vim_(text_editor) Jun 01 17:00:14 ok but this doesnt help me Jun 01 17:00:32 i need to use my tablet's terminal window session + youtube tuts Jun 01 17:00:37 so i can practice doing c stuff Jun 01 17:00:41 bitgod: so i cant host a webservice on my mobile if i use the mobile net, i need to do it locally over router? Jun 01 17:00:43 i can not afford a netbook Jun 01 17:01:04 norbi1 that question is more suitable for #networking i think Jun 01 17:01:13 not a mobile services guy sorry heh Jun 01 17:01:23 bitgod: well it's possible you can do most of the basic stuff, though I've never tried. Since you're doing video tutorials, you might be ok. Give it a try, I guess Jun 01 17:01:56 but how can i do 2 things at once? Jun 01 17:02:09 i wish android had multiple windows per screen like linux and windows lol Jun 01 17:02:25 Yeah, can't help you there. I know there are floating media players that play over other apps. There's bound to be one for youtube Jun 01 17:02:34 ill look around Jun 01 17:02:38 ty for your kind help Jun 01 17:02:41 android is not like windows or linux tho. its not a desktop os Jun 01 17:02:50 and just a quick seach reveals https://play.google.com/store/apps/details?id=com.sudsoftware.floatingyoutubepopupplayer&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zdWRzb2Z0d2FyZS5mbG9hdGluZ3lvdXR1YmVwb3B1cHBsYXllciJd Jun 01 17:02:50 yes understood but its still linux Jun 01 17:02:55 just prettier Jun 01 17:03:16 ty Achillion Jun 01 17:03:18 i owe ya one Jun 01 17:03:19 its based on linux Jun 01 17:03:42 bitgod: no worries. Now I know too :) Also, in case you haven't come across it, have a look at Terminal IDE Jun 01 17:04:02 bitgod: thanks Jun 01 17:30:48 Achillion: Jun 01 17:30:52 hit me Jun 01 17:31:00 so far i got the terminal ide installed and media player Jun 01 17:31:07 but gcc doesnt exist :x Jun 01 17:31:10 oh, you're bitgod Jun 01 17:31:19 yes im on my tab now Jun 01 17:32:00 hm Jun 01 17:32:04 I think it might have a different name Jun 01 17:32:24 I think they call it "terminal-gcc" Jun 01 17:32:43 Though I can't say how it differs. Maybe you're better off with standard gcc if you're doing tutorials Jun 01 17:44:29 hi Jun 01 17:45:18 Which mobile mobile to buy for development? the latest of the gingerbread OS ? and which brand ? Jun 01 17:45:59 you may use an emulator too. Jun 01 17:46:28 misterli, ya but i need a real thing. making an app that involves gps Jun 01 17:47:23 Emulator can do fake-GPS too. Well, at least it doesnt matter which device. It depends what you want to code. If you are going high-intensive games with GL Support then you may use a device with high ram. Elsehow a mobile device like sony xperia would be enough Jun 01 17:48:16 misterli, i need real and changing coordinates Jun 01 17:49:50 Quest: mock locations Jun 01 17:50:25 Even when you do get your phone, your extensive testing will be with mock locations. Though I understand the need for real testing Jun 01 17:51:43 hm Jun 01 17:52:32 I imagine that when you're trying to get some bug or a little peculiarity fixed, you wont be compiling and leaving the house every 10 minutes to test changes, will you? Jun 01 17:52:55 Achillion, i have to manually "send" cordinates to the emulator. i need to test on real envivnment Jun 01 17:53:36 Achillion, i would just put the phone in a car and sit at home and get the cordinates by httpURLconnection requests Jun 01 17:53:37 It doesnt make any difference Jun 01 17:53:52 misterli, ^ Jun 01 17:56:18 Achillion, misterli you there? Jun 01 17:57:04 yes Jun 01 17:57:31 My suggestion remains: get the basic functionality done using the emulator, and then do real world testing Jun 01 17:57:33 so which mobile and OS to look for Jun 01 17:57:44 Achillion, that i have done. now its time to buy Jun 01 17:58:16 I used to use for TheftSpy Samsung Galaxy Tab 10.1, Galaxy S3, Sony Xperia U, Motrola Defy, Nexus and Samsung Captivate. It depends on the size of the project Jun 01 17:58:47 well in that case, I can't help. I guess anything will do. Pick something you like :) Jun 01 17:58:48 size is very small Jun 01 17:59:08 its just a service that gets gps coordinates and displays soemthing Jun 01 17:59:25 my budget is 100- 150 dollars max Jun 01 17:59:26 in this case an emulator is just working fine Jun 01 17:59:41 in most cases its way better to use an emulator for GPS stuff (or ADB with Fake GPS Position) Jun 01 17:59:52 but i can get china mobiles in that range too. with 4.0 OS android Jun 01 18:01:04 Achillion, misterli galaxy Y has 2.3 ginger bread Jun 01 18:01:04 hey guys, i am working on building a ROM for my asus transformer, i can get it to build and boot (need to work on some other things as well) but i'm wondering how i make the cell signal indicator disappear by default in my build? Jun 01 18:02:22 Quest: for that anything will do really Jun 01 18:02:42 gotta run Jun 01 18:02:42 later Jun 01 18:02:51 thanks bye Jun 01 18:02:53 flyinghappy see our topic; try #android-root Jun 01 18:03:10 g00s, any suggestons for me? Jun 01 18:03:13 oops, sorry Jun 01 18:03:14 no Jun 01 18:14:05 longshot time. looking for someone with an iphone that knows how to sniff packets :0 Jun 01 18:14:56 xorgate might have good luck in #iphonedev Jun 01 18:15:16 lots of nice people there with … iphones :) Jun 01 18:15:24 ah yes i was in the wrong chan.. iosdev Jun 01 18:15:44 i was thinking about getting one of those new $229 ipod touches though Jun 01 18:16:16 not as good of a value as a n7 but, for dev its good. and it has bluetooth low energy, yeaah! Jun 01 18:17:39 i've added a to my View, on the view, only a white box is shown (like a EditText), but when i tap/click on it, the right dialog/dropdown list is shown Jun 01 18:17:45 how can i make my spinner (dropdown) look like a dropdown? Jun 01 18:19:02 misterli, thanks. how about galaxy mini 2 , galaxy y and nexus s ? Jun 01 18:23:59 it's strange that my Spinner (dropdown) looks like a EditText widget right? Jun 01 18:36:42 Guys I have simple app. I run camera intent and then I want to get whatever video was run and then send it somewhere(probably youtube not sure) here is code http://pastie.org/7993495. problem is i launch the camer aok i record video but program does not seem to enter onActivityResult method after i hit back button on camerat in order to return to my app from camera app Jun 01 18:37:37 what are the advantages of a native android app to say an app made in phonegap? Jun 01 18:41:27 anyone, any clue / hint Jun 01 18:41:31 im clueless :/ Jun 01 18:41:42 ? Jun 01 18:59:16 what devices are best for development? Jun 01 19:00:48 galaxy y is not upgradable. how can you be sure it IS? Jun 01 19:01:14 Zaknafein, typically, nexus deviecs are good Jun 01 19:01:23 it depends on what you're doing though Jun 01 19:01:33 Zaknafein: get nexus devices. do not get anything else. Jun 01 19:01:39 if you want to support 2.2+, you might want a nexus one, nexus 4, and maybe a nexus 10 Jun 01 19:01:42 that would cover all your bases Jun 01 19:01:44 no wait Jun 01 19:01:49 replace the n4 with a galaxy nexus Jun 01 19:01:50 nexus S ? Jun 01 19:01:59 nexus s runs GB to JB Jun 01 19:02:05 nexus one can do GB, galaxy nexus can do ICS and JB Jun 01 19:02:16 sure, you can buy everything, but if you just want a minimal set... Jun 01 19:02:50 and with a nexus 10, you can easily simulate a smaller, lower density device (like the nexus 7) Jun 01 19:03:06 at home, i like testing on 2.2 for my personal apps Jun 01 19:03:16 at work, i do all dev and testing on JB MR1 Jun 01 19:03:21 but we have QA who tests on older stuff Jun 01 19:03:26 and we only support ICS+ Jun 01 19:05:02 um Jun 01 19:05:12 actually Nexus devices aren't the best for dev testing Jun 01 19:05:32 unless you're doing low level hardware stuff, i disagree Jun 01 19:05:43 mavrik, why? Jun 01 19:06:17 i can count the number of bugs we've found in gmail in the past 8 months, that only showed up on non-nexus devices, on one hand Jun 01 19:06:26 because one of the problems you hit immediately after going beyond a trivial app is problematic vendor devices and drivers Jun 01 19:06:46 also vendors tend to change things like font, dialog design and some other small things Jun 01 19:06:58 so what do you recommend? Jun 01 19:07:02 if you use Theme.Holo, that won't matter Jun 01 19:07:16 right. Jun 01 19:07:34 well whatever Mavrik says, i'd still suggest a nexus 10 Jun 01 19:07:45 it will get updates very quickly, so you'll have the latest version of android when it's released Jun 01 19:07:50 all the way until the point where Samsung has some interesting camera bugs, HTC has some very funny GL driver bugs and some other minor details :) Jun 01 19:07:50 and you can simulate smaller devices on it Jun 01 19:08:11 Zaknafein, depends on just how non-trivial your apps are Jun 01 19:08:36 Zaknafein, we tend to push UI so we're covering most major manufacturer bases before release Jun 01 19:08:45 but that depends on your budget Jun 01 19:09:08 I test my stuff on a HTC, 2 Samsungs, Sony and two nexus Jun 01 19:09:14 but that can be overkill for smaller shops Jun 01 19:09:29 what do you consider "trivial" ? Jun 01 19:10:56 an app that doesn't touch any of hardware or GL APIs and where UX designer doesn't care about advanced animations and font conformance Jun 01 19:12:20 if you care about things like "font conformance", use holo everywhere Jun 01 19:12:25 OEMs aren't allowed to modify holo Jun 01 19:12:36 Oh, phew Jun 01 19:12:49 For a second there I thought you were talking about the library Jun 01 19:13:17 i dont know what that is Jun 01 19:13:19 canadiancow, "right". Jun 01 19:13:36 also, not all fonts are rendered the same ;) Jun 01 19:14:12 SimonVT, ever used that one? Jun 01 19:14:27 Roboto is Jun 01 19:14:31 that's part of holo Jun 01 19:14:34 No Jun 01 19:14:37 Never have, never will Jun 01 19:14:55 And you should follow my example Jun 01 19:15:04 SimonVT, hmmmm, reasons? Jun 01 19:15:55 It's a bloated pos framework that saves you spending 10 minutes in themes.xml Jun 01 19:16:30 canadiancow, 1.) There's no Roboto on 2.3 and no light and some other roboto versions before 4.1 2.) Not all apps use only roboto 3.) There are some fun kerning differences on some Samsung devices when rendering text via Canvas Jun 01 19:17:25 solution: don't support 4.3 :P Jun 01 19:17:46 s/4.3/2.3/ Jun 01 19:17:50 yes Jun 01 19:17:51 that one Jun 01 19:18:20 i released an app in december (so fairly recently), and it has over 85% on ICS+ Jun 01 19:18:23 and it supports 2.2+ Jun 01 19:18:25 SimonVT, sounds like you just saved me some time ;) Jun 01 19:18:50 hiya devs~ Jun 01 19:19:34 I've been googling for some time and still found no answer. How do I get current bandwidth usage from wifi? Jun 01 19:19:43 Mavrik above you mentioned animations; have you found those to act differently across devices ? Jun 01 19:20:07 g00s, in some very severe edge cases yes Jun 01 19:20:17 mostly they involved an active GL context or a surfaceview Jun 01 19:20:36 hmm. i guess i haven't played around enough with animations myself, they are still kind of a mystery to me Jun 01 19:21:01 they are important, i need to see "moving experience" by romain again Jun 01 19:21:02 also devices tend to vary in CPU/GPU power and on some it's hard to pull off anything fancy - especially since animations are usually there to hide processing time Jun 01 19:21:17 and it's better not to have animations than to have them stutter Jun 01 19:21:30 interesting Jun 01 19:21:46 Nexus S is actually a pretty good test case, the performance of that device and GPU is pretty abysmal on 4.1 Jun 01 19:21:59 if it works there, most 4.x+ devices are covered :) Jun 01 19:22:56 i dont think much has changed; if you are dealing with hw apis that use different chipsets on different phones, you got to test those devices separately Jun 01 19:23:09 i mean, if you care ;) Jun 01 19:23:31 mhm, that and screensize + performance Jun 01 19:23:47 you'd be surprised how many time I see apps that are totaly unreadable and unusable on mdpi screens Jun 01 19:24:00 i wish the developer console - uh maybe its there but i didn't see it - would show you the device used by people asking for refunds Jun 01 19:24:11 do they still sell mdpi devices? :P Jun 01 19:24:17 would be nice to see patterns Jun 01 19:24:24 g00s, ive never sold an app, so i cant help, but that's a good idea Jun 01 19:24:30 i'll put in a feature request Jun 01 19:24:37 :) Jun 01 19:24:59 this is within the 15 minute window? Jun 01 19:25:09 yeah Jun 01 19:25:15 i dont have many returns tho Jun 01 19:25:53 canadiancow, yes. Jun 01 19:26:18 g00s, yeah, the device console is pretty terrible at showing you patterns Jun 01 19:26:26 even for crashes they can't group by device Jun 01 19:27:12 i actually use bugsense for crash reporting Jun 01 19:27:19 that way im not dependent on the user clicking "report" Jun 01 19:27:23 and i get more useful information Jun 01 19:27:34 maybe i missed this too but, i wished the console gave me a breakdown of apps purchased by device screen size Jun 01 19:27:52 i would like to know how many 7" tablet users i have Jun 01 19:27:57 or 10" Jun 01 19:28:00 mhm Jun 01 19:28:04 we just run our own analytics Jun 01 19:29:22 Mavrik what analytics do you use ? Jun 01 19:29:36 we roll our own Jun 01 19:29:44 ah, yeah. cool Jun 01 19:29:47 not just for Android though Jun 01 19:30:01 we had enough infrastructure ready so we could just plug in Android parameters Jun 01 19:35:28 g00s: I guess the main way to do that would be to do it by Android device Jun 01 19:36:20 If there was a free data source matching device IDs to OS version, screen size, manufacturer etc., the program doing analysis on it would be trivial Jun 01 19:37:16 Ologn, hurray for the fragmented market and lacking API Jun 01 19:37:27 I love Android, but it sure as hell sucks sometimes Jun 01 19:37:32 What fragmentation... Jun 01 19:37:47 Ologn, I would kill for a service that would be able to give me detailed device info in groupable form Jun 01 19:37:54 like… "Show me all devices without NEON" Jun 01 19:38:01 "show all Nvidia Tegra 2 devices" Jun 01 19:38:02 etc. Jun 01 19:38:09 When Java Micro apps were out that has different key codes for each phone, that was fragmentation... Jun 01 19:38:14 "Show all devices that don't support 640x480 as recording resolution." Jun 01 19:38:41 would be nice to write ad hoc queries against it too Jun 01 19:38:50 Designing for Windows...different screen sizes, graphics cards, chip manufacturers,drivers etc., that's fragmentation Jun 01 19:39:09 Ologn, try developing for Linux desktops Jun 01 19:39:10 well, if they have you a documented schema / feed i guess we could do that ourselves Jun 01 19:39:12 People can stick anything in their PCs...phones and tablets are generally sealed shut and that's it...other than SD cards Jun 01 19:39:33 even the audio stack differs incredibly between distros Jun 01 19:40:14 Something I would like is this... Jun 01 19:40:32 I get to see what the top 10 daily device installs are by language or country Jun 01 19:41:08 Also, if I have a person top ten for Slovenian speakers, I get to see what % of them do daily device installs Jun 01 19:41:34 I'm interested in what all languages/countries are for all categories though... Jun 01 19:42:31 mhm Jun 01 19:42:44 for that kind of info we had to roll our own analytics Jun 01 19:43:31 also Play store location awarness is kinda wierd… Apple has that done better Jun 01 19:43:41 I would do some work on it if I thought others would contribute some info Jun 01 19:44:35 I could put some together in CSV, or XML or JSON or something...I could put it in MySQL...I don't have the time to chase down info on every device I see myself though.. Jun 01 19:45:11 I'll start putting something together in the next week...I'll look at my top daily device installs and try to find out all info I can on devices... Jun 01 19:45:37 I mean, like the HTC One and such...I had no idea what devices those were when I first got hit with them...or Samsung S4s etc. Jun 01 19:45:49 mhm Jun 01 19:46:29 So g00s, Mavrik, I'll float a signal here in a week or so when I start something...hopefully others will contribute some information...because I can't chase down every device myself Jun 01 19:46:50 Thankfully Google Play dev console lets you ban "unknown" and "generic" and junk like that nowadays Jun 01 19:47:22 Ologn, ok, poke me here (or on mail) and so we see how much data we can provide :) Jun 01 19:48:23 Mavrik ok...I guess the main data trickiness I can think of is I guess there would have to be two device ID's Jun 01 19:48:50 i've used this page to find Build.* info on devices: http://gfxbench.com/device.jsp?benchmark=gfx27&D=HTC+One&testgroup=system Jun 01 19:48:59 A device ID for like a Samsung S3, and then a specified device ID for a Verizon S3, a Sprint S3 etc. Jun 01 19:49:08 I'm sure xda-developers would be interested as well Jun 01 19:49:12 Ologn, those have different device IDs anyway Jun 01 19:49:27 we use Build.MANUFACTURER and Build.DEVICE which seems unique more or less on hardware Jun 01 19:49:43 http://pdadb.net/ Jun 01 19:49:52 S3s actually have different DEVICE identifiers for their branded versions (they're o3att, o3vzw or some such) Jun 01 19:50:20 Hi. Would you recommend Android Studio for everyday development, or is it not quite ready for that yet? Jun 01 19:50:36 Mavrik, yaa Jun 01 19:59:22 i found that android studio can't show you a graphic representation of your xml layouts if you already made those in eclipse Jun 01 19:59:49 so im stuck using eclipse for my current project... Jun 01 20:01:30 Zaknafein, huh? Jun 01 20:01:41 that can't be true… AS just parses the XML Jun 01 20:02:32 And lawl at being stuck using eclipse because of graphical representation Jun 01 20:02:52 galaxy y is not upgradable. how can you be sure it IS? Jun 01 20:05:46 hi all, who can give me a link that explain what retouch_binaries() does? it's a function in the edify language Jun 01 20:13:25 general intellij question - using eclipse for so long my muscle memory keeps tripping me up. if i want to call a function f with args (x, y, z) and i have variables of those types in scope, with eclipse i can type f enter , enter, enter and it formulates the call separated by ,'s Jun 01 20:13:55 its very quick, like maybe 1-2 seconds to get the whole invocation done Jun 01 20:14:21 i can' seem to figure out how to do this in idea - it pops up a little thing with the signature of the method i am calling Jun 01 20:14:35 the bolded argument the one being i need to put now Jun 01 20:14:53 but can't figure out how to just show me what avsr are in scope it can just put there Jun 01 20:15:02 s/avsr/vars Jun 01 20:16:11 i think this is where i need to see a vide of an expert idea using showing these small microinteractions that supposedly make intellij awesome Jun 01 20:16:26 except for its beauty, i'm not really finding it any more efficient than eclipse at all Jun 01 20:16:46 *video Jun 01 20:19:41 i should have typed a little slower and made more sense ;( Jun 01 20:20:04 * g00s goes back to researching his new eventbus Jun 01 20:39:15 Anyone know anything about how to create a spinner from customAdapter then get an object reference from the spinner item that is selected? Jun 01 20:39:21 i'm stuck... Jun 01 20:41:16 Should something like this work? ListCategory selectedCategoryObj = (ListCategory) catSpinner.getTag(); Jun 01 20:41:25 (probably notenough info but worth a shot...) Jun 01 20:41:34 afternoon everyone Jun 01 20:42:07 has anyone tried to query an external DB from android, like mysql? Jun 01 20:44:44 galaxy y is not upgradable. how can you be sure it IS? Jun 01 20:46:31 anyone? Jun 01 20:48:27 I think I have finished step one of the device information thing Jun 01 20:48:46 I exported the matchups in the Google Play developer console via firebug and netexport Jun 01 20:49:22 anyone here familiar with SimpleCursorAdapter? Jun 01 20:53:20 for people that just joined, are you familiar with SimpleCursorAdapter? Jun 01 20:53:42 lou_: what's yo question Jun 01 20:53:47 lou_, spam spam Jun 01 20:53:58 lou_: don't be that girl Jun 01 20:54:10 lol Jun 01 20:54:33 my question is: can I use SimpleCursorAdapter to work with a jdbc? Jun 01 20:54:58 before you even go that way Jun 01 20:55:06 I've been using JTDS library to communicate with a remote DB Jun 01 20:55:13 connecting to a DB somewhere else directly from your app is a terrible idea Jun 01 20:55:18 and today, I read up about SimpleCursorAdapter Jun 01 20:55:22 i know iknow Jun 01 20:55:30 wow Jun 01 20:55:31 believe me, I've read about it, etc Jun 01 20:55:41 lou_: you don't quite understand how bad of an idea it is Jun 01 20:56:12 I just dont want to spend hours digging into whether a SimpleCursorAdapter supports that type o interface Jun 01 20:56:41 i understand funkbox and I've read other workarounds like a webservice. believe me, I've read up on it Jun 01 20:56:52 then why do it ? Jun 01 20:56:55 lou_, but, looking at the source, it doesn't look like SImpleCursorAdapter would mind on which type of cursor it has Jun 01 20:57:02 as long as the implementation of the Cursor is ok Jun 01 20:57:38 yeah, I understand that and I dont think that the jtds library returns cursors Jun 01 20:58:11 which means that SimpleCursorAdapter may not be the answer. any other type of adapter that may be best suited to support a ListView? Jun 01 20:58:19 well Jun 01 20:58:25 usually you just roll your own Jun 01 20:58:55 and I've done that before. I just want to make sure that am using the best tools to get the job done Jun 01 20:59:13 mhm Jun 01 20:59:50 thx. now, this is a close network that we use for our automated system Jun 01 21:00:41 am just trying to create a mobile client that displays realtime data, which hour desktop client is already doing. that's all besides the point, i know; but, am just sharing to conclude Jun 01 21:00:43 thanks Jun 01 21:01:19 lou_, yeah… even though using a more push-type architecture usually works way better for those use-cases Jun 01 21:01:27 are queries fast enough for you now? Jun 01 21:01:56 they have been. at least in the desktop applications with the use of ADO Jun 01 21:02:12 we haven't tried it with an android app Jun 01 21:02:20 but, hang on.lol Jun 01 21:02:39 this is not an extensive DB and there arent thousands of entries to display Jun 01 21:02:59 a couple hundred rows in a worst case scenario Jun 01 21:04:03 basically, the system tells robots what to do. We just need a display that shows the different requests that the robots are performing; so, think about that. we only have one site with 150 robots at the most Jun 01 21:04:37 so, it would be as many entries as there are robots; so, very light, i think Jun 01 21:04:47 mhm Jun 01 21:05:19 what do you think? anything Jun 01 21:05:50 lou_, I don't know your usecase and just how realtime the data should be :) Jun 01 21:06:09 ah, every 5 seconds should do, i think Jun 01 21:06:21 worst case, 2 seconds Jun 01 21:07:13 lou_, 60% difference Jun 01 21:07:23 pretty big margin :p Jun 01 21:07:26 it's very time consuming to go to a desktop on the other side of a big plant to look at this type of info. I think, it would help Jun 01 21:08:44 lol. yes, 60% difference. as I mentioned, a close network for just our system, most of the time with a Gigabit bandwidth Jun 01 21:09:19 I guess, we'll see. Jun 01 21:10:16 alright folks, am out of here. thanks for the input Jun 01 21:11:37 Hey guys, I am trying to figure out a layout design for my app. I want a scrollview wrapping a two col gridView with a large banner on the top of the screen(span both columns). Jun 01 21:12:56 I can't think of a way to do that since you can't wrap a gridView in a scrollView. Basically I want the first banner to scroll with the gridView. Jun 01 21:18:40 Hi, Jun 01 21:19:32 when I do bluetooth, does BluetoothAdapter.ACTION_DISCOVERY_FINISHED get called when all devices are discovered or for each Action_FOUND on a device Jun 01 21:21:29 Wy eclipse is soo sloow ? Jun 01 21:23:26 i ask because BluetoothAdapter.ACTION_DISCOVERY_FINISHED keeps getting broadcast over and over and I do a cancelDiscovery when it first recieve it Jun 01 21:26:47 What is MainActivity.this ? Jun 01 21:27:34 the instance of main activity Jun 01 21:32:39 funkbox: But how ? I mean, for me "MainActivity" is the class, and "this" is the static variable. Jun 01 21:32:59 its not Jun 01 21:33:17 funkbox: I saw somebody using this as context.... Jun 01 21:33:29 its not static Jun 01 21:33:46 funkbox: So if I have several instances, "MainActivity.this" referes to which ? Jun 01 21:34:39 google anonymous classes in java Jun 01 21:46:39 funkbox: What is there an annonymous class ? Jun 01 21:51:30 galaxy y is not upgradable. how can you be sure it IS? Jun 01 21:53:03 MainActivity.this is for inner classes, bluesm1 Jun 01 21:53:20 to differentiate between the inner class and the outer class Jun 01 21:56:34 leslie: AAAh. Jun 01 21:57:07 leslie: Because I create new class, say class of click listener. Jun 01 21:57:28 leslie: and keword "this" referes to that listener instance of class. Jun 01 21:57:42 right. the listener would be the inner class. if you want to reference the outer class, you have to use the outer class's name Jun 01 21:58:01 leslie: I need to refere to the outer class (parent class) by name of that class and .this .. Jun 01 21:58:53 leslie: I haven't noticed I'm in inner class :} Jun 01 21:59:06 leslie: funkbox: Thank you very much :] Jun 01 22:00:13 leslie: But It isn't exactly annonymous class, it is just crating instance of class inside of class. It doesn't need to be annonymous to use "OuterClass.this" Jun 01 22:00:52 no, doesn't have to be anonymous. it can be a named inner class Jun 01 22:01:20 leslie: Yes. But funkbox redirect me to annonymous class :) Jun 01 22:06:34 Can anyone help me with a cusotmAdapter for a spinner? i'm so confused... Jun 01 22:07:37 Here's the pastebin.. my spinner is loading the same item two times instead of loading the two objects i have in the db :( Jun 01 22:07:40 http://pastebin.com/gFXEVhRF Jun 01 22:17:35 finally... my Xperia S is getting Jelly Bean update! Jun 01 22:17:47 * SpearThruster is running around in the channel hi-fiving people Jun 01 22:19:23 I'm trying to write an activity that takes a photo shared from the gallery. The android developer site lists several possibile ways content like this can be sent (http://developer.android.com/training/sharing/send.html#send-multiple-content) but what kind does the gallery use? Jun 01 22:21:01 as soon as i hear "photo" "camera" i think, good luck Jun 01 22:21:53 g00s: Thanks :-). Jun 01 22:22:20 forewarned is forearmed ! Jun 01 22:22:29 g00s: I have an app where you're in the browser and you share, select my app, then it sends the app off to a website. I want to do something similar with photos the user took with the camera. Jun 01 22:22:29 or something like that Jun 01 22:31:57 puff: so you want your app to be listed in the list of apps that you can share a photo too? Jun 01 22:34:47 Jc_Dev: Got that part done, now I'm trying to figure out how to get the image. Jun 01 22:36:06 what content URI are you using? Jun 01 22:36:39 Jc_Dev: Well that's what I'm trying to figure out - what content URI will the standard gallery app be using? Jun 01 22:37:20 Jc_Dev: The use case is: User opens gallery app, selects a photo, shares, selects my app's icon. App activity posts the photo jpeg to a website. Jun 01 22:39:08 puff: the content uri is likely defined in a constant in MediaStore.Images.Media Jun 01 22:40:04 In a constant? Perhaps there's some android-specific nuance to URI that I'm missing... Jun 01 22:40:40 example: startActivityForResult(new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI), SELECT_IMAGE); Jun 01 22:40:53 oh wait, that lets the user pick an image Jun 01 22:41:02 wrong use case - one sec Jun 01 22:41:16 Jc_Dev: Ah, checked the api docs... so the MediaStore.Images.Media.getContentUri() returns the uri for the image storage table. Jun 01 22:42:00 ok yeah - try putting that in your manifest, i forget the exact syntax but you can register as a receiver Jun 01 22:42:32 then you can get the data out of the intent: Uri selectedImage = data.getData(); Jun 01 22:43:36 oh think i found the syntax: http://stackoverflow.com/questions/4669627/android-how-to-add-app-to-share-via-list-for-camera-picture?rq=1 Jun 01 22:44:31 full example here: http://eggie5.com/8-hook-share-picture-via-menu-android Jun 01 22:45:40 puff: that should get you closer anyways - i'm afk for a bit Jun 01 22:46:37 Jc_Dev: thanks. Jun 01 22:55:30 Why this method - > builder.setNegativeButton("Hi", null); Jun 01 22:56:07 Wher builder is AlertDialog.Builder , isn't overloaded. And I have to pass null ? Jun 01 23:29:28 http://developer.android.com/reference/android/content/SharedPreferences.html#getString(java.lang.String, java.lang.String) Jun 01 23:29:46 defValueValue to return if this preference does not exist. Jun 01 23:29:50 What is the use of it ? Jun 01 23:30:05 ... Jun 01 23:30:22 It says right there what the use it Jun 01 23:31:17 SimonVT: Hmm... Jun 01 23:35:10 SimonVT: So this is "default value" ? Jun 01 23:35:44 SimonVT: So it would be equivaltent to (in scripting languages) shp.getString("something", null) || myDefaultValue ? Jun 01 23:35:52 can someone explain why theres no isEmpty on strings in android Jun 01 23:36:31 you can use TextUtils.isEmpty() Jun 01 23:36:33 Zaknafein: Because there is Jun 01 23:36:36 yeah ive been using that Jun 01 23:36:38 but why Jun 01 23:37:10 because String is part of the java class library Jun 01 23:37:26 the funny thing is that its a runtime error Jun 01 23:37:28 java just uses some of java's classes; when it does it as-is Jun 01 23:37:32 which is ridiculous Jun 01 23:37:43 err, *android Jun 01 23:38:21 It's a runtime error if you use it below api 9 Jun 01 23:39:35 SimonVT huh, never even saw String.isEmpty() Jun 01 23:40:43 It's about 2½ years old :p Jun 01 23:41:04 we're getting closer and closer to java 8 in android … i can feel it ... Jun 01 23:41:43 you mean 7? Jun 01 23:42:14 someone on stackoverflow said that androids supports java 5 and it doesnt have isEmpty method for strings Jun 01 23:42:20 hi, i'm downloading a bunch of items using AsyncTask, and I need to trigger something once they're all done. in order to know when all AsyncTasks have finished, i was thinking of passing them a collection that i would add objects to when starting an AsyncTask and remove in onPostExecute, so the trigger is executed when the collection is empty. is that the right way to do it? Jun 01 23:42:21 and yeah Zaknafein, as SimonVT said, String.isEmpty() was added in gingerbread Jun 01 23:42:27 Someone on stackoverflow is an ididot Jun 01 23:42:31 so if you use a newer sdk than that, you can build your app Jun 01 23:42:33 Or posted before it was added Jun 01 23:42:38 but if you run the app on an older version... Jun 01 23:42:48 either way, TextUtils.isEmpty() is usually better Jun 01 23:43:06 almost all my string checks would be: s == null || s.isEmpty() Jun 01 23:43:12 and TextUtils.isEmpty() combines those for me Jun 01 23:47:11 What is the meaning of "toArray(new String[0])" Jun 01 23:47:32 in what context Jun 01 23:48:23 canadiancow: String[] stocks = stockSymobolEntered.getAll().keySet().toArray(new String[0]); Jun 01 23:48:43 Deja vu Jun 01 23:48:46 so im guessing getAll() returns a Map Jun 01 23:48:54 .keySet() gets a Set of the keys Jun 01 23:49:10 and toArray() will return that as an array Jun 01 23:49:15 where stockSymobolEntered is SharedPreferences Jun 01 23:49:20 Scroll back about 16 hours and you'll see him ask that exact question and get an answer Jun 01 23:49:32 lol Jun 01 23:49:48 Jake was the last sucker to answer Jun 01 23:50:14 but why .toArray(new String[0]); -> new String[0] Jun 01 23:52:56 Where can I find Andorid application ideas? Jun 01 23:53:04 play.google.com/apps Jun 01 23:53:56 Copying? :3 Jun 01 23:54:06 canadiancow: I didn't get the answer why " toArray(new String[0])" Jun 01 23:54:18 Then, so i ask. Jun 01 23:54:56 zyngawow: I want a lock screen widget that if the phone is turned on in certain orientations does different things. Jun 01 23:55:20 SpeedEvil: Example? Jun 01 23:55:21 for example, turns on the flashlight if turned on with the flashlight facing down Jun 01 23:58:53 canadiancow: SimonVT: Ok. Thanks for you time :) Jun 02 00:24:42 anyone here ever use the SAP OData library on android ? Jun 02 00:25:16 really fucking Android user commenting on Google Play take developers for their bitch sometimes Jun 02 00:25:20 fuck them Jun 02 01:28:40 ugh, how the hell do I increase the size of the ddms logcat ringbuffer? Jun 02 01:28:54 it starts bouncing too quickly because the buffer gets filled and runs out of space in like 2 seconds Jun 02 01:29:27 ah, preferes -> android -> logcat -> max number of logcat messages to buffer Jun 02 01:29:32 5,000 default, no wonder it sucks ass Jun 02 01:30:00 * pfn increases to 500,000 Jun 02 01:31:49 500,000 should handle it :| Jun 02 01:32:38 havent tried recently, but the 4.2 x86 had a ton of logcat spam Jun 02 01:32:52 needed to filter it out Jun 02 01:35:19 yes, the rev1 x86 api17 image is broken Jun 02 01:35:29 and filtering it out sucks, because it starts bouncing the logcat window Jun 02 01:35:35 unless you increase the size of the buffer Jun 02 01:36:28 i submitted a bug i just use api 16 :D Jun 02 01:36:33 oops, half sentence Jun 02 01:36:41 ok, here is a bug i submitted https://code.google.com/p/android/issues/detail?id=55229 Jun 02 01:36:43 yeah, I just use the api16 image, too Jun 02 01:36:51 it's been broken since like november Jun 02 01:36:57 I don't think google ever plans on building a new image Jun 02 01:37:02 yeah, and you figured out my 2 1/2 sentences merged together Jun 02 01:37:04 they say it's fixed internally and waiting for a new sdk tools drop Jun 02 01:37:20 intel handles the x86 images Jun 02 01:37:36 I dunno, it takes all of a couple hours to build a new system image... Jun 02 01:37:36 notice there are never and rex n x86 images, where n > 1 Jun 02 01:37:50 one would imagine Jun 02 01:38:13 is it npe ? Jun 02 01:38:34 the x86 image didn't even have the email client so i could test ACTION_SEND the way i wanted to **** ENDING LOGGING AT Sun Jun 02 02:59:58 2013