**** BEGIN LOGGING AT Fri Apr 19 02:59:58 2013 Apr 19 03:04:42 interesting, Samsung makes their Bluetooth Low Energy SDK open to the public Apr 19 03:10:37 you doing a re-write ? Apr 19 03:15:53 StingRay_: no, i'm following closely though. weird timing if android 5 gets BLE Apr 19 03:16:03 actually porting to iOS now Apr 19 03:16:39 oh you can now ? Apr 19 03:16:44 though that was….. imposs Apr 19 03:17:46 it was … but the situation has changed Apr 19 03:18:52 ios 6.x ? or you got better ? lol Apr 19 03:19:18 iphone 4s supported BLE; it was the other end of the HW that needed to change, and is Apr 19 03:21:25 going forward, i can support both android (samsung BLE or official BLE if it comes out) and iOS Apr 19 03:22:11 i decided to try something different, thats all. if WP had more traction i would have jumped on that instead Apr 19 03:23:18 looks like BB and WP are pretty dead Apr 19 03:23:49 seems like a lot of devs want a viable 3rd option; its sad - yeah Apr 19 03:24:13 many devs were making HTML5 that 3rd option from the surveys i read Apr 19 03:24:36 but, just reading here that linkedIn (who was previously championing html5) went native Apr 19 03:24:52 said teh tooling sucked basically, from what i can tell Apr 19 03:25:31 you can read that here https://news.ycombinator.com/item?id=5569483 Apr 19 03:27:40 I walked into a Sprint store today and started playing with an HTC One...and my app was already installed on it, cool Apr 19 03:28:03 :) Apr 19 03:28:09 "Google is updating the developer console to verify tablet compatibility and break up screenshots for tablet/phone interfaces. " oh Apr 19 03:28:31 Ologn: i guess that means the One has bloatware :( Apr 19 03:28:37 XD XD XD Apr 19 03:28:46 g00s: que app Apr 19 03:29:12 jug6_mbl: which app ? Apr 19 03:29:29 aye Apr 19 03:29:39 oh, hello :) Apr 19 03:30:15 &I'm sorry to hear u have sprint :P Apr 19 03:31:52 i think Schmidt said there are 1.5m android activations / day now. this chart shows android has flatlined on US AT&T / VZ though, so I wonder where those activations are happening. could be anywhere. Apr 19 03:32:16 New markets Apr 19 03:32:22 Where Idk lol Apr 19 03:32:49 US can't be helped, ppl don't think rationally Apr 19 03:33:54 lots of interesting theories there Apr 19 03:34:26 meanwhile, seems like # apps downloaded between android / ios is reaching parity, but ios still makes about 2.6x revenue according to app annie Apr 19 03:35:00 hey guys, i'm just getting started and have a plan to develop a really simple android app, i'm curious if someone could answer a few questions. 1) Do I need a rooted device to run my builds? 2) I'm looking to essentially create an app to capture all touch screen events returned by the system and write them to a file, sound simple enough? Apr 19 03:35:05 I blame android market Apr 19 03:35:11 thats strange. one theory, was that apple people were just more engaged with their devices - but this doesn't seem true if people are downloading Apr 19 03:35:46 they just aren't paying, or something Apr 19 03:36:47 Imo there are a lot of reasons Apr 19 03:37:18 or … if IAP is responsible for a lot of revenue now, maybe there is different engagement behavior once the app is installed Apr 19 03:37:51 I know a lot of android users who have simply never purchased an app Apr 19 03:38:23 Why when they can spend the rest of their lives trying the millions of free ones Apr 19 03:39:09 I really wish Google had app screening/quality checking... Apr 19 03:39:43 jug6_mbl: maybe they do … at least they removed about 60k apps from play recently Apr 19 03:40:01 They care about "X thousands apps, X billion apps downloaded" Apr 19 03:40:03 but even so, its more reactive and … i bet probably automated :D Apr 19 03:40:23 It's automated, and really a drop in the bucket. Apr 19 03:40:29 ive found a game on the amazon market, its completely riddled with ad's Apr 19 03:40:35 but i have a feeling its been stolen as well Apr 19 03:40:37 They need to be proactive Apr 19 03:40:52 i rekon both apple and google when quoting downloads should also quote uninstalls Apr 19 03:41:04 or it spams ad's in the notification tray Apr 19 03:41:07 the ad's are either in their own activity (which always spawns the browser) Apr 19 03:41:14 its as if somebody couldnt be bothered to redo the ui layout Apr 19 03:41:25 and the name in the app doesnt match the icon at all Apr 19 03:41:28 StingRay_ agreed... Apr 19 03:41:51 clever report it Apr 19 03:42:05 *looks* Apr 19 03:42:07 also, based on "active" installs have a revanue generation mean published Apr 19 03:42:40 Yea Apr 19 03:42:45 Not going to happen tho Apr 19 03:42:46 everytime I head 1 million apps or whatever I just think great, 999,000 that dont look as good as mine will that I gotta compete with Apr 19 03:42:53 :) Apr 19 03:43:06 Yup :/ Apr 19 03:43:26 99% of the store is crap Apr 19 03:43:35 jug6_mbl: hmmm, says marble saga in the app, but maya kuma on the icon, *looks more* Apr 19 03:43:42 I like some of the recent stuff though about google guidlines by google Apr 19 03:43:53 saying they dont want all apps to look the same Apr 19 03:43:54 :) Apr 19 03:44:09 jug6_mbl: 99% of the app store is crap too; but everyone expects the tier-1 apps on iOS to be fucking amazing Apr 19 03:44:23 and, for the most part they are Apr 19 03:44:35 Guide lines that arnt enforced or even recognized are worthless . Apr 19 03:45:03 g00s maybe it's a sorting issue then Apr 19 03:45:04 jug6_mbl: wtf, the app has permission to my gps, lol Apr 19 03:45:11 Wtf lol Apr 19 03:45:21 gollowing guidelines with little or no design input or creativity means all apps do look the same Apr 19 03:45:26 I find it boring Apr 19 03:45:39 following* Apr 19 03:45:42 jug6_mbl: and to run after bootup is finished, probly to spam more ad's Apr 19 03:45:43 god I'm tired Apr 19 03:45:47 g00s: at least in my experience the market sorting of apps is absolutely horrible Apr 19 03:46:04 jug6_mbl: Play store ? Apr 19 03:46:11 clever yea uninstall asap Apr 19 03:46:16 g00s: yes Apr 19 03:46:32 I doubt app ratings are even considered Apr 19 03:46:38 jug6_mbl: if i take the name in the game, and look it up on the play store, i get the exact same app, by a different dev Apr 19 03:46:39 If they are very little Apr 19 03:46:45 which actualy matches the splash screen Apr 19 03:46:58 Stolen... Apr 19 03:47:04 cleary, somebody stole it from the play store, riddled it with ad's, then put it on the amazon market Apr 19 03:47:08 Email the dev Apr 19 03:47:23 what's the right way to declare a float as a resource (it's not a dimension)? This presents a couple of options http://stackoverflow.com/questions/3282390/add-floating-point-value-to-android-resources-values Apr 19 03:48:00 Could just do it as a string.... Apr 19 03:48:04 biggest problem, switching to the original looses all my saved games :P Apr 19 03:48:21 U have been playing it :| Apr 19 03:48:34 yeah, to level 50 :P Apr 19 03:48:45 xD Apr 19 03:48:59 Well, they know where u live to be sure lol Apr 19 03:50:14 its been reported! Apr 19 03:50:47 Nice Apr 19 03:50:52 now the stupid kindle is reinstalling it :P Apr 19 03:51:03 xD Apr 19 03:51:06 it shows apps from the 'cloud' on the recent list, i clicked the wrong one Apr 19 03:51:14 so its re-downloading it Apr 19 03:51:20 Lol Apr 19 03:52:29 marble saga loading looks and sounds identical Apr 19 03:52:45 but the ad is a normal adsense one stuck in the corner over the graphics Apr 19 03:53:04 somebody actuay bothered to modify the layout xml :P Apr 19 03:55:04 jug6_mbl: another major problem ive been dealing with lately Apr 19 03:55:15 if google service framework is installed, the status bar will randomly crash Apr 19 03:55:19 and stay crashed for hours Apr 19 03:59:07 jug6_mbl: its only been an issue since the latest amazon update Apr 19 03:59:29 ok, I dont normally ask any graphics questions, but I'm in need of some serious help with a simple gradient Apr 19 03:59:38 it maybe an android bug Apr 19 03:59:41 http://db.tt/e6rQaaDo Apr 19 03:59:50 on the left is the app just started Apr 19 03:59:51 hey is there a way to filter out people with non multi touch phones trying to buy your game? don't want any bad reviews :( Apr 19 04:00:02 on the right is the app after x minutes of random use Apr 19 04:00:11 there *really* aren't many non-multitouch devices out there Apr 19 04:00:30 Omnicide: i think its an android manifest.xml option to specify that you require multitouch Apr 19 04:00:32 the gradient seems to have changed, but the values are the same Apr 19 04:00:38 any ideas ? Apr 19 04:01:20 cause i know theres devices with "fake" multi touch Apr 19 04:01:24 where it gets pretty inaccurate Apr 19 04:01:29 I'm not quite sure how android can change my "static" 2 tone gradient Apr 19 04:04:50 hi Apr 19 04:05:21 i am getting an error in debugger when simply doing the "build your first app" tutorial with eclipse/ADt Apr 19 04:05:30 what is the error? Apr 19 04:05:50 DisplayMessageActivity.onCreate(Bundle) line: 41 Apr 19 04:07:04 erm, that's not an error Apr 19 04:07:24 thats where it seems to break? hmmm Apr 19 04:07:34 also, you should use something like pastebin when you've got more than one or two lines of information to give us - errors, source code, etc. Apr 19 04:07:37 Thread [<1> main] (Suspended (breakpoint at line 41 in DisplayMessageActivity)) Apr 19 04:07:40 Apr 19 04:07:42 DisplayMessageActivity.onCreate(Bundle) line: 41 Apr 19 04:07:45 Instrumentation.callActivityOnCreate(Activity, Bundle) line: 1047 Apr 19 04:07:45 you have a breakpoint Apr 19 04:07:47 ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1611 Apr 19 04:07:50 ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1663 Apr 19 04:07:52 yeah, see where I *just* said to use pastebin? Apr 19 04:07:53 ActivityThread.access$1500(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 117 Apr 19 04:07:56 ActivityThread$H.handleMessage(Message) line: 931 Apr 19 04:07:59 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Apr 19 04:08:00 spammmmmmm Apr 19 04:08:01 Looper.loop() line: 130 Apr 19 04:08:02 erm Apr 19 04:08:04 ActivityThread.main(String[]) line: 3683 Apr 19 04:08:06 because I knew you were about to do that? Apr 19 04:08:06 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Apr 19 04:08:09 Method.invoke(Object, Object...) line: 507 Apr 19 04:08:11 joep: STOP Apr 19 04:08:12 ZygoteInit$MethodAndArgsCaller.run() line: 875 Apr 19 04:08:14 ZygoteInit.main(String[]) line: 633 Apr 19 04:08:14 he cant Apr 19 04:08:16 jesus Apr 19 04:08:17 until its done Apr 19 04:08:17 NativeStart.main(String[]) line: not available [native method] Apr 19 04:08:19 oh shit sorry Apr 19 04:08:22 i meant to copy that 1 line sorry Apr 19 04:08:24 heh Apr 19 04:08:27 heh srry Apr 19 04:08:40 usually irssi warns you Apr 19 04:08:41 oops Apr 19 04:09:20 http://pastebin.com/sT1ePqX8 Apr 19 04:09:24 heh Apr 19 04:09:50 anyway, as Omnicide said, that's a breakpoint not an error Apr 19 04:10:06 ok Apr 19 04:11:10 * joep googles how to fix that Apr 19 04:11:11 If you were to create an application that gets it's content from a server and receive push notifications, where would you host the server ? amazon ? Anyone has any experience with that ? Apr 19 04:12:23 cotdayum: depends a lot on how much load you expect, whether there will be much server-side work, etc. Apr 19 04:13:02 Leeds: A lot of people using it at all times, but no much work server-side other than sql queries Apr 19 04:13:25 app engine, maybe? Apr 19 04:13:58 google app engine? Apr 19 04:14:18 yes Apr 19 04:14:24 But to use their cloud push service whatever it's called do I need to request the user's google account ? Apr 19 04:14:47 actually, I don't think you do Apr 19 04:15:45 hmmm Apr 19 04:15:48 I will check it out, thank you ! Apr 19 04:15:55 enjoy Apr 19 04:16:09 otherwise, I personally quite like linode for a virtual server Apr 19 04:17:43 Looks good Apr 19 04:21:00 Okay strange I upgraded Intellij and boom dagger starts bitching :( Apr 19 04:21:54 No binding for blah and blah is defined in my module as an entry point + a provide method Apr 19 04:23:34 I hate when I encounter such problems Apr 19 04:24:21 ok Apr 19 04:24:24 got that all set Apr 19 04:24:34 anyone here done much listening for UDP? Apr 19 04:25:07 got this chunk of code that seems good but crashes at socket.receive(packet); Apr 19 04:25:47 http://pastebin.com/MfY73knB Apr 19 04:26:22 the println stuff is so i can see exactly where it was breaking Apr 19 04:26:29 Super annoyed with this. Dagger tells me which classes, but they're all defined. Sadly not sure how to track it down now. Apr 19 04:27:40 Is it possible to catch an Exception within an AIDL-Service and report that failure back to the caller, without the application crashing ? Apr 19 04:31:31 er, maybe my app isnt crashing, receive(packet) lock you up till ti receives something? Apr 19 04:31:58 declare the exception in the method signature and pass it up? Apr 19 04:32:26 can you add throws in AIDL? the docs are pretty sparse Apr 19 04:33:07 wow this blows dick Apr 19 04:34:05 So I receive java: error: No binding for com.chancychat.services.ChancyChat required by com.chancychat.services.callbacks.RegisterCallback for com.chancychat.ioc.CallbackModule and ChancyChat is an interface with a @Provides method. Apr 19 04:34:20 It's also defined as an entryPoints={ChancyChat.class} Apr 19 04:34:42 its like all provides methods are not picked up Apr 19 04:35:09 interesting, it just freezes you up while it waits fort udp? Apr 19 04:36:15 ah shit I see Apr 19 04:36:21 I think I see what's triggering this Apr 19 04:37:26 No false fuck Apr 19 04:39:17 Something is up Apr 19 04:39:53 it's creating a ProvideChancyChatBinding class. Apr 19 04:40:08 So it's identifying the @Provides method in the ChancyChatModule Apr 19 04:42:52 its only this one interface Apr 19 04:43:13 When I strip away all the other modules and have only one. it just points back to this one interface now something must have changed in Dagger Apr 19 04:44:32 I have it down to one exception now "java: error: No binding for members/com.chancychat.services.ChancyChat required by com.chancychat.ioc.ChancyChatModule for com.chancychat.ioc.ChancyChatModule" Apr 19 04:45:25 And there is a provideChancyChat method Apr 19 04:53:25 fuck upgrade to 1.0-SNAPSHOT and same problem, after fixing scopes for fields Apr 19 04:54:55 That's very strange so.. what was working before with 0.9.1 and an older version of Intellij (minor version) had to be related to old code. Apr 19 04:55:14 Since entryPoints don't allow interfaces it was failing, but the older version of intellij never complained about it. Apr 19 04:57:24 Another thing I noticed was I had provideMethods that threw exception, the gen code wouldn't compile so Intellij (older version) was ignoring it. Apr 19 04:57:35 checked-exceptions-- Apr 19 05:02:04 Feels good getting over this none-sense. Nothing is worse when something breaks 'out of no where' only to find out it's related to caching. Apr 19 05:05:59 Gambit-: did you guys choose a topic for the next meetup ? Apr 19 05:06:49 g00s, got the hackathon on the 18th-19th Apr 19 05:06:55 azure in... june? Apr 19 05:07:08 did you go to the UX one? Apr 19 05:07:51 Gambit-: no, i'm in phx. but last we talked, you were looking for ideas for the android meetup topic; what did you guys settle on ? Apr 19 05:07:55 where at? Apr 19 05:07:58 ah Apr 19 05:08:04 rburton-, SEA Apr 19 05:08:08 No shit when? Apr 19 05:08:18 I'm flying to SEA may 1st to may 3rd Apr 19 05:08:22 rburton-, I run the Seattle Android Developers Meetup Group. Apr 19 05:08:29 nothing during that window :) Apr 19 05:08:31 When are you guys doing that? Apr 19 05:08:34 what brings you to seattle? Apr 19 05:08:35 shat Apr 19 05:08:38 Coffee ;) Apr 19 05:08:41 really nothing Apr 19 05:08:46 dude, that's 2 days. Can't really expect too much :) Apr 19 05:08:46 We should meet up if you're free Apr 19 05:08:56 Gambit-: ah, ok. wasn't sure if you were doing mqtt or not Apr 19 05:09:03 True, flying there early May 1st and leaving to SLC afterwards Apr 19 05:09:04 g00s, remind me what mqtt was? Apr 19 05:09:11 Gambit-: nm :) Apr 19 05:09:12 rburton-, coffee under what context? Apr 19 05:09:17 drinking lol Apr 19 05:09:24 I always wanted to visit for a few days Apr 19 05:09:32 seriously? Apr 19 05:09:35 yup Apr 19 05:09:36 you're actually traveling to seattle for the coffee? Apr 19 05:09:55 yup Apr 19 05:10:00 First Starbucks :) Apr 19 05:10:07 It better be worth it! Apr 19 05:10:32 ... Apr 19 05:10:35 I hope it is! Apr 19 05:10:45 If you're free to meet up while I'm there let me know Apr 19 05:10:52 though if you really are coming up for the coffee, I can recommend tons of better places. Apr 19 05:11:16 Coffee and coding that's my plan :) Apr 19 05:11:26 Lots of people like Cafe Vita Apr 19 05:11:28 I'm one of those rare people that actually quit their job to travel and code Apr 19 05:11:40 I dunno, I traveled around the world for five years :) Apr 19 05:11:45 what are you coding, right now? Apr 19 05:11:53 ChancyChat a fun project Apr 19 05:12:35 In short, a way to randomly get paired up with anonoymous people for secure (encrypted) and temporary message (short lived messages, images, video) Apr 19 05:12:54 Trying to get this global exception handling worked out, but not sure its working ;) Apr 19 05:13:11 so basically mobile chatroulette? Apr 19 05:13:19 with a touch of snapchat Apr 19 05:13:20 yes Apr 19 05:13:26 Also secure Apr 19 05:13:36 I can't view or decrypt the messages, images or videos on the server Apr 19 05:13:40 only the client can Apr 19 05:13:48 does it need to be secure if you're talking to strangers? Apr 19 05:13:56 Privacy :) Apr 19 05:14:02 RTP (Respect The Privacy!) Apr 19 05:14:10 are you not already anon ? Apr 19 05:14:12 I want people to feel secure in being who they are Apr 19 05:14:35 You are, but why should I be forced to hand over logs to a company etc. Apr 19 05:14:44 so if they are encrypted, here you go man.. here's the bytes. Apr 19 05:14:55 that's fine Apr 19 05:14:58 if they're asking for logs Apr 19 05:15:03 they already siezed the device Apr 19 05:15:10 so hopefully you aren't keeping keys there, either :) Apr 19 05:15:20 I dont only on the device Apr 19 05:15:28 I only have public keys Apr 19 05:15:34 for encryption not decryption Apr 19 05:15:52 well the second key needs to exist somewhere :) Apr 19 05:15:59 on the device Apr 19 05:16:04 so if they get the device.. that's on the user Apr 19 05:16:15 which I, as the police authority, just sized. Apr 19 05:16:20 Gotta rotate those keys, dude. Apr 19 05:16:22 yup on them Apr 19 05:16:28 I could easily Apr 19 05:17:04 Right now its a key for all conversations, but I may have it for each conversation and once you 'terminate' the conversation, it'll remove the key Apr 19 05:17:23 Anyways, as far as meeting up, I would strongly suggest you meetup at http://seattle.beerandcode.org/calendar Apr 19 05:17:29 there's an event 7pm on the 1st. Apr 19 05:18:07 ah cool Apr 19 05:19:08 that's always a decent time. Apr 19 05:19:15 usually fairly small, but good. Apr 19 05:19:25 Has anyone here had experience with Monkeyrunner? Having some trouble. Apr 19 05:19:36 So this doesn't seem to capture all exceptions https://gist.github.com/rburton/5418311 Apr 19 05:19:39 I will be hanging around the lower queen anne area, though, and would be happy to raise a cup with you at some point :) Apr 19 05:20:03 Gambit- Sounds good when I'm flying out I'll ping you Apr 19 05:20:08 PM your e-mail? Apr 19 05:20:08 Sure Apr 19 05:21:58 Just gonna throw this out there. Can anyone help me with implementing this? I don't understand the installation instructions. https://github.com/dtmilano/AndroidViewClient Apr 19 05:22:09 So now trying to figure out what to do to capture all exceptions. I need to test this out more in details Apr 19 05:22:28 https://github.com/dtmilano/AndroidViewClient/wiki Apr 19 05:22:29 :) Apr 19 05:23:31 * rburton- will test this logic out later. Apr 19 05:24:24 rburton-: Could you give me a tip on when it says "set the environment variable" Apr 19 05:24:36 I don't know what that means. I'm still new to this stuff. Apr 19 05:25:19 EGamerHDK it means an environment variable on your machine Apr 19 05:25:38 depending on your platform thats different e.g., mac set environment variable or windows Apr 19 05:26:13 Okay, I think I had to do that to make java work on windows Apr 19 05:26:25 correct JAVA_HOME etc Apr 19 05:27:32 I'm not sure if you still have the page in front of you. But I'm still having trouble. So I add "ANDROID_VIEW_CLIENT_HOME" to my enviroment variables and it should work? Apr 19 05:30:44 play store is crashing on my nexus 10. I have a logcat - how can I begin to resolve this? http://pastie.org/pastes/7654626/text Apr 19 05:31:47 mind the oom Apr 19 05:31:58 jrr: stock device? Apr 19 05:32:02 yep Apr 19 05:32:12 thats terrible Apr 19 05:33:47 hi, how can I add activity A in library project in my main application? I build them under command line with 'ant debug', it build successfully, but when I try to start the activity A it complains no activity can be found. I am sure I added A to the manfiest of my main application Apr 19 05:33:50 jrr: Try downloading the new play store apk. Apr 19 05:34:10 where? Apr 19 05:34:53 is this just for AOSP? https://code.google.com/p/android/issues/list Apr 19 05:41:06 luoluoluo, what's the exact error message Apr 19 05:41:07 ? Apr 19 05:41:39 alex_PP: no error occurred when building with ant Apr 19 05:41:58 when you launch Apr 19 05:42:19 error occurred when starting: android.content.ActivityNotFoundException: No Activity found to handle Intent Apr 19 05:43:42 and you have an in your manifest? Apr 19 05:43:57 jrr: http://forum.xda-developers.com/showthread.php?t=2227810 Apr 19 05:44:49 EGamerHDK: actually found a mirror and installed.. same problem! Apr 19 05:45:03 once upon a time I was able to uninstall some apps and make it stop doing this Apr 19 05:45:18 I have ~2.5 pages of apps, though Apr 19 05:45:24 shouldn't be enough to cause a problem! Apr 19 05:49:05 good morning android! :) Apr 19 05:49:09 alex_PP: http://pastebin.com/cEyq3QEG Apr 19 05:49:18 this is the whole message and I am luoluoluo before. Apr 19 05:49:28 I disconnect and luoluoluo is occupied Apr 19 05:49:54 and the manifest? Apr 19 05:50:38 what would you do if you had an rest API where you can send in a web-url and a css3 selector and get back the result as json? Apr 19 05:51:34 a minute Apr 19 05:52:46 alex_PP: http://pastebin.com/Gkrf6bbD Apr 19 05:53:44 alex_PP: do you need the manifest from my library project? Apr 19 05:55:29 did you try adding to the intent filter Apr 19 05:56:54 to com.lumious.pick.CustomGalleryActivity? no Apr 19 05:57:23 try adding it Apr 19 05:57:37 alex_PP: trying.... Apr 19 05:59:05 alex_PP: were you doing ant+ stuff ? Apr 19 05:59:37 still habven't really started Apr 19 06:00:52 alex_PP: i just read today that samsung's bluetooth low energy sdk is now public Apr 19 06:01:02 linky? Apr 19 06:01:43 that's good news, though i would like it to be core android Apr 19 06:01:52 http://www.androidpolice.com/2013/04/18/for-developers-samsung-bluetooth-low-energy-sdk-opens-to-the-public/ Apr 19 06:01:52 baby steps Apr 19 06:02:02 alex_PP: thanks!!!! now the activity can be started. Apr 19 06:02:25 yeah, ideally. but samsung pretty much is android at this point Apr 19 06:02:32 true story Apr 19 06:02:34 alex_PP: another question, the apk is now using ic_launcher and app_name in my library project... Apr 19 06:02:38 the BTLE spec is pretty crap Apr 19 06:03:02 unfortunately. definitely from a security perspective, though right now it doesn't matter much if someone can read most of the sensors Apr 19 06:03:09 culpower_, in what context? Apr 19 06:03:39 the samsung thing is interesting; wonder how much they vary from the moto variant Apr 19 06:03:40 i don't want people reading my embarrassingly high heart rate! Apr 19 06:03:50 alex_PP: wellll BTLE is insecureable :P Apr 19 06:03:59 alex_PP: unless you have out-of-band pairing Apr 19 06:04:29 alex_PP: the pairing exchange is insecure against a passive monitor; think 'WEP' levels of bad, arguably a bit worse Apr 19 06:05:02 alex_PP: I have ic_launcher and app_name(say app_name=appB) in my main application and also in the library project(say app_name=appA), but they are different. Now the complied apk is using the one in the library project (appA) Apr 19 06:05:17 ic_launcher = icon of app Apr 19 06:06:04 weird Apr 19 06:06:11 not seen that before sorry Apr 19 06:07:04 alex_PP: you may be interested; http://dangerousprototypes.com/2013/04/11/shmoocon-2013-sniffing-bluetooth-low-energy/ Apr 19 06:07:41 alex_PP: i c, thanks anyway Apr 19 06:07:50 alex_PP: you already saved lots of my time :D Apr 19 06:08:35 no problem Apr 19 06:08:53 dragorn, i suppose no one'll be using it for sensitive stuff then Apr 19 06:09:03 i'm only really interested in sports sensors Apr 19 06:09:12 alex_PP: you'd hope; who knows Apr 19 06:09:21 ga Apr 19 06:09:24 *ha Apr 19 06:09:41 stranger things have happened Apr 19 06:09:51 common sense isn't, and all that Apr 19 06:21:06 hi all Apr 19 06:21:24 I want to compile more drivers into kerenl android Apr 19 06:21:31 any one can help please? Apr 19 06:27:12 Still stuck on this problem, just posted to SO. Please let me know if you can help. http://stackoverflow.com/questions/16098500/cant-get-androidviewclient-example-code-to-run Apr 19 06:28:13 drCode try asking in android-root Apr 19 06:31:08 looking at others code Apr 19 06:31:11 scary sometimes Apr 19 06:33:05 oops, got disconnected. alex_PP : did you try the Lr 5 beta yet ? Apr 19 06:33:16 g00sy Apr 19 06:33:23 hey ron_frown Apr 19 06:33:23 nope Apr 19 06:33:44 freed up my mind by getting off some of my meds Apr 19 06:33:48 oh god its glorious Apr 19 06:33:51 still haven't done much photo stuff recently Apr 19 06:33:54 yes my mind is going a million miles a minute Apr 19 06:34:02 but is good Apr 19 06:34:24 is it any good? Apr 19 06:34:45 i'm only interested in 2 features: the better healing tool, and smart previews Apr 19 06:35:05 i haven't tried it yet, since it could mess up your catalog :P Apr 19 06:35:11 radial gradient! OMG! Apr 19 06:35:12 alex_PP: maybe an app idea in here somewhere http://petapixel.com/2013/04/15/the-great-compositions-of-photographer-alfred-eisenstaedt/ Apr 19 06:35:59 backup your catalog? Apr 19 06:36:16 yeah, i'm not savvy with Lr yet Apr 19 06:36:21 there's a few magic thirds apps about Apr 19 06:37:03 alex_PP: i dont use instagram at all … or any of those things like Snapseed Apr 19 06:37:22 ok Apr 19 06:37:26 snapseed's pretty decent for messing with images Apr 19 06:37:27 but i wonder if, post capture, there is a app idea in cropping the composition to some better grid Apr 19 06:37:53 the proportions / ratios / etc in that article are kinda neat Apr 19 06:38:28 ron_frown i've been meaning to try mindfulness meditation soon; since i need better focus & concentration Apr 19 06:38:57 i'm not usually into that stuff, but the science is pretty convincing to me Apr 19 06:39:54 hmmm, can't find a post proccessing grid app Apr 19 06:39:58 on the list it goes Apr 19 06:40:03 \o/ Apr 19 06:40:33 really need to finish some of these Apr 19 06:40:36 :( Apr 19 06:40:59 currently in my spare time i'm writing a go to the gym reminder app Apr 19 06:41:22 so a calendar? :) Apr 19 06:41:37 uses passive location and (will) draw a man at vating degrees of fatness depending on the number of gum bisits in the last week Apr 19 06:41:39 *visits Apr 19 06:41:50 *gym Apr 19 06:41:55 calendat doesn't cut it Apr 19 06:44:12 alex_PP: were you serious ^^^ about high heart rate ? Apr 19 06:45:04 yeah, i'm out of shape, truing to correct that Apr 19 06:45:08 *trying Apr 19 06:45:27 mountain bike race season's just starting here Apr 19 06:46:46 get it under control http://www.nlm.nih.gov/medlineplus/news/fullstory_135958.html Apr 19 06:47:22 i meant high during excersise Apr 19 06:47:31 ok Apr 19 06:47:57 i wish there were some devices that did hr + blood pressure Apr 19 06:48:09 i think the 2 need to be considered together now Apr 19 06:48:20 there arent devices that do taht? Apr 19 06:48:33 you need the pulse to do the BP Apr 19 06:48:34 i meant popular exercise stuff, kinda like something garmin would have Apr 19 06:48:39 aggg Apr 19 06:48:41 *ahhhh Apr 19 06:50:55 like this? https://en.wikipedia.org/wiki/Continuous_Noninvasive_Arterial_Pressure Apr 19 06:51:12 is there description of how android orientation sensor work? I mean, it must have of filtering, is it described somewhere? Apr 19 06:51:13 might be a bit intrusive for sport Apr 19 06:52:42 yeah, thats cool Apr 19 06:53:11 nullie: i dont think it has filtering; you add your own low pass filter or whatever Apr 19 06:56:13 Is there something else I need to do besides Log.v(string, string); to get a log entry to appear in logcat? Apr 19 06:56:27 i love how printscreening covers all moniters Apr 19 06:56:41 nesoi make sure logcat is logging verbose errors? Apr 19 06:57:04 ron_frown : or change to Log.e? Apr 19 06:57:12 sure Apr 19 06:57:17 actually I tried Log.w and that didn't work either Apr 19 06:57:26 gargh? i though market did deltas on updates? Apr 19 06:57:27 logcat in eclipse or console Apr 19 06:57:36 GTA3 - 1.2GB Apr 19 06:57:38 eclipse Apr 19 06:58:01 nullie: i dont think there is filtering, look for any accelerometer tutorial usually you want to use a low-pass filter which are in many tutorials online Apr 19 06:58:14 oh goos mentioned that already Apr 19 06:59:56 ron_frown: eclipse's logcat... Apr 19 07:01:48 eclipse initially didn't find Log.v so I added import android.util.Log; but wonder if I need to do something else Apr 19 07:01:58 goos there are some great lecture videos put on by david lynch and some universities (he did a tour) where they talk about the philosophy (and more useful) the science of transcedental meditation if you look it up Apr 19 07:03:17 anyone have a hint as to why my Log.v logging isn't showing up in eclipse logcat? Apr 19 07:03:44 you MAY need to go to ddms perspective and make sure your device or emu hardware is selected Apr 19 07:03:52 I've seen later versions of eclipse pull that shit Apr 19 07:03:59 it's a device Apr 19 07:04:11 same comment applies =) Apr 19 07:04:13 other logging is showing up though Apr 19 07:04:30 do you ahve filters setup? Apr 19 07:04:39 filters where? Apr 19 07:04:44 do you have a hardware device hooked up AND an emulator running (even if you arent using it) Apr 19 07:04:46 oh in logcat Apr 19 07:04:46 in log cat Apr 19 07:04:47 on left Apr 19 07:04:54 easy way to test this crap Apr 19 07:05:00 I searched for the tag and didn't find it Apr 19 07:05:10 just go to android/platform-tools/adb and see if you see yoru stuff logging out Apr 19 07:05:10 no emulator is running Apr 19 07:09:43 eclipse is a real pos sometimes Apr 19 07:10:35 ron_frown : yes, adb logcat finds it Apr 19 07:11:22 did you try the ddms perspective thing Apr 19 07:11:50 heh where is that? :) Apr 19 07:12:03 window or something Apr 19 07:12:38 ah right. and do what there? I see my device... Apr 19 07:13:03 upper left hand corner Apr 19 07:13:28 devices tab? Apr 19 07:13:35 yes Apr 19 07:14:15 heyas :) Apr 19 07:14:37 anyone have a suggestion for an android dev environment that doesn't involve eclipse? :\ Apr 19 07:14:43 on that tab options available are screen capture, dump view heirarchy..., capture system wide trace, reset adb Apr 19 07:14:54 why did eclipse delete my project.properties file Apr 19 07:15:16 OotLink intellij community edition seems a popular choice Apr 19 07:15:45 intellij is soo much better Apr 19 07:15:55 its diff and there are som eissues with it too Apr 19 07:15:59 but lot less stressful Apr 19 07:16:31 seriousily, Apr 19 07:17:17 hi, I am new to android development and just started with the google provided tutorials. they are quite OK but there is an Object/Reference R they are using sometimes and I don't understand what this is Apr 19 07:17:20 example: Apr 19 07:17:22 setContentView(R.layout.main_activity); Apr 19 07:17:26 so what were you suggesting I do there ron_frown? Apr 19 07:17:37 What does R stand for? Apr 19 07:17:57 cklick your device Apr 19 07:18:00 saedelaere resource Apr 19 07:18:49 saedelaere: R is a class that is automatically generated, and contains references to the various resources you've defined in the resource xml files Apr 19 07:19:21 JesusFreke, ron_frown: Thank you very much! Apr 19 07:19:35 ron_frown: there was a new aosp drop today (4.2.2_r1.2) Apr 19 07:19:52 r1.2? haha Apr 19 07:19:52 meh Apr 19 07:20:15 I dont think android is necessarily dropping the ball per say Apr 19 07:20:16 5 version numbers. that's pretty impressive Apr 19 07:20:17 ron_frown: i got the impression you were using the latest & greatest for your embedded stuff Apr 19 07:20:30 not bleeding edge Apr 19 07:20:38 I think I am 4.1.2 atm Apr 19 07:20:53 I will likely be porting it up to 4.2.x Apr 19 07:20:58 need some fo the new features Apr 19 07:21:05 so why would logging show up in adb logcat and not in eclipse? Anyone have a suggestion? I don't find it when searching for the tag or when looking at All messages (no filters) Apr 19 07:21:28 is there somewhere description of how android sensor filtering works - i.e. how it extracts gravity and acceleration from acceleration sensors? Apr 19 07:21:54 JesusFreke: the ubuntu package names are even better, like libfoo-2.1-x86_r1_2001-0101-v2 Apr 19 07:22:02 heh, i'm exaggerating Apr 19 07:22:38 what's wrong with debian package names? Apr 19 07:23:57 intellij it is! thanks :D Apr 19 07:24:13 now to get myself in the mood to use java Apr 19 07:24:16 * OoTLink shudders Apr 19 07:24:31 I have no idea why I have such an aversion to java lol Apr 19 07:25:08 OoTLink: probably because it sucks Apr 19 07:25:11 :) Apr 19 07:25:47 OoTLink - have you written code in c# Apr 19 07:26:02 lots of people form invalid opinions on shitty java gui apps being slow Apr 19 07:26:17 to me the language itself is just unnecessary work for some stuff Apr 19 07:26:40 I've been spoiled with c# ;( Apr 19 07:26:43 Java and boilerplate go hand in hand unfortunately Apr 19 07:27:01 annotations help Apr 19 07:29:45 ron: nope Apr 19 07:29:51 I've never used java or C# Apr 19 07:30:00 I've used c++ and objc Apr 19 07:30:09 * g00s likes objc Apr 19 07:30:12 and php, and x86&arm assembly Apr 19 07:30:26 and verilog and a little bit of matlab lol Apr 19 07:30:35 I don't know where I'm going with that one ;) Apr 19 07:31:13 its frustrating when a cool book comes out and uses matlab code; not like one 'simply buys matlab' Apr 19 07:31:31 yeah, there is some open source approximation, but often the code doesn't work Apr 19 07:32:08 but sometimes the book will say works on matlab and octave Apr 19 07:33:14 that's why I don't use matlabmuch Apr 19 07:33:14 lol Apr 19 07:33:30 in order to use matlab (legally) I have to ssh into one of the machines at the uni Apr 19 07:34:43 i took a long break from python - just haven't needed lately - but looking at it again because its got some great numerical computing libs. i think some new ones are on the way also Apr 19 07:34:54 its a little more flexible than using R for what i would like to do Apr 19 07:37:29 OoTLink: there is one lang worse than php : vimscript Apr 19 07:37:56 should have been called mindfuckscript Apr 19 07:40:52 great. now I'm getting nothing at all in logcat Apr 19 07:41:25 lol Apr 19 07:41:28 ah, close ddms Apr 19 07:41:32 java and PHP are the most hated languages there are Apr 19 07:41:47 I was at my uni career fair today and the rep from oracle pretty much blew off anyone that didn't know java Apr 19 07:42:13 I had to resist my temptation to ask him who would want to work for oracle anyway Apr 19 07:42:51 yeah, its like working for Dr Evil Apr 19 07:47:51 ha Apr 19 07:47:55 i like java though Apr 19 07:48:18 i find objc objectionable Apr 19 07:48:42 there are some things that wind me up though Apr 19 07:48:50 auto boxing Apr 19 07:48:53 and generics Apr 19 07:51:00 i've not written any PHP for about 6 years Apr 19 07:51:15 I have a usb logic analyzer laying around Apr 19 07:51:24 kinda want to play with it Apr 19 07:52:36 alex_PP: i think java will be closer to object oriented in Java 10; they will do away with primitives then Apr 19 07:54:26 jsr 310 in java 8! Apr 19 07:54:36 about time the time apis got some love Apr 19 07:54:56 its the joda time dude Apr 19 07:55:08 the apis are pretty close Apr 19 07:55:10 joda's massive Apr 19 07:55:32 i was going to try it once when, i learned it took like 15 seconds to parse the tz db on android Apr 19 07:55:50 yeah :( Apr 19 08:02:17 cool, morgan kaufman works with oreilly now for ebooks - they have tons of great stuff on UX. 50% for a little while now Apr 19 08:28:14 intellij idea is much more small-screen-friendly Apr 19 08:46:19 does anyone really include ldpi assets any more ? Apr 19 08:47:06 hello android folks, are any testing wizards around ? I got a wierd problem. It seems that WebView.loadUrl() doesn't have any effect within my ActivityInstrumentationTestCase2. Does anyone know why that might be and how to solve it? Apr 19 08:56:10 hi Apr 19 08:57:05 does anyone feel like helping me with a simple html5 app question ? newbie here.. Apr 19 08:57:50 mhmms :( Apr 19 08:59:27 probably you should ask the question newdev Apr 19 09:00:22 ok, thank you, i wasn't sure if that was allowed. I couldnt find this channel's rules anywhere.. Apr 19 09:01:05 I don't know the rules either, but it's usually a good idea to ask questions in a channel rather than asking if you can ask Apr 19 09:01:23 yes you're right Apr 19 09:02:04 I'm making a html5 app for a charity Apr 19 09:02:06 although this channel is more for native (i.e. SDK/NDK) development rather than html5... Apr 19 09:02:34 I finally found out how to open android's email client Apr 19 09:02:51 AppMobi.device.sendEmail(bodyText, toString, subjectText, isHTML, ccString, bccString); Apr 19 09:03:03 but I can't figure out how to insert the form data into that command Apr 19 09:03:19 ow ok, sorry Apr 19 09:03:23 use an Intent Apr 19 09:03:45 not so much that you can't ask - but you might get people telling you to actually write an app instead, and/or not much help with html5 stuff Apr 19 09:05:11 will intend work in the html5 ? Apr 19 09:06:13 yeah i know Leeds, i'm kind of cheating here. I'm not really good at it. I chose html5 because I can package it once it's done to both iphone and android... there's a lot of people with iphones :( Apr 19 09:06:34 there's more people with Android... Apr 19 09:06:56 newdev -> http://thenewboston.org/watch.php?cat=6&number=37 Apr 19 09:07:10 * Zharf thinks html5 apps fail at usability, always... also they don't fit the platform at all Apr 19 09:07:10 if you want something quick and nasty, wrapped html will do, but your users can tell that you haven't bothered making a native app for their platform Apr 19 09:07:49 newdev: you might also want to ignore BullShark, whose nick clearly suggests how useful his advice is Apr 19 09:08:14 why is eclipse such a pos Apr 19 09:08:17 Leeds -> still haven't ignored me yourself like you said you did Apr 19 09:08:43 Leeds -> your irc client probably has an /ignore. see if you can figure out how to use it. Apr 19 09:09:16 I appreciate every help, please dont fight people, desperate dev here :( Apr 19 09:10:20 newdev -> check the link i gave you for email in android Apr 19 09:10:36 newdev -> it's part of a 200 video tutorial series Apr 19 09:10:41 ok awesome!! Apr 19 09:11:01 newdev: only relevant if you're going to start writing native Android code Apr 19 09:11:29 ow :( Apr 19 09:11:38 Anyone have the problem of eclipse not installing apk on device when run? Apr 19 09:13:08 Hello :> Apr 19 09:13:45 it seems so simple.. there's a "AppMobi.device.sendEmail" that will launch the native android app.... it has the following parameters: "(bodyText, toString, subjectText, isHTML, ccString, bccString);".......... I just don't know how to send the information people enter into my form to "AppMobi.device.sendEmail" Apr 19 09:14:31 newdev: it seems obvious that you need to parse the form in javascript and put the result into bodyText, surely? Apr 19 09:15:10 exactly!!! I just dont know how to do that in code.... sorry im trying really hard here.... im like 7 hours in at this point.. Apr 19 09:15:13 I have such code http://pastebin.com/rdtQ29ck and i got: Only the original thread that created a view hierarchy can touch its views. Apr 19 09:15:33 How should i update my adapter in correct way ? Apr 19 09:15:46 newdev: I'd say that genuinely is nothing to do with Android - it's just stock javascript, not even particularly 'html5' Apr 19 09:16:08 i know :( Apr 19 09:16:32 do you not know javascript? Apr 19 09:17:42 I do most of the time, I mean I'm trying, I tried solving it on my own, tried many many websites/e-books/documentation, i just can't find this particular issue.. Apr 19 09:18:59 you don't know how to get data from a form? Apr 19 09:19:06 what is your actual roadblock? Apr 19 09:20:27 you mean method="get" ? Apr 19 09:21:08 okay, I'm done - please try #javascript Apr 19 09:21:40 ok Apr 19 09:23:01 sorry, but it's really nothing to do with Android, and it sounds like you need some pretty basic help... Apr 19 09:23:50 i understand Apr 19 09:46:01 My current code: http://pastebin.com/dWTHpzc9 and still have issue with Only the original thread that created a view hierarchy can touch its views. Apr 19 10:01:03 Don't touch the ui outside of the main thread Apr 19 10:01:57 but Apr 19 10:02:10 line 85? Apr 19 10:02:18 onPostExecute should be executed in main thread Apr 19 10:02:51 i am not sure but aAdapter is part of the ui therefore you cannot do line 85 where you have it Apr 19 10:03:06 Your adapter handles ui.. You're calling methods on it outside of the main thread Apr 19 10:03:08 i think you have to dump suggestkeys into an array and then add them in onPostExecute then notifydata set Apr 19 10:03:47 Either way, you shouldn't change its dataset until you're done loading it Apr 19 10:04:41 ok i move this into onPostExecute and check result Apr 19 10:13:18 Works fine :) http://pastebin.com/51n8365p Apr 19 10:14:56 but i`m not a fun to have a multiple try/catch block, also i`m not sure is the list of items will be huge, is it a good idea to iterate through it in main thread Apr 19 10:15:42 *fan Apr 19 10:16:00 I'm having some weird installation issues - my app won't install properly with the following warnings in the log http://nrby.eu/c/190 I can't figure out what's wrong and nothing I find on stackoverflow seems to do the trick Apr 19 10:16:13 You should parse the json in doInBackground and only pass the strings to onPostExecute Apr 19 10:16:14 I've no idea what the "no content provider found" error even means, any suggestions? Apr 19 10:21:38 SimonVT: but then i need again create a new list object, fill it with data from json, then pass it to onPostExecute and iterate again to add items to adapter, Is it not a waste resources? Apr 19 10:23:48 Nope Apr 19 10:47:21 hello...i'm trying to compile v8 for android in Mac OS X, but I get a weird error: http://pastebin.com/fcwCDtZv Apr 19 10:47:23 any ideas? Apr 19 10:51:55 http://developer.android.com/google/gcm/gcm.html#received_data is there someone from documentation team? in the example, Intent class has no method getExtra()! Apr 19 11:15:52 I'm developing an app which will only add widgets to the phone; at times (currently) I enter a 'bug' that the widgets are not listed/loaded on the widget list Apr 19 11:15:56 they simply don't exist. Apr 19 11:16:14 I've no clue as to why they do this on occasion, any generic reasons for them disappearing? Apr 19 11:16:39 sun rays Apr 19 11:17:37 as for source code, http://nrby.eu/c/191 is what's set Apr 19 11:18:01 I'm going nuts here :< Apr 19 11:21:09 what is the best way (layout) to sell a license and show whats the different between licenses? Apr 19 11:21:41 like.. "Buy License: basic, silver, gold.. (maybe a listview)" and with a detailed view why the user should buy this or that in a singla activity? Apr 19 11:23:17 by not using such a sleazy business model Apr 19 11:23:38 It's not sleazy :) Apr 19 11:24:14 i prefer a non-bullshit free version with ads or a "Full" paid version. Apr 19 11:24:52 basic, silver and gold just reeks imho. Apr 19 11:25:00 Had that along time now. I dont like ads. Not even in Free-Versions. Trust me. My App worth the price/licenses ;) i've about 20.000 paid accounts Apr 19 11:29:33 mobile porn app misterli? ;p Apr 19 11:34:24 lasserix. No. www.TheftSpy.com Apr 19 11:39:03 SimonVT: my current code http://pastebin.com/jMeq1Nrb did you see something else that i should change/ Apr 19 11:39:07 ? Apr 19 11:43:53 ArrayAdapter calls notifyDataSetChanged for you, you don't need to do it manually Apr 19 11:44:26 ok thx Apr 19 11:45:29 What is a trigger for it? if i call the ArrayAdapter.clean() its also fired ? Apr 19 11:45:44 Yup. Youre exactly the kind of developer i thought you'd be misterli . app description : "Want Premium for 1 Month for free? Review the App with 5* if you like it and send an email to review@theftspy.com with your username" Apr 19 11:46:17 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/widget/ArrayAdapter.java Apr 19 11:46:21 You can check that yourself Apr 19 11:47:36 can you set focus on a textview? Apr 19 11:47:43 So my app is available both as a mobile website and a mobile app. So to convince my users to install the app, besides camera access and faster browsing, what else can I add to that list? Apr 19 11:48:21 lite_. I didnt upgrade the description since a long time. Anyway, i dont think it's a bad idea to push up an app AND/OR offer _FREE_ Accounts without paying. Noone need to use Premium. All features can be used as Free-User, just limited Apr 19 11:48:47 ok thx :) Apr 19 11:50:48 boytoy need more info Apr 19 11:52:33 lasserix: Well it's a photo sharing app Apr 19 11:53:10 if you are targetting newer api you can do popular flipper widget Apr 19 11:53:15 There's gotta be more reasons than "camera access" and "faster browsing".. Apr 19 11:53:27 well essentially you need to make a badass widget Apr 19 11:54:03 there is some thing you can scroll through something one sec Apr 19 11:54:27 here: Apr 19 11:54:27 http://developer.android.com/guide/topics/appwidgets/index.html#collections Apr 19 11:54:58 but if you do a adapterviewflipper then someone could passively watch popular images Apr 19 11:55:26 which is a very native thing, you could also do simple editting? Apr 19 11:57:36 lasserix: We might have misunderstood each other, what I mean is, say the mobile website and mobile app are exactly the same (other than the mobile app letting people upload photos straight from their mobile camera) - why choose the app? Apr 19 11:59:05 lasserix: editing is a very nice idea though.. but one can also do editing from the mobile website so.. Apr 19 12:02:42 app widget Apr 19 12:03:00 and touch screen browsing are probably the best reasons Apr 19 12:03:35 by app widget I mean something like this: http://www.broculos.net/2011/12/android-101-how-to-create-stackview.html#.UXEyi7WcfGA Apr 19 12:03:56 which is automatically populated by recent / most popular / whatever Apr 19 12:05:00 you can also make use of location via taking pictures with camera Apr 19 12:09:07 lasserix: the app widget / UI is the same on mobile website and mobile app though Apr 19 12:09:21 do you know what an app widget is? Apr 19 12:09:39 I surely hope so! Apr 19 12:09:39 lulz Apr 19 12:09:49 there is no app widget for a mobile site Apr 19 12:10:02 a mobile site is served up to mobile devices, from what i understand Apr 19 12:10:08 you mean like proper scrolling, touch screen browsing, zooming etc. right? Apr 19 12:10:13 no Apr 19 12:10:19 do you have an android device? Apr 19 12:10:26 yep Apr 19 12:10:31 do you know how to add a widget to your homescreen? Apr 19 12:10:36 like, the clock for instance Apr 19 12:10:40 ooooh Apr 19 12:10:43 yeah Apr 19 12:10:45 now i get u Apr 19 12:10:52 really cool point man.. Apr 19 12:10:55 that is imho one of the best reasons to download an app for a site Apr 19 12:10:59 sorry i am kinda tired Apr 19 12:11:38 and i am very new to all of this :D Apr 19 12:11:52 an app widget.. hell yeah.. Apr 19 12:12:03 they are kind of a pain but worth it Apr 19 12:12:17 note that the stackview flipper thingy is only available on (i think) 3.0 and up Apr 19 12:12:40 oh ok Apr 19 12:12:45 just meaning there is a lot more work to make pre 3.0 and post 3.0 app widgets Apr 19 12:13:10 and you'll want to make a pre 3.0 since that is still like 60% of market Apr 19 12:13:33 hmm.. Apr 19 12:13:41 thanks for the idea man Apr 19 12:14:00 gonna have to think hard about this, but wont be doing it until after the launch of the site/app itself though Apr 19 12:14:11 lasserix: this Facebook Home.. isnt that like a huge app widget? Apr 19 12:15:13 not sure, but it looks like beyond a app widget Apr 19 12:15:42 yeah.. Apr 19 12:15:53 their attempt to take over your phone Apr 19 12:15:54 :) Apr 19 12:15:58 haha Apr 19 12:16:07 im serious Apr 19 12:16:23 yeah i see people really seem to hate it Apr 19 12:16:31 it'd be like if AOL was trying to spawn windows on windows Apr 19 12:16:42 haha Apr 19 12:16:43 funny Apr 19 12:17:11 yeah i think if fb were just to make a simple app widget that'd be way more successful.. not barge in on peoples lives like that Apr 19 12:17:24 you'd be surprised how many people will use fb home Apr 19 12:17:43 no doubt Apr 19 12:18:11 sonOfRa: i doubt the majority of them will use it for very long though Apr 19 12:20:01 Hey anybody here speak an european language? Apr 19 12:20:29 what do you mean? Apr 19 12:20:40 regardless of the language how'd one go about translating the word "widget"? Apr 19 12:21:01 * a non-english european language Apr 19 12:21:11 me greek Apr 19 12:21:59 cool Apr 19 12:22:06 resu01: https://www.youtube.com/watch?v=nltJZ0eYuuQ intense Apr 19 12:22:19 =) Apr 19 12:22:55 time to quit the computer eyes burning up goodluck boytoy! Apr 19 12:24:07 anyone knows how do i uninstall an app from Kindle HD emulator? Apr 19 12:25:18 i am using the bitmap fun from http://developer.android.com/training/displaying-bitmaps/index.html and i have the following problem Apr 19 12:25:29 does anyone knows this example? Apr 19 12:27:41 i want clear the caches as i leave the activity with backbutton Apr 19 12:27:57 does anyone hear? Apr 19 12:28:19 or i just spam with my problem Apr 19 12:28:20 ? Apr 19 12:29:03 boytoy_: i would go for component or element Apr 19 12:29:09 Well, this room is for dev and what your asking is related to that so not spamming . It is 5 a.m where I am so , that might have something to do with it. Apr 19 12:30:42 ok so this example from android developers is downloading the bitmaps from internet efficiently and show them in a gridview Apr 19 12:31:33 for a better user experience i want to clear both the LruCache and DiskLruCache when i leave the activity Apr 19 12:32:14 the problem appears when i relaunch the activity and the images doesn't start downloading Apr 19 12:33:33 the message from imageworker class which is responsible for downloading the images is cancelPotentialWork - cancelled work for https.... Apr 19 12:33:40 and nothing happens after that Apr 19 12:34:19 this seems that the asynctask thread has finished its previous job and there is a collision when i relaunch the activity Apr 19 12:35:34 the strange thing is that this happens only when i switch off the wifi->switch on data network->download images->switch off data network->switch on wifi and download images again Apr 19 12:35:46 only this problem appears Apr 19 12:36:14 when i relaunch activity only using wifi everything is ok. Apr 19 12:36:42 what is the problem? What differs from one case to the other? Apr 19 12:37:02 Can you work on the OS with Google ? Do you just fix bugs or is there real change you change will make into the public release? Apr 19 12:37:06 how can i clean everything when i leave the actiivty? Apr 19 12:38:34 i am using this code in my app code and when i was debbuging this i found that problem Apr 19 12:38:57 i changed the multithreading task with singlethread but nothing happened Apr 19 12:39:55 paulovap: nice one Apr 19 12:47:05 Hello, when i open a specific activity in myapp, it reboots with no errors (on LogCat). what can be the reasons? Apr 19 13:10:56 anyone knows how do i uninstall an app from Kindle HD emulator? Apr 19 13:11:48 blue_pearl, on real kindle you can hold on the app icon in the apps list and it'll give you an option to delete it Apr 19 13:11:57 never used the emulator.. Apr 19 13:12:32 Zharf, Ok, thanks.. let me try that in emulator. Apr 19 13:13:08 blue_pearl, also, adb uninstall packagename :) Apr 19 13:14:53 zharf, yes, but my purpose is to check how the end user will feel while uninstalling…just for checking. Apr 19 13:26:08 blue_pearl, did it work then Apr 19 13:26:42 Zharf, nope Apr 19 13:26:56 So on rotation with a OpenGL surface, does it destroy then recreate the EGL context? Apr 19 13:59:26 hey y'all, what's the best way to display large images that you can zoom into? I'm talking about images > the usual texture size boundaries (i.e. greater than 2048x2048) Apr 19 13:59:38 get a really big screen Apr 19 13:59:44 then hold the screen closer Apr 19 13:59:44 I've got a horrible feeling I need to implement some kind of elegant tiling system Apr 19 13:59:58 make sure to use the magical incantation of "rotate. zoom. enhance." Apr 19 14:00:04 lov, memory issues bro Apr 19 14:00:12 I know I never remember that phrase Apr 19 14:00:23 you have to write it down on a sticky note or something Apr 19 14:00:37 just BitmapFactory seems to lack the ability to cookie cut pieces of an image Apr 19 14:00:50 yes, this is probably correct. Apr 19 14:00:57 <: ( Apr 19 14:01:05 You'll probably need to look up some al gore rythms for this Apr 19 14:01:15 them beats be fresh Apr 19 14:01:39 this blows Apr 19 14:01:43 I'm just going to buy an iPhone Apr 19 14:01:48 that'll show the lot of you Apr 19 14:01:50 and google too Apr 19 14:02:09 because, like, I'm so valuable as a customer, that me going off to iOS is going to seriously impact the level of service I'll receive in the future Apr 19 14:02:22 in fairness though, I am kinda gutted Apr 19 14:02:28 guess I'll look at the gallery source Apr 19 14:16:59 In need to send params from one Fragment to an other activity's fragment. there is better way to do it beside intent? Apr 19 14:18:49 feesh: you looked at BitmapFactory.Options ? Apr 19 14:19:54 kamol you might want to do it via an interface implemented on the activity Apr 19 14:20:04 StingRay_, yes Apr 19 14:20:16 StingRay_, there's nothing in there for cookie cutting? Apr 19 14:22:26 :xorgate Activity A(Fragment A) need to send parameter to Activity B(Fragment B). Which one will have this interface and which one need to implement it? Apr 19 14:23:01 kamol, startActivity(new Intent(getActivity(), B.class).putExtra(…)) Apr 19 14:23:03 is the only way Apr 19 14:26:36 kamol think of it like this, FragA tells ActA to somehow start FragB, acta should implement some interface (defined in fragA) that FragA can call Apr 19 14:26:38 :feesh sorry, still trying to process it… Apr 19 14:26:46 actA then starts new activity with this info Apr 19 14:27:05 read d.android.com on fragments they have an example for this Apr 19 14:27:18 xorgate, the fragments are in 2 different activities Apr 19 14:27:26 yes Apr 19 14:27:56 xorgate, sorry when you said start FragB I didn't get that you meant the second activity also Apr 19 14:28:16 abstract a bit, don't 'call a fragment' but 'tell someone what to do' Apr 19 14:30:14 in this case, tell ActA to somehow start up FragB Apr 19 14:30:24 fragA needs to know no more Apr 19 14:31:33 :xorgate ok, I will try. Thank you Apr 19 14:31:45 feesh: thank you Apr 19 14:32:39 hello Apr 19 14:32:44 does CRASHES & ANRS work automaticaly ? Apr 19 14:34:50 1 more. I want replace FragA with FragB in ViewPager. Where I can find right solution(sample code) for this? Apr 19 14:49:54 Have you heard about "android exercises" of something like that ? Apr 19 14:51:12 I mean I've read "managing lifecycle of activity" But I would like to do make some exercise... Apr 19 14:51:49 I know. I could make my "own" app. But I would like to revise what I've learned about managing life cycle ... Apr 19 14:57:11 ? Apr 19 15:01:17 bluesm, development questions only pal Apr 19 15:02:46 android exercises: get the sample code and build them and hack on them Apr 19 15:03:39 yeah hack android! Apr 19 15:03:41 that's fun Apr 19 15:05:07 monsti: What "hacking" android mean :P Apr 19 15:08:20 anyone using androVM? Never integrated any google api; Need to integrate googe maps api v2. What's with the problems posted all over stackoverflow etc abt official android emu problematic with play services updates? gapps and androVM should work or am i missing something Apr 19 15:08:55 afaik androvm can handle this Apr 19 15:09:08 you can update androvm (if you installed the libudini version= Apr 19 15:11:00 libudini ? Apr 19 15:11:21 i took the gapps/houdini bundle from androVM Apr 19 15:11:47 yes this will work Apr 19 15:12:56 cppö o gpt a nexus 4 cell phone ;) Apr 19 15:14:56 thx monsti Apr 19 15:19:13 how do I perform a requestLayout from onLayout? Apr 19 15:19:38 Why would you do that Apr 19 15:20:10 my onLayout changes another view's padding, but the view isn't remeasured because when my onLayout ends all FORCE_LAYOUT flags are reset and it's as though requestLayout never got called. Apr 19 15:20:44 because the other view's padding depends on what my view is layed out as. Apr 19 15:21:34 I can post a requestLayout I suppose. sigh. Apr 19 15:21:41 Mhm, yeah.. You know how your view is going to get laid out during the measuring phase Apr 19 15:21:44 Since you know its size Apr 19 15:21:59 onLayout is the wrong place for this Apr 19 15:38:49 Hi, i have a background service and an activity. I want a both direction and they are running always in the same process. Apr 19 15:39:15 now i use a braodcastrecevier for the comunication service -> activity Apr 19 15:40:04 but now i need the activity to communicate to the service: activity-> service. How can I do this? I know the usage of Messages but i am always in the same process Apr 19 15:40:41 binder messenger is also for the same process Apr 19 15:42:26 but is less eficient? because i never use communcation in different proceses Apr 19 15:42:45 efficient ? Apr 19 15:42:55 it's fine Apr 19 15:43:00 well i want to know if i can use reciver and binding together Apr 19 15:43:23 well if you used bind/messenger, why would you ? Apr 19 15:43:29 you have 2-way comms Apr 19 15:44:02 and if i use reciver and binding i also have 2-way? Apr 19 15:44:21 you dont need a receiver Apr 19 15:44:35 you have message handlers that are 2 way Apr 19 15:44:58 read the service docs on android.com Apr 19 15:45:05 they explain each of the types and uses Apr 19 15:45:33 yes i know, now i am using messages in 2 way Apr 19 15:45:50 but i am asking if it will be more simpler Apr 19 15:46:21 using broadcasts ? Apr 19 15:46:26 I dont think so Apr 19 15:47:18 using broadcasts as a method of communicating between components of your application is facepalmeriffic Apr 19 15:48:28 . Apr 19 15:49:39 I'm playing around with this bit here: http://ideone.com/smLgZu Why does my rectangle stretch along its width instead of moving across the screen? Apr 19 15:53:49 SimonVT: onMeasure has the same issue; fyi. since onLayout comes after it and no onMeasure is triggered by a requestLayout performed there before the subsequent layout phase resets it. Apr 19 15:54:06 Hi, I was wondering how do I send an AT command to a BluetoothHeadset? Apr 19 16:01:43 damnit, I hate it when my phone falls back to evdo Apr 19 16:01:49 friggin' slow stuff Apr 19 16:02:19 yo ladies, man ladies and the 1-2 people who could pass as men Apr 19 16:02:43 * pfn twiddles his thumbs while googleapis17 downloads Apr 19 16:04:37 Hi, I was wondering how do I send an AT command to a BluetoothHeadset? Apr 19 16:05:22 Lets say I want a user of an app to pick some items on a list.. then place those items as an order alongside contact information and other stuff.. and then finally have it delivered to an e-mail. BUT! I dont want to use the users own providers, and I don't want him able to edit the e-mails content.. Apr 19 16:05:42 as of right now I'm thinking sending it to a webhost that then generates an e-mail and forwards Apr 19 16:14:48 i am using messages to cmmunicate service <-> acitivity, how can i check if the service is running for not ? Apr 19 16:18:49 joker_89: You could try to see if you can see the process running using something like this: http://davanum.wordpress.com/2007/12/18/android-task-manager-primitive-prototype/ Apr 19 16:21:06 but is needed the startService ? Apr 19 16:21:07 go-mtpfs doesn't show all the files on my Nexus7. I even do "fusermount -u /mnt/nexus" then remount with "go-mtpfs /mnt/nexus". How do I get go-mtpfs to show the proper contents of my Nexus7? Apr 19 16:21:10 if i use messages Apr 19 16:21:32 Hi. Apr 19 16:22:10 if i do: bindService(new Intent(this, LocalWordService.class), mConnection, Apr 19 16:22:10 Context.BIND_AUTO_CREATE); Apr 19 16:25:05 Well i dont know why in my app runnings appear one process and 0 services when i have the locl service running Apr 19 16:28:33 somehow my browser doesnt allow me to browse files within the sdcard and attach them for sending in email. is it a bug of my phone or is it normal? i have tried dolphin HD and the default browser that comes in gingerbread. Apr 19 16:28:41 when there is a file upload control in a page, it shows me a "chose file" button but there is no way to select from sdcard. it shows gallery and some *crap* Apr 19 16:29:57 prakas: what you describe is standard Apr 19 16:30:07 get a filemanager if you want to brows "files" Apr 19 16:30:26 also your better of in #android #android-root #xda-devs Apr 19 16:30:44 StingRay_ there is no way to browse a file from the sdcard from a webbrowser? Apr 19 16:31:02 whose idea was it anyway to cripple the sytem Apr 19 16:31:07 system* Apr 19 16:32:25 it's a mobile platform Apr 19 16:32:33 there are apps that do that Apr 19 16:32:47 blame the webiste for not having an app, if it's centric to uploads Apr 19 16:33:01 the other channels would be better to spark a discussion Apr 19 16:33:09 here is application development Apr 19 16:33:52 StingRay_ okay np Apr 19 16:39:17 StingRay_ would you mind checking this code? http://pastebin.com/EkS1UAVg I want to find the first ip address in the same subnet of the ip (local) in which a service is running in a specific port. I made a polling code which polls from 1 to 255 but sometimes it skips and does not return the ip as expected Apr 19 16:41:01 joker_89, you needt o either start your service or bind to it in order for it to start running Apr 19 16:59:20 pfn but why when i see in my apps running appears process:1 services:0 ? Apr 19 16:59:22 Is there any data available that compares power consumption and usability to app uninstalls ? Apr 19 16:59:47 joker_89, because you never did startService or bindService Apr 19 17:00:01 maslen, betterbatterystats but it doesn't really have that sort of logging Apr 19 17:00:53 I do bimdservice with the context.BIND_AUTO_CREATE Apr 19 17:01:19 joker_89, dunno, did your service's onStartCommand actually get called? Apr 19 17:01:19 And works because i recive data from it Apr 19 17:01:31 did you unbind from your service? Apr 19 17:01:34 unbinding stops the service Apr 19 17:03:26 I am goimg to check it but in theory no because when destroy my activity appears a process runing Apr 19 17:11:58 I've registered my activity to receive images in the share action provider. Dropbox gives me a path like this /storage/emulated/0/Android/data/com.dropbox.android/files/scratch/Camera%20Uploads/2013-04-18%2023.38.36.png , when I try to open this I get a FileNotFoundException. How should I receive this image? I have WRITE_EXTERNAL_STORAGE permission, and my app can already read from images shared from the gallery app. Apr 19 17:23:41 I am using webview (webkit) to show data using loadData function. Now in the html I have javascript window.open onclick handler with which I want to show html page which is located in assets folder of android project so its part of apk. is this possible ? what is the url I need to uses since file:///android_asset/mypage.html does not bring up the page. Apr 19 17:24:29 I have such code http://pastebin.com/7NYkxQdE that fill my adapter that is used for MultiAutoCompleteTextView, when i start type i see in list my suggestion, when i select one of them it is displayed in my MultiAutoCompleteTextView, then when i press back button its again back to last chars that was thee before selecting, but the issue is that my suggestion list don`t show Apr 19 17:25:10 i need again delete last char or type new to have sugestion list Apr 19 17:27:33 any webkit expert around ? Apr 19 17:28:26 the toast(String.format("%d", result.size())); display me the correct size of list element so somewhere else is some issue why they not displayed back Apr 19 17:40:36 If I do my app. That is targeted to non-english users Apr 19 17:40:38 Hi, Is there any way to capture a screen video (i want to record myself playing a game) without rooting the phone? Apr 19 17:41:40 I should use only values-pl ? Apr 19 17:42:48 bluesm - If you have a strings.xml in values and a strings.xml in values-pl, Polish users will see the values-pl one Apr 19 17:42:56 Silly man's question here, apart from the camera and the speakers, what other parts of modern smartphones can apps take advantage of? Apr 19 17:43:16 Ologn: Can I have only values-pl ? Apr 19 17:43:38 Do they have like GPS locators, heat/motion sensors or whatever? Apr 19 17:43:39 Ologn: If I my app is not applicable to others languages? Apr 19 17:44:19 boytoy_: yes Apr 19 17:45:04 boytoy_: 2.5 second google search http://developer.android.com/guide/topics/sensors/sensors_overview.html Apr 19 17:45:35 boytoy_: Gyroscope, accelerometer, microphone, Apr 19 17:45:52 niiiiiice =) Apr 19 17:46:03 ok i need to go out and fresh my mind, but will back at night, meantime if someone of you will had some idea why i don`t get back my list with items then please wrote it in privet. Apr 19 17:46:18 ? Apr 19 17:46:29 boytoy_: There are some nice academic papers on using the the gyroscope and accelerometer to sniff user input. Apr 19 17:47:15 I also recall reading one that added the mic to that, to determine what type of environment the device is in. Apr 19 17:47:35 smart i like that Apr 19 17:47:42 man the possibilities are *endless* Apr 19 17:47:47 highfive!! Apr 19 17:48:10 boytoy_: I'll take help with figuring out how to close an AIDL service, if you can give that :) Apr 19 17:48:48 maslen: selfStop() ? Apr 19 17:49:04 If I've got a Fragment accessing a SQLite database in my activity, if I put the calls for dataSource.open() and dataSource.close() inside the Fragment's onResume() and onPause() methods, why would I be getting a "attempt to re-open and already-cloased object" error? Apr 19 17:49:14 from the activity... Apr 19 17:50:06 StingRay_: I need to be able to do it from the remote process that started it Apr 19 17:50:31 although... I might be able to get away with that. Apr 19 17:50:32 I should not that the database is being accessed from a ListView adapter inside the fragment. Apr 19 17:51:10 maslen: just bind, selfStop() Apr 19 17:51:30 or Apr 19 17:51:47 monitor the binds and activity within the service so it can stop itself Apr 19 17:56:22 StingRay_: In my custom Service connection, I overrode onServiceConnected and store the IBinder that is passed in, after calling ServiceInterface.Stub.asInterface(service). Attempting to unbind that gives me an error that it's not bound. Apr 19 17:56:27 Ologn:? Apr 19 18:11:15 is it possible to telling whether your scroll view has worked when you currently only have one row in the table? Apr 19 18:11:24 I'm not sure if it worked or I'm doing it wrong lol Apr 19 18:11:41 well you would see the 1 row Apr 19 18:11:49 StingRay_, I do see the 1 row :) Apr 19 18:11:50 so yeah, you should know Apr 19 18:12:06 So how many rows until it starts scrolling? Apr 19 18:12:15 you being serious ? Apr 19 18:12:22 StingRay_, i'm serial right now Apr 19 18:12:38 when it needs to Apr 19 18:13:24 StingRay_, so when the rows start going off the screen? Apr 19 18:13:29 or when it finds a new view that blocks it Apr 19 18:13:31 yes Apr 19 18:13:42 like the pure definition of scrollView says Apr 19 18:13:46 if you read it ;) Apr 19 18:13:46 i would like to limit the number of rows until it starts scrolling Apr 19 18:13:50 StingRay_, haha :p Apr 19 18:13:53 dammit not this again Apr 19 18:13:54 lol Apr 19 18:14:05 well, silly first sentence questions Apr 19 18:14:07 :) Apr 19 18:14:19 lolol okay i'll stop asking silly questions xD Apr 19 18:14:25 i need to learn about shapes as well Apr 19 18:14:33 i hope the docs are good for that Apr 19 18:14:49 What causes an "attempt to re-open an already-closed object" error on a SQLiteOpenHelper? Is it just running "getWritableDatabase()" too many times? Apr 19 18:14:58 almost 99% of everything you have asked to-date. the docs are good for Apr 19 18:15:28 Or is attempting a SQLite query while another is being run? Apr 19 18:15:48 OK Apr 19 18:15:51 StingRay_, oh heellll no, some of those docs are so confusing mainly because it has 10 keywords per sentence that they didn't *have* to use :D Apr 19 18:16:15 ya, that would be java 101 lol Apr 19 18:16:16 :) Apr 19 18:16:20 jdawes: I can interpret that error, even without ever using sqliteOpenHelper. Read the error message! Apr 19 18:16:20 * StingRay_ is on fire Apr 19 18:16:29 I understand your frustration, if I can't find my answer, I'll be back. Apr 19 18:16:31 loll Apr 19 18:16:45 jdawes: wasnt talking to you Apr 19 18:16:53 was playing with coco89 Apr 19 18:17:14 StingRay_: Well, it's probably true anyway! haha Apr 19 18:17:35 jdawes: I think you should close the cursor rather than the object ….but I use loaders now Apr 19 18:18:00 maybe your cursor in the adapter makes a call, to an instance of that sql object that is no longer there Apr 19 18:18:04 as in closed Apr 19 18:18:53 Well, the error occurs on a line where I create a Cursor object by calling database.query() Apr 19 18:18:56 in my adapters I have setCursor() and in my sql object I have getCursor(query) Apr 19 18:25:59 OK I think I might know what's going on. If I've got fragments that exist in an Activity, where should the database source object be kept? Does each fragment need a database object? or should the main activity have a static variable for it? Apr 19 18:26:18 they both need to get info from the database, of course Apr 19 18:26:36 I'm encountering a problem where my animation list (frame animation) is larger than the indeterminate progress bar area, which means the animation is clipped showing only a quarter of the complete animation. it has already been asked perfectly at http://stackoverflow.com/questions/16026001/how-to-resize-drawable-itemsimages-in-progress-bar-when-doing-custom-animation but yet without answers. anyone have any ideas on how to scale the Apr 19 18:26:37 animation down to the available area for the progress bar? Apr 19 18:28:22 jdawes: i suggest writing a "contextsingleton" Apr 19 18:28:37 jdawes: check for a project called "roboguice" Apr 19 18:30:17 jdawes: you can also make static methods and pass a context to each method ... e.g. DataStuff class ... public static Cursor getListCustoomers(Context c, params....) Apr 19 18:30:21 -o Apr 19 18:30:47 Can I have only values-pl ? Apr 19 18:30:51 If I my app is not applicable to others languages? Apr 19 18:31:17 then you can have only values Apr 19 18:31:29 or even avoid a values.xml and do hardcoding Apr 19 18:31:43 bluesm: just put it in values/ Apr 19 18:33:20 evanc: Hmm. Apr 19 18:33:42 evanc: "For example, the following are some different string resource files for different languages.English (default locale), /values/strings.xml:" Apr 19 18:33:44 monsti: So with your second suggestion I have a static instance of the dataSource object that I use from my Fragments? Apr 19 18:34:22 monsti: My dataSource object is a custom class that holds both a custom SQLiteOpenHelper and a SQLiteDatabase object. Apr 19 18:34:39 bluesm: it assumes that values/ is english, but no tool is going to care if it's not. Just put it all in values/ (because you have to) Apr 19 18:34:56 jdawes: you use DataSource.getCustomers(context, param1, param2); Apr 19 18:35:20 jdawes: DataSource will encapsulate the specific implementations of SQLiteFoo Apr 19 18:35:40 code less .. reuse more ;) Apr 19 18:36:26 monsti: So the DataSource class is the one you're saying should be static? Apr 19 18:36:27 evanc: I can't just use values-pl ? Apr 19 18:36:46 jdawes: it's "static" but in java you can only have static methods Apr 19 18:37:06 a static class means something else (which is silly from a C# coder's point of view) Apr 19 18:39:04 14:49 < monsti> jdawes: it's "static" but in java you can only have static methods Apr 19 18:39:09 uh, what? Apr 19 18:39:16 that's definitely not true Apr 19 18:40:23 monsti: I made my datasource object static in my activity and access it from my Fragments and now everything works. Apr 19 18:40:25 monsti: idk, static classes make sense to me ... Apr 19 18:41:50 maslen: well to me, too ;) what's your point? Apr 19 18:42:21 jdawes: well .. you can put the class beside of the activity class Apr 19 18:42:31 and hava access in any other activity Apr 19 18:44:30 Can you guys recommend a way to play an android game on windows? The best thing would be a way to wrap it into an xe or somesuch. Apr 19 18:44:30 monsti: I get the feeling that you have no idea what you're talking about Apr 19 18:44:55 pie_: use an emulator. Apr 19 18:44:58 evanc: well a feeling is always good Apr 19 18:45:11 I need to make this for my grandmother :/ Apr 19 18:45:18 I have to agree with evanc here. Apr 19 18:46:49 "beside" Apr 19 18:52:31 evening Apr 19 18:53:52 Quacked: Afternoon Apr 19 18:54:15 Hello fellow developers :p Apr 19 18:55:15 * DAudioLink goes wide eyed! "um.. I... um..." Hides Apr 19 19:00:22 Hello is it possible to create buttons in a for loop? Apr 19 19:00:43 iam very new to android programming Apr 19 19:01:06 i have setup everything so far is there anywhere an example? Apr 19 19:01:34 how to create in a loop... like.. i want to create 20 buttons with a different value Apr 19 19:01:41 and string Apr 19 19:02:16 f2prateek: did you unescape the %20 Apr 19 19:04:46 Is there a log of this channel ? Apr 19 19:09:44 If there's someone here that was discussing whether onPostExecute is called after onCancelled in AsyncTask.. Apr 19 19:09:48 "After checking the AsyncTask source code it seems that onPostExecute is invoked even if the task is cancelled. However, before calling onPostExecute the result is set to null (?) if the task has been cancelled." Apr 19 19:09:53 hmm, in as3 I have an event listener on my upd socket and every time udp data comes in it fires a function, is there a way to recreate this in java Apr 19 19:10:05 After som testing that statement seems to be true Apr 19 19:10:36 Hence the if (error) {} in onPostExecute at this tutorial: http://www.mysamplecode.com/2011/09/android-asynctask-httpclient-with.html Apr 19 19:10:46 How can I get the Thread ID from within a Service ? Apr 19 19:11:58 ah, Process.myTid Apr 19 19:20:57 is there a straightforward way to customize the dimensions of a DialogFragment? Apr 19 19:21:51 tnzr: use the root view inside it ? Apr 19 19:22:42 StingRay_: do you mean just change the dimensions of that View? Apr 19 19:22:52 yeah Apr 19 19:23:16 StingRay_: I kinda feel like your android expertise is with the GUI :) Apr 19 19:23:19 I will try that, i guess that will involve doing some pixel<->dp conversions to set in the LayoutParams? Apr 19 19:23:48 tnzr: well setting any explicit dimension your gonna have to do that Apr 19 19:24:04 StingRay_: you working together with other people on that sms app btw? Apr 19 19:24:09 no Apr 19 19:24:55 StingRay_: cool thanks Apr 19 19:24:57 sounded like a big project Apr 19 19:25:03 it is Apr 19 19:25:18 even more so since it's a framework for building other apps Apr 19 19:25:30 and visual customization that I'md doing Apr 19 19:25:47 just so happens that it's wrapped in the shape of an sms app atm Apr 19 19:25:54 :) Apr 19 20:01:55 so I hit a "contact us" button to get a DialogFragment to pop up. After I dismiss it, and navigate to another Activity, if I hit the ActionBar up button from that activity, it goes back to the previous Activity but it's showing the DialogFragment when it gets there Apr 19 20:02:08 anyone have an idea about what might be causing that? Apr 19 20:03:42 tnzr: how are you dismissing your DialogFragment? Apr 19 20:04:06 either by touching outside of it or hitting the back button Apr 19 20:04:28 onDismiss() just changes a background of the button that launched the DialogFragment. .. should it do additional stuff too? Apr 19 20:08:49 tnzr: can you explain a little more Apr 19 20:09:03 are you launching the new activity from your onDimiss? Apr 19 20:09:05 onDismiss Apr 19 20:09:21 no, it's just changing the background resource of a button Apr 19 20:09:41 the way I get into it is by new'ing up my DialogFragment and calling dialog.show(getFragmentManager(), "dialog") Apr 19 20:10:38 Napalm: actually I just made onDismiss() call dismiss() and that seems to have helped Apr 19 20:10:53 when you press back from your new activity and your dialog comes back is because your fragment is still attached to the fragmentmanager of the activity so it is "restored" Apr 19 20:10:54 I assumed before that that if onDismiss() is called, it's because dismiss() was called (perhaps imlicitly) Apr 19 20:11:23 Napalm: ahh, so do you think my solution is a good way to solve that? Apr 19 20:11:37 or should I be explicitly detaching the DialogFragment from the fragment manager? Apr 19 20:11:47 tnzr: in your onDismiss do you super.onDismiss(dialog); Apr 19 20:11:47 ? Apr 19 20:12:39 actually, I'm embarrassed to say, I didnt... Apr 19 20:12:41 trying that now Apr 19 20:12:42 thats why Apr 19 20:13:12 the DialogFragment's onDismiss is called by the Dialog and it then removes the fragment from the FragmentManager Apr 19 20:14:04 ahhh thanks Apr 19 20:14:19 I don't know what I was thiking that made me feel like I didn't have to call the super's onDismiss() Apr 19 20:15:12 hi, im trying to use the simple_list_item1 for an adapter. how can i get it? isnt it built in the sdk? my android claims not to be able to find it Apr 19 20:16:00 Missing a _ at the end there Apr 19 20:16:06 Schrostfutz: android.R.layout.simple_list_item1 Apr 19 20:16:23 android.R.layout.simple_list_item_1 Apr 19 20:16:29 can i somehow change the event loop in my app? as in .. i do want to have a loop like while(events_there) { get_events(); process(); sleep(123); } Apr 19 20:17:51 I am recieving this error as my activity appears to crash, although there is no crash message or exception I recieve. "ERROR/InputDispatcher(30359): channel '42a67718 LandingActivity (server)'' ~ Channel is unrecoverably broken and will be disposed!" Apr 19 20:17:56 Does anyone have any ideas Apr 19 20:18:56 this is what i use: "new ArrayAdapter(this, R.layout.simple_list_item1, groups);" but eclipse claims that the field is not available Apr 19 20:19:38 22:16 android.R.layout.simple_list_item_1 Apr 19 20:20:19 SimonVT: sry, missed that, but the error is the same Apr 19 20:20:45 "new ArrayAdapter(this, R.layout.simple_list_item_1, groups); Apr 19 20:20:57 Still not what I said Apr 19 20:21:17 Schrostfutz: notice the android.R Apr 19 20:22:23 oh, dammit, sorry... Apr 19 20:22:25 am I allowed to suggest user to donate through various payment systems? like paypal, bitcoin Apr 19 20:23:03 and thanks for the help Apr 19 20:25:15 hi - do you guys know where eclipse drops the android sdk stuff? Apr 19 20:25:25 where you specify it Apr 19 20:25:29 I installed the android tools from eclipse's marketplace Apr 19 20:25:52 Bourbon: window => preferences => android Apr 19 20:26:04 there is a textbox above the list of installed sdk's Apr 19 20:26:08 thats the location Apr 19 20:26:12 thanks! Apr 19 20:26:21 y/w Apr 19 20:44:27 so I have a DialogFragment with an EditText inside for sending email feedback...when I'm typing in the EditText, the top of the DialogFragment (where the send button lives) will eventually scroll off the top of the screen... is it possible to fix the DialogFragment in place, but have the contents scroll when the text starts to fill up? Apr 19 20:45:01 i tried putting the EditTexts into a ViewGroup that's inside a ScrollView, but the whole fragment still scrolls Apr 19 20:46:18 tnzr: set a maxHeight Apr 19 20:46:41 in the DialogFragment? Apr 19 20:46:44 err Apr 19 20:46:54 the parent View therein, that is Apr 19 20:47:12 tnzr: what exactly is the problem, you have a EditText followed by the Buttons for the dialog? Apr 19 20:47:29 the EditText expands because its multiline and Buttons move off screen? Apr 19 20:47:35 Is there a way to improve scroll lag in an application? Apr 19 20:47:36 no actually I have like a header-type bar at the top of the DialogFragment that has the send button on it Apr 19 20:47:41 and the EditTexts are in a container below that Apr 19 20:47:55 yeah the top of the fragment view scrolls off the top of the screen Apr 19 20:47:57 so, just fix the size or the EditText or set a maxHeight on it Apr 19 20:48:15 Dialogs usually have buttons at the bottom Apr 19 20:48:19 * monsti fixes his maxheight Apr 19 20:48:25 monsti--; Apr 19 20:48:27 You'd resolve your issue by sticking to the defaults Apr 19 20:48:40 I will try to convince the designers to stick to the defaults Apr 19 20:48:46 lol Apr 19 20:48:50 good luck with that Apr 19 20:48:57 exactly :( Apr 19 20:49:01 well ;) Apr 19 20:49:24 try convincing the designer that there is no ICS on android Apr 19 20:49:27 this would actually be a good case for that Apr 19 20:49:39 "hey that red looks ugly" ;) Apr 19 20:49:40 like a demonstrable reason why the default is a better idea Apr 19 20:50:17 tnzr: easy.. your thumbs are nearer the buttons Apr 19 20:52:23 What are those tab-like views they use in some applications, like the Play Store, where you swipe left and right? Apr 19 20:52:34 Fragments? Apr 19 20:53:03 FelicianoX: ViewPager Apr 19 20:53:34 Oh, thanks! Apr 19 20:54:43 If i set layerType="hardware" on a viewgroup, do all of its children get that as well (assuming they can have hardware layer types)? Apr 19 20:59:56 no, but you probably don't want/need ever view to have a hardware layer. hardware layers are great for certain types of animations, like alpha, so if you wanted to fade in a big viewgroup of content, you really just need a hardware layer for that viewgroup Apr 19 21:00:14 kevinb gotcha Apr 19 21:00:22 but if you were going to fade in the different children at different times or speeds, then you probably want each to have it's own layer, and no layer for the parent viewgroup Apr 19 21:01:00 Kinda depends what you really mean by "do all of its children get that as well" .. When you set the layer type to hardware on the viewgroup, the viewgroup and all its children are drawn onto a hardware layer Apr 19 21:01:11 It's not necessary to set it on the children in that case Apr 19 21:05:14 * monsti sends his message to all decendends Apr 19 21:07:16 hey guys i'm using the example here http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape and when I add tv.setBackground(shape) it complains that the Call requires API level 16? Apr 19 21:07:56 use setBackgroundDrawable and you can safely ignore the deprecated warning (they just renamed it because setBackground makes more sense) Apr 19 21:08:20 kevinb, why rename it if it doesn't work :S Apr 19 21:08:28 SimonVT, gotcha Apr 19 21:08:30 it works on API 16 :P Apr 19 21:08:56 i think ive been kinda using hardware layers blindly. like when things seem sluggish i set the type to hardware, but havent really thought about the other performance implications of it Apr 19 21:08:59 kevinb, so for older phones they have to use setBackgroundDrawable even though it's deprecated and that's the proper way of doing it? Apr 19 21:09:41 setBackgroundDrawable was deprecated in api 16, in favor of the new setBackground Apr 19 21:10:08 kevinb, I see, makes sense, so setBackgroundDrawable will work for everything even api 16 Apr 19 21:10:14 I'll do that then, thanks a lot :) Apr 19 21:13:10 if I have native code crashing when incrementing or decrementing the reference on a smart pointer, what could be the cause of that? Apr 19 21:14:12 so layer types are none by default...? Apr 19 21:14:25 or software...? Apr 19 21:14:44 none Apr 19 21:15:13 cool thanks kevinb Apr 19 21:15:31 so would it make sense to set the layer type of some view to hardware when im going to be applying animators to change alpha Apr 19 21:15:36 and then set it back to none? Apr 19 21:15:45 or is there no gain from setting it back to none? Apr 19 21:16:04 yes. Animators have a withLayer (though only in 16 or 17 i think) to help with this Apr 19 21:16:20 oh right Apr 19 21:16:42 let's say you have a listview and you want to fade it in, during the fade in you can use a hardware layer and that means awesome performance for the animation Apr 19 21:16:56 if you keep the layer though then when you scroll that layer keeps getting invalidated and has to be rebuilt Apr 19 21:17:10 which is slower than having no layer Apr 19 21:17:27 right Apr 19 21:17:40 so i know theres a withLayer on ViewPropertyAnimator Apr 19 21:17:52 but what if i just have some objectanimators inside an animatorset... Apr 19 21:18:05 how do i set that animatorSet to use hardware..? Apr 19 21:18:14 you can do the setLayerType yourself when the animation starts and ends Apr 19 21:18:17 so weird Apr 19 21:18:37 I was using Asus T300 with 4.1.1 to test my app which has a viewpager in it Apr 19 21:18:39 ah ok Apr 19 21:18:40 figured Apr 19 21:18:44 with the listener on the set Apr 19 21:18:45 cool Apr 19 21:18:52 I could barely make it scroll.. had to try like 50 times to make it swap page Apr 19 21:18:57 updated to 4.2 worked liked a charm Apr 19 21:19:00 can scroll with ease now Apr 19 21:19:37 will it be sufficient though once onAnimationStart gets called or do i really want the layertype to be hardware before starting the animation? Apr 19 21:20:24 onAnimationStart should be fine Apr 19 21:20:54 kevinb you have experience with e-mail services through apps ? Apr 19 21:21:06 does anyone know how to put images onto the emulator? everything keeps going "read only" Apr 19 21:21:43 P3nnyw1se: no Apr 19 21:37:34 signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 4088d8ed <-- exception in my native code Apr 19 21:37:43 could it be overzealous GCC optimizations? Apr 19 21:37:48 I'm in debug mode though... Apr 19 21:38:30 or could it be that I'm linking against shared libraries, and those shared libraries are slightly different on device? Apr 19 21:39:56 Qualcomm CPU? :D Apr 19 21:40:05 can i somehow change the normal event-way (onCreate ..) to an event loop one? Apr 19 21:41:34 Sonicadvance1: not sure... it could be actually Apr 19 21:41:38 huh? Apr 19 21:41:49 PatrickBic, android's UI paradigm is totally based on an eventloop Apr 19 21:41:54 internally Apr 19 21:42:04 hey pfn Apr 19 21:42:05 but event loops are ugly Apr 19 21:42:08 without abstraction Apr 19 21:42:09 Sonicadvance1: easiest way to check? Apr 19 21:42:21 this a bad way to check if String is an Integer? http://pastebin.com/Ruudt7VR Apr 19 21:42:23 HorizonXP, Seems reasonable, some of my Native code hits a sigbus on my Qualcomm device Apr 19 21:42:35 Napalm, sup man... I hacked my phone so I don't need exchange policies to connect... so much happier actually being able to use the phone's features Apr 19 21:42:46 :D Apr 19 21:43:02 it was an interesting exercise in learning how to dexopt packages and copy signatures over and shit Apr 19 21:43:14 HorizonXP, Not entirely sure besides a cat /proc/cpuinfo or searching the phone model Apr 19 21:43:14 pfn: i want to write a backend (of a lib) for android which uses an eventloop ;-) Apr 19 21:43:16 and it's annoying how apks generated in aosp are odex by default Apr 19 21:43:28 atm i am faking one but thats more a workaround then a solution Apr 19 21:43:28 Anybody know of sample code to get the account selection dialog working in the emulator (which typically does not have an active google account attached to it)? Apr 19 21:43:28 PatrickBic, a Handler operates on an eventloop, do it Apr 19 21:43:33 pfn: indeed Apr 19 21:44:00 https://gist.github.com/pfn/5414166 Apr 19 21:44:04 ^^ the gist of what I learned Apr 19 21:44:09 boiled down into like 5 commands Apr 19 21:44:10 heh Apr 19 21:44:19 Sonicadvance1: /proc/cpuinfo doesn't seem to yield the CPU vendor info Apr 19 21:44:35 issue is that this is an unreleased device too Apr 19 21:46:28 In any case, most sigbus hits are from threading but could maybe be from optimizations Apr 19 21:46:40 I was lucky in my case where it was some profiling code hitting a sigbus for me Apr 19 21:46:56 Sonicadvance1: http://pdadb.net/index.php?m=specs&id=4053&c=sony_xperia_z_so-02e__fusion_sony_yuga <-- says it's a Qualcom Apr 19 21:47:16 Sonicadvance1: my hunch was that it was threading related too, but my native code doesn't spawn any threads. Apr 19 21:47:34 ah, APQ8064, same as mine then Apr 19 21:48:08 however, my JNI code doesn't do Attach/DetachCurrentThread to grab the JNIEnv; instead, I grab it from the JavaVM instance that I saved. Apr 19 21:48:32 Sonicadvance1: what was your ultimate solution? Apr 19 21:49:06 Well, it was some unimportant profiling code for x86 platforms(Not Android) so I commented out the code :/ Apr 19 21:49:19 ... Apr 19 21:49:19 well, #ifdef'ed around it Apr 19 21:49:25 I'm a terrible person Apr 19 21:49:29 yes you are Apr 19 21:49:33 got my hopes up and everything! Apr 19 21:50:01 I need this code; it records the audio portion for the video. Apr 19 21:50:23 It also works perfectly on my GNex with 4.2.2, and on a Nexus 4 with 4.2.2 Apr 19 21:50:52 Huh, N4 has the same SoC, that's interesting that it hasn't hit it Apr 19 21:51:12 cool, poor shleps like me can respond to comments now! Apr 19 21:51:36 i think i was the last one this rolled out to Apr 19 21:51:52 'roll it out to the poor shleps' -> g00s Apr 19 21:54:39 Sonicadvance1: yeah, so sounds to me like something changed from 4.1 to 4.2 Apr 19 21:54:51 could it be the compiler optimizations? Apr 19 21:55:00 HorizonXP, Could be. My phone is running 4.1 as well Apr 19 21:55:51 Try a compile with -O0 or -O1 and see what happens? Apr 19 21:56:03 yeah Apr 19 21:56:10 that's really the only option Apr 19 21:56:17 i'm already compiling with -g though Apr 19 21:56:31 so that should prevent optimizations, but then, i'm probably assuming too much Apr 19 21:57:30 hey guys, does anyone know what how to hide a ListView header (backed by a CursorAdapter) when the adapter is empty? Apr 19 21:57:49 I actually thought that was the default behavior, but not so for me Apr 19 21:59:07 HorizonXP: you will need -g and -O0 Apr 19 21:59:34 or -O.o rather :D Apr 19 22:05:17 hi i have a LinearLayout and i add dinamically TextViews Apr 19 22:05:39 how can i modify these textviews? Apr 19 22:06:53 You're adding them, surely you can modify them. Apr 19 22:07:01 how do you add them? Apr 19 22:07:26 with the method addView() Apr 19 22:07:52 but i want modify after added Apr 19 22:08:00 So you have an instance of them already. Use it. Apr 19 22:08:17 but i can't access directly to the views Apr 19 22:08:38 ok Apr 19 22:08:43 why would you have to do taht anyways? Apr 19 22:08:46 that* Apr 19 22:09:04 cool, new book on UI stuff - i hope this is good http://www.informit.com/store/android-user-interface-design-turning-ideas-and-sketches-9780133154856 Apr 19 22:09:21 because i create dinamically from 0 to 10 textviews in a linearlyout, and every second i change the text in each textview Apr 19 22:09:52 You already have the View instance, why not keep it somewhere and use it? Apr 19 22:10:00 g00s many designers are just opinionated, be weary ! Apr 19 22:10:01 Otherwise, use myView.setId() Apr 19 22:10:12 StingRay_: says the designer :) Apr 19 22:10:19 soemtimes i have 2 textvies, then remove and add 4 new textveis Apr 19 22:10:26 on half designer Apr 19 22:10:29 half TD Apr 19 22:10:31 setId() i am going to look that function Apr 19 22:11:07 g00s: but as you can see, half of my opinions could still be considered very opinionated ;) Apr 19 22:11:07 g00s: you were just waiting to use that weren't you? Apr 19 22:11:42 :) Apr 19 22:12:17 i hope this book goes deeply into poking the android APIs to create immersive new views and viewgroups Apr 19 22:12:34 g00s: DONT buy it Apr 19 22:12:34 anyone know if compiling in thumb mode vs. ARM mode makes a difference? Apr 19 22:12:44 custom views, i guess. almost every book covers custom Views at a superficial level - none cover custom ViewGroups Apr 19 22:12:54 HorizonXP, Thumb is dumb :P Apr 19 22:13:09 StingRay_: why not ? Apr 19 22:13:21 g00s: you seriously dont what hints and guides on art/design from some1 like that Apr 19 22:13:23 re Apr 19 22:13:23 damnit jake isn't here. Apr 19 22:13:29 http://iangclifton.com/ Apr 19 22:13:44 he's a really bad artist too Apr 19 22:13:45 :) Apr 19 22:14:15 shit, that isn't encouraging Apr 19 22:14:22 besides Apr 19 22:14:30 joker_89: http://stackoverflow.com/a/13241629 Especially the part about Dynamically Creating Views and "If you choose to keep references..." Apr 19 22:14:31 the android bit is actually rather meaningless Apr 19 22:14:35 http://iangclifton.com/apps/android/survivor-redemption-island/ wtf Apr 19 22:14:36 Sonicadvance1: it's compiling in thumb mode right now... :/ Apr 19 22:14:44 ewww Apr 19 22:14:48 * g00s throws up his hands in despair Apr 19 22:14:49 -marm that stuff up Apr 19 22:15:00 g00s: dont look at android at all Apr 19 22:15:14 look at design principals etc Apr 19 22:15:27 then look a ui principals / fundimentals Apr 19 22:15:34 i'm actually not looking at graphic design advice, i want examples on creating rich custom views Apr 19 22:15:36 code damn it Apr 19 22:15:42 oh Apr 19 22:15:54 oh then sod it, get that book Apr 19 22:15:55 i have book cases full of graphic design shit Apr 19 22:16:01 ok so optimization did nothing Apr 19 22:16:02 which are timeless Apr 19 22:16:09 i.e. -O0 and -g no workie Apr 19 22:16:10 I was just commenting that he is not a good designer/artist Apr 19 22:16:23 he maybe ace at customView stuff Apr 19 22:16:28 Sonicadvance1: -marm is compiler flag? Apr 19 22:16:35 HorizonXP, yea Apr 19 22:17:31 hmm... Apr 19 22:17:42 LOCAL_CFLAGS := -g -O0 -marm Apr 19 22:17:46 still compiles in thumb Apr 19 22:17:56 my fav is -funroll-loops :D Apr 19 22:17:58 target thumb C++: libluma <= external/luma/media/mediarecorder.cpp Apr 19 22:31:32 StingRay_: yeah, looked closer - not encouraging. anyone who write about hot to do a splash screen has lost me Apr 19 22:31:39 *how Apr 19 22:33:48 prob is there are many reasons to do one Apr 19 22:34:00 not on little simple crappy things with no brand Apr 19 22:34:17 but on large things where brand and or tech requirements demand it Apr 19 22:34:26 fuck splash screens Apr 19 22:34:48 each to his own Apr 19 22:34:50 :) Apr 19 22:35:16 StingRay_: on iOS it may have a function (the way apps load) but in general, the users have spoken: pretty much everyone hates splash screen (web, mobile, wherever) Apr 19 22:35:21 I need help with figuring out why a piece of my code causes a crash because it's still on the main thread, even though I believe I've put it in another thread. Apr 19 22:35:21 http://pastebin.com/ch9d150J Apr 19 22:35:51 i dont have access to the report, but its out there by NN/g Apr 19 22:36:39 jdawes: you believe you put it on another thread? programming isn't a matter of faith :) Apr 19 22:37:37 g00s: True. As in the pastebin, I created a new thread and post the runnable that I created but it still says it's in the main thread. Apr 19 22:38:01 Ooh, just had a thought. brb Apr 19 22:38:59 Can you only use "final" variables in a new Runnable that's been called in a new thread? Apr 19 22:41:08 g00s: actually on iOS default.png is abused to provide a splash screen Apr 19 22:41:28 g00s: default.png is actually supposed to be a screenshot of a mock of the detault window Apr 19 22:41:37 its a hack to make ios appear faster Apr 19 22:42:15 but since it takes 3-4 seconds to load an app, people use default.png to provide a splash screen instead of what its intended purpose it Apr 19 22:43:24 yeah Apr 19 22:43:59 lol at apples naming scheme Apr 19 22:44:09 default-iPad@2x.png :-P Apr 19 22:44:30 never heard of drawable-xhdpi? Apr 19 22:47:48 Who here has used twitter4j? Apr 19 22:51:18 jdawes i have Apr 19 22:52:28 hey I have some questions on android touch events Apr 19 22:52:58 brx_: Have you had any success with it? lol, I can't get past a thread issue while trying to run getOAuthRequestToken(MyConstants.CALLBACK_URL); Apr 19 22:52:59 if i want the smallest delay possible between touch event recognition, what type of touch events do I want? just generic "taps" ? Apr 19 22:56:32 Jack3k3: wat do you mean by delay? Apr 19 22:56:51 Jack3k3: if u set up your touch handler properly, it will be right away if you don't set any delay Apr 19 22:59:54 jdawes, from looking at my code i didnt use that method Apr 19 23:01:11 brx_: Don't you need that code to log a user into Twitter? Apr 19 23:03:50 ill pastebin you some code give me a minute, i have a kind of helper lass, it should help you with this workflow Apr 19 23:03:54 zhej, I mean if i want the user to be able to input successive distint touches repetedly, what owuld be the fastest method Apr 19 23:04:00 i image swipe would be slower than taps for example Apr 19 23:04:03 imagine* Apr 19 23:04:27 Jack3k3: oh, so u don't want delay, basically the most recognition (fastest)? Apr 19 23:06:47 zhej correct Apr 19 23:06:48 You get MotionEvents by overriding View#onTouchEvent, and that's it.. That's what's used for taps, swipes, everything. Apr 19 23:07:02 leave it as is Apr 19 23:07:44 okay and just a question on how it operates, if i have 2 finger multi touch, will I get 1 touch event and then a second touch event after a slight delay Apr 19 23:08:02 or is it more like it tells you two touches are detected and it takes slightly longer than detecting a single touch? Apr 19 23:08:12 Jack3k3: you get two. Look at the docs :/ Apr 19 23:08:27 yeah sorry i need to do some solid reading Apr 19 23:08:55 depends on screen i would think, capacitive, it would register all the coordinates, reisstive, then order matters Apr 19 23:16:12 any of you have experience using mail services through apps ? Apr 19 23:17:05 Lets say I want a user of an app to pick some items on a list.. then place those items as an order alongside contact information and other stuff.. and then finally have it delivered to an e-mail. BUT! I dont want to use the users own providers, and I don't want him able to edit the e-mail's content.. Apr 19 23:17:46 as of right now I'm thinking sending it to a webhost that then generates an e-mail and forwards Apr 19 23:35:06 Sonicadvance1: I think it's actually compiling ARM code, not thumb, even though the compiler output mentions thumb Apr 19 23:35:30 mixes and matches Apr 19 23:35:53 yeah Apr 19 23:35:57 that's likely. Apr 19 23:36:00 ARM architecture can jump between the two on the fly Apr 19 23:36:47 right. Apr 19 23:36:56 and it shouldn't matter if the system is compiled with thumb or ARM Apr 19 23:37:07 it compiles my code to accomodate that right? Apr 19 23:38:28 signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 67c61dfd Apr 19 23:38:32 that's still there Apr 19 23:38:37 in exactly the same piece of code Apr 19 23:38:44 tells me it's either threading related, or compiler related Apr 19 23:42:06 hi Apr 19 23:42:15 why i have an iterator and sometimes hangs my application? Apr 19 23:42:29 it's frustating i can't debug it Apr 19 23:44:37 Hey guys, I have a box around my edit text fields. It seems to be fine but when I try to add some margins to the editTexts so that the box seems a big thicker, it only works for the top and left sides. the bottom and right sides of the box stay wrapped around the EditText fields. Also, the hint for the top editText field is alligned to the left instead of the at the centre like the bottom editText Apr 19 23:44:37 field? http://pastebin.com/6BxLi7tp Apr 19 23:45:02 when i say box I mean just a rectangle shape Apr 19 23:46:09 cause it's in a relative layout Apr 19 23:46:37 see I'm fine helping ya with things that are not doc obvious coco89 ;) Apr 19 23:46:46 StingRay_, lol thanks Apr 19 23:46:56 StingRay_, so it's because it's in a relative layout, which means.. Apr 19 23:47:03 the relative layout positioning takes place after the child views I think Apr 19 23:47:12 so when you say pad bottom 10 Apr 19 23:47:17 or margin etc Apr 19 23:47:33 it then say ok, now let me position this view with the params for the parent Apr 19 23:47:40 in your case a relative layout Apr 19 23:47:40 how can i read a list without using iterators? Apr 19 23:47:50 and then those params alter the child views Apr 19 23:47:55 I've had that b4 Apr 19 23:49:07 so change to a vertical linear layout and you should be fine Apr 19 23:49:22 looking at that layout, there is really no need to be relative Apr 19 23:49:26 StingRay_, ah I see Apr 19 23:50:36 StingRay_, I wanted to have the second edittext below the first, so I figured it'd be easier to make it relative so I could just at 'layout_below' Apr 19 23:51:00 or even easier, just place it after in a vert lin layout Apr 19 23:51:01 :) Apr 19 23:51:16 StingRay_, lol true :P Apr 19 23:52:26 joker_89: that not a java 101 question ? Apr 19 23:53:20 StingRay_, it's a lot better now, thanks Apr 19 23:56:54 http://pastebin.com/4Hh6p23n <-- pastebin of crash log Apr 19 23:57:30 again, seems to relate to address misalignment. Apr 19 23:59:43 StingRay_, it's just the top editText hint that's not aligned still :S Apr 19 23:59:57 it's to the left unlike the bottom editText Apr 20 00:00:24 coco89: hard to visualize Apr 20 00:00:43 and I'm an artist too dont forget, so thats saying something Apr 20 00:00:44 :) Apr 20 00:00:56 lol Apr 20 00:03:01 I suspect it's because when you enter a password the typing starts from the middle unlike a normal editText the typing starts from the left.. That might explain it Apr 20 00:12:42 i'm so silly Apr 20 00:13:20 no argument, no comment Apr 20 00:13:23 * StingRay_ just looks Apr 20 00:13:26 :) Apr 20 00:36:14 is there a naming convention for superclasses of fragments ? Apr 20 01:08:57 anyone here tried out the new build system much yet? Apr 20 01:44:23 hey Apr 20 01:44:39 i want my app to stop listening for udp, but this runs indefinately Apr 20 01:44:43 http://pastebin.com/g81CzJUa Apr 20 01:44:54 even with setSoTimeout Apr 20 01:47:34 joep: which part are you talking about? Apr 20 01:47:45 There is the infinite while(true) loop there Apr 20 01:47:51 which will obviously run forever Apr 20 01:47:58 but I hope you're not talking about that :) Apr 20 01:48:03 yea, how do i break that loo after like 20 secs Apr 20 01:48:15 sorry im comnig from AS3 trying to make my app native Apr 20 01:48:26 in as3 i just put an event listener on the socket Apr 20 01:48:50 http://docs.oracle.com/javase/specs/jls/se5.0/html/statements.html#14.15 Apr 20 01:50:44 but i cant jsut toss the break in there i want it to loop for a certain ammount of time Apr 20 01:52:02 it depends on how exact you want to be. The easiest way would be to store the start time, and compare against that for every loop iteration Apr 20 01:52:39 hmmm Apr 20 01:53:03 would there be any better way I should be listening for multiple udp broadcasts over a period of time or is this they way to go Apr 20 01:54:39 why 20s? Apr 20 01:54:48 That seems somewhat arbitrary Apr 20 01:55:22 the devices i am listening to broadcast like every 5 seconds, 20s should be plenty to make sure it gets them all Apr 20 01:55:37 yeah, that doesn't sound too unreasonable then Apr 20 01:56:13 just make sure you're doing this off in a worker thread, not the main UI thread :) Apr 20 01:56:24 so google how to get the time into a var, then if current time > starttime+5 break or something, k Apr 20 01:56:51 yea i gotta figure out how to do that as well, will get there Apr 20 01:56:57 System.currentTimeMillis :) Apr 20 01:57:15 k Apr 20 01:57:17 look at AsyncTask for a good way to do it in a background thread Apr 20 01:59:18 k Apr 20 01:59:32 man, this is way harder than as3 :) Apr 20 01:59:51 shouldnt System.out.println(System.currentTimeMillis); give me the time Apr 20 02:04:46 needed () Apr 20 02:32:45 Jesus the checking time thing then breaknig worked Apr 20 02:32:47 thanks Apr 20 02:32:52 working on thread stuff now Apr 20 02:56:18 hi Apr 20 02:57:38 quiet irc? **** ENDING LOGGING AT Sat Apr 20 02:59:57 2013