**** BEGIN LOGGING AT Fri Feb 01 02:59:58 2013 Feb 01 03:02:16 that would be layer 2 :P Feb 01 03:02:26 fuck I dont knw Feb 01 03:02:27 application is layer 7 Feb 01 03:03:15 i cant believe how many standards there are for low power wireless networks Feb 01 03:04:30 * g00s is trying to get apache mina + moquette (mqtt) working Feb 01 03:04:45 I honestly usually build that sort of shit myself when I need it Feb 01 03:04:54 well Feb 01 03:04:58 message queueing shit Feb 01 03:06:08 If anyones watched the new boston android vids, does he ever stop saying "for the most part" Feb 01 03:07:01 for the most part, no. Feb 01 03:07:05 when do first start i got this .. Feb 01 03:07:06 http://snag.gy/dy6au.jpg Feb 01 03:07:26 i know maybe this is java + eclipse problem Feb 01 03:07:34 but this is on the adt-bundle Feb 01 03:07:46 someone will help? Feb 01 03:07:48 http://snag.gy/dy6au.jpg Feb 01 03:08:10 fishcooker: ron_frown has the solution Feb 01 03:08:21 omg wtf Feb 01 03:09:15 ron_frown: i thought you were going to recommend using intellij as the solution :P Feb 01 03:09:23 not gonna solve that problem Feb 01 03:09:26 jni is runtime shit Feb 01 03:09:53 could you recommend me to eclipse irc Feb 01 03:10:01 what is it? Feb 01 03:10:09 I cant think og anything super specific about jni app dev that would matter in eclipse Feb 01 03:10:16 or what should i do? Feb 01 03:10:20 looking at the path in the dialog - that doesn't even make sense; is google bundling a JVM with eclipse ? WTF indeed Feb 01 03:10:39 hey g00s as per you've said Feb 01 03:10:51 i've installed jdk6 Feb 01 03:10:57 as your advice Feb 01 03:11:50 yeah, does windows eclipse come with its own jvm then ? Feb 01 03:12:03 i cant see that Feb 01 03:12:14 i think eclipse.exe is just a stub to start the java stuff Feb 01 03:12:21 oh Feb 01 03:12:28 are u on M$ os, g00s? Feb 01 03:12:38 I suppose it could be jni problems with eclipse itself Feb 01 03:12:57 totally forgot eclipse was java Feb 01 03:13:08 in which case it probably is better to just use intellij =) Feb 01 03:13:10 fishcooker: did you get 32/64 bit stuff messed up ? Feb 01 03:13:10 hahaha Feb 01 03:13:16 :) Feb 01 03:13:40 hmmm Feb 01 03:13:44 im on 64bit Feb 01 03:13:50 is that matter? Feb 01 03:14:30 i just do on developer page's advice Feb 01 03:14:35 it come with eclipse Feb 01 03:19:19 fishcooker: sorry i cant help more, i have a mac. 6u38 is a good version, dont know about the other stuff you got Feb 01 03:19:38 java is a fing mess on the mac too Feb 01 03:19:47 but thankyou Feb 01 03:19:53 i will fix it soon Feb 01 03:20:05 your info really matter :-) Feb 01 03:20:23 g00s: you are still the best LoL Feb 01 03:20:31 at least here Feb 01 03:20:37 heh, see that ron_frown :D Feb 01 03:20:43 \o/ Feb 01 03:21:07 hahah Feb 01 03:34:13 hi g00s Feb 01 03:48:25 SpeedEvil, that makes me sad. Feb 01 03:57:37 are there any stats on what version of android exist in what percentages in the wild? I wanted to use NumberPicker, but it requires >API 11 and i was trying to use 10... I'm wondering if it's worth the effort to use another control or if i should just bump the min API Feb 01 03:59:40 http://developer.android.com/about/dashboards/index.html , gingerbread is still rather popular Feb 01 04:00:39 hey canadiancow , how are you Feb 01 04:00:46 good, good Feb 01 04:00:48 you? Feb 01 04:00:59 im fine canadiancow Feb 01 04:01:00 LoL Feb 01 04:01:01 there are some backports of the numberpicker to older APIs though . however i think most backport the ICS one rather than the Jellybean one (changes are subtle but nice) Feb 01 04:01:02 good, thanks. trying to get an mqtt message broker running on android :) Feb 01 04:01:12 baudtack, if you're going to use 11, you might as well use 15 Feb 01 04:01:33 i agree with canadiancow . honeycomb isn't worth the effort Feb 01 04:03:01 hrm... Feb 01 04:03:24 where would i look for a backport? Feb 01 04:03:58 search for android numberpicker backport Feb 01 04:04:08 heh k Feb 01 04:08:47 hi, what is a good comprehensive tutorial or book that goes through building a game/app? the docs seem to assume a lot of working knowledge, especially with the sensors Feb 01 04:31:09 hackkitten: while you're taking a rest http://www.cppgm.org/index.html Feb 01 04:32:10 that sounds like a lot of work Feb 01 04:32:13 how long's the class? Feb 01 04:32:34 i'm not sure, i thought a c++ compiler would be 10 man years worth of work Feb 01 04:32:42 with decent optimizations Feb 01 04:33:45 and the standard library … this is not something i could do Feb 01 04:35:00 http://www.cppgm.org/faq.html Feb 01 04:35:00 Isn't this a huge undertaking, usually done by an entire team of programmers? Feb 01 04:35:56 ah, no optimization pass Feb 01 04:36:22 but … still. maybe i should switch into basket weaving or something :/ Feb 01 04:36:37 im seriously considering signing up Feb 01 04:36:49 but is this supposed to take a week? Feb 01 04:36:50 a month? Feb 01 04:36:51 a decade? Feb 01 04:37:43 canadiancow: have you read the dragon book ? Feb 01 04:37:47 no Feb 01 04:37:53 when's the NEXT class Feb 01 04:38:21 its fucking $100 Feb 01 04:38:29 (the book) Feb 01 04:38:34 i remember school :( Feb 01 04:39:06 canadiancow: HN discussion here, if you have questions http://news.ycombinator.com/item?id=5148895 Feb 01 04:39:21 but i bet hackkitten will kick your butt :P Feb 01 04:39:31 smart students buy their books used from amazon.com Feb 01 04:39:37 lol campus store Feb 01 04:40:59 "grandmaster" obviously a joke course. Feb 01 04:42:09 yeah i dont buy it Feb 01 04:42:44 "The C++ Grandmaster Certification began development as an internal training program, and the foundation was founded to offer it publicly." Feb 01 04:43:00 why didn't my training ever look like that :P Feb 01 04:50:12 ok, so maybe reading through SICP in a year is a more modest goal for me ;) Feb 01 04:52:15 screw that, time for a nap Feb 01 04:54:52 +1 Feb 01 04:55:01 is it saturday yet :P Feb 01 04:55:17 yes, if you sleep through friday :D Feb 01 04:55:26 i have a lunch thing tomorrow :( Feb 01 04:58:08 canadiancow: you can finish your c++ compiler project during lunch Feb 01 04:58:13 lol Feb 01 04:58:51 hello all Feb 01 04:58:59 hey QubeZ Feb 01 04:59:18 yo g00s Feb 01 04:59:20 why is there a generic on line 10? http://pastebin.com/zcxSYb80 Feb 01 04:59:32 fucking long day Feb 01 04:59:53 spetsnoz: because it needs to know what kind of ArrayList it has Feb 01 05:02:21 Sony Releases Open Source apk Editing Tool http://developer.sonymobile.com/2013/01/29/debug-and-fine-tune-apps-with-the-open-sourced-xappdbg-tool-tool/ Feb 01 05:02:51 mr0wl: can you also turn your head 270' in each direction ? Feb 01 05:07:37 g00s: i dunno, let me try... Feb 01 05:08:17 does android have any docs on generics? Feb 01 05:08:35 spetsnoz: thats a java topic; oracle does in their tutorials Feb 01 05:31:05 I'm pulling my hair out trying to get my build to stop failing at "R.xml.some_xml_file" (java: cannot find symbol \ variable xml) Feb 01 05:31:12 My IDE is IntelliJ. Anything I should double check? Feb 01 05:31:20 (some_xml_file.xml in this case is in res/xml/) Feb 01 05:35:54 BHSPiMonkey: post the content of some_xml_file.xml to pastebin Feb 01 05:36:15 and why is your xml in res/xml? Feb 01 05:36:31 is it a preference xml or ? Feb 01 06:13:32 QubeZ: the xml document is a device_filter.xml file for USB device support; This is actually a library I'm trying to use (I know that it works, but I'm not able to build it all of a sudden) Feb 01 06:13:52 Here's the line where it's failing: https://github.com/kshoji/USB-MIDI-Driver/blob/master/MIDIDriver/src/jp/kshoji/driver/usb/util/DeviceFilter.java#L61 Feb 01 06:14:23 I'm guessing the R class isn't being generated the way it's supposed to? Feb 01 06:18:06 BHSPiMonkey: do you have the correct R imported? Feb 01 06:18:29 JakeWharton: yep, checked that -- I actually just managed to solve the problem Feb 01 06:18:44 I had to go to Project Structure -> Facets and add an Android Facet for this module Feb 01 06:18:47 No idea why Feb 01 06:20:41 JakeWharton: https://twitter.com/todomapr Feb 01 06:20:47 your ABS at work in my app =) Feb 01 06:25:19 awesome Feb 01 06:25:33 BHSPiMonkey: the only way the R is generated is if the module is an android library or app Feb 01 06:26:07 JakeWharton: it is; I'm not sure why I had to add that Facet Feb 01 06:26:22 because that's how IntelliJ knows to invoke aapt Feb 01 06:26:37 I mean, I'm not sure why it wasn't already there Feb 01 06:26:45 I've used this library before and hadn't run into that Feb 01 06:27:12 it probably just wasn't automatically detected Feb 01 06:27:21 Yeah, something like that I guess Feb 01 06:28:30 New question: Would anyone be able to give me a high-level run-down of how I would create a layout like the "Widgets" catalog in Android 4.x? Feb 01 06:29:33 (i.e. two-column, big clickable thumbnails with titles underneath, dynamically-generated) Feb 01 06:29:50 GridView + Adapter Feb 01 06:32:47 Interesting, reading up on adapters. Thanks. Where would I properly layout how each "tile" in my grid should look? In a new xml layout file? Feb 01 06:39:36 why can't I on 2.2.2 device? Feb 01 06:42:33 BHSPiMonkey: yes. you would define a single layout for the tile Feb 01 06:42:52 the GridView + Adapter will take care of laying them out in columns and selecting the appropriate data Feb 01 06:52:53 ContentResolver.getSyncAdapterTypes returns one of my SyncAdapter, but under my app account/ sync, there is no option or display, any tips for debugging? Feb 01 06:58:08 Hello! I am using SurfaceView in application. When i add fragment which contains my surfaceview before fragment is shown surfaceview flicker on the screen and after all fragment ui appears on the screen. How i can fix it? Feb 01 06:59:41 And second question, if i just fill surfaceview with solid color and fill layout with this color i can see that colors are not similar. Is it expected? Feb 01 07:00:32 I fill surfaceview using drawARGB() and layout - using android:background Feb 01 07:03:30 is there a way to set the max value of a NumberPicker in XML? Feb 01 07:04:25 the intertubes seem to say no. which is kind of a bummer Feb 01 07:04:47 baudtack, you can, but it would be by making your own attributes then manually parsing them Feb 01 07:09:45 night~ Feb 01 07:21:01 hm, I am looking for some design help; I have some GPS data that I truncate and display in my application. I want to know how then to access the full GPS data when I go to save it into a DB Feb 01 07:21:34 So, it's a 3-step process, get an update, display it, then IF the user desires save it to a DB Feb 01 07:21:56 The problem, in my mind, is that the location isn't global Feb 01 07:26:59 b0nn why wouldn't you save the full data and display what you want, then remove the data if the user chooses not to save ? Feb 01 07:27:25 or am I missing what your saying... I have only just got up! Feb 01 07:28:10 Hello! I am using SurfaceView in application. When i add fragment which contains my surfaceview before fragment is shown surfaceview flicker on the screen and after all fragment ui appears on the screen. How i can fix it? Feb 01 07:28:11 And second question, if i just fill surfaceview with solid color and fill layout with this color i can see that colors are not similar. Is it expected? Feb 01 07:28:13 I fill surfaceview using drawARGB() and layout - using android:background Feb 01 07:29:13 xgear have you tested what methods are called on both the host fragment and the surface view during this flicker ? Feb 01 07:29:31 no( Feb 01 07:30:16 my guess, not that I've done anything like that, is that the screen is re-drawn on each fragment load, and on each refresh your surface is re-init, maybe Feb 01 07:30:44 but you should just add log outputs to see whats happening Feb 01 07:30:49 or i would Feb 01 07:31:05 flickering black surface appears in the screen earlier than fragment Feb 01 07:33:41 Hey all, just wondering if anyone knew of a way to have an view animation run from a point other than the start of the animation. For example, if I have an animation that should run for 3 seconds, being able to start the animation from where it would be at second 1.5 is what i'm trying to achieve. thanks for any help/ideas Feb 01 07:35:14 the only idea i have now is basically creating a new animation instance that behaves like the first one would at that time range, but i'm trying to avoid having to create new animation instances for each case Feb 01 07:48:48 hm StingRay_ I guess I think of the intermediate stage as being redundant Feb 01 07:53:50 Hi. I would like to push ad notifications from an external server to all users using my app. I only want my own ads to be pushed and received. How would i do this? Thank you Feb 01 08:02:42 ??? Feb 01 08:02:44 hehe Feb 01 08:31:06 http://www.apfelmag.com/files/2011/11/android-eats-apple_.jpg Feb 01 08:45:04 apple is not relevant in the mobile technology anymore brah...its niche now.. it's android v. microsoft Feb 01 08:46:11 good insight ;) Feb 01 08:46:13 lol Feb 01 08:46:54 lol to both of you :) Feb 01 08:46:57 lol Feb 01 08:47:03 :) Feb 01 08:47:15 there is too much happy in here. please calm yourselves Feb 01 08:52:01 g00s: guess where the all-glass N4 got its first barely-there nick? :D Feb 01 08:52:30 p_l: uh oh, where ? Feb 01 08:52:37 g00s: on the *metal* rim Feb 01 08:52:49 try harder next time :) Feb 01 08:53:40 all the rest is the typical invisible scratches that show just as well on metal :) Feb 01 08:54:33 and then one day, spiderweb crack out of nowhere! Feb 01 08:59:00 hmm, so apple still requires one to join the MFI program to license the bluetooth authentication coprocessor … how fucking lame Feb 01 08:59:01 the thing about metal is that its structural integrity isn't prone to spiderweb cracking when it has a lot of micro-scratches Feb 01 09:00:57 Good morning Feb 01 09:01:04 hmmm is there a reliable way to test if a view is being drawn inside a list adapter where every view thinks it's being drawn ? Feb 01 09:01:32 guess I will have to test visibility somehow Feb 01 09:02:12 i wouldn't worry about apple Feb 01 09:02:19 they are losing market share rapidly Feb 01 09:02:29 anyone have any good places to find OpenGL surfaceview examples for smoke/cloud effects? shot in the dark, i know.... Feb 01 09:04:21 KillmeSoftly: market share or profit share :P Feb 01 09:10:55 ios appStore developer revenues are probably the thing to watch Feb 01 09:11:17 they are still higher than android, but android is catching up Feb 01 09:12:02 ne1 know anything about my listView question ? Feb 01 09:12:05 how can I from my BroadcastReceiver MyReceiver cancel the timer here, and also stop the notification? I don't understand how I can do removeCallbacks on the taskHandler and cancel on the notification. http://pastebin.com/SVFhhtct Feb 01 09:13:08 I stupidly assumed that listView cycling is based on screen, not the view bounds Feb 01 09:14:33 could someone please explain which OnCancelled method does the AsyncTask invoke after being cancelled. there are two onCancelled method but the one that gets a paramtere doesnt seem to be called, ever Feb 01 09:16:19 balls2thewall: you could look at the AsyncTask code, its like 30 lines or something Feb 01 09:16:25 ok, 300 Feb 01 09:16:33 but still :) Feb 01 09:17:17 oh, 667 Feb 01 09:17:23 sorry :) Feb 01 09:20:06 hmm... someone needs to delete a newline somewhere ;) Feb 01 09:20:33 yes, fitting for AsyncTask indeed Feb 01 09:27:30 does android do ad-hoc wifi ? Feb 01 09:27:44 without rooting, etc Feb 01 09:28:01 is that not what they call wifi-direct ? Feb 01 09:28:07 StingRay_: nope Feb 01 09:28:24 StingRay_: WifFi Direct is some proprietary weird p2p thing Feb 01 09:28:43 that creates a ad-hoc network Feb 01 09:28:59 never EVER got it to work when I've tried it Feb 01 09:29:16 StingRay_: it's afaik not an ad-hoc network Feb 01 09:29:21 I just use Threads and Handlers instead of AsyncTask because thats how I roll Feb 01 09:29:34 ok, http://developer.android.com/guide/topics/connectivity/wifip2p.html Feb 01 09:30:11 but … this is android-specific with 'appropriate hardware' … wtf does that mean Feb 01 09:30:24 g00s honest though, even samsung to samsung, never ever got it to send a file or anything Feb 01 09:30:27 g00s: not android-specific but "proprietary wifi extension" Feb 01 09:30:49 hm Feb 01 09:31:06 "Wi-Fi Direct works by embedding a limited wireless access point into the devices, and using Wi-Fi Protected Setup system to negotiate a link." [wikipedia] Feb 01 09:33:54 "The Wi-Fi Direct certification program is developed and administered by the Wi-Fi Alliance," … ok , so this is some standard outside of android Feb 01 09:35:33 so theoretically, i should be able to use an android 4 phone, wi-fi direct to comm to some other non-android device which supports this Feb 01 09:35:52 <.< Feb 01 09:35:54 >.> Feb 01 09:36:01 yeah right Feb 01 09:36:06 I think so, as it it's a standard Feb 01 09:36:31 to be branded compatible they have to adhere to certain rules Feb 01 09:37:17 belgianguy: which apparently says *nothing* outside of setting up basic IP connectivity Feb 01 09:38:28 well, I do believe that WiFi Direct is more of a component rather than a product Feb 01 09:38:41 isn't Miracast built on top Wifi Direct? Feb 01 09:39:09 or AllShare Cast, Samsung's Miracast bastard child :p Feb 01 09:40:02 Miracast is proprietary extension built upon WiFi-Direct (proprietary in the sense of closed, chip-internal stuff that you need to set it up) Feb 01 09:40:19 not like I can encounter anything that supports Miracast ;) Feb 01 09:40:55 my Note 10.1 supports AllShare Cast, but I bet it's incompatible with Miracast Feb 01 09:41:51 belgianguy: Miracast seems to be basically a rebranded Intel WiDi with some changes Feb 01 09:42:14 yeah, and I hate the way they picked their abbreviations Feb 01 09:42:21 as WiDi is Wireless Display IIRC Feb 01 09:43:35 and not the easily confused Wifi Direct Feb 01 09:44:39 ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=de../.ServicesActivity } Any idea why? i always need to adb uninstall in order to get it on my device? Feb 01 09:44:55 and yes, the Launcher-Activity exists. When i did a uninstall it works Feb 01 09:45:34 do you use the -r flag? Feb 01 09:45:39 when installing? Feb 01 09:46:01 i dont know if eclipse use the flag but i dont think so Feb 01 09:46:16 misterli: eclipse should do that, yeah Feb 01 09:46:30 ActivityManager: Error: Activity class {de.------.ServicesActivity} does not exist. Feb 01 09:46:43 But it does. Im sure. I did a clean, checked the manifest several times, etc. Feb 01 09:50:22 i thought android was supposed to eventually support 6LoWPAN Feb 01 09:50:58 I think it's a bad sign if Samsung can push its own propietary standards Feb 01 09:51:12 I could live with a 'skin' of Android Feb 01 09:51:40 but with their marketshare, they might scare others away with shenanigans like that Feb 01 09:52:10 with their marketshare, sammy can do whatever the fuck it wants to with android Feb 01 09:52:32 witness their new multiwindow thingy, which CM tried to do but DH ripped them apart Feb 01 09:52:45 you dont like the new multiwindow thingy? Feb 01 09:52:46 DH? Feb 01 09:52:50 hackborn Feb 01 09:52:56 oh Feb 01 09:52:58 Dianna Feb 01 09:53:05 hackboc Feb 01 09:53:10 hackbod* Feb 01 09:53:30 yeah, but such things _are_ bad for the OS Feb 01 09:53:31 right, Dianne :) Feb 01 09:53:57 if Sammy changes enough, Android becomes more akin to a kernel than to an OS Feb 01 09:54:13 and the Sammy extensions would only work on Sammy phones etc Feb 01 09:54:20 belgianguy: Dianne Hackborn, not Dianna Hackbod Feb 01 09:54:27 i call all Android devices which are not Nexi 'Android based' Feb 01 09:54:31 and you'd get a Microsoft like Extend, Embrace, Extinguish Feb 01 09:54:40 pragma-: her nick here was hackbod :) Feb 01 09:54:43 g00s: don't call them nexi Feb 01 09:55:15 belgianguy: probably is still here, but shamed into a discreet nick Feb 01 09:55:16 belgianguy: the three times she was here... Feb 01 09:55:25 android is really a meta-distribution, like Gentoo :) Feb 01 09:55:38 pragma-: she's great though, would wish I could talk to her Feb 01 09:55:44 she knows a lot about the NDK Feb 01 09:55:59 and I've been fighting with the NDK for weeks Feb 01 09:56:17 you'll be fighting the NDK for the rest of your life Feb 01 09:56:46 and that's fine, if I can change battle zones every so often Feb 01 09:56:48 ;-) Feb 01 09:58:20 I even read her bio, impressive Feb 01 10:00:51 not impressive enough for her to speak up to samsung about their multi-window Feb 01 10:01:07 she can pick on the little boys, but not the big boys Feb 01 10:01:53 seriously? Feb 01 10:02:07 pragma-: or maybe Samsung simply didn't talk with anyone and dumped a complete running multi-window straight to market Feb 01 10:02:20 as long as it passes CTS... Feb 01 10:02:31 or maybe discussions between Google and Samsung don't happen on public mailing lists Feb 01 10:02:45 Leeds: i think they happen on IRC Feb 01 10:02:57 on #oha? Feb 01 10:03:03 heh Feb 01 10:03:29 they have their own irc server ;) Feb 01 10:03:30 or on internal IRC servers ;) Feb 01 10:03:58 private G+ circle Feb 01 10:04:21 hey, the US military uses IRC to coordinate … may as well use it for multinational negotiations Feb 01 10:04:43 multinational corporate negotiations ;) Feb 01 10:07:12 hmm, android@home was supposed to eventually use 6LoWPAN Feb 01 10:07:21 whatever happened to android@home ? Feb 01 10:07:24 :/ Feb 01 10:07:43 it's been rolled into the android update alliance Feb 01 10:07:50 i swear half the crap they announce at i/o is vaporware Feb 01 10:07:57 and the nexus q is the flagship device Feb 01 10:08:25 and the PowerMeter Feb 01 10:08:29 g00s: partially because it never gets out of US Feb 01 10:08:41 I don't know what that is... Feb 01 10:08:51 I still can't understand why Nexus Q control application is US-only on market Feb 01 10:09:54 because everything Google does is US-only by default, I think Feb 01 10:10:22 it's just easier that way Feb 01 10:11:11 Leeds: I can understand when copyrights or logistics come into it Feb 01 10:11:46 I don't see why a fscking *application* whose work is based on presence of an IP host on the local network has to be locked down to US Feb 01 10:12:03 as if it was impossible to get Nexus Q shipped outside USA if one wants Feb 01 10:12:13 hi. Is it possible to get access to framebuffer content when running a video with mediaplayer? I am interested in reading the RGB image when MediaPlayer is playing a video Feb 01 10:12:45 Leeds: a new app idea http://www.itworld.com/green-it/339450/beijings-heavy-pollution-boon-air-quality-monitoring-apps Feb 01 10:13:34 i thought you had an app that warned of some bad weather Feb 01 10:14:09 weather, yeah... I actually looked at doing an air quality app a while back, but I would have had to either scrape the data or ask for official access, and the scraping looked hard Feb 01 10:15:15 by MediaPlayer I mean the object of course Feb 01 10:15:36 http://developer.android.com/reference/android/media/MediaPlayer.html Feb 01 10:21:52 scraping is super easy with Perl Feb 01 10:21:53 and yql Feb 01 10:21:54 select * from html where url = 'http://foo.com/bar' and xpath = '//div[id="baz"]' or somesuch Feb 01 10:21:54 this eclipse adt bundle thing seems completely busted Feb 01 10:24:44 heh, were people seriously having that much trouble getting eclipse and adding the adt ? Feb 01 10:27:58 g00s: it can do weird things... both eclipse and ADT :P Feb 01 10:27:59 it was a bit bothersome/confusing I reckon Feb 01 10:28:03 yeah Feb 01 10:28:14 now it's just java/this thing Feb 01 10:29:01 p_l: setting this stuff is like a minefield, eh … reading about the Oracle Java install process installing shitware on your machine (Ask toolbar) Feb 01 10:29:10 and now, they are auto-updating jse6 to jse 7 Feb 01 10:29:11 but as soon as I install egit the whole thing doesn't start up Feb 01 10:42:52 hi, if I sometimes want to send a quick small message to a server ( tcp ) and get a reply, would it be 'clean' to use an asynctask for that? Feb 01 10:43:05 it's not an "open" connection Feb 01 10:43:30 one of the things i'm worried about: if the app gets closed does the asynctask live? Feb 01 10:43:43 IntentService is probably better Feb 01 10:45:26 ok thx g00s Feb 01 10:51:32 g00s, iirc the service will only be created once right? Feb 01 10:51:51 yeah Feb 01 10:51:53 all other calls with startService(i) will see if there exists one and use it Feb 01 10:52:06 Does anyone has any experience with the MapsV2 api, using MapView and not MapFragment? Feb 01 10:52:06 ( so I can use 1 socket open/close it ) Feb 01 10:56:50 dzan: if the service is not started, startService will start it calling onCreate and onStartService Feb 01 10:57:19 if the service is started, only the callback will onStartService will be executed Feb 01 10:58:26 Edman, think the last sentence got mixed up, you mean that any subsequent calls do trigger onStartService but not onCreate right? Feb 01 10:59:03 dzan: sorry, i mixed up a few things Feb 01 10:59:23 the callback is actually called onStartCommand Feb 01 11:00:04 when you try to start the service, if it's not created, both onCreate and onStartCommand are executed Feb 01 11:00:13 if it's created, only onStartCommand is executed Feb 01 11:00:35 onStartCommand will be called whenever someone tries to start the service, even if it's already started Feb 01 11:00:54 but onCreate is only once, when the service is actually created Feb 01 11:01:50 ok thx Feb 01 11:01:56 all clear now :) Feb 01 11:03:53 got a weird problem - now and again the menu button on my action bar, just wont respond to touches, if i go in and out of the activity then finally it does, any ideas? Feb 01 11:06:31 how can I from my BroadcastReceiver MyReceiver cancel the timer here, and also stop the notification? I don't understand how I can do removeCallbacks on the taskHandler and cancel on the notification. http://pastebin.com/SVFhhtct Feb 01 11:12:46 Gaz`: when do you execute setHomeButtonEnabled? Feb 01 11:13:51 ops, you said menu button... Feb 01 11:15:47 hello guys, please do you know about some easy way of merging 2 images, one from camera and one (.png file) from drawables? I did it through 2 bitmaps and tried to merge them in canvas Feb 01 11:16:10 but it was throwing errors about them being immutable, so i converted them into movable ones Feb 01 11:16:24 but now its throwing Bitmap Size Exceeds VM Budget error Feb 01 11:16:35 and im really getting lost right now Feb 01 11:19:45 Hi :D So I was coding till 4AM and somehow converted bitmaps into mutables, but now it throws "Bitmap Size Exceeds VM Budget", just to let you know :) Feb 01 11:29:12 g00s > writing a C++ compiler from scratch? *falls over giggling* Feb 01 11:29:18 MetalGuru, when saving the bitmap? Feb 01 11:29:22 * hackkitten picks self up, then starts laughing uncontrollably again Feb 01 11:29:37 hackkitten: it could be a joke :) Feb 01 11:29:44 well, probably even before it gets to the canvas, i dont really know Feb 01 11:29:59 g00s > I sure hope it is. Just look at llvm or GCC to see what is involved in writing a good C++ compiler Feb 01 11:30:09 * hackkitten is working on a VHDL compiler which is a PITA already Feb 01 11:30:22 and VHDL is a piece of cake compared to C++ to parse Feb 01 11:30:25 vhdl compiler O.o Feb 01 11:30:32 yeah, for a hardware simulator :) Feb 01 11:30:40 g00s: well, depends what you are trying to get from VHDL it can be pretty simple Feb 01 11:30:51 also depends on the implementation language :> Feb 01 11:30:54 gonna have lunch, i´ll be back soon Feb 01 11:31:07 if my layout does not fit to screen, how do I scroll it? Feb 01 11:31:13 i used vhdl and verilog Feb 01 11:31:25 * hackkitten is also going to use or write a Verilog compiler :) Feb 01 11:31:35 there are at least some free options there already Feb 01 11:31:38 hackkitten: can i ask … for wut ? Feb 01 11:31:46 yeah, for a hardware simulator :) Feb 01 11:32:00 wrote my own hardware design simulator Feb 01 11:32:02 a friend of mine writes code that generates VHDL/Verilog which then gets pushed into FPGAs Feb 01 11:32:11 :) Feb 01 11:32:16 * hackkitten will be back after noms~ Feb 01 11:34:26 hmm, i'm kind of stupid i guess.. i have implemented that sliding menu, and i want to do on click to change view on main activity, i did that with Fragment, but i tried it in few ways.. sometimes it replaces my fragment for menu, and if i choose to show it in main activity then i dont see no changes.. i declared that fragment in mainactivity xml Feb 01 11:34:59 Hiya, anyone who can point me in the right direction to read up on how to style an AutoCompleteTextView dropDown list Feb 01 11:35:12 Google won't help me :( Feb 01 11:38:38 What's the best solution for the bug where properties can't be edited in os x mountain lion? Feb 01 11:38:47 I downloaded the latest ADT bundle. Feb 01 11:41:12 what kind of properties, yoonchee Feb 01 11:41:47 ixc: if i click on text size property of a view, for example, the inline editor doesn't show up Feb 01 11:42:31 is it in eclipse? Feb 01 11:42:58 the eclipse bundled in ADT bundle 21 from Google Feb 01 11:43:05 how can I get the Display from within an activity? Feb 01 11:43:28 ..need Display.getRotation().. Feb 01 11:43:52 sorry i cant help, i never used eclipse Feb 01 11:44:21 thanks for trying :) Feb 01 11:44:45 Hi guys, how can i use SherlockFragmentActivity in an eclipse project ? Feb 01 11:45:00 What lib do i need to import ? Feb 01 11:45:04 H3bus: i think it is described on ABS page Feb 01 11:45:22 ixc, ABS ? Feb 01 11:45:24 any idea why i can not read a Database in /data/data/com.externalpackage/appdatabase.db? I have root Permissions with the App.. Feb 01 11:45:40 H3bus: actionbarsherlock Feb 01 11:45:41 how can I from my BroadcastReceiver MyReceiver cancel the timer here, and also stop the notification? I don't understand how I can do removeCallbacks on the taskHandler and cancel on the notification. http://pastebin.com/SVFhhtct Feb 01 11:46:17 http://actionbarsherlock.com/usage.html here is described what you need setup, and later you just need import sherlockfragmentactivity from sherlock package Feb 01 11:46:45 ixc, great, thanks very much Feb 01 11:47:28 jesus, is it really that memory sensitive to meerge 2 bitmaps in canvas?... Feb 01 11:51:27 ... jesus eclipse is slow o_O Feb 01 11:52:31 p_l, go toSSD hard drive, it just changed my life Feb 01 11:53:00 i am happy with my vim :) Feb 01 11:53:18 H3bus: except SSD won't change anything because it wasn't I/O that was causing the slowdown Feb 01 11:53:21 oh, awesome Feb 01 11:53:34 so my converter from immutable to mutable bitmaps doesnt work Feb 01 11:53:37 damn... Feb 01 11:56:18 though apparently Eclipse sucks and can't tell you that it decided to index shit and of course it has to block when doing that... Feb 01 11:56:23 Hello! if i just fill surfaceview with solid color and fill layout with this color i can see that colors are not similar. Is it expected? Feb 01 11:56:43 guys do you have any ideas on how to merge 2 images? Feb 01 11:56:44 hi. will the command [adb] work with the phones over wifi, if for example i don't have a USB cable? can still i do [adb connect 192.168.0.1] ? Feb 01 11:56:54 because bitmaps in canvas are pain in the ass... Feb 01 11:57:07 it throws outofmemory errors Feb 01 11:57:16 and also immutable errors Feb 01 11:57:40 superlinux-hp: yes, but you first need to start the phone listening on net Feb 01 11:57:52 for rooted phones there are tools that do that without cable Feb 01 11:59:17 p_l, cos I have a google TV device. it's an Android if you don't know. Feb 01 11:59:18 H3bus: also, asking for SSD would get my request fulfilled with some utter crap few months after I leave job ;) Feb 01 11:59:24 superlinux-hp: I know Feb 01 12:00:47 and I want to make a TCL/Tk script to do an On/Off for the rather than typing [adb (dis)connect IP ] Feb 01 12:05:29 guys if i convert bitmaps to drawables, how can i merge them? Feb 01 12:05:35 because canvas requires bitmap Feb 01 12:06:50 any idea why i can not read a Database in /data/data/com.externalpackage/appdatabase.db? I have root Permissions with the App.. The App is Requesting Root permissions but new File() is not able to find/open the file Feb 01 12:09:12 Hello! if i just fill surfaceview with solid color and fill layout with this color i can see that colors are not similar. Is it expected? Feb 01 12:09:53 please can someone help me? i cant find any info about merging 2 drawables Feb 01 12:15:24 anyone familiure with SensorManager.remapCoordinateSystem()? Im using it because I want the compass direction of the (back) camera... however the output (outSr) is all 0.0 and it does nothing :'( Feb 01 12:17:35 anyone here knows how to solve "OutOfMemoryError: bitmap size exceeds VM budget"? Feb 01 12:18:08 MetalGuru dont load all the data Feb 01 12:18:32 i will post my code here, one sec Feb 01 12:18:42 not what I ask Feb 01 12:20:57 well i just have to load it Feb 01 12:21:33 you can do it in chunks Feb 01 12:21:42 with some buffer Feb 01 12:21:56 i want to merge 2 bitmaps in canvas, so i load both bitmaps, create blank bitmap, draw one bitmap over it, draw second bitmap over it Feb 01 12:22:12 http://pastebin.com/CKg2eGCS Feb 01 12:24:27 Hi all! Feb 01 12:26:13 I'm having trouble with the SPinner widget when I add an entry to it. Feb 01 12:28:01 I'm having trouble with the Spinner widget when I add an entry to it from with in my app.. Feb 01 12:28:14 is there any "common" pattern for this problem: using intentservice & resultreceiver, if the result comes in after the activity is gone already or when it's recreated ( orientation change ) there is a problem ofc Feb 01 12:28:17 Hi rodrigo. Feb 01 12:30:02 dzan, Idon't thin its being stopped at started. What's happening is that, while I have a spinner ful of data, and I go to add somethign the spinner txt goes from black to white (on a white background!) Feb 01 12:30:26 jesus this memory error drives me mad Feb 01 12:30:33 That is, restarted. Feb 01 12:30:52 What's happening MtalGuru? Feb 01 12:31:01 MetalGuru Feb 01 12:31:07 well Feb 01 12:31:20 im trying to merge 2 bitmaps, but it throws "bitmap size exceeds vm budget" Feb 01 12:31:29 http://pastebin.com/CKg2eGCS Feb 01 12:31:46 MetalGuru you should only load what you need Feb 01 12:31:53 not the entire thing Feb 01 12:31:55 How big are these bitmaps, memorywise? Feb 01 12:32:02 but... this is actually what i need Feb 01 12:32:13 no Feb 01 12:32:16 one bitmap is from camera, second one is .png stored in drawables Feb 01 12:32:22 both are pretty big Feb 01 12:32:45 Ah, that's the problem. Did you try with smaller images? Feb 01 12:32:49 whats the point it loading them if they are BIGGER than the screen res ? Feb 01 12:32:54 the one in drawables is 63Kb Feb 01 12:33:01 the one from camera is big i guess Feb 01 12:33:26 That's big, MetalGuru? Can you find out how big the camera image is? Feb 01 12:33:45 well, problem is that i need to merge them somehow and save them merged as one image to internal storage Feb 01 12:34:02 Im actually trying to make app, that makes photo and adds .png file to it Feb 01 12:34:03 thats all Feb 01 12:34:12 you dont need to have them loaded full res viusally to do that Feb 01 12:34:25 dont load the whole image Feb 01 12:34:41 last time now b4 i give up http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Feb 01 12:35:17 now i give up :) Feb 01 12:36:01 Can anyone help me? Feb 01 12:36:11 stingray - i get it, i can load smaller bitmaps Feb 01 12:36:19 wait i will read it and come later :D Feb 01 12:36:26 yeah Feb 01 12:36:57 Does anybody know why the text color in a spinner changes after a new entry is added? Feb 01 12:37:55 but this ... well it solves my problem, but then the final photo stored on internal memory will be in low resolution, or am i wrong? Feb 01 12:38:13 well if you write out your canvas yes Feb 01 12:38:23 but if you do the operations outside no Feb 01 12:38:56 its reallly annoying. Even with Root i cannnot see files in /data/data/com.externalapp/database/ folder. Why's that? any way to get the Data in the folder? Feb 01 12:39:31 ok, so im officially lost now :D Feb 01 12:40:19 do i have to use bitmaps btw? Feb 01 12:40:41 isnt there another way to merge those images? Feb 01 12:42:21 and btw - i just cant load smaller versions of images into memory, merge them and then save it in original fullHD resolution, it would just look like crap Feb 01 12:42:27 or im missing something.... idk Feb 01 12:42:57 Use Canavas, MetalGuru? Feb 01 12:43:10 i am using canvas Feb 01 12:43:55 or you mean like storing both bitmaps in canvases Feb 01 12:44:01 and merging these 2 canvases then? Feb 01 12:44:44 That's a possibility, MetalGuru. Did you try that? Feb 01 12:44:51 nope Feb 01 12:47:17 ok so, it loads bitmap from drawables, it loads bitmap from camera Feb 01 12:47:26 it just runs out of memory on any further steps Feb 01 12:49:53 I asked earlier, how big as the image from the camera. Feb 01 12:50:01 Greets guys, I can't get an field to work more than once, meaning I click it, close the filechooser intent (back button) and then it won't click again. Tried various examples. Feb 01 12:50:18 Talking about a webview with an upload html form. Feb 01 12:51:21 is there a way of drawing canvas in canvas? Feb 01 12:51:35 something like .drawCanvas()? Feb 01 12:57:17 I need to use the camera/power button..... is there a more precise way to ask my question? Feb 01 13:12:38 p_l, I have made the script.. I am going to distribute it. but my internet is slow because of the bad weather Feb 01 13:27:29 I am a bit stuck, I have implemented GCM registration in my application, it works quite fine on most devices I have tried it on but... there are some devices e.g many 2.3.3 devices which returns empty registration id. I know the registration is async so therefore I don't try to get the id right after registration. Is this a common issue? Feb 01 13:28:53 after I try to register the device I do some other logic to be sure the registration is done. Can it be that I am not waiting enough for some devices that might need longer time to register? Feb 01 13:40:27 Daani: if i'm correct there is a callback when the device is registered Feb 01 13:45:23 Location of source code Feb 01 13:45:28 to android hidden Feb 01 13:45:34 animations Feb 01 13:49:48 Daani: i'm not sure what you've done already but you can extend GCMBaseIntentService, which is the class that receives several callbacks from GCMBroadcastReceiver Feb 01 13:50:04 i cannot access the /data folder with root. any idea why? http://stackoverflow.com/questions/14646594/how-to-access-data-data-com-app-databases-folder-with-root Feb 01 13:50:23 Daani: including onRegistered and onMessage Feb 01 13:50:51 meinli you are complete using root wrong Feb 01 13:51:15 do i? first i tried just to open it with FILE() but it cannot be opened (not even found) even if the file is there Feb 01 13:51:34 when you call su, only whatever commands are run as su have root access Feb 01 13:51:39 just seen that using shellcommands is the only way to access /data/data/com.app/databases/db.db files Feb 01 13:51:41 your Java app does not have root access Feb 01 13:52:22 Please try this tiny adb front end made using TCL/TK: http://www.superlinux.net/downloads/adb_script.tar.gz Feb 01 13:52:49 okay. which means that i have to call su for the copy-procees again. is there any way to access the DB File with root but without shellcommands? Feb 01 13:53:09 meinli see http://su.chainfire.eu/ for how to call su properly Feb 01 13:53:11 this will ease using the [adb connect $device_IP] command Feb 01 13:53:34 personally I'd use su in this case to cat the db file to a local location of my app, chmod/chown it, so that then you can use Java to read the file Feb 01 13:53:43 depends on what you are wanting to do with it, though Feb 01 13:54:10 just want to read it (not store/save/edit). Is copy really the best way for doing that? Feb 01 13:54:29 thats debatable Feb 01 13:54:38 its certainly the easiest way to do it Feb 01 13:54:46 I have sql statement 680 characters long Feb 01 13:55:07 Okay. How does app like Root-Explorer do that? They access the file straight without copy/pasta stuff? Feb 01 13:55:40 Don't know. Ask whomever wrote root explorer. Feb 01 13:56:28 jesus this is not normal how stucked i am Feb 01 13:56:49 haha okay. Well your writing in your article that it's better to use a Service and a Receiver. I dont think it worth it for a one-time-copy, does it? Feb 01 13:56:55 guys dont you know about easy way of mergin image from camera with png in drawable?... Feb 01 13:57:10 i tried mergin it as 2 bitmaps in canvas Feb 01 13:57:12 But yea, thanks for the hint (su -c command) Feb 01 13:57:22 but its throwing immutable error, or out of memory error Feb 01 13:57:54 meinli no thats not what the article says. the article says that in certain situations this should be done. If what you're doing happens inside your GUI, then you're probably better off using an AsyncTask Feb 01 13:58:19 if you're doing this on-boot, then you'd certainly want to use a receiver and a service, yes Feb 01 13:58:44 this is all actually in the article, I suggest you try reading it thoughtfully, and not just skim through it. Feb 01 13:59:02 It's a Service, not a GUI so blocking shouldnt be a Problem but i think ill use an AsyncTask. Thanks for that. Some apps are able to read/copy /data/data/* stuff even if its not the own package/app. Any idea how? (without root!) Feb 01 14:01:18 you can't really use AsyncTask in a service. Also, keep in mind that a Service runs on the main thread by default (depending on how the service is implemented), so if you're doing su calls in a service on the main thread - you're probably still doing it wrong ;) Feb 01 14:02:38 meinli it shouldn't normally be possible to read arbitrary data from /data/data unless you have special rights Feb 01 14:02:45 any ideas on how to work with 2 fullHD bitmaps without running out of memory? Feb 01 14:03:37 Okay Chainfire. Does it mean that having root only allows to use Shell-Commands but not even give Classes like File additional permissions to access Files? Feb 01 14:04:18 If i understood it correctly then FILE() should (if the App has root (Full System-Access!)) be able to access _all folders and datas_ Feb 01 14:04:49 MetalGuru have you set largeHeap="true" on , for starters ? Feb 01 14:05:01 meinli you are not listening Feb 01 14:05:04 no, i didnt Feb 01 14:05:13 [14:51] when you call su, only whatever commands are run as su have root access Feb 01 14:05:21 [14:51] your Java app does not have root access Feb 01 14:05:39 okay. This is what i wrote. There is no way to give the Java-App Root accesss by itself, right? Feb 01 14:05:46 File() is a Java thing, as such, it does not have root access Feb 01 14:06:07 MetalGuru well see if it helps :) Feb 01 14:06:16 its only supported since Android 3.x though, I think Feb 01 14:06:19 but its only API11 and more, or am i wrong? Feb 01 14:06:20 yes Feb 01 14:06:28 thats the problem :( Feb 01 14:06:33 Probably i didnt understand root completly. "Rooting device" just means that there will be a Root-User created and can be used in an app (or accessable) which can access the shell? Feb 01 14:06:56 otherwise, be sure to recycle() your bitmaps, System.gc() at the right time, make sure to re-use existing Bitmaps whenever possible Feb 01 14:06:57 I always thought it will overwrite permissions on the filesystem, apps are able to gain full access, etc. Feb 01 14:07:14 This is my problem - im working on an app, that takes photo, adds image to this photo (.png file in drawables) and saves it as final image. Feb 01 14:07:20 im doing it through bitmaps and canvas Feb 01 14:07:27 but the problem is its running out of memory Feb 01 14:08:00 meinli> yes, rooting devices (for apps) means nothing more than that there will be a "su" shell available that can run as the root user and can execute shell commands Feb 01 14:08:19 Okay thanks. Helped me alot to understand how root works ;) Feb 01 14:08:29 MetalGuru I hear you, it is a tricky subject. I wrote DSLR Controller, I've fought this very issue for ages, there really is no perfect solution for Android 2.x Feb 01 14:08:48 damn... Feb 01 14:08:59 if you don't necessarily need the data in a Bitmap, you can pass off the raw pixel data to native code, as memory from native code does not count towards your Java memory limit Feb 01 14:09:28 well i dont necessarily need bitmap i guess Feb 01 14:09:52 i just need to combine camera photo with another image, thats it Feb 01 14:10:03 but all the sample codes and tutorials use bitmaps and canvas to combine them Feb 01 14:10:15 in average, in 2.x you generally have enough memory to store 2.5 bitmaps at screen resolution, in Java. It is complete balls :( Feb 01 14:10:51 so when do you run out of memory? getting the photo? or making a copy to edit? or? Feb 01 14:11:11 nope, getting the photo works, also getting the .png file Feb 01 14:11:25 it runs out of memory when i try to create new blank bitmap Feb 01 14:12:03 which i then send to canvas and draw both bitmaps (photo and that .png picture) over it Feb 01 14:13:43 this is the code Feb 01 14:13:44 http://pastebin.com/mUauM8ZZ Feb 01 14:14:55 basically, something like this is very close to what i want to achieve https://play.google.com/store/apps/details?id=com.portal2booth&feature=more_from_developer#?t=W251bGwsMSwyLDEwMiwiY29tLnBvcnRhbDJib290aCJd Feb 01 14:15:05 it saves photo with that gun or whatever over it Feb 01 14:18:31 MetalGuru is there any way you can free arg0 before createBitmap ? Feb 01 14:19:01 that would save some meory Feb 01 14:19:26 well, probably yes, i dont need it since bottomImage, which uses it is already created Feb 01 14:20:13 also, instead of creating a new image, you could use decodeByteArray with Options to make it mutable Feb 01 14:20:26 then create canvas from bottomImage Feb 01 14:20:35 and draw only topImage Feb 01 14:20:37 saves you one image Feb 01 14:20:48 yes i tried this with some sample method from interned Feb 01 14:20:50 *t Feb 01 14:20:54 but it was not converting it to mutable Feb 01 14:21:00 will try this, one second Feb 01 14:21:12 oh, inMutable is also API 11 Feb 01 14:22:01 yes, well i tried this Feb 01 14:22:02 https://gist.github.com/2004295 Feb 01 14:22:11 but it is still returning inmutable bitmap Feb 01 14:23:22 still, it would be better to somehow get around it and dont use bitmaps... Feb 01 14:23:22 dang Feb 01 14:23:25 but i dont know how Feb 01 14:23:31 i thought of drawables Feb 01 14:23:35 but i dont know how to merge them Feb 01 14:23:42 well on 2.x its just a big problem because of the completely nonsensical memory limits Feb 01 14:24:08 i would like to know how this guy https://play.google.com/store/apps/details?id=com.portal2booth&feature=more_from_developer#?t=W251bGwsMSwyLDEwMiwiY29tLnBvcnRhbDJib290aCJd did it Feb 01 14:24:31 its very similar to what i need Feb 01 14:24:32 well its not really that big a deal Feb 01 14:24:49 isnt it? :D Feb 01 14:24:49 just call native code, decode pngs to array of pixels, and overlay Feb 01 14:24:57 oh Feb 01 14:25:00 thats something Feb 01 14:25:04 i dont know how to do Feb 01 14:25:04 :D Feb 01 14:25:20 right, well then start investigating! Feb 01 14:25:30 :) Feb 01 14:25:59 but how can i get something else than bitmap from camera? Feb 01 14:26:05 or you can just forget about 2.x :) Feb 01 14:26:17 well thats like... milions of devices Feb 01 14:26:41 many are doing it already Feb 01 14:26:47 and also my phone is only 2.3.something i think :D Feb 01 14:27:16 i tried cyanogenmod 10 on it, but i had some call recieving issues Feb 01 14:27:21 so im back at 2.3.* Feb 01 14:27:39 use API level 10 as minimum then :) Feb 01 14:27:51 but yeah still sucks Feb 01 14:28:03 yeah Feb 01 14:28:04 anyway, you can still do topImage and bottomImage in Java to get them Feb 01 14:28:11 as this works without memory problem, right ? Feb 01 14:28:15 damn it Feb 01 14:28:45 well i guess i can Feb 01 14:29:03 all i need is just merge photo from camera with one png picture, thats all Feb 01 14:29:17 you could then pass off the constructed Bitmaps to native code, and save the pixel data there. Then free topImage and bottomImage, create a new Bitmap of the size you want, and call native code to load back the pixels Feb 01 14:29:19 and i tried all tutorials on the internet, all sample codes, but all use canvas and bitmaps Feb 01 14:29:23 far from ideal, but that might work fairly easily Feb 01 14:29:24 which is not ok for me Feb 01 14:29:33 its because of your image resolution and memory issues Feb 01 14:29:41 oh ok Feb 01 14:29:41 otherwise, you could also scale down the image ... Feb 01 14:30:26 or using 16-bit instead of 32-bit Feb 01 14:30:52 could you please tell me how to pass off the constructed bitmaps into native code? is it some simple code? Feb 01 14:31:16 what about topImage, btw, what size is that ? could you break it up into several smaller images, and load/draw/free them one by one into the canvas ? Feb 01 14:31:34 topimage is 63Kb Feb 01 14:31:40 that means nothing Feb 01 14:31:46 what size is it in pixels Feb 01 14:31:50 yes Feb 01 14:31:51 thats what counts Feb 01 14:31:56 oh Feb 01 14:31:59 fullHD resolution Feb 01 14:32:15 so 1920x1080 Feb 01 14:32:47 i gues i could break it up, somehow Feb 01 14:33:07 I'm not sure if maybe loading it from resources as a drawable uses memory differently, it could be Feb 01 14:33:37 also Feb 01 14:33:47 damn this drives me mad :D finishing step of the whole app Feb 01 14:33:49 if gui is FullHD, I assume your final image will also be FullHD ? Feb 01 14:33:59 yes Feb 01 14:34:16 well, then maybe you start out with downscaling the camera image to FullHD, as it may be much bigger than that Feb 01 14:34:21 that could also save memory Feb 01 14:37:09 Hello, I got a basic question... Feb 01 14:37:29 Will my Edittext fields auto scale on diffrent poportions? Feb 01 14:37:37 *proportions. Feb 01 14:37:50 so what I would do is probably: (1) decode camera bitmap (2) downscale camera bitmap (3) make sure you've released the extra memory you no longer need due to downscaling (4) create a new FullHD Bitmap+Canvas (5) in a loop load/draw/free partial gui.png Feb 01 14:38:39 oh ok :) i will try downscaling it first and see if it helps Feb 01 14:39:47 @Sct: what do you mean? Feb 01 14:39:51 i'm currently working with a drawable to get a ring shaped imageview. the issue is: i have 5 of these imageviews in one row all with weight=1, so that they all have the same width. the shape ring drawable's xml tag attribute "innerRadiusRatio" relies on the drawable's width though. so the ring shape will be cropped if the width of the imageview becomes bigger than the height. is there any way i can make the innerRadiusRatio Feb 01 14:39:51 rely on the height instead of the width? or even set its scaleType to "fitCenter" or something similar ? Feb 01 14:40:41 @DHDirk Will my edit text change size if the android view screen is larger then what I tested in on? Feb 01 14:41:17 setting the ring shape imageview's attribute "scaleType" to "fitCenter" or "centerInside" didn't have any effect. and i think that's because the innerRadiusRatio only relies on the width of the object Feb 01 14:41:57 Depending on what you put, so in the xml layout use "wrap_content" or "fill_parent" don't use specific size such as 20dp for height and width then it will resize Feb 01 14:42:31 @DHDirk Thanks! Feb 01 14:42:54 DHDirk: i'm guessing you weren't asnwering my question, right ? Feb 01 14:43:17 Nope was for @Sct Feb 01 14:49:15 hm, how can i save that canvas to SD card btw? Feb 01 14:51:49 http://stackoverflow.com/questions/2174875/android-canvas-to-jpg Feb 01 14:53:25 thanks Feb 01 14:56:01 Heya folks, quick question - I have a dialog builder and I do .setSingleChoiceItems, and all is well, but I'd like the entries to eclipsed if they're too long. Is there an easy way to do this? Feb 01 14:57:14 the "oh god why" method is having to create a custom layout, feed it into an adapter and then send that adapter to the dialog builder Feb 01 14:57:18 You can not have multiply textview marquee only the one that has focus at that moment. And you probably end up with custom layout for dialog items. Feb 01 14:57:18 and I sincerely hope I won't have to do that Feb 01 14:57:46 I don't want marquee, I just want the entries to be cut off if they're too big Feb 01 14:58:03 Since I can virtually have an unlimited amount of characters in the entries (they're dynamic) Feb 01 14:59:02 @Tee_Pee then you end up with the solution you already think about or do it programmaticly go through all subviews of the dialog check if it is a textview and then set the cut off setting Feb 01 15:05:37 @DHDirk - thanks, I just have to figure out now how to iterate through a dialog's single choice items. Feb 01 15:05:42 or a dialog's child views Feb 01 15:06:08 probably there will be something like childviews or something Feb 01 15:06:34 yeah, just remembered... friday afternoon, my brain is on reserve power. Feb 01 15:08:29 hm Feb 01 15:08:37 im getting some nullpointer errors now Feb 01 15:08:44 in pictureTaken method, weird Feb 01 15:14:42 Hi, im new in building roms,but i know now how to do it. Now i want to get some stuff from other repos. Is there a good howto anywhere ? Feb 01 15:20:42 SlowMoe: #android-root or perhaps #cyanogenmod-dev Feb 01 15:22:59 I've posted my previous question with some illustrations on stackoverflow. Hope you guys can help me :) http://stackoverflow.com/questions/14649461/ringshapedrawables-radius-set-to-height-of-parent-instead-of-width Feb 01 15:25:22 can onDragListener be implemented directly in a view subclass Feb 01 15:25:30 or do I need to make a completely separate class for it Feb 01 15:25:44 isn't OnDragListener an interface? Feb 01 15:25:51 My current workaround is that i provide a different ringShapeDrawable for every screenSize. Which just doesn't seem the right way to do it Feb 01 15:26:03 I've seen a few example code snippets, but they seem to be implemented in a separate class that isn't extending another class Feb 01 15:26:17 shinkamui: you can do it in a View subclass Feb 01 15:26:39 cool, im gonna run with it evanc Feb 01 15:26:43 see how far i get Feb 01 15:26:50 shinkamui: but it's really indifferent whether it's an anonymous class within your subclass or if your subclass implements OnDragListener Feb 01 15:27:02 they're basically functionally identical Feb 01 15:27:26 evanc, it would be very convenient if I can just implement all the touch/drag code in the view class since its a relatively simple app Feb 01 15:27:40 but if its best practice to separate I'd also like to know for future larger projects Feb 01 15:27:59 shinkamui: yeah but you could do that with an anonymous class within it but yeah, go ahead with whatever is easiest for you Feb 01 15:28:25 Chainfire. Did you code an App to reset the "Modified" Counter in Samsung Galaxy S3? Feb 01 15:28:39 within the same file? I thought I had to put new classes in their own file :) Feb 01 15:28:45 thats perfect then Feb 01 15:29:21 aah, I shouldn't make it public, that should resolve that Feb 01 15:29:26 its coming back to me ;) Feb 01 15:33:14 i'm trying to change my activity to strictly use my adapter, but having a little trouble. I have labled my changes: activity: http://privatepaste.com/a33a125edf adapter: http://privatepaste.com/483a5015a9 Feb 01 15:41:52 str8uplinux is there a question Feb 01 15:45:22 xorgate: The changes labeled force close my application. I can get you the logcat if you need? But I labeled WHERE I think the root of the cause is Feb 01 15:46:14 str8uplinux: logcat is always helpful Feb 01 15:48:41 Why label where you think it is, when you can just check logcat to see where it actually is ;d Feb 01 15:48:52 i'm guessing it's because the second param to customadapter is null Feb 01 15:50:05 xorgate: That is my guess as well, but what would I pass to it? Feb 01 15:50:38 str8uplinux an arraylist of hashmap :) Feb 01 15:52:11 just paste the logcat Feb 01 15:52:28 basically what SimonVT said Feb 01 15:52:32 xorgate: here is the logcat: http://privatepaste.com/3ae5f0c338 Feb 01 15:52:51 what does it tell you Feb 01 15:53:42 xorgate: java.lang.NullPointerException Feb 01 15:53:49 str8uplinux: keep reading Feb 01 15:54:03 str8uplinux: we're asking you to actually look at the log you posted, not copy/paste stuff from it Feb 01 15:54:15 hehe Feb 01 15:55:37 it tells you the exact line where the NPE occurs Feb 01 15:55:47 so whatever's there is unexpectedly null Feb 01 15:56:09 xorgate: or expectedly null, if you look at his activity code... Feb 01 15:56:15 Unless you explicitly set it to null *hint hint*, then it's completely expected Feb 01 15:56:21 ;d Feb 01 15:56:27 yah :0 Feb 01 15:56:38 I am trying to write an android app that logs in to a specific website. A year ago I did the same thing as a webapp in php. My php app reciever a specific cookie with the session id after logging in. My android app recieves other cookies, but not that one. Feb 01 15:57:51 interesting how that privatepaste.com does not place a linenumber for the last line Feb 01 15:58:26 xorgate: the line numbers get skewed; the heights of the line number rows don't exactly match the code rows Feb 01 15:58:29 it's really annoying Feb 01 15:58:46 oh but yeah, the logcat is weird Feb 01 15:59:26 Peetz0r: then log your http stream and see if you don't receive it; if not fix the website (or your query), if so .. fix whatever's processing your http? Feb 01 15:59:27 str8uplinux don't keep us in suspense! Feb 01 15:59:39 there should be nothing magical here Feb 01 16:00:28 xorgate: i'm trying to work my newb magic :P Feb 01 16:00:57 all i revealed in the logcat you posted Feb 01 16:01:00 +s Feb 01 16:02:21 xorgate: yes, it is because i'm passing null to my CustomAdapter... When it is expecting an ArrayList Feb 01 16:03:09 so getCount() is called which does data.size() but data is null Feb 01 16:05:45 oGMo: I already log all "set-cookie"-headers Feb 01 16:06:20 oGMo: ans fixing the website would be asking microsoft to fix an old version of ISA for my school (not gonna happen) Feb 01 16:07:29 xorgate: ok, so in my activity do i want to define HashMap map = new HashMap(); globaly and pass map to my CustomAdapter? Feb 01 16:08:22 Peetz0r: if it clearly works on another platform, then your query is wrong, or you're actually ignoring cookies Feb 01 16:08:27 str8uplinux the question is what do you want to show in the list? Feb 01 16:08:41 oGMo: nope, I do recieve some cookies, but just not the one I need Feb 01 16:08:44 Peetz0r: are you using HTTPS? "secure" cookies won't get sent over HTTP Feb 01 16:08:59 doc_savage: yes, the whole site is available on https only Feb 01 16:09:13 then there is clearly one alternative Feb 01 16:09:42 the POST body I am sending is also identical Feb 01 16:10:01 the user agent is the only difference, and that's going to be the next thing I'm going to try Feb 01 16:10:31 xorgate: well before i was defining ArrayList> posts = new ArrayList>(); and passing 'posts' to my CustomAdapter and using posts.add(map), but I want this all handled in the CustomAdapter "addItems()" Feb 01 16:10:36 yeah you probably have it said to "DROID", and they don't server your kind here Feb 01 16:10:50 "serve", but appropriate typo i guess ;) Feb 01 16:11:07 so... if you have MediaPlayer playing a video and rendering the decoded frames, is there any way I can get those frames? Feb 01 16:11:43 maybe using opengl? Feb 01 16:12:10 xorgate: as you can tell, I litterally just starting teaching myself java/android about 2 months ago :) Feb 01 16:12:48 str8uplinux seems like you just display 3 things per item Feb 01 16:13:03 the hashmap seems a bit convoluted Feb 01 16:13:21 why not make a class MyItem with 3 members and make an ArrayList of those things Feb 01 16:14:08 evanc: quickly, so in my class called DragListener which is defined in my ViewClass Would I be able to define the class object in the viewclass declaration section as private DragListener myDragListener, and then in each of the constructor methods use this.setOnDragListener(myDragListener)? Feb 01 16:16:18 Damn, I never get answers... :P Are my questions that hard? Or is my english? Feb 01 16:17:30 shinkamui: have you tried it? because yes, that will work Feb 01 16:17:37 javac could've answered that for yo Feb 01 16:19:40 well, thats was my rational, but eclipse was throwing up errors left and right until I finally got there. I've never instanciated an object without the new keyword, so i figured i'd just ask, Feb 01 16:20:06 anyway, that was really my last holdup, from here I should be able to finish Feb 01 16:20:15 :( help?? Feb 01 16:20:18 appreciate the pointers as usual Feb 01 16:21:10 have a void* on the house Feb 01 16:21:30 we dont know gmag Feb 01 16:21:53 xorgate, pls don't say that to me Feb 01 16:21:55 :) Feb 01 16:22:44 xorgate, you could have lied, saying that you're just not in the mood of helping... Which would mean there would still be hope Feb 01 16:22:59 yes but then you would not shut up :) Feb 01 16:31:27 does any of you guys have a solution to this issue ? http://stackoverflow.com/questions/14649461/ringshapedrawables-radius-set-to-height-of-parent-instead-of-width Feb 01 16:31:31 thanks for taking the time :) Feb 01 16:35:58 so, I have this PreferenceActivity based activity that has an option to select application's theme. Whenever I change this setting, I want to reload application's theme, including the activity that launched preference activity's. Feb 01 16:36:13 any reasonable way to do this? Feb 01 16:36:27 hydra__: API 11+, Activity#recreate() Feb 01 16:36:35 oGMo: I changed the user agent to the most generic one I could find, doesn't help. Feb 01 16:38:37 evanc: below api Feb 01 16:38:59 hydra__: finish(); startActivity(getIntent()); ? Feb 01 16:39:21 evanc: but that restarts current activity right? Feb 01 16:40:23 yes Feb 01 16:42:04 i want to restart the activity that launched the preference activity (where i actually change theme) Feb 01 16:46:02 is there any truth to what this guy is saying about the FragmentBasics example? http://stackoverflow.com/questions/12554783/how-can-i-use-fragments-without-violating-core-oo-principles Feb 01 16:46:26 hydra__: so start your preferences activity with startActivityForResult() and watch what it returns? Feb 01 16:56:01 hi Feb 01 16:56:11 i'm quite lost and need your insight please Feb 01 16:56:32 ohmy: just ask your question Feb 01 16:56:58 Chainfire: Even with an AsyncTask and the successfully message of the Shellcommand the file did not get copied... -_- Feb 01 17:04:02 Is there a java library to log in to a ISA 2006 server without problems? Feb 01 17:07:34 I'm trying to do this by hand, and it is giving me a major headache. There must be someone who has done this before, right? Feb 01 17:07:45 I shouldn't be reinventing the wheel, right? Feb 01 17:12:26 is there actually a difference between 'android update project' and 'android update lib-project'? both my main project and my library projects seem to work regardless of which command i use to update them. Feb 01 17:22:41 evanc: thanks, it worked. Feb 01 17:22:55 xorgate, that's a nice thing to say to a fellow struggling with android stuff... :-/ Feb 01 17:23:53 gmag it's not that i want to stifle your progression, it's just that people tend to read back lines of irc and re-asking doesn't really serve any purpose Feb 01 17:25:21 It's fine to re-ask, just actually re-ask.. Don't start with all the "help?" "hello?" "anyone?" Feb 01 17:25:32 if you don't get an answer after a bit, post on stackoverflow Feb 01 17:31:45 SimonVT, shush Feb 01 17:34:13 Urgh, does the support library also provides support for the MapsV2 API that uses MapView instead of MapFragments? Feb 01 17:36:58 arent all v2 maps fragments? Feb 01 17:37:09 The API says you can use mapviews too. Feb 01 17:37:27 I could use one, but I prefer to use a MapView. Feb 01 17:37:42 Because ... well ... It's a mapview, not a fragment. Feb 01 17:37:52 It isn't part of a parent thingie in the activity I mean. Feb 01 17:38:28 Or is it? Feb 01 17:39:00 Well, does it matter? Feb 01 17:42:16 Eclipse and ant obviously use different java compilers.. how can i figure out which version each one uses, however? Feb 01 17:57:35 hey guys! is there a way to stop the system from forcing the package to stop at the end of a test run? Feb 01 17:58:56 "test run" ? Feb 01 17:59:09 when running junit tests Feb 01 17:59:26 at the end of the run the package is "forced to stop" Feb 01 17:59:29 by the os Feb 01 17:59:32 ah, no idea sorry Feb 01 17:59:43 k, thx anyway Feb 01 18:10:52 Hi all, I'm trying to escape quotes in a JSON String but every time I try .replaceAll("'","\\'") I see no change to the string when I log it to logcat. Is there a better way to escape quotes in a string? Feb 01 18:15:37 org.json.JSONException: Value {"dogs":"810","status":"success"} of type java.lang.String cannot be converted to JSONObject.. uh what? how is that not JSONObject syntax? Feb 01 18:19:50 hip2p how are you setting it ? Feb 01 18:21:28 ok there's an issue.. I'm getting the json as a tostring getentity which gives me "{\"dogs\":\"810\",\"status\":\"success\"}". Obviously that is not json syntax Feb 01 18:24:27 ok the problem was that I was json encoding an already json encoded string in php and then sending that to android Feb 01 18:24:41 nice :) Feb 01 18:25:23 but should that not have failed ? Feb 01 18:25:30 as in no value ? Feb 01 18:25:31 :) Feb 01 18:26:46 oh no it's a major fail Feb 01 18:26:51 on my part Feb 01 18:28:08 hip2p you doing both little and big things using json in android ? Feb 01 18:28:22 look at gson lib Feb 01 18:29:13 Hi there! Feb 01 18:30:08 StingRay_ yea I looked at gson yesterday Feb 01 18:31:32 seems strange how you need to add a class, though Feb 01 18:32:27 I suppose I could actually read about what it does before I criticize it Feb 01 18:50:40 i've an ArrayList with Lots of Strings in the List. Now i want to pair them with more another Data. Like in a Phonebook. Ive the Numbers in the ArrayList and want to pair it with Names. Whats the best to do that? HashMaps? Feb 01 18:51:16 Can I get Eclipse to debug an arbitrary (debug-enabled) APK? Feb 01 18:51:27 misterli could make a class with 2 string members Feb 01 18:52:21 Okay, thought that.. Like a Class working as a Struct. Well.. Is there no better method? Feb 01 18:52:53 misterli: just use a Map Feb 01 18:54:16 Okay, thanks Feb 01 18:59:49 hi. I'm trying to send a string from fragment1 to activity to fragment2. I have an interface that contains a method to do so. The string is sent from fragment1 to activity then how do I then get that string from activity to fragment2? Feb 01 19:01:06 mFragment2.giveString(string); Feb 01 19:01:24 how would you normally pass an object from one object to another? Feb 01 19:03:11 canadiancow: public static variables Feb 01 19:06:32 getters/setters are overrated Feb 01 19:08:16 i like to make them Serializable and then put the base64'ed serialized data into a stored pref Feb 01 19:08:57 thanks Feb 01 19:09:24 please don't actually do what i said Feb 01 19:09:36 it's better to store all data in the cloud so you can go online and see what kind of data they're setting... for quality purposes, of course Feb 01 19:09:46 * tophyr hoping KillmeSoftly wasn't thanking him Feb 01 19:09:59 You can never go wrong with the cloud Feb 01 19:10:19 lets you use Big Data too Feb 01 19:10:27 Big Data solves problems Feb 01 19:11:05 pragma-: I do all my intra-fragment communication with C2DM Feb 01 19:11:49 True decoupling of fragments/activities Feb 01 19:11:53 Makes for easier reuse Feb 01 19:11:57 sorry, I mean GCM these days Feb 01 19:15:00 Alright, hello everyone, I've got a ViewPager in my XML file, I'm putting 4 TableLayout in this ViewPager and I want the tables to be centered on screen, however, setting the gravity on the ViewPager in XML has no effect. Setting the gravity of the TableLayout seems to be able to change vertical gravity but the edge of the table still sits on the left side of the screen. Thoughts on how to get the gravity to be completely Feb 01 19:15:28 jdawes: your wall of text was truncated at "to be completely" Feb 01 19:15:44 I'll split it up, thanks for letting me know. Feb 01 19:15:48 evanc, lol & sigh Feb 01 19:15:56 Alright, hello everyone, I've got a ViewPager in my XML file, I'm putting 4 TableLayout in this ViewPager and I want the tables to be centered on screen. Feb 01 19:16:09 yes, yes, we've got everything up to "to be completely" ... Feb 01 19:16:12 However, setting the gravity on the ViewPager in XML has no effect. Setting the gravity of the TableLayout seems to be able to change vertical gravity but the edge of the table still sits on the left side of the screen. Feb 01 19:16:18 Is there a way to specify a custom font for any view? Feb 01 19:16:22 Thoughts on how to get the gravity to be completely centered and have the table be in the middle of the screen. Feb 01 19:16:24 yes marrrk Feb 01 19:16:24 Can I get Eclipse to debug an arbitrary (debug-enabled) APK? I'm using an external build script for my app. Feb 01 19:16:30 setTypeFace() Feb 01 19:16:39 yes Jeaye Feb 01 19:16:48 i think you can setup a "remote java project" or something Feb 01 19:16:52 I should have said: All type faces. And does it have to be done programmatically? Feb 01 19:17:02 "Remote Java Application" Feb 01 19:17:09 canadiancow: Where's the listed? Feb 01 19:17:18 marrrk, i THINK an xml attribute was added for it in.... some recent version Feb 01 19:17:19 that* Feb 01 19:17:35 canadiancow: That would be so much more elegant. Feb 01 19:17:39 marrrk, android:fontFamily Feb 01 19:17:45 have you tried going to http://developer.android.com/reference/android/widget/TextView.html Feb 01 19:17:50 it has information on stuff Feb 01 19:17:53 like TextViews Feb 01 19:17:58 Is that only for the text view then? Feb 01 19:18:00 Jeaye, debug configurations Feb 01 19:18:11 canadiancow: Excellent. Thanks so much for the tip. Feb 01 19:18:13 are there any classes that display text and are not textviews? Feb 01 19:18:25 Buttons Feb 01 19:18:26 how can I from my BroadcastReceiver MyReceiver cancel the timer here, and also stop the notification? I don't understand how I can do removeCallbacks on the taskHandler and cancel on the notification. http://pastebin.com/SVFhhtct Feb 01 19:18:26 for example Feb 01 19:18:34 or are they text views? Feb 01 19:18:42 marrrk, Buttons are TextViews Feb 01 19:19:02 Okay, I didn't know the inheritance of all that. Feb 01 19:19:47 canadiancow: thank you! I will try Feb 01 19:20:09 canadiancow: My external build script works just fine, but Eclipse gives a "Failed to run com.android.ide.eclipse.adt.internal.build.AidlProcessor" error, so the project won't run (since it thinks there was an error). Google has shown no solution to the error for me; can I just tell Eclipse to disable all errors except for those parsed from my build script? Feb 01 19:21:38 i dont know Feb 01 19:21:46 that sounds like a question for #eclipse Feb 01 19:22:03 Aye. Feb 01 19:22:21 I'm a bit confused, because I need to specify a string as an argument to font-family. Do I need to create a string that is a reference to my assets folder? Feb 01 19:23:16 @[package:]type:name is the format Feb 01 19:23:40 if you have Something.ttf in assets/, you need to specify "Something.ttf" i believe Feb 01 19:23:44 Any ideas on why I can't seem to center a TableLayout in a ViewPager? Feb 01 19:23:45 search for examples Feb 01 19:23:58 Even with gravity set to 'center' on everything. Feb 01 19:24:34 * jda2000 what? Feb 01 19:25:35 * jda2000 Googles "talk like a pirate day" Feb 01 19:25:43 So... anyone seen or themselves implemented a UI layout using multiple panes on a tablet, but tabs on handsets?~ Feb 01 19:26:57 jdawes: probably because you're not using fill_parent for the width and you have the sizes wrong, but who knows -- there are a million reasons why it might not be centered. show the layout. Feb 01 19:28:30 pragma: http://pastebin.com/CtmSVwdV Feb 01 19:29:01 https://www.dropbox.com/s/qucqycz3o4ntq64/2013-01-31%2021.00.29.png how does this look~ Feb 01 19:30:25 50 is not 50% of 120 Feb 01 19:30:56 its 50% of 100~ Feb 01 19:31:23 gets minimum, preferred, and maximum values - anything over preferred gets the red line treatment and isnt included in the % calculation Feb 01 19:31:43 ok Feb 01 19:31:49 pragma-: here is how I'm putting in the TableLayout, http://pastebin.com/wshpVpLT Feb 01 19:31:56 pragma-: http://pastebin.com/CtmSVwdV Feb 01 19:32:28 Also, I set the gravity to center on the table layout, forgot that part Feb 01 19:32:37 it looks good. Feb 01 19:33:26 my first crack at a custom view Feb 01 19:34:17 what are the units? Feb 01 19:34:43 Do I need to set the gravity of the TableRows? Or do WRAP_CONTENT on the TableLayout? Feb 01 19:35:04 arbitrary Feb 01 19:35:47 jdawes: I don't see how you're adding the table itself to the viewpager... in any case, you probably want to set its layout params to center_horizontally, or put it in a linearlayout with center_horizontally set, or something along those lines Feb 01 19:36:04 anyone? :) Feb 01 19:36:28 anyone what Feb 01 19:36:38 I don't understand how I in a broadcastreceiver can stop a timer running in an intentservice Feb 01 19:36:47 http://pastebin.com/SVFhhtct Feb 01 19:36:56 canadiancow: I think the fontFamily attribute does not work with custom fonts Feb 01 19:37:08 my only serious criticism is that you should show the units. Feb 01 19:37:49 kph, mph? Feb 01 19:37:53 pragma-: I had tried the LinearLayout idea earlier with no luck but I have a question about that. If I set the orientation to vertical would it not be allowed to set the gravity in the horizontal direction? Feb 01 19:39:16 jda2000: yea, I'm working on adding some annotation fields Feb 01 19:39:19 I need to cancel the timer in IntentService that is updating the notifications when I clear the notification Feb 01 19:39:26 jdawes: you use layout_gravity, not gravity -- and it sounds like it's going to be the only item inside the viewpager? Feb 01 19:39:27 but I can't figure out how Feb 01 19:40:28 pragma-: Yes the only item. Sorry I missed the word layout, I am using layout_gravity but in code I use setGravity(). Feb 01 19:47:17 "why is my lock not working?!??!" then i realized i had >9000 instances of it T_T Feb 01 19:47:17 create a new linearlayout with width set to fill_parent and put it in the viewpager, then put the tablelayout with width set to wrap_content and gravity center_horizontally in that linearlayout Feb 01 19:47:25 match_parent* Feb 01 19:48:43 the wifip2pmanager can't broadcast right? only search for broadcasters Feb 01 19:50:24 do I need addLocalService for that? Feb 01 19:51:20 Is there a way to hide the titlebar when using ActionBar.NAVIGATION_MODE_TABS Feb 01 19:51:45 I thought the actionbar and the titlebar were the same thing, but I've got two distinct elements taking up a lot of screen space Feb 01 19:53:32 in the manifest Feb 01 19:55:26 what is Feb 01 19:58:04 Eh, I can' t find it anymore Feb 01 20:01:37 why doesnt anyone know this? hehe Feb 01 20:02:10 Quacked: I told you how the other day Feb 01 20:02:16 you just need to figure out how to Java Feb 01 20:02:27 you already know how, actually Feb 01 20:02:33 hehe, you did? Feb 01 20:02:37 you just need to figure out how to expose one object to another Feb 01 20:02:57 Can I do it without setting it to static? Feb 01 20:03:39 are you allergic to static? Feb 01 20:03:51 :) Feb 01 20:04:04 No, but I kinda thought it was bad practise Feb 01 20:04:13 it's bad practice if you use it for stupid things Feb 01 20:04:26 that's like saying that the Factory pattern is bad practice Feb 01 20:04:38 if I want to load a fragment from within another fragment is that handled in the parent activity or in the "first" fragment? Feb 01 20:05:02 and also, since I have several timers, I'm not sure how to cancel the right timer Feb 01 20:05:07 any ideas for that? Feb 01 20:09:29 setting the Handler and the Runnable static lets me cancel the timer, but not if there are two Feb 01 20:12:22 evanc? :) Feb 01 20:14:31 evanc: so, you know how post.clear(); adapter.notifyDataSetChanged(); isn't working until i click the refresh button a second time? Well, the first time the refresh button is clicked adapter.notifyDataSetChanged(); is for some reason calling my asyncTask. I can literally watch it hit my webserver... That makes NO sense to me. Feb 01 20:14:33 Hey Guys :) I have a Question.. how can i register my app with the "Share with" Android function? Feb 01 20:14:57 Quacked: if only there was a way to create a mapping from IDs to Runnable... :) Feb 01 20:15:21 str8uplinux: I don't have your code committed to memory Feb 01 20:15:40 Styler2go: google it and I'll be shocked if that's not your first result Feb 01 20:15:54 ok :) Feb 01 20:16:14 wtf that easy? :D Feb 01 20:17:35 Is there a way to use the Maps V2 API as an activity and not as a fragment? Feb 01 20:18:40 evanc: I'm too dumb to understand your pedagogical hints. Do I need to use a HashMap or something? Feb 01 20:20:34 I don't understand this, why is the maps thing all about the fragments? What if I just want an activity, displaying a map? Feb 01 20:23:07 Quacked: make a SparseArray static and insert your timers in there, keyed on their ID, and use that cancel when the time comes? Feb 01 20:23:26 thanks Feb 01 20:23:40 never heard of SparseArray Feb 01 20:23:50 appreciate it Feb 01 20:24:02 slightly more efficient than HashMap Feb 01 20:24:10 interesting Feb 01 20:24:19 when you're a novice it's so hard knowing what to use when Feb 01 20:24:39 no problems Feb 01 20:24:42 stuff like why use AlarmManager instead of CountdownTimer Feb 01 20:24:55 Ah, sparsearrays <3 Feb 01 20:25:05 They're like. Arrays with holes in them. Feb 01 20:25:24 btw, is force close MainActivity supposed to kill an alarm made by AlarmManager, or have I implemented it wrongly? Feb 01 20:25:40 if I kill the app by holding my back key Feb 01 20:26:49 no, that will not remove your alarm (by design) Feb 01 20:26:54 otherwise the alarm clock would be useless Feb 01 20:26:59 that's also not force closing anything Feb 01 20:27:29 ok, I guess I need to have a check for active alarm to display it in notification Feb 01 20:31:00 Wow this is really hard. I still haven't figured out how to globally use a different font for my app. Feb 01 20:37:35 why did the fragments example use an interface to make sure a function was declared in the MainActivity? couldnt it have just called it without checking? http://developer.android.com/training/basics/fragments/communicating.html Feb 01 20:40:34 "I had a problem, so I decided to use Java to solve it. Now I have a ProblemFactory." Feb 01 20:40:47 ^this Feb 01 20:41:10 ProblemFactory problem = new ProblemFactory(); Feb 01 20:42:08 problem.clearStackTrace() Feb 01 20:42:29 xD Feb 01 20:42:42 was that the answer to my question? Feb 01 20:43:40 digdev - it could have, but I think it has to do moreso with good coding practices Feb 01 20:43:44 Whatever those are nowadays. Feb 01 20:44:19 I think interfaces are there just for the compiler to throw a fit when something's not implemented in it. Feb 01 20:47:45 http://www.gta4.net/map/ guck mal hier hat jemand aus gta streetvieew gemacht zbs Feb 01 20:47:49 oh fuck Feb 01 20:47:51 not to you guys Feb 01 20:50:25 marrrk: Tell me once you find out. I only saw some SO articles where they went over each and every TextView and set the font. Feb 01 20:50:42 http://helpmeco.de/2012/2/custom-fonts-in-android-widgets Feb 01 20:51:00 I'm trying this now but I can't get it to work. Feb 01 20:51:27 how do I configure a layout so that each element gets an equal share of the available space Feb 01 20:51:40 hi, i am new to android development and have a lot of trouble getting my Samsung Galaxy S3 (I9300) on 4.1.1 working with my ardiuno ADK Feb 01 20:52:33 has anyone got an idea how to get my galaxy s3 communicating to my ardiuno in a simple way? Feb 01 20:53:24 Has anyone else run into camera flash issues on the N4 when using the continuous picture focus mode? http://stackoverflow.com/questions/14226401/nexus-4-camera-flash-doesnt-fire-when-focus-mode-is-set-to-continuous-picture Feb 01 20:57:21 can i "register" links for my app? something like "myapp://activity/data ? Feb 01 21:05:01 this is killing me. in my view classes constructor, I set this.setOnDragListener(new MyListener()); Feb 01 21:05:19 evanc: meh. I can't figure out how to put the timers into a SparseArray. Can you show me how? Feb 01 21:05:25 the MyListener class I made implements onDragListener, and I have an overriden onDrag function which is not being called Feb 01 21:05:38 hey all. anyone here do GLES2.0 shaders before? Feb 01 21:06:03 Anyone using RoboSpice in their project? Feb 01 21:08:57 re: trakt-java ... and others like it... How in the world do I get this imported into Eclipse so that these samples that use it will actually work? I noticed JakeWharton actually wrote a lot of this stuff, which is really impressive. I had been blind to that for quite a while now. Feb 01 21:14:19 hey all, i'm getting a heap corruption seg fault (deadbaad) when i use a shared object i compiled with android gcc in unity c# Feb 01 21:14:30 it finds the ".so" file fine and begins to invoke the inner function when it seg faults Feb 01 21:14:44 i never "free" or "delete" in the native code, i'm just returning a const char * Feb 01 21:15:19 a sigsegv occurs when you attempt to dereference a location that is outside the region that you have access to Feb 01 21:15:41 pragma-, in anotehr example i've seen they access a function in the same way Feb 01 21:15:57 without JNI, but rather invoking the .so functionality Feb 01 21:16:35 i've checked out HelloJni and HelloBoost and they run on the phone without error, but if i attempt to load the library in C# kablooey Feb 01 21:17:18 pragma-, i would have assumed that this heap space is out of range for whatever's holding the C# stuff, but i did see an example where they do this with a simple "float add(x,y)" type function Feb 01 21:17:21 what's the cheapest ViewGroup in terms of overhead/performance cost? Feb 01 21:18:26 pragma-, i had secondly assumed that any c/c++ that was compilable with android gcc would run as a shared object on android Feb 01 21:18:40 tnzr: framelayout/ Feb 01 21:19:23 pragma-, if it helps i can pastebin some stuff, but it's the least complicated example i could make, just one extern function calling one internal functino that returns a const char * Feb 01 21:20:00 I don't know anything about jni Feb 01 21:20:14 pragma-, the point was to actually circumvent JNI and invoke native code on android directly from c# Feb 01 21:20:57 pragma-, i could have passed this to java with the correct naming convention and then made an android java object in unity c#, but that seems really circuitous Feb 01 21:25:09 Quacked: sorry, I'm not going to teach you how to read javadocs :-/ Feb 01 21:27:20 meh. thought I had it now, hehe. Feb 01 21:27:51 http://pastebin.com/RJxwQ6Ez Feb 01 21:28:56 how do I add "libraries" that are folders and not jars ? Feb 01 21:29:08 pragma-: thanks! sorry for the late reply Feb 01 21:29:15 got fatal exception Feb 01 21:29:59 like JakeWharton's trakt-java... can't find out how in the world to import it so this other project is "happy" Feb 01 21:30:39 evanc: can you tell me if Im far off? Feb 01 21:30:55 pierpark, import it as a project, markt he proejct as a library, add it to your libraries in the other project Feb 01 21:30:56 done Feb 01 21:31:29 Fixing multiple inheritance trough public static helper methods. I feel so dirty now. Feb 01 21:31:47 Silox|, so long as they're not loosely coupled that's probably not horrible.. Feb 01 21:31:50 aah Feb 01 21:31:53 think i got a workaround Feb 01 21:32:17 evanc: I gave up on draglistener, got rid of my touchevent, and implemented touchlistener Feb 01 21:32:21 it seems to be working as I had wanted Feb 01 21:32:42 realtime touch coordinates. Feb 01 21:33:36 kaneda^ i'll give it a shot.. but there is no "project" inside it, like you'd find when importing another eclipse project... so I import it as "general project" and still dont know how to use it Feb 01 21:33:48 pierpark, what is the library if not an android proejct? Feb 01 21:33:55 you import it as such and then mark as library Feb 01 21:34:45 actually I just found jake's answer to someone else re: the same thing .... Feb 01 21:34:54 and you're right. that makes sense. thanks for answering me! I appreciate it. Feb 01 21:36:51 does the N7 have a barometer in it ? Feb 01 21:42:54 hello Feb 01 21:43:18 evanc, or is it just array.put(alarmId, t); ? Feb 01 21:46:31 I have a webview and a menuInfalter to load a few dialogs Feb 01 21:46:50 how can i cancel the dialog without restarting the webview activity? Feb 01 21:47:21 AlertDialog? Feb 01 21:47:33 check the docs of your dialog creator Feb 01 21:47:45 http://stackoverflow.com/questions/14653708/stop-android-back-button-from-restarting-activity Feb 01 21:47:48 okay Feb 01 21:48:00 oh, you just want to override the back-button functinoality? Feb 01 21:48:17 yeah Feb 01 21:48:29 without reloading my webview Feb 01 21:48:52 i couldn't think of a way haha Feb 01 21:48:55 http://stackoverflow.com/questions/2000102/android-override-back-button-to-act-like-home-button Feb 01 21:49:40 evanc: I made it :) Feb 01 21:49:40 Activity.moveTaskToBack is what you want Feb 01 21:49:59 the home intent isn't always correct, someone could've launched your app via notification or recent apps and then back button shouldn't take them home Feb 01 21:50:11 so it's my onDestroy that's reloading the webview? Feb 01 21:50:37 kaneda^: this is what I want to use: https://github.com/JakeWharton/trakt-java Feb 01 21:50:44 I'd ask Jake but I don't think he's here. Feb 01 21:50:48 nope Feb 01 21:50:59 :D Feb 01 21:51:05 seems he is ;) Feb 01 21:51:26 heeeeeey Feb 01 21:51:30 use this: https://github.com/UweTrottmann/trakt-java Feb 01 21:51:35 Does anybody has any idea why ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap(); return null on 4.0- devices? Feb 01 21:51:51 Fragment sounds like a pre 4.0 thing... Feb 01 21:52:04 That's why I'm using SupportFragments :) Feb 01 21:52:04 pierpark: https://github.com/UweTrottmann/trakt-java/tree/seriesguide Feb 01 21:52:25 JakeWharton: Thanks man, I appreciate it. let me go take a loo Feb 01 21:52:27 k Feb 01 21:52:28 Silox|, did you include thes upporrt libs? Feb 01 21:52:30 the support libs* Feb 01 21:52:32 How would one go about creating a table of buttons that, when selected, stay in the selected state but when a different button is selected the currently selected button is put into the deselected state? Feb 01 21:52:42 kaneda^: I included both the ABS and the maps addon as the support library, so yup. Feb 01 21:52:56 jdawes, you can interate over the list for selected, or just track the last selected... Feb 01 21:53:05 and my class extends from SherlockFragmentActivity Feb 01 21:53:15 it all works fine on ICS, just nog on 2.2 :c Feb 01 21:53:20 Silox|, hrm, i had a similar problem and i ended up switching to a fragment controller Feb 01 21:54:17 Hmm Feb 01 21:55:25 jdaws, why not userasiobuttons? Feb 01 21:56:00 radio buttons? Feb 01 21:56:51 Jacques? Feb 01 21:57:11 jda2000: That's a good point. Feb 01 21:57:13 jdawes ? Feb 01 21:57:25 JakeWharton: Yeah... that one definitely had something to import. Now I've just to figure out why there's a bunch of package errors. And try to find the other dependencies. Thanks again Feb 01 21:57:39 it's more up to date with the API Feb 01 21:57:44 i haven't touched my version in a long time Feb 01 21:58:26 movetasktoback() minimizes my whole app lol Feb 01 22:00:14 Anyone experience file history changing in eclipse? Feb 01 22:00:18 Thanks for the info. I'm going to try to clear my head a little because I about blew every brain cell over the last 4 hours of trying to find a way to get this imported :) Then I'm going to come back and get back to it. Oh and, great work and thanks a ton for all the other stuff you've done out there. Be back in a bit. Feb 01 22:00:40 jda2000: You can use images as selected and deselected states? Feb 01 22:03:48 Is Google Play services automatichly installed on every device? Feb 01 22:04:37 on 2.2+ with Play Store Feb 01 22:04:51 Hmm, I see Feb 01 22:05:35 It seems like the MapsV2 depends on having that installed, meh. Feb 01 22:05:58 is there to get a way to get MapsV2 working in the emu yet? Feb 01 22:06:03 uh Feb 01 22:06:15 >.> Feb 01 22:06:25 Silox|: not on amazon devices Feb 01 22:06:39 let me rephrase: is there a way to get maps v2 working on the emu yet :) Feb 01 22:06:56 So there is no way to create a MapsV2 'view' that just works on every device? Feb 01 22:07:13 Silox|: just don't support amazon kindle Feb 01 22:07:18 they have an inferior product Feb 01 22:07:56 It seems like the HTC Magic doesn't has it. Feb 01 22:08:12 Oh well, he installed Cyanogenmod. Feb 01 22:08:18 Maybe that's the root of the problem. Feb 01 22:09:17 Does anyone here have experience with SlidingMenu by JeremyFeinstein on github? Feb 01 22:13:15 g00s: http://www.piotrbuda.eu/2012/05/installing-google-play-on-android-emulator.html Feb 01 22:13:23 I guess it will work if you follow this guide Feb 01 22:13:27 Well, I'm going to try it :P Feb 01 22:27:43 how does one use Roboto medium? Feb 01 22:27:52 it's not a text style like bold, normal, etc Feb 01 22:28:48 Silox|: interesting, thanks Feb 01 22:29:12 tnzr: medium isn't included Feb 01 22:29:22 include it yourself and load and set the Typeface Feb 01 22:29:36 JakeWharton: cool, I will google that process, thanks Feb 01 22:29:57 any custom font tutorial should do Feb 01 22:30:02 Does anyone here have experience with SlidingMenu by JeremyFeinstein on github? I just updated the library and now my SherlockSlidingFragmentActivity is broken Feb 01 22:30:08 cool thanks! Feb 01 22:30:33 Somebody going to FOSDEM tomorrow? :) Feb 01 22:31:49 does ViewPager really decrease the performance a bit or Im doing sth wrong ? Feb 01 22:32:28 like button response taking longer Feb 01 22:44:09 anyone ever tried to hook up an onPageChangeListener to a ViewPager before? I can't seem to get any callbacks. Feb 01 22:45:25 works to me Feb 01 22:45:31 maybe you dont have sth like this.mViewPager.setOnPageChangeListener(this); Feb 01 22:45:54 It needs context? "this" Feb 01 22:46:16 guys.. is there a way too get the logcat informations from other users? Feb 01 22:46:31 well its a fragmentactivity for me Feb 01 22:46:40 Same for me. Feb 01 22:47:06 ive just tried disabling that line and my tabs got messed Feb 01 22:47:08 I defined a new onPageListener and then gave it to the mViewPager, never passed the context. Feb 01 22:47:44 well i cant say much about it Feb 01 22:48:07 could anyone point me to info on creating an app with the larger titlebar like in many google apps, with the icon and contextually relevant buttons along the top? (like in Talk and Voice and etc.)? Feb 01 22:48:25 kadoban: That's the action bar Feb 01 22:48:29 I don't understand ViewPager.setOnPageChangeListener can' t be passed a FragmentActivity, it's need to have an onPageChangeListener as it's argument. Feb 01 22:48:39 .. Feb 01 22:48:51 SimonVT: ah, thanks Feb 01 22:48:58 If your fragmentactivity implements onpagechangelistener.. Feb 01 22:48:59 are you implementing ViewPager.OnPageChangeListener ? Feb 01 22:49:05 "this" is an onpagechangelistener Feb 01 22:49:09 Any Help guys? :-/ Feb 01 22:49:24 That just happens to be a context/activity/fragmentactivity, but that's irrelevant Feb 01 22:49:35 Well I've created one like this: http://pastebin.com/wfHeUfn7 Feb 01 22:49:39 Styler2go: Sure, ask them to send you a logcat Feb 01 22:50:00 So pass that to the viewpager Feb 01 22:50:11 I have, it doesn't send callbacks Feb 01 22:50:22 Then you're doing it wrong Feb 01 22:50:23 so I need to make the FragmentActivity implement onPageChangeListener? Feb 01 22:50:29 No Feb 01 22:51:12 but how? Feb 01 22:51:52 Send them an email? I think you need to explain what it is you're trying to do Feb 01 22:52:21 i want to get the logcat from a user... but how can he get the logcat output as a file or something like that? Feb 01 22:52:26 without a pc Feb 01 22:52:59 After JB, he can't.. Unless you implement something in your app that lets them save the log Feb 01 22:53:32 unless they have root, then they can use the logcat command to get logcats of all apps Feb 01 22:54:10 but yeah, I think I may add to my app a method that dumps the app's logcat to a file Feb 01 22:54:14 Unless you specifically target root users, they're pretty irrelevant tho Feb 01 22:54:26 I already have a class that allows the user to write a bug report/feedback and email it to me Feb 01 22:54:44 I may go ahead and add a checkbox for attaching logcat to the message Feb 01 22:55:12 hm Feb 01 22:55:32 why are the logcat apps not working on JB? Feb 01 22:55:54 because the logcat is no longer generic, it's limited to app's logcats only Feb 01 22:55:59 ^ Feb 01 22:56:21 so the logcat app you're using can only see logcat information of its app, and not others Feb 01 22:56:29 Wonder why they changed it? Feb 01 22:56:34 security Feb 01 22:56:40 and if he has rooted his phone? is there a way? Feb 01 22:56:55 they can use the logcat shell command Feb 01 22:57:19 It makes getting logs from Joe user almost impossible Feb 01 22:57:32 in fact: there is no easy way to get the logcat from a "normal phone user" Feb 01 22:57:38 it's trivial to add a method to your app that dumps its logcat to a file for a user to attach to an email Feb 01 22:58:08 It's arguably even easier now, since you can just implement log dumping in your app, and not have the user worry about it containing information about other apps Feb 01 22:58:09 in fact, you can make a method in your app that sends the logcat directly to an email intent Feb 01 22:58:48 yeah.. i found an app called "Vatlog"... this app works.. but needs root.. DAMN :D Feb 01 22:58:51 Styler2go: i used aLogRec to do that just recently Feb 01 22:58:58 Styler2go: it seems to function without root Feb 01 22:59:00 shrug, he's not listening. Feb 01 22:59:10 Why would my gesture handling code work fine on gingerbread but not on jelly bean on a phone? Feb 01 22:59:16 i just tried, didnt work Feb 01 22:59:33 i tried alogcat alogrec and 2 others, catlog works now.. for me... with root... Feb 01 22:59:36 Code works fine on tablet Feb 01 22:59:51 ok so how can i get the logcat from inside my app? Feb 01 22:59:56 Styler2go: alogrec didnt ask me for root when i ran it myself, and it worked fine for atleast one of my users Feb 01 23:00:13 clever: probably a gingerbread user Feb 01 23:00:22 clever: It doesn't work after JB Feb 01 23:00:46 pragma-: i'm running 4.x and it worked for me Feb 01 23:00:47 my phone uses 4.2.1 Feb 01 23:00:54 and his phone is 4.0.3 Feb 01 23:01:03 4.0.3 is ICS Feb 01 23:01:19 clever: 4.1.x and new doesn't work Feb 01 23:01:25 so the logcat app will work? Feb 01 23:01:47 That's why I said JB Feb 01 23:01:49 [ro.build.description]: [tate-user 4.0.3 IML74K 7.2.3_user_2330720 release-keys] Feb 01 23:01:52 pragma-: ah Feb 01 23:02:25 so, other question: is there a way to get the logcat inside ogf my app? Feb 01 23:03:01 Styler2go: checking the Log.java source... Feb 01 23:03:18 I'm sure you can google how to get the log Feb 01 23:03:31 hmmm, all log methods go thru Log.println_native Feb 01 23:04:02 i am but i just got the google site... Feb 01 23:04:27 which is declared inside android_util_Log.cpp Feb 01 23:05:19 http://developer.android.com/tools/help/logcat.html i just can find this Feb 01 23:05:24 dont see any obvious way to intercept outging stuff Feb 01 23:05:35 Styler2go: Runtime.getRuntime().exec("logcat"); Feb 01 23:05:52 pragma-: when running it as an app, you get access to that apps logs? Feb 01 23:06:04 dont i need root for that? Feb 01 23:06:19 Styler2go: BufferedReader on the InputStream on process.getInputStream() Feb 01 23:06:56 clever: yes Feb 01 23:07:12 pragma-: 'Unable to open log device '/dev/log/main': Permission denied' Feb 01 23:07:29 pragma-: i ran it within a termninal emulator app, uid 10032 (app_34) Feb 01 23:08:22 Add read logs permission Feb 01 23:08:45 Styler2go: no Feb 01 23:09:20 AlCapwn: wouldnt that also fix aLogRec then? Feb 01 23:09:26 i will try it Feb 01 23:09:28 or did something change in 4.1 to break that? Feb 01 23:09:57 clever: ... since 4.1 the logcat is restricted to the app that uses it, as we've said 3 times now Feb 01 23:10:14 ah Feb 01 23:10:20 the app that uses logcat can only see its own app's logs Feb 01 23:10:22 clever: whoops, sorry, thought you meant you got denied message when call it through your own app Feb 01 23:10:38 unless you're root Feb 01 23:10:47 AlCapwn: i was calling it from within a terminal emulator, to skip the lengthy process of editing my own app Feb 01 23:10:56 Probably gotta call su logcat then or something Feb 01 23:11:11 SimonVT: was trying to verify if it can see its own logs, without root Feb 01 23:11:27 the app probably needs the read logs permission Feb 01 23:11:45 yeah, which the terminal emulator wouldnt have by default Feb 01 23:11:45 SimonVT: su -c logcat Feb 01 23:11:46 It can read its own logs without root, if it has the read logs permission Feb 01 23:12:05 Was just replying to pragma's "unless you're root" Feb 01 23:12:25 just seems kinda backwards that you need a permission to access your own log output Feb 01 23:12:35 and the docs on the permission imply it gives you the system wide output Feb 01 23:12:53 yeah, the read logs permission is annoying now :/ makes users think i'm trying to read all their logs or something evil Feb 01 23:13:25 i would just automaticaly give an app access to its own logs, and use the permission for system-wide logs Feb 01 23:14:08 Hopefully we'll see a bit of a rework of the permission system some day Feb 01 23:17:46 what is the best way to resolve DNS SRV records on android? org.xbill.DNS is an 800KByte package, there must be something more lightweight... Feb 01 23:18:06 ok guys.. how the hell can i read from the process? i treid the following thing: http://pastebin.com/yV8mPYAj but i just get /sdcard Feb 01 23:18:22 Ge0rG: whois Feb 01 23:18:56 Ge0rG: i believe that proguard will strip out un-needed functions, so that may trim the 800kbyte package down more Feb 01 23:19:15 clever: yeah, down to 580KBytes Feb 01 23:19:28 pragma-: pardon? Feb 01 23:19:47 Ge0rG: er, dig, host, nslookup, etc Feb 01 23:20:02 just make the network query to resolve it Feb 01 23:20:03 pragma-: from an android app? Feb 01 23:20:06 Styler2go: Process process = Runtime.getRuntime().exec("/system/bin/ls /sdcard"); Feb 01 23:20:11 Ge0rG: sure? Feb 01 23:20:14 Might be because you're telling it to list the sd card? Feb 01 23:20:35 pragma-: you are asking me to put native dnsutils binaries into my apk?? Feb 01 23:20:51 oh god Feb 01 23:20:53 i am so fail Feb 01 23:20:54 or just write a socket class that makes the same type of query Feb 01 23:21:06 statically compiled, they will be much smaller than xbill for sure Feb 01 23:21:41 you can reproduce the query with java and sockets, or some java library that has already written the code for this Feb 01 23:22:07 what about some existing lightweight solution? Feb 01 23:22:24 that was an existing lightweight solution... Feb 01 23:24:27 and... how can i abort the process when its done reading? Feb 01 23:24:42 close the input stream and process.destroy() Feb 01 23:25:17 yes but ... how do i know if it has read all for now? Feb 01 23:25:21 jdawes, sorry,I was afk. I'm guessing you could subclass the radio button and override onDraw. Feb 01 23:25:43 you probably want to exec "logcat -d" so it terminates after all the available logs have been output, instead of blocking while waiting for more log output Feb 01 23:26:15 aaah Feb 01 23:27:02 ugh if you don't commit/apply a SharedPreferences.Editor, your changes just disappear? :\ Feb 01 23:27:26 Where should it go? Feb 01 23:27:28 jda2000: Thanks for remembering but I managed to sort it out still using ImageButtons and keeping track of the last clicked button. Feb 01 23:27:31 canadiancow: sure … did you expect otherwise ? Feb 01 23:27:41 yes g00s Feb 01 23:27:50 the editor is only a buffer Feb 01 23:27:55 the source for this uses a journaled file Feb 01 23:27:59 i assumed that since the my sharedprefs object was persistent, the editor woudl be too Feb 01 23:28:05 so IF i applied the changes later, they'd save Feb 01 23:28:08 but if not, they'd go away Feb 01 23:28:36 public abstract SharedPreferences.Editor edit () Feb 01 23:28:37 Added in API level 1 Feb 01 23:28:37 Create a new Editor for these preferences, through which you can make modifications to the data in the preferences and atomically commit those changes back to the SharedPreferences object. Feb 01 23:28:37 Note that you must call commit() to have any changes you perform in the Editor actually show up in the SharedPreferences. Feb 01 23:28:46 jdawes, makes sense. Feb 01 23:28:50 yes SimonVT Feb 01 23:28:50 Create a NEW editor ;O Feb 01 23:29:00 yeah, thats the part i missed :P Feb 01 23:29:08 now should i cache the editor... :P Feb 01 23:29:20 basically, if i recall, putting stuff marks a map dirty; if a write is in flight a pending async write is put on the queue, if it is not, a pending async write begins right then Feb 01 23:29:28 Why are you even creating an editor before you need to actually edit :p Feb 01 23:30:06 i write 1 value right away, but if its the ONLY value, i just want to not write anything to disk Feb 01 23:30:15 s/write/put/ Feb 01 23:31:12 Why not? Feb 01 23:31:25 becuase otherwise i'll have >9000 sharedpref files Feb 01 23:31:43 aside from that, there's no reason not to Feb 01 23:32:11 http://lakjeewa.blogspot.nl/2012/03/simple-client-server-application-for.html Feb 01 23:32:25 yeah im just going to cache the editor Feb 01 23:32:28 it looks safe Feb 01 23:32:33 I use this snippet to set up a client and server, and corrected the ip Feb 01 23:32:43 but the client gets stuck at new Socket(...) Feb 01 23:33:04 I can´t find any clue why, anyone else has experience with the Socket class? Feb 01 23:34:37 Joozey: when you say stuck, do you mean it doesn't return? Feb 01 23:34:56 yeah, it doesn´t get past that line Feb 01 23:35:26 got a Log.d right before and after, only before is displayed in logcat Feb 01 23:35:38 it´s in a try clause, nothing is thrown Feb 01 23:36:01 canadiancow: why do you want to cache the editor? Feb 01 23:36:10 canadiancow: How the hell are you naming your preferences Feb 01 23:36:28 canadiancow: something seems amiss; don't forget the behavior of all the pref change listeners. maybe they dont want to be called 9000 times either :) Feb 01 23:36:32 pragma-, so i can make a change that will only be written to disk if a subsequent change is made Feb 01 23:36:49 sounds weird. Feb 01 23:36:54 Joozey: add a timeout arg to the socket constructor and see if a timeout happens Feb 01 23:37:14 ohh... there is where you set the timeout :P Feb 01 23:38:13 wait... there is no constructor with timeout argument Feb 01 23:39:07 There is, you need to wrap the host and port in an inetaddress object Feb 01 23:40:00 Arg, my bad Feb 01 23:40:07 Joozey: ^ Feb 01 23:40:40 There is a way to set a timeout, I've done it but can't remember how :/ Feb 01 23:41:01 so if I have this thread and I'm convinced that it's the correct answer, http://stackoverflow.com/questions/4319212/how-can-one-detect-airplane-mode-on-android do I code with Settings.Global (for JB) or ...the first answer for pre-JB? Feb 01 23:41:08 compat is 2.3.3 and up Feb 01 23:41:22 Joozey: http://docs.oracle.com/javase/1.4.2/docs/api/java/net/Socket.html#connect(java.net.SocketAddress, int) Feb 01 23:42:46 right Feb 01 23:43:56 yeah! that works Feb 01 23:43:58 at least it timeouts Feb 01 23:47:52 yes it times out Feb 01 23:48:11 I am on 3g with my android, and my laptop hosts the server... wait... maybe the port is blocked Feb 01 23:50:25 it doesn´t connect on local host with wifi either Feb 01 23:56:27 client has new InetSocketAddress( ¨192.168...¨, 4444 ), server opens socket at port 4444, should be ok, right? Feb 01 23:57:02 AlCapwn highlight :o) Feb 01 23:58:01 Joozey: try pinging your server from a terminal app on the client Feb 01 23:58:21 See if the route is available for a connect to even succeed Feb 02 00:01:02 on JellyBean, I can no longer enable Airplane Mode from the notification panel? Feb 02 00:01:12 I have to go to More Settings everytime? Feb 02 00:02:29 Activates just fine for me Feb 02 00:03:06 I mean the icon for it to be added to the Notification Panel is not there anymore, there's just driving mode, sync, etc... Feb 02 00:03:53 It's there in stock android Feb 02 00:04:13 this is JellyBean stock, just upgraded 2 weeks ago Feb 02 00:04:32 let me just get the screenshot Feb 02 00:05:49 https://dl.dropbox.com/u/19390574/Screenshot_2013-02-02-02-03-49.png Feb 02 00:06:09 That looks more like some manufacturer modification Feb 02 00:06:14 Touchwiz Feb 02 00:06:24 Samsung amirite? Feb 02 00:06:36 S3 Feb 02 00:06:44 Stock: https://dl.dropbox.com/u/100261/2013-02-02%2001.04.53.png Feb 02 00:06:45 stock or wiz ? Feb 02 00:07:02 there is Airplane Mode on/off under "More Settings" though Feb 02 00:07:05 a checkbox Feb 02 00:07:15 AlCapwn, well I can telnet to it Feb 02 00:07:23 haha! Feb 02 00:07:46 SimonVT: that looks like a state prison orange hoody; developing from a jail cell ? :P Feb 02 00:08:23 Felt like it :p Feb 02 00:08:28 Joozey: hmm, try a breakpoint on your server code and maybe increase the timeout (its in milliseconds, don't forget :p) Feb 02 00:08:31 haha g00s Feb 02 00:09:39 Joozey: I'm off to sleep, good luck :) Feb 02 00:09:56 thanks and have a good sleep! Feb 02 00:11:24 by the way, Airplane mode completely cripples me here, can't even request tm.getLine1Number() Feb 02 00:11:27 correct behavior? Feb 02 00:15:57 also, http://stackoverflow.com/questions/4319212/how-can-one-detect-airplane-mode-on-android Feb 02 00:16:36 there's another answer in the first answer that says I need to check for a different parameter for Jellybean, do I implement that as default?.. Feb 02 00:16:50 I don't think it will work if someone < JellyBean runs it Feb 02 00:17:08 Is there something like setOffScreenPageLimit for GridView / AdapterView? Feb 02 00:17:16 For optimizing the number of views kept on the heap? Feb 02 00:18:19 Sicp: Just check api level? Feb 02 00:18:34 right Feb 02 00:34:35 I've got some huge images in a GridView and I'm of course using the holder pattern in my adapter, but when I scroll through the GridView quickly the images are actually rotating. That is, if I scroll from the bottom to the top quickly, the images will appear to be the old images from the bottom and then will all flip to the correct images. Feb 02 00:34:41 It's… annoying. Any suggestions? Feb 02 00:35:31 Reset the image in getview Feb 02 00:36:16 SimonVT: What do you mean? Feb 02 00:36:25 gridview reuses views Feb 02 00:36:33 If you don't set a new image, it'll just be the old one Feb 02 00:36:34 I obviously set it in getView, and I'm using disk caching. Feb 02 00:36:57 No, it's eventually displaying the correct image. There's just about a 2 second lag. Feb 02 00:37:22 ok, predicament time. Feb 02 00:37:24 Where the old image is displayed if I scroll really quickly, and then suddenly (after a delay) the image flips to the correct one again. Feb 02 00:37:30 So how do I get rid of that delay? Feb 02 00:37:48 Are you actually setting the image in getview, or are you starting a thread that loads the image, then sets it Feb 02 00:38:46 I've tried both. Feb 02 00:38:49 I tried it on the UI thread. Feb 02 00:38:52 And I tried it on a bg thread. Feb 02 00:40:15 I kinda doubt it'll show old images if you set a new one in getview Feb 02 00:40:24 The imageview has no reference to the old view, it can't draw it Feb 02 00:40:33 SimonVT: what about convertView? Feb 02 00:40:56 gridview reuses views Feb 02 00:41:12 yeah, and it may reuse one with an old image Feb 02 00:41:36 That's why I'm telling him to set a new image in getview Feb 02 00:41:46 yeah, that should do it i think Feb 02 00:42:10 It should and it does, in just about every other app that has images in a list/grid Feb 02 00:43:30 so to check for airplane mode for JellyBean devices I need a method that's available in SDK 17..and if I set the project to SDK 17 eclipse won't offer me my device to test on anymore Feb 02 00:44:01 Sure it will Feb 02 00:44:15 As long as they're connected and running Feb 02 00:44:28 I just tried and unless I lower the API, I cannot launch on my device.. Feb 02 00:44:36 it just....disappears from the listing on ADB.. Feb 02 00:44:45 SimonVT: are you setting target or min sdk? Feb 02 00:44:48 Sicp: oops Feb 02 00:44:58 it complains about min being 10 and it needing 17 Feb 02 00:45:00 and I do that Feb 02 00:45:17 Failure [INSTALL_FAILED_OLDER_SDK] when doing it through shell Feb 02 00:45:24 if you set min to 17, it will never run on a version 10 device Feb 02 00:45:33 you need to set min to 10, and check for 17 at run-time Feb 02 00:47:54 apparently it's a lint error Feb 02 00:48:05 Your min sdk is the lowest api level your app will run on, your target sdk is the highest api level you tested on, and the build target is just the api you'll have available at compile time Feb 02 00:48:20 Know the difference: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Feb 02 00:48:29 Sicp: you will also need to add a surpress lint to the function your protecting with the run-time check Feb 02 00:48:43 Well, "need" Feb 02 00:48:51 I did Feb 02 00:48:53 Settings.Global.getInt(ctx.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 0) != 0; <-- getInt() here needs minSDK of 17 Feb 02 00:49:03 that can be suppressed; but Global is from API 17 Feb 02 00:49:22 Sicp: you need to check the api at run-time, and not run that code on non-17 devices Feb 02 00:49:30 I do that Feb 02 00:49:40 it is fine now, but that line doesn't produce the status of Airplane Mode on my device Feb 02 00:49:56 what sdk version is your device? Feb 02 00:50:18 argh Feb 02 00:50:26 so sorry for wasting your time, it's 4.1.2 and not 4.2 Feb 02 00:50:35 got to shut up from now on Feb 02 00:51:22 my conditions do "if api is >= 17, check with the appropriate method. Else if lower than 17 check with the appropriate method" Feb 02 00:51:37 yep Feb 02 00:52:05 ah, then I didn't waste your time, that SO answer didn't give me back "Yes, airplane mode is on" Feb 02 00:55:06 yea, another logic fail, sorry Feb 02 00:55:29 but now I can check for Airplane Mode on whichever device :) Feb 02 00:57:39 when I build the entire android output.. what files do I need to run the emulator? Feb 02 00:57:58 huh? Feb 02 00:58:01 do I need to copy everything in target/product/generic Feb 02 00:58:10 sorry, that made no sense hah Feb 02 00:58:19 I built AOSP and made some changes to the app framework, etc. Feb 02 00:58:33 I need to provide my customers with my emulator image Feb 02 00:58:36 that has all my changes Feb 02 00:58:49 I am curious which exact files I need to give my customer so that they can use my modified AOSP emulator image Feb 02 00:58:49 I try to send a message from my android client to my java server. The emulator that runs on the same system as the server can connect through 192.168...., but my android phone, which is behind the same router, can not Feb 02 00:58:52 it times out Feb 02 00:59:09 Does anyone have an idea what could be the trouble? I am clueless. Feb 02 00:59:33 when connecting from the emulator to somewhere else, there are specific numbers that the emulator recognizes as external computer or your own localhost Feb 02 00:59:43 Joozey Feb 02 01:00:02 like this, http://stackoverflow.com/questions/5806220/how-to-connect-to-my-http-localhost-web-server-from-android-emulator-in-eclips Feb 02 01:00:21 yeah but the emulator is working, its connecting fine Feb 02 01:00:24 but my android phone is not Feb 02 01:00:30 the phone times out Feb 02 01:00:38 oh, CAN CONNECT, sorry Feb 02 01:00:54 but its connected to the same router Feb 02 01:00:54 Joozey: what ip is your dev system at, exactly? Feb 02 01:01:31 internal ip Feb 02 01:01:42 you mean? Feb 02 01:01:45 Joozey: and what is that ip? Feb 02 01:01:47 yes Feb 02 01:02:32 84.106.80.7 Feb 02 01:02:38 thats not an internal ip Feb 02 01:02:50 well, LAN Feb 02 01:03:08 Joozey: what is the 192.168 ip for your dev system? Feb 02 01:03:30 that is the dev system Feb 02 01:03:45 and what is the full ip for it? Feb 02 01:04:30 I´m not sure what I´m missing on that number, besides a port number Feb 02 01:04:32 can't seem to find a way to check for GSM coverage programatically, best I see is checking for signal strength Feb 02 01:04:45 Joozey: just tell me what ip the dev system and phone are on Feb 02 01:04:51 Joozey: the entire ip, dont stop in the middle Feb 02 01:05:06 I told you, that 9 digit string Feb 02 01:05:36 that´s what ipconfig is telling me Feb 02 01:05:37 84.106.80.7 is not an internal ip, i need the 192.168 one that you cut off in your first message Feb 02 01:05:52 huh? Feb 02 01:06:00 does ipconfig list any other ip's, like 192.168? Feb 02 01:06:04 I never mentioned a 84 number Feb 02 01:06:09 01 21:02:32 < Joozey> 84.106.80.7 Feb 02 01:06:12 84.106.80.7 Feb 02 01:06:18 o_O Feb 02 01:06:20 lol Feb 02 01:06:23 not in my client Feb 02 01:06:25 lol Feb 02 01:06:29 no pot while programming, dude Feb 02 01:06:31 you have a REALLY BAD IRC nat Feb 02 01:06:40 is hexchat replacing ip strings? Feb 02 01:06:43 what... Feb 02 01:06:45 the heck :D Feb 02 01:06:47 zinx: oh, that would explain it! Feb 02 01:06:51 yea dude, we're in your network killing your mans Feb 02 01:06:52 it's not even bothering to check if the IP is in a DCC SEND or CHAT request Feb 02 01:07:04 that's just stupid :/ Feb 02 01:07:11 zinx: dcc chat doesnt even send the ip bare Feb 02 01:07:17 clever: uhm, yes it does Feb 02 01:07:23 zinx: it sends it as a single base 10 number, all 4 bytes in one number Feb 02 01:07:29 clever: that's just as bare. Feb 02 01:07:31 seriously, it just says 192 168 1 17 for me Feb 02 01:07:38 with dots Feb 02 01:07:40 clever: in real OSs, you can actually do http://thatnumber/ Feb 02 01:07:45 Joozey: yeah, thats your router trying to help Feb 02 01:07:50 thanks router Feb 02 01:07:52 zinx: but thats not what he typed Feb 02 01:08:03 Joozey: ok, now find the ip for your android phone Feb 02 01:08:12 clever: no, but he didn't type 84.106.80.7 either. Feb 02 01:08:30 13 Feb 02 01:08:38 clever: an overzealous NAT translated it for him :P Feb 02 01:08:53 zinx: i think dcc would have sent 3232235793 Feb 02 01:09:01 which he clearly didnt try to type out Feb 02 01:09:16 Joozey: .1.13 ? Feb 02 01:09:27 yeah, 192 168 1 13 Feb 02 01:09:45 Joozey: its probly the windows firewall then Feb 02 01:10:05 I think I fully disabled it Feb 02 01:10:15 check it again Feb 02 01:10:35 according to windows firewall it is shut down Feb 02 01:10:56 try pinging the phone from windows, see if it gets thru Feb 02 01:11:18 yes Feb 02 01:11:47 it gets through Feb 02 01:11:50 cant think of anything else that could do it, but who knows what else that router is doing Feb 02 01:12:07 I fear the worst Feb 02 01:14:57 going to try open the port in the router, and use the external ip Feb 02 01:18:11 is there a command I can use for a delay in android IRC? Feb 02 01:20:04 the join android-dev always fails before the nick serve kicks in. Feb 02 01:25:01 although my router is pretty advanced Feb 02 01:25:12 and I put all security off Feb 02 01:25:20 I´d almost say something is wrong with this computer Feb 02 01:25:52 jda2000, you need SASL, not nickserv Feb 02 01:25:53 your router doesn't even do IRC NAT properly Feb 02 01:26:31 but i don't think it should be involved in requests to the host machine :/ Feb 02 01:27:01 zinx, to what settings should I search for fixing the IRC NAT thing? Feb 02 01:27:02 Joozey , thanks, I'll look that up. Feb 02 01:27:16 Joozey: you don't Feb 02 01:27:34 any ideas on checking for GSM signal strength? or for example if I'm underground I need to check that before doing what I have to do Feb 02 01:28:48 eh Feb 02 01:28:49 is there a global method I can invoke that will always return to me the context that I am in? Feb 02 01:28:58 been googling for 30 minutes to no avail, all answers are mostly for Network coverage or something about far-off topics with 4g/3g etc.. Feb 02 01:29:01 I am writing library code and sometimes I do not have the context Feb 02 01:29:34 pass the context along? I´m not sure if that is good practice though Feb 02 01:30:03 sleepster: myself, i made the lib class abstract, then within the android project, i finish the class off, and store a reference to the Context there Feb 02 01:30:24 in my case, its meant to be used from within a long-running service Feb 02 01:32:55 clever: ah I see. so the library I am modifying is an application framework library Feb 02 01:32:57 Joozey , that totally worked! thanks! Feb 02 01:33:26 sleepster: my lib is an entirely custom one, that gives access to a game for both android and normal desktop java apps Feb 02 01:33:51 sleepster: in your case, you may have a class related to a window, which could be sub-classed to hold an activity reference Feb 02 01:42:41 Sicp, what about on CDMA devices? Feb 02 01:42:43 or even LTE Feb 02 01:42:52 and what version of android do you need to support Feb 02 01:43:04 gingerbread and up Feb 02 01:43:09 did you get what I meant with the question? Feb 02 01:43:19 you want the signal strength, right? Feb 02 01:43:29 just that if I have no ability to call someone, I want to know that Feb 02 01:43:29 http://developer.android.com/reference/android/telephony/TelephonyManager.html start there Feb 02 01:43:40 because it also means that I have no ability to text someone either Feb 02 01:43:54 I went through its methods Feb 02 01:44:24 http://developer.android.com/reference/android/telephony/SignalStrength.html Feb 02 01:44:50 telephonyManager.listen(this, PhoneStateListener.LISTEN_SERVICE_STATE); Feb 02 01:44:52 that one might do it Feb 02 01:44:53 service state Feb 02 01:44:54 I did not go through all of its methods Feb 02 01:44:56 lol Feb 02 01:45:07 (fyi i've done all this before, and im looking through code) Feb 02 01:45:34 so you want a PhoneStateListener Feb 02 01:45:42 and in onServiceStateChanged() you get a ServiceState object Feb 02 01:45:53 http://developer.android.com/reference/android/telephony/ServiceState.html Feb 02 01:46:05 four possibilities there Feb 02 01:46:08 but this is a lsitener Feb 02 01:46:15 im not sure if you can just "ask" it the current state Feb 02 01:47:01 but maybe? Feb 02 01:47:32 but there's getGsmSignalStrength() Feb 02 01:47:57 yes, but what if you dont have a GSM phone Feb 02 01:48:08 getCdmaDbm() Feb 02 01:48:21 getEvdoDbm() Feb 02 01:48:22 also, oems have clobbered those methods in some cases Feb 02 01:48:32 ServiceState is your best bet for "can i make a call" Feb 02 01:48:33 I have absolutely no idea what these acronyms mean Feb 02 01:48:48 should read up on this stuff Feb 02 01:49:04 cdma, gsm, and evdo are diff network types Feb 02 01:49:26 yea, but here in Lebanon for example everyone is GSM Feb 02 01:49:31 you typically have GSM+UMTS and CDMA+EVDO Feb 02 01:49:37 but LTE can go with either Feb 02 01:49:47 and the way you measure signal strength varies between them Feb 02 01:50:00 I will only check for 0 Feb 02 01:50:04 completely dead Feb 02 01:50:51 0 is not completely dead Feb 02 01:51:05 0 means the signal strength is low enough that it's no longer worth measuring Feb 02 01:51:14 but it's still connected Feb 02 01:51:44 you are not likely to run into someone in this channel more knowledgeable with the signal strength apis than me :P Feb 02 01:51:58 the arrogance Feb 02 01:51:59 quite a rare topic Feb 02 01:52:17 your biggest problem is likely to be oem implementation Feb 02 01:52:30 those apis dont appear to be easily testable through CTS Feb 02 01:52:32 or something Feb 02 01:52:33 i dunno Feb 02 01:52:38 coming from someone that has a derpy shared prefs implemention Feb 02 01:53:06 SimonVT didn't really disagree with the implementation once i told him what it was for Feb 02 01:53:13 :P Feb 02 01:53:33 Seal of approval right there Feb 02 01:53:38 o/ Feb 02 01:54:15 haha Feb 02 01:57:33 is there a way to get the position of a clicked item from a ViewPager? Feb 02 01:58:03 jda2000, no problem, had the same issue last week ;) Feb 02 01:59:09 i hate when i get distracted, and then i cant remember if i made a new build Feb 02 01:59:36 Or even the view of a clicked item inside of a ViewPager? Feb 02 02:00:46 if you set the click listener to that item, you get the view back Feb 02 02:01:01 OK, so that does work, I was wondering if it would return the ViewPager or not. Feb 02 02:01:15 anyone here use gles2.0 before? Feb 02 02:01:20 http://i.imgur.com/GXRfdgY.gif Feb 02 02:01:25 suppose you write a method checkboxClick( View view ) Feb 02 02:01:35 you can set the onClick in the xml to checkboxClick Feb 02 02:02:20 You handle clicks like you handle them in any other layout Feb 02 02:04:12 It doesn't really make sense for viewpager to handle clicks like e.g. listview handles clicks Feb 02 02:04:35 when I download an app from an app store do I get the resources that my configuration will never use? Feb 02 02:04:45 Yes Feb 02 02:05:18 SimonVT , thanks. Feb 02 02:11:13 well, I'm trying to render using a projection matrix I generated using android.opengl.Matrix's frustumM() method. I copied the actual call to frustumM out of the basicGlSurfaceView code. It renders my mesh just fine, except I have to do a transposeM() on the projection matrix before passing it to my shader or else I see nothing. However, my shader is pretty much identical to the one used Feb 02 02:11:14 in basicGlSurfaceView, but in basicGlSurfaceView, they don't do the transposeM() call. What gives? Feb 02 02:11:36 oh, and if I *don't* do the transpose call, then I don't see anything. Feb 02 02:13:11 also note that right now I'm using neither a model or view matrix. I'm just passing the projection matrix straight into the shader Feb 02 02:16:20 Question, how could I make an ImageButton, which is inside of a ViewPager, change the text of a TextView when it's clicked if the TextView isn't part of the ViewPager. Feb 02 02:16:22 ? Feb 02 02:17:49 fixed the issue. my far plane was wrong :P Feb 02 02:22:50 this http://www.stevenmarkford.com/android-get-signal-strength/ gives me signal strength 0 on my device Feb 02 02:22:56 while it is of course not zero Feb 02 02:25:30 jdawes, if you are in the activity, you can use findViewById( R.id.mytextview ) Feb 02 02:27:41 Joozey: I'm not in the activity, I'm in a fragment which is held by a ViewPager which is then part of the ativity. Feb 02 02:28:21 test Feb 02 02:28:23 Joozey: But I can do getActivity().findViewById()!!!! Just figured that out. Feb 02 02:28:35 Never do that Feb 02 02:28:42 Damn Feb 02 02:28:45 haha Feb 02 02:28:46 Too good to be true. Feb 02 02:28:57 Too, hackish? Feb 02 02:29:19 if you need stuff to happen outside of what the fragment is managing, communicate that to the activity Feb 02 02:29:34 The docs tell you how to do this Feb 02 02:29:41 That's what I initially asked to do. I'll search more. Feb 02 02:41:28 SimonVT: I haven't found it yet, will you be online in 30 minutes? I'm going to go home and do more searching. I assume it has something to do with creating an interface in the fragment to callback to the activity? Feb 02 02:41:53 test Feb 02 02:42:42 hello folks Feb 02 02:43:43 anyone able to see my text? Feb 02 02:45:12 testing Feb 02 02:46:19 ... Feb 02 02:48:54 hello anyone Feb 02 02:50:14 androidquestion: we can see you, stop it Feb 02 02:50:30 if you can join the channel, you can annoy hundreds of people at once... Feb 02 02:51:08 ok thanks Feb 02 02:55:12 question: anyone know why a mapview would be unable to be scrolled - but only when an overlay is visible? can still double click/zoom tho. When no overlays shown, can scroll/pan the map. Recent changes to an AsyncTask and use of ViewTreeObserver have brought about this situation. Thans Feb 02 02:57:19 Hi all, I was wondering if anyone could give me some pointers on creating a custom dialog in this fashion http://imgur.com/pL93Opv Feb 02 02:58:30 xastey I've done some like that Feb 02 02:59:09 which part is not working **** ENDING LOGGING AT Sat Feb 02 03:00:00 2013