**** BEGIN LOGGING AT Thu Sep 13 03:00:00 2012 Sep 13 03:00:23 SimonVT - I've been through several iterations of this Sep 13 03:00:29 and they all seem to perform badly lol Sep 13 03:00:33 well not badly Sep 13 03:00:40 but I know it could be better Sep 13 03:00:49 so for this app https://github.com/f2prateek/Device-Frame-Generator, I'm trying to reduce the size. Right now the total is around 9 mb when compiled, 6.3 mb is just the resources. Any ideas to reduce it? Sep 13 03:00:52 SimonVT: Any idea on a workaround then for this, its driving me crazzzzy Sep 13 03:01:35 Snwspeckle: just launch a new activity, one that wouldnt have the sliding drawer Sep 13 03:01:54 Any way to put preferences in a ListFragment? Sep 13 03:02:02 That would fix my stuff.. Sep 13 03:02:28 Just as another note, users expect settings to open in a seperate activity Sep 13 03:02:43 And not be a part of whatever navigation scheme you use Sep 13 03:03:44 The look and feel of preferences are pretty well defined, and completely managed by the framework Sep 13 03:04:17 Ok so right now I am using ListFragments Sep 13 03:04:38 Basically I have an array and it displays the values of the array dynamically in the list Sep 13 03:05:12 Now how would I assign when a value is clicked, it will launch a new activity? Sep 13 03:07:06 ughh, my participation in android usergroups has got me a lot of gtalk requests and g+ followers Sep 13 03:07:08 Snwspeckle: by overriding onListItemClick Sep 13 03:07:15 but I only just now reaslize who these folks were Sep 13 03:08:47 ron_frown: i thought yes, since 2.2 Sep 13 03:09:10 f2prateek what kinda resources? images? Sep 13 03:09:57 yeah, they're backgrounds and the glare and shadow drawables, but i'm not sure how I would reduce the size Sep 13 03:10:06 *drawables for each device Sep 13 03:10:26 *bitmaps not drawables sorry Sep 13 03:10:48 well they're png, you cuold try higher compression level Sep 13 03:10:54 f2prateek: I don't think I'd bother Sep 13 03:11:05 i'm gonna have to agree with simon Sep 13 03:11:13 it's big, but if it's that rich, it has a right to be Sep 13 03:11:21 Considering your target audience, 9mb is not really an issue Sep 13 03:11:52 thats good to know, thanks Sep 13 03:11:58 what does the app do? Sep 13 03:12:17 does exactly what device art/frame generator by roman nurik does Sep 13 03:12:29 frames the screenshots with device art Sep 13 03:12:33 oh ok Sep 13 03:12:44 nice Sep 13 03:12:52 i'll be using this ;-) Sep 13 03:14:10 cool, might wanna wait for the next update though, I was doing the bitmap processing on the ui thread earlier so you can imagine. Now that I have a better system in place, I forgot my keystore :( been brute forcing it for almost 12 hours now Sep 13 03:14:58 if you have a parallelized brute forcer, amazon cloud gives 750 hours/month free for 1 year with i think the most basic VPS instance Sep 13 03:15:14 you can fire up i think 10 or 20 per region at once Sep 13 03:15:51 people are cracking WPA with mosecrack doing that, sure you could bf your keystore especialyl if the range is limited Sep 13 03:17:15 throw up 75 nodes for 10 hours Sep 13 03:17:50 thanks, i'll look into more advanced stuff if this doesnt go anywhere Sep 13 03:21:55 np Sep 13 03:22:18 i lost a keystore too, and i've implemented a ligth irc client to add into the thing, and ugh Sep 13 03:23:01 it was for an online radio station, and i already replaced their original app that is still on the market cause the original dev is a dip, and the thing crashes on start, so to have to break the cycle again will be annoying Sep 13 03:30:55 :( Sep 13 03:32:28 i have a listview i want to bind to a custom array adapter in a fragment Sep 13 03:32:40 should i bind in onCreate or in onCreateView? Sep 13 03:33:15 your listview doesn't exist when onCreate is called Sep 13 03:33:26 But I usually do stuff like that in onViewCreated Sep 13 03:33:48 i'm thinknig i need to cast the view i inflate in onCreateView and set the adapter, before i return it? Sep 13 03:33:52 oh Sep 13 03:34:34 ah ok, so that's called immediately after oncreateview Sep 13 03:34:42 Yep Sep 13 03:36:09 i guess the reasoning is the view should inflate and return asap in onCreateView, so you do the work post? Sep 13 03:36:31 They're called right after eachother anyway Sep 13 03:36:43 But say you're extending ListFragment Sep 13 03:36:53 Or have your own base fragment which supplies a view Sep 13 03:37:23 Then onCreateView is already handled.. And you'd have to call up to the super implementation, keep a reference to the view, do your stuff, return the reference Sep 13 03:37:34 Instead you can just override onViewCreated and have the view passed to you Sep 13 03:37:35 romainguy you around mayng Sep 13 03:38:32 ah Sep 13 03:38:35 no base fragment here Sep 13 03:38:50 but i'll do it in the onViewCreated Sep 13 03:39:11 It really doesn't matter if you do it in onCreateView or onViewCreated.. Depending on what you're doing, onViewCreated is just cleaner Sep 13 03:40:55 yeah Sep 13 03:45:01 When having a view (such as a fragment), how do I allow a change to an item from the view such as text in a button to persist when the view is destroyed and created again. For example, I have a viewpager and I want the current state of a fragment to be regained when I return Sep 13 03:46:01 Give your views IDs Sep 13 03:50:08 SimonVT: what else do I do. I already have an id for the Layout in the XML Sep 13 03:53:09 I know I could simply increase the OffScrrenpageLimit, however I know I will need to figure this out soon, so I figured I should start now Sep 13 03:54:29 That should be it Sep 13 03:56:08 hmmm Sep 13 03:56:55 So just giving the outer LinerarLayout an id, without changing OffScreenPageLimit should allow the view to be saved when the fragment goes off screen (destroyed) and then comes back Sep 13 03:57:22 You have to give each view you want to save state an id Sep 13 03:58:43 hmmm, every layout and button/component has an id. Must have something else wrong Sep 13 04:16:15 when instantiating a custom arrayAdapter from a fragment, is getActivity().getApplicationContext() an appopriate context to pass to the adapter? Sep 13 04:21:14 Nope, has to be getActivity Sep 13 04:22:21 k Sep 13 04:22:33 is'nt it bad to use an activity as a context for al istview tho? Sep 13 04:22:49 no Sep 13 04:22:53 The listview is tied to the lifetime of your activity Sep 13 04:22:56 because the views are held onto for recycling and can cause a memory leak with the activity Sep 13 04:23:18 View recycling is something your listview does Sep 13 04:23:35 When it is GCd, so are any views it holds Sep 13 04:25:18 hello. In my layout I want one view to take up 2/3 of the space and another below it to take up 1/3. How do I go about doing that? (There is also a status area at the top and ad banner at the bottom but thats not important.) Sep 13 04:25:31 give it a weight Sep 13 04:25:35 or whatever Sep 13 04:25:56 zinx: ah but what is the whatever exactly? Sep 13 04:26:13 enclose them in a container like a relative layout or whatever makes sense in yuor case, and then give them a weight Sep 13 04:26:15 i don't know off hand, but developer.android.com might Sep 13 04:26:22 btw gridview is out because I am at API level 8. Sep 13 04:26:30 you don't need gridview Sep 13 04:26:35 you can do this with linearlayout :/ Sep 13 04:26:46 that too Sep 13 04:26:51 set them both to match_parent Sep 13 04:26:56 (or fill on api 8 i guess?) Sep 13 04:27:10 relativelayout doesn't have weight, speakingcode Sep 13 04:27:15 Only linearlayout Sep 13 04:27:22 err, yeah Sep 13 04:27:34 woops Sep 13 04:27:58 wait Sep 13 04:28:02 so the 2/3 view would have e.g. weight=2.0 and 1/3 weight=1.0? Sep 13 04:28:04 items inside a relativelayout can use wieght, no? Sep 13 04:28:12 http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html Sep 13 04:28:13 interestingly Sep 13 04:28:15 no Sep 13 04:28:18 it is actually called weight Sep 13 04:28:20 so, there you go :x Sep 13 04:28:24 Only direct children of linearlayout Sep 13 04:28:33 oh ok Sep 13 04:28:42 hmm Sep 13 04:28:45 relative layout can do it other ways Sep 13 04:28:48 fair enough Sep 13 04:28:55 i just rememberd the password for my keystore!!! Sep 13 04:29:03 nice f2prateek Sep 13 04:29:13 oh my :p Sep 13 04:29:17 what would be the way with realtive? Sep 13 04:29:24 What was it? We'll keep it safe for you Sep 13 04:29:33 "enclose them in listview and se weight" Sep 13 04:30:42 SimonVT: haha I'm almost tempted to. But its going in lastpass for now :) Sep 13 04:30:45 speakingcode: i wouldn't use a relativelayout for this particular situation. Sep 13 04:31:41 good point Sep 13 04:32:11 damn i am noobsauce Sep 13 04:32:58 wait is it weight or layout_weight? Eclipse doesn't seem to recognize the former. Sep 13 04:34:21 ah weight is for code. layout_weight in xml. Sep 13 04:37:13 layout_weight means LayoutParams.weight Sep 13 04:45:33 I am trying use CirclePageIndicator from viewpagerindicator, circles are appearing at top instead of at bottom as shown in demo app. how do I make it aligned to bottom ? Sep 13 04:46:06 Put it at the bottom of your layout Sep 13 04:46:40 when this week is over... life will be much better Sep 13 04:46:48 oops, right! Sep 13 04:47:00 Is there any way to get the (err...?) base resource from xml? Say I have some string values in res/values/strings.xml and res/values-es/strings.xml and I want the unlocalized string Sep 13 04:47:54 Thanks SimonVT. Sep 13 04:48:48 Nope, saik0 .. not unless you want to manually unzip your apk and parse your xml Sep 13 04:49:50 You could probably also change the locale at runtime Sep 13 04:51:50 I'm thinking what I'll do is along the lines of res/values/strings.xml: Foo @string/foo and then localize foo Sep 13 04:52:24 oops, @string/base_foo Sep 13 04:53:42 Why dont you want to localize your entire app Sep 13 04:55:04 Does anyone know what libchinesetrace.so is meant to be / do? Sep 13 04:55:08 It's sitting under /system/lib and it contains symbols for everything, from strcat to printf Sep 13 04:55:11 SimonVT: I'm consuming a json webservice that uses string constants for some fields Sep 13 04:55:16 google search only shows it up in pastebins Sep 13 04:56:17 Why not just make them constants in java Sep 13 04:56:30 Have to do string comparisons in english then display to user localized Sep 13 04:57:12 saik0: remember to use correct comparison Sep 13 04:58:35 btw I did get get it working in the end but here is a curious thing. the 2/3 view had to have a weight of 1.0 and the 1/3 2.0. Which is a bit counter-intuitive right? Sep 13 04:59:41 I think you're confusing something then Sep 13 04:59:50 jaldhar: Not really, 1 + 2 = 3 Sep 13 04:59:50 It's the other way around Sep 13 05:00:45 Oh hmph. Misread that. Need moar coffee. Sep 13 05:04:41 SimonVT: I'll probably wind up doing some enum based magic. In some other places in the api feilds that are given as string when querying wants it paramaterized in url when updating. Was just curious about getting base xml values without qualifiers from code. Sep 13 05:04:59 Paramaterized as an int* Sep 13 05:13:22 hey guys, can I get some advice? Sep 13 05:13:51 chups: buy low, sell high Sep 13 05:13:52 I've implemented a news reading application using fragments, but I am having problems with displaying the text and images Sep 13 05:14:04 can someone tell me why im getting an error with this import statement Sep 13 05:14:06 import com.google.android.maps.MapActivity; Sep 13 05:14:14 ive made the xml element Sep 13 05:14:19 first problem is speed, it takes a really long time to render Sep 13 05:14:42 and my second problem is creating architecture Sep 13 05:14:45 i get a red line under com.google in eclipse ide Sep 13 05:14:46 kingargon: you don't have the maps library available? Sep 13 05:15:09 oh, i right! Sep 13 05:15:12 you using maven, ant or eclipse kingargon? Sep 13 05:15:18 oh Sep 13 05:15:29 its eclipse Sep 13 05:15:30 anyways Leeds, maybe you can point me to some library Sep 13 05:15:35 i've been searching :/ Sep 13 05:15:52 if it's eclipse then you'll have to import the external jar manually Sep 13 05:16:00 or place the jar file inside bin/ folder Sep 13 05:16:06 chups: probably not, but... a library for what? Sep 13 05:16:19 k thanks Leeds :) Sep 13 05:16:47 for generating my views, basically it arranges paragraphs in a 2x2 manner, or 1x2, or display it as a whole Sep 13 05:16:50 Is it true that you can only set system typefaces in a style? Sep 13 05:16:52 like a normal newspaper application Sep 13 05:16:56 er, no, you do that yourself Sep 13 05:17:04 okay :/ Sep 13 05:19:23 I was able to use a supplied font by setting a textview's attribute in code, but now I'm using a FlipView for a bunch of textviews, and I'm trying to have their typeface set without finding and iterating through them all. Sep 13 05:19:32 Because that seems like the wrong way to do it. Sep 13 05:21:49 I am trying construct ViewPager with multiple fragments of same type(class) and layout, only content is different but only last page appears at 0th index, all other pages appear blank. any clue? Sep 13 05:22:34 isn't there a template that does exactly that? Sep 13 05:22:39 have a look at that :p Sep 13 05:23:37 wabz, link? plz... Sep 13 05:24:29 start a new project with the latest adt/plugins, and as you go through the project creation settings choose that you want a tab activity with swipe through tabs Sep 13 05:24:52 sorry - actionbar with tabs, not tab activity Sep 13 05:25:14 ok, let me try. thx. Sep 13 05:26:15 I think it has a static inner fragment class Sep 13 05:28:12 hehe http://i.imgur.com/C3quh.png … that was the most boring phone announcement evar Sep 13 05:29:43 Get off reddit, g00s Sep 13 05:29:53 :) Sep 13 05:35:34 g00s you little bitch Sep 13 05:35:55 ron_frown did i hurt your feelings? why so serious ? Sep 13 05:36:04 yeah iphone 5 wtf Sep 13 05:36:21 two guys talked about it for 20 minutes. do you remember how long steve jobs talked about the first iphone? Sep 13 05:36:30 wabz, yes, template example uses inner class fragment and in my case fragment is another main class. I guess it should not matter. (still looking at generated code... ) Sep 13 05:36:58 g00s - done any custom control drawing? Sep 13 05:37:24 ron_frown unfortunately, i'm going to have to do that pretty soon but i find it daunting Sep 13 05:38:03 i need a new viewgroup with animations and stuff, all has to work back to froyo Sep 13 05:39:19 haha Sep 13 05:39:22 good luck Sep 13 05:39:28 animation shit just recently got good =) Sep 13 05:39:34 drag and drop, etc. yeah Sep 13 05:39:41 you can do drag/drop prior Sep 13 05:39:44 android just recently got good :/ Sep 13 05:39:46 but its 100% homebrew Sep 13 05:39:54 yeah Sep 13 05:41:18 I am getting ready to knock out my datagrid, and opensource it Sep 13 05:41:24 "Apple claims that the average iPhone user has more than 100 apps installed on their device." Sep 13 05:41:34 holy crap, i think i have like 2 Sep 13 05:41:36 my dad has a lot and its probably like 20 Sep 13 05:43:16 i've got like 15 Sep 13 05:43:28 BUT HEY! Sep 13 05:43:37 now they have a "BIG" screen for more apps! Sep 13 05:44:42 everybody is going to have to update their app for the 16:9 screen :P Sep 13 05:46:24 Letterboxing is the future of app development Sep 13 05:46:44 it can be pretty easy Sep 13 05:46:50 If anyone was interested in knowing about the custom typeface thing, it appears that this is one workaround: http://stackoverflow.com/questions/10179558/android-how-to-add-custom-fonts-to-theme-style-xml Sep 13 05:46:54 if you did autosizing correctly in the first place Sep 13 05:53:14 the apple method of handling diff screen sizes is... not great Sep 13 05:54:35 lol. I left the android sdk manager download packets over the night and now eclipse refuses to boot. Sep 13 05:55:14 shes a very kinky girl, the kind you dont take home to mother, she will never let your spririts down once you get her off the stree, she likes the boys in the band, she says I'm her all time favorite, when my make my move to her room its the right time, shes never hard to please, that girl is pretty wild now, that girls a superfreak Sep 13 05:55:56 wth Sep 13 05:56:01 super freak man Sep 13 05:56:03 haha Sep 13 05:56:13 man eclipse was all new level of frustratng today Sep 13 05:56:27 ron_frown: what version ? Sep 13 05:56:35 no amount of new project from existing source or importing would actually import one of androids demo projects Sep 13 05:56:46 finally just whipped out idea, and it worked like a champ Sep 13 05:56:54 i think i filed that bug about 2 years ago Sep 13 05:57:12 do you guys get that super frustrating bug in eclipse where you're editing xml and it starts completely messing up the lines? e.g. you start editing one line, and it starts messing up another line, and has the display all wrong? Sep 13 05:57:24 haha coworkers have had that problem Sep 13 05:57:26 not I Sep 13 05:57:35 closing/reopening the file never helps - gotta restart eclipse Sep 13 05:57:42 it gets really frustrating :p Sep 13 05:57:50 man I need this ceiling fan working Sep 13 05:58:06 eg, not shaking itself loose in the night and chopping me up Sep 13 05:58:27 heh, its unbalanced :P Sep 13 05:58:39 yes Sep 13 05:58:43 how many blades ? Sep 13 05:58:48 seems to help me if I open it on the eclipse text editor rather than the xml editor first Sep 13 05:58:58 but I am going to just get rid of it, I have the kind that dont have a part they swing on Sep 13 05:59:04 rigid and fixed to the ceilings Sep 13 05:59:13 no balancing, and more clearance Sep 13 05:59:26 any requests for datagrid Sep 13 05:59:55 I intend on implementing select, multiselect, drag/drop columns for os's that will support it, minimal control-in-cell support Sep 13 06:00:01 sorting Sep 13 06:00:08 eventually auto fetch Sep 13 06:04:54 wabz i get it occasionally Sep 13 06:05:55 it seems eclipse on osx is way better behaved than it is on windows Sep 13 06:06:04 my coworkers complain about how long it takes to make a build Sep 13 06:06:58 ron_frown: http://xkcd.com/303/ Sep 13 06:06:59 :D Sep 13 06:07:18 yeah I saw that one Sep 13 06:07:29 that def could be it too Sep 13 06:09:47 wabz, recent update to adt plugin has fixed xml editing issue for me. I was having same issue in eclipse juno Sep 13 06:10:03 hmm it's definitely happening with the latest too :( Sep 13 06:10:14 it seems to happen on some xml files more often than others Sep 13 06:10:31 i'm on linux Sep 13 06:10:32 solution is idea Sep 13 06:10:34 never had it on windows Sep 13 06:10:37 and idea12 is going to own BIGTIME Sep 13 06:11:12 meh i just don't like the look of idea Sep 13 06:11:21 it's pretty good for android dev now Sep 13 06:11:30 intellisense stuff is way wya way Sep 13 06:11:31 but I do like the layout editor in recent versions of adt Sep 13 06:11:32 way better Sep 13 06:11:42 and i dunno that it has the same level of support for so many broad environments and platforms Sep 13 06:11:43 the layout editor in 12 is NICE Sep 13 06:12:00 I like the little things Sep 13 06:12:07 like looking at a layout xml or theme xml Sep 13 06:12:15 it shows color previews in the gutters etc Sep 13 06:12:25 really good intellisense in xml editing Sep 13 06:13:12 at work i use eclipse for android, formerly BB, php, jaascript, multifacted projects with javaservers, java, javascript, etc... i use it for nesC and tinyOS, Sep 13 06:13:37 it does a lot ok, nothing well =) Sep 13 06:13:40 it has its flaws but it is so general purpose Sep 13 06:14:02 problem is, the eclipse project is having a manpower problem Sep 13 06:14:12 after ibm has stopped working on it Sep 13 06:15:15 failed to load the JNI shared library "C:\Program Files (x86)\Java\jre7\bin\client\jvn.dll". The folder is in path and the file is in there. wtf now. Sep 13 06:15:15 google just donated $20k to the eclipse foundation to help their performance testing … but really, since google's android tools rely on eclipse … one would think they would donate a few engineers or something Sep 13 06:16:06 Program Files (x86) … wut Sep 13 06:16:15 I am sure the adt team contributes some Sep 13 06:17:28 well that's where the java(32bit) installed itself Sep 13 06:17:57 this damn thing worked yesterday but today after android sdk's packet manager had finished downloading doesn't. urgh Sep 13 06:35:13 woah Sep 13 06:35:16 server split Sep 13 06:38:42 off the top of anyones head here, recall what the trick is to have a parameter that would function with either a List or T[]? Sep 13 06:41:47 ron_frown, maybe (T...) ? Sep 13 06:42:53 I thought it was like Sep 13 06:42:56 or something odd like that Sep 13 06:43:12 problem is I rarely see anyone do it Sep 13 06:45:08 oh, hmm Sep 13 06:46:08 shit I dont know, maybe I just cant do it Sep 13 06:46:19 object :) Sep 13 06:46:47 ball Sep 13 06:46:48 balls Sep 13 06:47:10 I can overload the methods, but internally what do I store... I could see people legitimately doing either Sep 13 06:47:26 screw it, I'll overload use Arrays.asList() and store as list internally Sep 13 06:47:38 depends on your needs Sep 13 06:48:25 i generally lean toward a List or ArrayList unless it's a heavy use algorithm that would perform better in an array Sep 13 06:48:40 no resizing but need fast indexing for instance Sep 13 06:49:46 for what I am doing, MOST cases will be minimal data Sep 13 06:50:12 oh hmmm wait ArrayList access is constant Sep 13 06:50:19 ron_frown: maybe you just need Iterable ? Sep 13 06:51:41 oh, maybe that won't work Sep 13 06:51:46 goddam java sucks balls Sep 13 06:51:53 haha Sep 13 06:52:01 array appears to be pretty primitive Sep 13 06:52:03 oh well Sep 13 06:52:04 haha Sep 13 06:52:07 my overload crap will work Sep 13 06:52:13 it's good at what it's good at Sep 13 06:52:29 its good at a lot imo, the language conventions could be improved Sep 13 06:52:37 puts a lot of burden on the programmer, but it's safe and tight Sep 13 06:52:58 by burden i mean, t's fucking verbose and boilerplate heavy Sep 13 06:53:07 i like things crazy and loose though Sep 13 06:53:08 try scala Sep 13 06:53:43 know of it? Sep 13 06:55:40 anyone with recommendations of fetching a property value by name of property? =) Sep 13 06:56:09 depnds on the property and what you're fetching from Sep 13 06:56:16 shit Sep 13 06:56:31 I think I may have just had a stroke of genius =) Sep 13 06:56:42 doubt it Sep 13 06:56:46 HAHAHA Sep 13 06:56:51 ^^ Sep 13 06:56:54 :) Sep 13 06:57:00 you damn lurker Sep 13 06:57:10 yeah my iq test unfortunately didnt rate me in genius range =( Sep 13 06:57:14 Drager has been reading silently for hours waiting on his chance to strike Sep 13 06:58:21 :D Sep 13 06:58:52 Not really, just went to work and started irc and saw my chance ;) Sep 13 06:59:42 ah. well i find it weird theres like 700 people in this room at all times and it's usually pretty quiet. makes me feel monitored Sep 13 06:59:52 so the new ipod dock connector doesn't have high quality line out any more. Sep 13 07:00:19 that is peculiar Sep 13 07:02:14 "Not only will it get to keep charging accessory makers a licensing fee to connect with its devices, but it will also be able to reject any accessories that it doesn’t like. And one day in the future, it will be able to decide, once again, to throw the whole industry under the bus by changing the dock again." Sep 13 07:02:24 heh Sep 13 07:02:52 closed model. can be a blessing and a curse. usually a curse in the long rn Sep 13 07:03:14 i don't know why industry put up with their bullshit so long in the first place Sep 13 07:03:40 i grew up with a c64 that was , not really open or closed. controlled by one company, proprietary i guess, but open. Sep 13 07:08:42 ron_frown: you work on your own vehicles, right ? Sep 13 07:08:50 yes sir I do Sep 13 07:08:59 and you have a dodge truck, correct ? Sep 13 07:09:05 yes sir I do Sep 13 07:09:18 how long (years or miles) do you think an IAC should last ? Sep 13 07:09:48 theoretically forever... but I have seen them go out Sep 13 07:09:57 very very common problem on hondas =) Sep 13 07:10:15 i keep having mine go out like clockwork like every 4 years Sep 13 07:10:22 wtf... what kinda vehicle Sep 13 07:10:22 oh , my truck is 96 :) Sep 13 07:10:30 err, 97 dodge dakota Sep 13 07:10:45 my truck is a diesel, and it doesnt have that but I've owned two other rams, and a dakota Sep 13 07:10:55 v6 or v8 Sep 13 07:10:58 v6 Sep 13 07:11:05 its balls Sep 13 07:11:06 hahah I had that very truck back in the day Sep 13 07:11:19 regular cab 4x4 Sep 13 07:11:31 no ac =( Sep 13 07:11:31 regular , 2wd Sep 13 07:11:43 heh, my ac is broken --- in phoenix :/ Sep 13 07:12:16 well that motor is actually particularly problematic... (not for iac specifically)... Sep 13 07:12:29 you got a nice clean air filter? Sep 13 07:12:33 can someone tell me why this lat and long points to china in google maps api? 32.80 , 96.79 Sep 13 07:12:47 i want it to point to Dallas, Texas Sep 13 07:13:06 cause it's china? Sep 13 07:13:12 ron_frown: not sure, have to check Sep 13 07:13:22 how to i calculate the lat and long for Dallas than? Sep 13 07:13:23 You may have to move Greenwich London to Arizona, brick by brick, in order to make that happen Sep 13 07:13:35 thats about the only thing I could think of... if that sensor makes contact with inbound air, thats about the only cause I could think of Sep 13 07:13:53 on my truck, I have emissions shit which basically dumps diesel smoke back into my intake Sep 13 07:13:58 causes a whole mess of problems Sep 13 07:14:24 kingargon Sep 13 07:14:29 pull up google maps Sep 13 07:14:33 type dallas Sep 13 07:14:34 is there a way to get the lat and long for Dallas? i googled it and it gives me China's coordinates Sep 13 07:14:41 k Sep 13 07:14:56 apparently they can be cleaned, and its location etc should make that a very easy task Sep 13 07:15:15 my dakota pinged like a mf... sounded like someone threw a bunch of pennies into my engine intake Sep 13 07:15:18 im seeing Dallas but no coordinates Sep 13 07:15:31 ron_frown: yeah, can be cleaned … not easy to get out - need torx and the bit driver version (not enough room for the screw driver) Sep 13 07:15:44 Well from google maps, right click the point on the map, and go "what's here?" from that menu, then you see the coords in the search bar Sep 13 07:15:50 ron_frown: yeah, mine pings too Sep 13 07:16:02 Dallas is about 32.75, -96.8 or so Sep 13 07:16:09 :)) Sep 13 07:16:11 thanks! Sep 13 07:16:17 dallas is -96 Sep 13 07:16:19 you have positive Sep 13 07:16:32 btw there is also a labs plugin for google maps where you can drop a pin, and click on it for lat/lng Sep 13 07:16:47 you're literally on the opposite side of the world. you dug a hole from dallas to china :-D Sep 13 07:17:20 lol, awesome Sep 13 07:17:25 Not really, speakingcode - He's found the Dallas of Mirror Earth Sep 13 07:17:36 if you click the link button in maps, you will get the lat/long Sep 13 07:17:38 THe one you get when you reflect in the Greenwich Meridian Sep 13 07:17:42 no labs required Sep 13 07:17:47 thanks again guys! Sep 13 07:17:54 nod, ll= is the lat/long param Sep 13 07:18:31 would that not be the opposite side of earth? hmm oh well i guess not, do Sep 13 07:18:33 doh* Sep 13 07:19:24 Well consider what would happen at 5, 1 and 5, -1, say Sep 13 07:19:30 +180 would be the opposite Sep 13 07:19:56 You'd have to +180 the latitude, and negate the longitude Sep 13 07:19:59 or well, +180 % 360 Sep 13 07:20:24 it's 3 am Sep 13 07:20:26 not the time for this Sep 13 07:20:28 Or rather the opposite. +180 long, negative lat Sep 13 07:20:53 there it is Sep 13 07:21:07 damn spherical geometry Sep 13 07:21:20 Presumably you're developing software. 3am is definitely the time for it. It may, or may not, also be the time for more caffeinated beverages though Sep 13 07:21:47 well i work 9-5 and have been developing software since 9 yesterday Sep 13 07:22:04 got off work and went straight into my own project Sep 13 07:25:58 heres a bug i've been getting with eclipse Sep 13 07:26:09 it will keep saying the last } is invalid and to remove it Sep 13 07:26:29 started the other day and been getting it often Sep 13 07:26:47 if i remove it, it will point the error to the next one and so on Sep 13 07:27:15 had to identify... Sep 13 07:27:20 if i cut every line from th file so it's blank, it will say it about an empty line Sep 13 07:27:20 do you have a newline after it? Sep 13 07:27:27 or maybe a messed up file you are including? Sep 13 07:27:41 invalid token }, delete this token on an empty file... heh Sep 13 07:27:51 because those errors usually come from way back from some other file Sep 13 07:28:01 nah it's just a glitch Sep 13 07:28:07 if i close and reopen eclipse it will vanish Sep 13 07:28:08 alright Sep 13 07:28:37 sometiems clean will get it too but not this time Sep 13 07:29:00 grrr Sep 13 07:29:17 I'm still wondering if it might be caused by some messed up file it loads for the dynamic tooltips or something... notice any pattern after which it starts? Sep 13 07:30:05 hi. please tell me why when I add the click listener in this code i get null pointer exception; and when I don't, it displays the textviews in the gridview . this kind of display is what I want : textviews inside a gridview. thanks Sep 13 07:30:30 if it would be that, maybe clearing eclipse's cache and profile would help Sep 13 07:30:30 this is the code http://pastebin.com/ghvY6xbh Sep 13 07:30:35 seems to happen when i actually do have the error, like if i paste in a snippet of code with an extra bracket Sep 13 07:30:54 but when i remove the extra it will complain about the next one and so on Sep 13 07:31:12 this is a good way to learn careful coding then :p Sep 13 07:31:14 when it first happeend i played with it, and deleted line by line till the file was empty Sep 13 07:31:43 and you've tried saving the file after modifying it, right? Sep 13 07:31:59 g00s have you ever done decarbon on yours? yours is what... 3.9? Sep 13 07:32:01 or the others it includes stuff from Sep 13 07:32:19 ron_frown: yeah, 3.9 . never tried decarbon Sep 13 07:35:46 ron_frown: here is what is weird; every time the IAC went out, the truck would /also/ stall when the engine was running. eventually it just lost power, stalled, and that was it - stranded. does that even make sense? i totally unplugged mine and i was still able to keep the engine running on idle. Sep 13 07:36:07 running under load, that is - like going up a hill Sep 13 07:36:32 yeah, its a shit design Sep 13 07:36:52 if the sensor is reading haywire, it could be doing all sorts of stuff... I wouldnt expect the failsafe to kill engine, but ya never no Sep 13 07:37:40 do fragments need to be decalred in manifest? Sep 13 07:37:43 every now and again, I'd take off airhat, fire truck up... let it warm up a bit, open throttle blades ever so slightly, trickle a half a dixicup of water into the intake Sep 13 07:37:51 effectively steam cleans the inside of the motor Sep 13 07:37:54 just dont POUR it in =) Sep 13 07:38:05 speakingcode: no Sep 13 07:38:06 pillq yeah, i played with it throughly, it's def a bug Sep 13 07:39:37 anyone had a problem adding external jar from the lib folder Sep 13 07:39:45 eclipse cant seem to find the classes Sep 13 07:39:48 ? Sep 13 07:40:21 i think it is libs now Sep 13 07:40:34 yes, now it is called libs Sep 13 07:40:54 oh if i am usinf support library Sep 13 07:41:00 phahahah Sep 13 07:41:04 i need to use FragmentActivity instead of Activity, yeah? Sep 13 07:41:05 fock Sep 13 07:41:44 speakingcode: if you use/need fragment activity, yes Sep 13 07:42:29 if you only use for viewpager or other not fragment specific, you no need Sep 13 07:45:14 Can you have an options menu in Android 1.5? Sep 13 07:46:34 hi. please tell me why when I add the click listener in this code i get null pointer exception; and when I don't, it displays the textviews in the gridview . this kind of display is what I want : textviews inside a gridview. thanks. this is the code http://pastebin.com/ghvY6xbh Sep 13 07:47:11 pretty fucking sad when I knocked out majority of my datagrid in a complete rewrite, and done better Sep 13 07:47:34 in about 2 of focused work =) Sep 13 07:49:51 haha Sep 13 07:49:52 hours Sep 13 07:49:53 wow Sep 13 07:52:06 does anyone know if "E/SurfaceFlinger( 4074): texture=164, using format 17, which is not supported by the GL" relates to the PixelFormat of a View? Sep 13 07:53:49 I guess not. I wish I would have know that before I typed all that crap Sep 13 07:54:01 I guess a button with dialogs it is Sep 13 07:54:43 known* Sep 13 07:56:28 how to start Activity - with autodestroying the same? Sep 13 07:57:12 only one Activity in stack Sep 13 07:57:47 maybe add some flags to intent or fields to Activites in Manifest? Sep 13 07:58:46 Hi. I create a Fragment with a TabListener (like in the API samples) but if I implement the onCreateView in the Fragments I get "The specified child has already a parent". Here's the Activity and a sample Fragment: http://pastebin.com/DfyBxWub Sep 13 08:04:06 lets see how shitty java's reflection s Sep 13 08:04:07 is Sep 13 08:07:25 using support library can i put in xml Sep 13 08:07:32 or do i need to reference the package name Sep 13 08:11:08 hellooo Sep 13 08:11:09 to all Sep 13 08:11:20 i need little help Sep 13 08:11:37 about events for volume + and volume - Sep 13 08:11:44 how i can catch this events ? Sep 13 08:13:32 help me plssss Sep 13 08:13:33 :D Sep 13 08:15:15 @Override Sep 13 08:15:15 public boolean onKeyDown(int keyCode, KeyEvent event) { Sep 13 08:15:15 if ((keyCode == KeyEvent.KEYCODE_VOLUME_DOWN)){ Sep 13 08:15:15 } Sep 13 08:15:15 return true; Sep 13 08:15:16 } Sep 13 08:15:38 demonoid_com: my last entry was for you... check it Sep 13 08:17:54 em sorry for pasting code out here... I didn't know about the rules... Sep 13 08:18:01 here i go... http://pastebin.mozilla.org/1819340 Sep 13 08:31:27 Clandestine:but via bluetooth :) does't work :( Sep 13 08:31:56 Clandestine:i need catch voluen on bluetooth Sep 13 08:59:06 is there a way to render views in the background? Sep 13 09:03:53 how to start Activity with auto-removing from stack copies? Sep 13 09:04:30 if exists A -> B -> remove A and start A Sep 13 09:05:56 FLAG_ACTIVITY_REORDER_TO_FRONT (and singleTop) now working A stay in stack when starting again Sep 13 09:06:00 new A Sep 13 09:31:33 Why isn't there https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/HttpHeaders.html in android? I'd like to set the content type header. Sep 13 09:35:47 I'd like to make my app connect to another device using the hotspot feature, and this way to send messages between them two. can anyone give me a direction / has a referrence to such a thing ? Sep 13 09:37:32 how to start Activity with auto-removing from stack copies? if exists A -> B -> remove A and start A. FLAG_ACTIVITY_REORDER_TO_FRONT (and singleTop) now working A stay in stack when starting again Sep 13 09:41:16 what id should I use to notify() an PendingIntent notification? Whatever I use, a 2nd notification is added. I would like the existing one updated... Sep 13 09:45:28 let's give up the hotspot for now. how can I exchange messages between two devices whom are connected to the same local wifi(/router)? Sep 13 09:46:07 seadd you may use any standard protocol Sep 13 09:46:49 if you need the devices to discover each other, you can use udp multicast and then create something like a tcp connection Sep 13 09:47:19 there is also an api called anymote, but i have never tried it. It is unidirectional Sep 13 09:51:18 thanks olivier_b Sep 13 09:53:36 can you refer me maybe to such an example project please? im finding it hard to look for. google doesn't get me good results. I might not be too specific about it Sep 13 09:57:38 seadd: dont have something like that, but you may google for something like "udp autodiscovry" Sep 13 09:58:47 Hello colleagues... I am having sort of a dire problem (follows): Sep 13 09:58:49 thanks again Sep 13 09:59:07 I am synchronising with a backend server using HTTP Protocol with HTTP Client. Sep 13 09:59:44 I noticed, that if my server temporarily stalls, then the HTTP Client repeats the request multiple times! Sep 13 10:00:20 That results in many copies of the synchronisation data being processed once the server takes up to speed. The result is horrible! Sep 13 10:00:40 Can I forbid the repeating? Sep 13 10:00:49 Do some sort of unique ID code for the the data? Sep 13 10:01:32 Jak_o_Shadows: This means I am still going to have the network traffic multiplied! A solution, but only half... Sep 13 10:02:06 Jak_o_Shadows: Mobile traffic is still a concern. Sep 13 10:31:45 hi. in eclipse , is there a go-to-line-number tool? I need to move the cursor without moanual counting Sep 13 10:34:12 does anyone know how to sync the own attendee status in the calendar properly? Sep 13 10:34:38 <[A3G15]> \:D/ Sep 13 10:34:42 if I just insert an entry into calendarcontract.attendees, I just get myself in the attendee list, but the "attending?" thingie still isn't filled out Sep 13 10:34:46 <[A3G15]> Clandestine Sep 13 10:34:46 <[A3G15]> Clandestine Sep 13 10:34:47 <[A3G15]> Clandestine Sep 13 10:35:04 [A3G15]: hmm? Sep 13 10:35:18 <[A3G15]> nothing just checking his highlight Sep 13 10:36:10 do it somewhere else, maybe Sep 13 10:45:12 Hello World Sep 13 10:48:18 I need to set in the xml layout for the scrollview to scroll in the opposite way. to scroll down i must drag down Sep 13 10:51:01 I've created a dialog box and would like to display the icon titled 'ic_dialog_alert' as shown here 'http://docs.since2006.com/android/2.1-drawables.php . However when I write this line of code --> builder.setIcon(R.drawable.....); I don't see 'ic_dialog_alert' anywhere... I know that I've used other ic_blah_blah icons in the XML layout by pointing to @android:drawable/ic_blah_blah. What Sep 13 10:51:01 should I do to show 'ic_dialog_alert' in the dialog box? Thank you! Sep 13 10:57:19 It looks like I should've been looking for it at ---> android.R.drawable.ic_dialog_alert :-) Sep 13 10:57:52 sombody have any ideas how i can use AT command ? Sep 13 10:58:20 sombody have any ideas how i can use AT commands ? Sep 13 10:59:26 adb service AT ? or some else? Sep 13 11:03:49 i need send AT command for volume Sep 13 11:03:57 of my BT Sep 13 11:25:35 If you guys have a second o two, can you look at my question posted on SO. http://stackoverflow.com/questions/12405076/get-data-from-fragmentactivity-with-viewpager-to-fragmnet-after-api-response Sep 13 11:33:32 hi Sep 13 11:33:53 how do i set the activity i want to catch a onclick leith? Sep 13 11:33:59 with*** Sep 13 11:37:20 how do i set the activity i want to catch a onclick with? Sep 13 11:37:33 any idea how to trust all certificates in a SSLContext ? Sep 13 11:50:34 hello, how can I make a listview with all the names+emails? I was told not to use contactpicker and instead use a simplecursoradapter + contentresolver, does this sound correct? Sep 13 11:52:27 anything wrong with this line? String[] stringArr = list.get(i).split("("); Sep 13 11:52:39 I'm getting : 09-13 13:49:59.298: E/AndroidRuntime(1458): java.util.regex.PatternSyntaxException: Incorrectly nested parentheses in regexp pattern near index 1: Sep 13 11:52:49 im scared Sep 13 11:52:57 parentheses need to be escaped Sep 13 11:54:57 Snuffel: you sure? I get error if i try: .split("\("); Sep 13 11:56:30 Snuffel: nm, missed one \ :) now it works. But if i remember correctly from my brief java experience parentheses did not need to be escaped Sep 13 11:57:57 r0yalty: in Strings not, but in RegExps yes Sep 13 12:00:13 got ya Sep 13 12:00:14 thanks Sep 13 12:10:44 hi. what's the reason behind using string.xml for string values, instead of using direct string setting in the layout? Sep 13 12:10:46 http://pastebin.com/6vawJ3at explain Sep 13 12:10:59 superlinux-hp: To make translating easier? Sep 13 12:11:10 and to shut eclipse up. Sep 13 12:11:11 really? Sep 13 12:11:21 ah ok Sep 13 12:12:44 hi guys. Sep 13 12:12:46 oh i need to use getDeclaredFields Sep 13 12:13:00 anyone have xp in using HTC one with mac? Sep 13 12:22:40 hi Sep 13 12:22:59 anyone knows how to use an HTC One for debugging in Mac? Sep 13 12:23:04 with Eclipse Sep 13 12:23:48 thepoosh: what do you mean? Just connect through usb and Eclipse should find it no? Sep 13 12:24:19 and usb-debugging is enabled on the phone? Sep 13 12:26:08 aksu: yes it is Sep 13 12:32:34 can i hijack messages on the ui-thread messagequeue? Sep 13 12:33:01 stork: do you want to register to a certin message? Sep 13 12:33:09 i suppose so Sep 13 12:33:19 well then, try using intent filter Sep 13 12:33:40 i thought they only worked for broadcast intents? Sep 13 12:38:10 hello, I am using asynctask to load some data from internet but it takes long, I have app on iphone that uses same data from the same wifi iphone fetches 2x faster then android does. is this common problem or is there other way I shall use for getting data? Sep 13 12:41:17 Hello. May I ask if there is a free available open source application like whats-up with encryption? (on the client and server side) Thank you in advance for any hints. Sep 13 13:19:01 heyup Sep 13 13:19:07 anyone home? Sep 13 13:20:00 want to upload an app to google play, do i need to create a special release version? Sep 13 13:20:04 still no progress on loading bitmaps from urls in database into a gallery using recycling adapter... :( Sep 13 13:20:16 or is there no release / debug version? Sep 13 13:21:22 anyone advice me please Sep 13 13:21:37 just tried to upload my apk Sep 13 13:21:47 says an unexpected error occured Sep 13 13:21:51 please try later Sep 13 13:21:55 how can that be? Sep 13 13:22:06 do i need to do anything special to make my app? Sep 13 13:22:40 am i missing something? Sep 13 13:23:02 you need sign with your key Sep 13 13:23:25 debug versions signed with android debug key Sep 13 13:23:29 ah right, thanks Sep 13 13:23:33 hi all Sep 13 13:24:04 my key is from the google play developer console? Sep 13 13:24:12 can someone tell me how apps work. when switched are they paused or are they still a running job? do only services run in the bg & ? Sep 13 13:24:14 where do i copy and paste it to? Sep 13 13:24:54 only been on android for a few days now, but working on scripting under tasker, and dont want to blow up my battery. thanks. Sep 13 13:26:19 sideone: http://developer.android.com/guide/components/fundamentals.html Sep 13 13:26:34 technically only services should run in the background but threads can run too. Sep 13 13:26:47 activity managers are generally anathema to Android, and are only necessary because of shitty apps Sep 13 13:27:45 activity manager? Sep 13 13:27:52 er Sep 13 13:27:55 task managers Sep 13 13:27:59 derp Sep 13 13:28:16 point is, killing apps without knowing what you're doing is usually the wrong idea. Sep 13 13:28:26 lov; is that like a -9 ? Sep 13 13:28:46 basically. Sep 13 13:28:54 there's no "gentle" shutdown when you use a task manager. Sep 13 13:29:15 I have a two fragment layout, currently my actionbar tablistener will take care of my left fragment, how would i modify it to accept two fragments? Sep 13 13:30:25 currently i'm just taking care of the right fragment from the ontabselected function, getting a reference to the fragment, and detaching it, i want to clean up the code a bit. Sep 13 13:31:23 im used to perl and sh, but i found tasker which looks awesome. i was wondering if anyone in here has used it before? Sep 13 13:31:31 and what your thoughts were? Sep 13 13:32:24 tasker is a really neat app, you should definitely play around with it Sep 13 13:32:40 I just caution against killing processes willy nilly Sep 13 13:37:42 Is there an intelligent way to place a view at 75% of its parents height? Sep 13 13:44:48 yeah i just want tasker to control my bt a bit better Sep 13 13:45:09 i just found out i can load 2 bt profiles at the same time! one for media, and another for phone audio Sep 13 13:45:11 awesome! Sep 13 13:46:23 sideone: if you're not writing application code, you might want to discuss tasker in #android Sep 13 13:46:27 just need to control the connections better. like if nfc = car & power is connected then check active bt connections, if 1 not found scan or notify and run the loop. or are there watchdog apps? Sep 13 13:46:35 lov; oh im sorry Sep 13 13:46:54 sorry, ill scoot back there. Sep 13 13:46:58 mind if i idle? Sep 13 13:48:41 hey guy, i need this http://saigeethamn.blogspot.de/2010/05/gallery-view-android-developer-tutorial.html to serve my images from urls in a database, how to? Sep 13 13:49:25 hi, there is sth. wrong with my eclipse, if i delete it and download another, must i reinstall the adt? Sep 13 13:52:34 i cannot create a greater Bitmap array than 3 to serve to my gallery because of memory. how would you solve this? Sep 13 13:53:01 thumbnails Sep 13 13:53:21 reuse bitmaps, only allocate memory for used bitmaps Sep 13 13:53:37 ixc do you know a good tutorial for this? Sep 13 13:53:53 i have tried a lot... Sep 13 13:54:55 start here: http://developer.android.com/training/displaying-bitmaps/index.html Sep 13 13:55:33 hey guys, any ideas on optimizing fragments? mine is too slow T_T Sep 13 13:55:35 can i replace textview.marquee with my own implementation at runtime using reflection? Sep 13 13:55:45 like it would take 1 minute for the views to generate Sep 13 13:55:55 and there's nothing i can do since it's on the UI thread Sep 13 13:56:26 hi there, how do i get context from within a onclicklistener when all i have is the view Sep 13 13:56:47 ixc: thanks, would you still use gallery or do you recommend something else? i have tried romain guy's https://www.youtube.com/watch?v=UApv-ZMJ51g, but i cannot get it to load the bitmaps at all Sep 13 13:57:59 that means, i have a database with urls and i want to load them only, when they are visible... Sep 13 13:58:57 how do i get context from within a onclicklistener when all i have is the view Sep 13 13:59:19 (noob question :() Sep 13 13:59:26 where you set up ur onclicklistener? Sep 13 13:59:32 in a activity? Sep 13 13:59:51 you can use MyActivity.this Sep 13 14:00:14 or you can pass context; or get application context, etc Sep 13 14:00:37 i cannot aces my application object from the adapter Sep 13 14:00:40 sideone: idling is just fine Sep 13 14:00:45 hey! Sep 13 14:00:48 that worked Sep 13 14:00:52 thanks Sep 13 14:01:21 Chronos__: http://developer.android.com/reference/android/view/View.html#getContext() ...... Sep 13 14:01:21 now i have another issue with buttons and activities Sep 13 14:02:07 lov is right, use getcontext Sep 13 14:03:17 thank you ++ Sep 13 14:04:35 use application context > activity context Sep 13 14:05:08 i have an activity lets say B which draws a graph in a view on another activity A Sep 13 14:05:53 A has buttons on it, which i suppose the onclick listener doe not see once B is called as it throws a cannot find method Sep 13 14:15:56 Chronos__: please don't modify views across activities. Sep 13 14:16:08 At best this is an antipattern. More likely, you're going to find new and exciting ways to leak memory or crash. Sep 13 14:20:02 so I should implement everything in one class? Sep 13 14:20:17 Thank you for the idea, im using a graphing library Sep 13 14:20:20 that seems like the wrong conclusion Sep 13 14:20:39 that's really not what you should do at all. Sep 13 14:20:49 just not another activity Sep 13 14:21:38 ps. is there any way of watching for memory leaks? Sep 13 14:21:52 consider saving your result from Activity B to a bitmap, which you either cache in memory in a static variable or which you write to disk, and then referencing that bitmap directly with A. Sep 13 14:22:03 there are entire articles about this Sep 13 14:22:11 I'd recommend searching for "memory leak" on d.android.com Sep 13 14:23:57 is there a way to attach a currently active View to a new ViewGroup? something like "oldgroup.removeView(view); newgroup.addView(view);" ... Sep 13 14:26:20 I think you just nailed it Sep 13 14:41:22 anyone know how / where i can get the search_spinner from android? Sep 13 14:41:42 i see it in my platforms level 10 resources but i cant access it doing @android/drawable Sep 13 14:41:56 and i tried importing the drawable, but it says framesCount and framesDuration are invalid android properties Sep 13 14:42:58 In all the documentation on WebView, it refers to the "host application"…This just refers to the app that is currently hosting this WebView? Sep 13 14:43:03 Hello Sep 13 14:43:10 I am Japanese Sep 13 14:43:17 I live in Japan Sep 13 14:44:50 Hey guys, is there any solution to lock a webview, like it is disabled and no one can click on anything? Sep 13 14:44:56 I am Android developer Sep 13 14:46:29 my applications has about 60 and more Sep 13 14:47:11 d4gg3r: you can override ontouch event (if you mean this) Sep 13 14:49:52 yeah Sep 13 14:49:58 but i think better way make ur webviewclient and setup shouldoverrideurlloading Sep 13 14:50:02 but I need to set it back to normal after a while Sep 13 14:50:27 hi guys Sep 13 14:50:34 in some times I need to disable the view so that the user cannot continue using the app Sep 13 14:50:38 i just found out that html parsing takes a really long time on android Sep 13 14:50:47 do you think I can lock the whole activity interface? Sep 13 14:50:49 care to point me into some direction? Sep 13 14:50:59 Hey, my app is working on android 4.1 and 4.0 but i get this error when I launch on Android 2.3 http://pastebin.com/qvX0DXfe Does anyone know what it means? Sep 13 14:53:09 your resource not found or it is not valid? Sep 13 14:53:10 When i try to run it on an emulated Android 2.2 device: http://pastebin.com/2B5bGM9U Sep 13 14:53:37 ixc: I don't even know what resource it is refering to. Sep 13 14:54:11 Ankhwatcher: uhm, isn't it obvious in the second error message? Sep 13 14:54:18 looks like a divider_horizontal_bright_opaque Sep 13 14:55:00 hrnt: that's part of the OS source, does that mean that the emulator is running with all it's libraries? Or am I supposed to copy these things out of source? Sep 13 14:55:16 Ankhwatcher: are you referring to that by yourself? Sep 13 14:56:03 hrnt: no I'm referring to android:Theme.Light Sep 13 14:57:32 Ankhwatcher: what is your minSdkVersion and targetSdkVersion? Sep 13 14:57:43 min=8 target = 15 Sep 13 14:58:11 I've got the build target set to 8 to try and make errors come up and there's nothing Sep 13 14:59:15 Anyone happen to know the best way to get an entry in a sqlite db where there is no up front ordering and the entry needs to be an iteration of alphanumeric? Sep 13 15:00:21 I could return the entire table ordered by alpha and just look up what the previous/next entry is but I was hoping I could avoid such a costly call? Sep 13 15:01:18 Ankhwathcer looks like your supposed to copy divider out of the source files since it does not automatically know to look them up Sep 13 15:01:42 lasserix: I tried that, it didn't work Sep 13 15:01:42 When refering to android source usually you don't use your own resource tree, you use the android.R... Sep 13 15:02:01 Just get the source icons and copy that to your folder Sep 13 15:02:21 tbh that second error is probably the emulator being a prick, I'd rather hear some advice about that wierd error I get under 2.3 on my Nexus One Sep 13 15:02:23 I can't remember where the link is but somewhere there's a giant zip file of all those android stock drawables Sep 13 15:03:59 ixc: is this possible to store the default touch handler, and set it back again? do I have to use reflection? Sep 13 15:04:15 I wish this damn SDK manager could run in the background. Sep 13 15:04:24 Not sure what your second error was, but you can't assume android will populate your resources. Sep 13 15:04:46 d4gg3r: im not soure about it is the best way Sep 13 15:05:01 lasserix: Thisi is the one I'm concerned about: http://pastebin.com/qvX0DXfe Sep 13 15:06:25 ixc: do you think setEnabled(false) is gonna work either? Sep 13 15:07:25 Ankh did you search so? one post says you need to add a parent theme in your manifest Sep 13 15:07:46 *not manifest but style Sep 13 15:08:08 lasserix: yep, the style i'm using is just a parent statement Sep 13 15:10:00 Are you usingABS by any chance? Sep 13 15:10:12 hi :) Sep 13 15:10:56 lasserix: not as far as I know, what is ABS? Sep 13 15:11:23 actionbarsherlock, since you were developing from 8-15 Sep 13 15:11:39 sometimes it is easy to forget to apply proper themes with abs Sep 13 15:11:59 lasserix: nah i just drew a simple title bar myself Sep 13 15:12:10 I want to make a MapView application, i follow the doc (api key stuffs...) but i'm not sure about the GoogleAPIs thing. I added the apis in eclipse, but it's not working. So my question is do i have to do something special on my device ? Sep 13 15:12:50 Clouclou: provided the applications are signed with the same key you gave google you shouldn't have any problems Sep 13 15:13:14 make sure you have google the right debug key, and make sure you're using the api key that corresponds Sep 13 15:14:07 actually my error is this: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mycpn.and/com.mycpn.and.HelloGoogleMaps2}: java.lang.ClassNotFoundException: com.mycpn.and.HelloGoogleMaps2 Sep 13 15:18:32 kill -3 saves the day yet again :3 Sep 13 15:20:11 Clouclou: that problem appears to have nothing to do with google Maps Sep 13 15:23:05 Assuming I have no up front ordering available, what's the best way to get the next or previous row entry when ordered alphabetically of a simple list of words? Ie, I have a word table with entries [# is autoinc pk] ...[1]ate [2]zylophone [3]castle [4]aardvark [5]ellipsis... with [3]castle as my current selection, is there any way to return [5]ellipsis from a single, efficient query? Sep 13 15:23:34 *this is a sqlite db I'm talking of Sep 13 15:24:34 if I get an OTG usb cable, can I still use it to connect to my pc and use adb? Sep 13 15:24:47 or is it different from my normal usb cable? Sep 13 15:26:35 Hiraghm: give me a sec and I'll test with my one Sep 13 15:26:43 k thx Sep 13 15:26:57 lasserix: .... huh? Sep 13 15:27:53 Hiraghm: nope, OTG is wired to provide power so the pins don't work the other direction. Sep 13 15:27:54 lasserix: http://developer.android.com/reference/android/database/Cursor.html#moveToNext() http://developer.android.com/reference/android/database/Cursor.html#moveToPrevious() http://developer.android.com/reference/android/database/Cursor.html#move(int) Sep 13 15:28:11 well poop. can't dual purpose it then. Sep 13 15:28:12 I don't really understand what you're asking Sep 13 15:28:14 lov: yeah but that's more expensive than a single query call which is what I was hoping for Sep 13 15:28:18 uh Sep 13 15:28:22 Hiraghm: sadly no Sep 13 15:28:23 why don't you just order your results in your query?.... Sep 13 15:28:39 I could but then I have to pull a cursor with 5000+ entries Sep 13 15:28:47 as opposed to a cursor with a single entry Sep 13 15:28:50 http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.lang.String) Sep 13 15:28:53 thanks Sep 13 15:29:06 Hiraghm: http://www.androidcentral.com/weekend-project-diy-usb-go-old-cables Sep 13 15:29:09 see the "selection" and "orderBy" items Sep 13 15:29:58 lov: thanks! but that's again too expensive, I was hoping for a simplier query call than having to iterate through a cursor Sep 13 15:30:05 lasserix: I'd honestly suggest you go to #sqlite if you want to figure out some sort of fancy query that will allow you to do datastructures like you want. Sep 13 15:30:15 Yeah I did, and got it solved, but thanks! Sep 13 15:30:24 cool. thx Ankwatcher Sep 13 15:30:33 Apparently you can use equality operators with the where selection, assuming you have indexes Sep 13 15:30:46 Hiraghm: my pleasure Sep 13 15:32:07 I've read about people connecting joysticks, keyboards and flash drives to their tablets under 4.1 Sep 13 15:32:23 (currently I don't have a 4.1 device but I'm about to get a Nexus 7) Sep 13 15:33:01 my mouse and keyboard worked out of the box with my Nexus 7 Sep 13 15:33:33 I rooted it to get usb stick support Sep 13 15:43:38 it didn't support it? Sep 13 15:43:53 I liked how TF700 had absolutely no problems with usb drives Sep 13 15:44:05 though I still don't know what they want to use NFS for :D Sep 13 15:49:02 p_l: as I understand it, google new how to do it and put the code to support it in, but then got cold feet and didn't allow it to be enabled. Sep 13 15:52:39 Ankhwatcher: doubtful about cold feet :) Sep 13 15:52:49 or "didn't allow" Sep 13 15:52:57 though a lot of software gets pretty confused Sep 13 15:59:53 Hey all. Anyone know how to get a flipview to stop on a particular view? Sep 13 16:03:59 Sorry, ViewFlipper Sep 13 16:07:26 It looks like it inherits from Viewanimator, so I guess I could poll with getCurrentView(), but that seems wrong. Sep 13 16:09:37 hi, someone already used MediaCodec ? After input few frames, and release their output, dequeueInputBuffer give me a buffer that is too small to contains my next input data Sep 13 16:09:53 and I don't know what to do Sep 13 16:19:46 how do i add multiple filters for logcat? adb logcat-s SomeName:V *:S but now i also want SomeOtheName:V Sep 13 16:23:27 I'm trying to do some conditional behavior based on my fragment backstack (expose a menu, or unwind a users drilldown into content fragments) @ onBackPreseed, I've been trying to do this with getBackStackEntry count, but I keep getting a '0' count.. Oddly, super.onBackPressed still pops my fragment backstack... any idea's/tests would be greatly appreciated Sep 13 16:24:42 I am calling addToBackStack(null) and isAddToBackStackAllowed returns true Sep 13 16:30:29 hi all .. know this is a long shot but .. the htc ace dosen't have a offical release of ics .. if they did would htc post it and where would they post the source ? Sep 13 16:30:34 is it on the thc website or what ? Sep 13 16:30:38 or github Sep 13 16:30:51 crypticmofo: wrong channel... Sep 13 16:31:04 oh Sep 13 16:31:34 I want to lie, shipwrecked and comatose... Sep 13 16:31:45 short answers though: they'd post on it on their website, probably - assuming it won't do an OTA update - and they would only post the source to the GPL bits, on htcdev.com Sep 13 16:31:58 ok thanks Sep 13 16:32:00 Ankhwatcher: not for another week or two, is it? Sep 13 16:32:53 ah, October 4th Sep 13 16:38:18 hrmph, this is going to require that the tablet basically operate 'tethered' to a PC, streaming images to it Sep 13 16:39:02 it looks like the most promising method I can see is just streaming over the network in one form or another, and then using 'adb forward' Sep 13 16:40:35 I see classes like UsbAccessory and such, but I'd think that using those would require too much custom code on the side of the USB host to be too viable Sep 13 16:40:56 whereas if I did it via HTTP or something, I could forward the port over USB and use some more standard tools Sep 13 16:42:40 Here is the full logcat output when running my application on the Nexus One (2.3) I even get this after I removed the styles file altogether. Sep 13 16:43:28 derp: http://pastebin.com/uBjCVQZG Sep 13 16:45:08 damniit how am i signed in Sep 13 16:45:23 i signed out before i left for work, closed the terminal n all. weird Sep 13 16:45:27 /msg nickserv identify Sep 13 16:45:28 Don't you love fragmentation? Makes the simplest things so rewardingly complicated! Sep 13 16:45:47 lasserix: oh yes, it truely is one of life's great joys Sep 13 16:46:33 Really makes you stop and appreciate the work you're doing, instead of moving on to some new, better ultimatly more rewarding project. Sep 13 16:46:56 there we go. well ya, fragmentation can be a pain, but it's nothing new Sep 13 16:47:16 lasserix: Gingerbread is my IE6 Sep 13 16:47:47 before there were different OS's and porotability was the issue. then there was cross browswer etc etc. one thing is for sure, dealing with fragmentation and multiple platforms is a lot les of a nightmare then it used to be Sep 13 16:48:12 Did you take a look at ankhwatcher's stacktrace? Sep 13 16:48:28 nah just signed in Sep 13 16:48:45 Looks maybe not a nightmare, but definatly an eerie shadow in the window before falling asleep Sep 13 16:48:53 speakingcode: please, if you will: http://pastebin.com/uBjCVQZG Sep 13 16:50:00 ohhh yeah uh, they block pastebin at my job Sep 13 16:50:34 speakingcode: that's a nasty thing to do. Sep 13 16:50:51 whois me n u mite understand. but yeah it is. paste it on gist.github Sep 13 16:52:19 http://24.media.tumblr.com/tumblr_m9mr8mfFze1qjotzlo1_500.jpg Sep 13 16:53:11 speakingcode: Sep 13 16:53:23 http://ankh.is-a-geek.com/error.txt Sep 13 16:54:41 oesn't seem to want to load Sep 13 16:54:54 jeeze how card can this be. /wrist Sep 13 16:54:59 :( Sep 13 16:55:15 actually, this might be me blocking you Sep 13 16:55:29 o Sep 13 16:55:30 lol Sep 13 16:56:35 Palo Alto Unified School District|Federal Express Corporation Sep 13 16:56:46 yup, you got PGL'd Sep 13 16:57:24 port 80 is supposed to be open, apparently it is not. Sep 13 16:58:50 speakingcode: try that link again. Sep 13 16:59:47 workin Sep 13 17:00:00 ah, good Sep 13 17:02:19 is there a way to search the whole project in eclipse? Sep 13 17:02:23 yeah Sep 13 17:02:29 Search Sep 13 17:02:30 up in the top Sep 13 17:02:45 oh, of course ctrl+h Sep 13 17:02:48 thanks Sep 13 17:02:56 no no Sep 13 17:02:58 on the top menu Sep 13 17:03:01 search -> file Sep 13 17:03:17 do a file search, on the options there is a sectio nfor scope (that's not the name of it) - select enclosing project or entire workspace Sep 13 17:03:29 wait err yeah ctrl+h, my bad Sep 13 17:04:10 I should have remembered it because it comes up every time I hit ctrl+h to get a search and replace fuction Sep 13 17:04:32 Eclipse has search and replace rolled into normal search Sep 13 17:04:45 yeah Sep 13 17:12:55 hey guys, i have a custom View that seems to reset itself when I show another activity Sep 13 17:13:05 how do I preserve its state ? Sep 13 17:16:05 What command gets me the android version number in java? Sep 13 17:16:26 HorizonXP: onSaveInstanceState() Sep 13 17:16:34 Ankhwatcher: Build.VERSION.SDK_INT Sep 13 17:16:43 evancharlton: ta Sep 13 17:19:45 hah! I found the thing that was breaking everything! Sep 13 17:20:02 eat shit, confusing error message! Sep 13 17:24:50 nice Sep 13 17:25:03 if I want an activity to slide left to right instead of fading out when it's finished(), what do I override? Sep 13 17:25:36 yeh, some of the error messaging in android is painful. even NPE's, they point at the line but don't always say which object is null. sometimes its obvious but sometimes, ugh Sep 13 17:26:13 HorizonXP: there's a animation flag. its in thew apidemos Sep 13 17:26:38 that probably has the specific one you're looking for Sep 13 17:27:09 f2prateek: and those work on activity transitions? Sep 13 17:27:25 yeah, give me a minute i'll look it up Sep 13 17:30:05 so you override overridePendingTransition  Sep 13 17:30:22 http://developer.android.com/reference/android/app/Activity.html#overridePendingTransition(int, int) Sep 13 17:33:34 f2prateek: ah, i didn't realize i needed to call that after I called finish() Sep 13 17:34:02 is there a way to set it so if the user hits Back, it does the same transition? Sep 13 17:34:42 it should be called automatically after finish Sep 13 17:34:51 "Call immediately after one of the flavors of startActivity(Intent) or finish()" Sep 13 17:35:09 right, but if the user hits Back key I'm not calling finish(), the OS is. Sep 13 17:35:24 do I override the Back key? Sep 13 17:36:52 i guess so, generally that's not recommended, but i'm not sure of what a way around this would be Sep 13 17:37:17 yeah, not a fan of it, but it seems like it'd work :-/ Sep 13 17:39:13 http://code.google.com/p/android/issues/detail?id=15623&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Sep 13 17:40:35 altought it seems more relevant for fragments Sep 13 17:41:08 f2prateek: yeah, i'm using fragments in one of my activities, but not for this Sep 13 17:41:20 interesting that you can set a custom enter and exit Anim tho Sep 13 17:41:38 i'm using a system default one of slide in to left, slide out to right Sep 13 17:43:48 For the last two days I followed [1] to import CM sources on Eclipse with no success. Has someone out there been successful to import/create an Android Project on Eclipse with CM sources? I am trying to change some of the apps provided by the rom. [1] http://wiki.cyanogenmod.com/wiki/Galaxy_Nexus_(GSM):_Compile_CyanogenMod_9_(Linux) Sep 13 17:44:53 this is what you need http://wiki.cyanogenmod.com/wiki/Loading_source_in_eclipse Sep 13 17:45:16 also eclipse tends to mess up with the R.java stuff, so you might be better off using vim or whatever Sep 13 17:45:57 also #android-root or #cyanogenmod would be better Sep 13 17:47:02 lol i just saw you posted there as well Sep 13 17:47:24 f2prateek: yeah, i have followed that link you sent me as well. all the "found" projects ended up being empty and full of errors and it didnt work Sep 13 17:47:31 f2prateek: eheh yeah... Sep 13 17:48:32 yeah i'm not too familiar with loading source in eclipse, did it once, was painful and long, and then it messed up the R.java Sep 13 17:49:15 just use a text editor Sep 13 17:50:39 f2prateek: thing is i am way too addicted to eclipse :P i am afraid that in the end ill be using a text editor indeed :) thanks a lot Sep 13 17:51:06 does bash scripting work with adb shell? Here is what i am getting: Sep 13 17:51:09 # if [ -d "/sdcard" ]; then echo OHAI; fi Sep 13 17:51:09 [: not found Sep 13 17:51:20 Does anyone know what that little arrow pointing left is called? Sep 13 17:51:30 reenignEesreveR: no, it doesn't. there is only a very minimal shell installed Sep 13 17:51:42 so whats the best way to check if a directory exists? Sep 13 17:51:46 reenignEesreveR: you can have more fun with custom roms like cyanogenmod though, where you can typically find busybox Sep 13 17:51:51 reenignEesreveR: do it in java? Sep 13 17:52:08 Ge0rG, just want to write a deploy script and that too for emulator only Sep 13 17:53:19 up button, Ankhwatcher Sep 13 17:53:33 or perhaps remove the directory if already exists Sep 13 17:55:29 awww bangin! I was using a mix of getFragmentManager and getSupportFragmentManager.. problem solved =D Sep 13 17:56:26 so I have an EditText in my main activity that sometimes causes the keyboard to come up. Sep 13 17:56:35 is there a way to prevent this? Sep 13 17:57:09 you can get an InputMethodManager service to remove the keyboard state iirc Sep 13 17:57:21 gutano: yeah, and I have it set to HIDE_NOT_ALWAYS Sep 13 17:57:25 but it doesn't work every time. Sep 13 17:57:44 I encountered this in detail, let me see if I can provide something more informative... *reviewing code* Sep 13 17:58:02 gutano: android:windowSoftInputMode="stateHidden" what about that in my AndroidManifest? Sep 13 17:58:13 I didn't find those to be fully effective Sep 13 17:59:26 I had to call inputMethodManager.hideSoftInputFromWindow(textEditField.getWindowToken(), 0); on all my fields to ensure it was removed... Sep 13 17:59:48 (not saying that's the only way, but I explored quite a few leads) Sep 13 18:01:52 should i make this for android users: http://iClarified.com/24414 ? Sep 13 18:01:58 can I tell an ImageView to be behind another in RelativeLayout? Sep 13 18:02:38 not sure, but you can put them both in a FrameLayout and the second will overlap the first Sep 13 18:03:23 hmm, it doesn't look right Sep 13 18:03:57 anybody there? Sep 13 18:04:24 Ankhwatcheruse framelayout and padding to position Sep 13 18:04:33 or gravity, or both Sep 13 18:04:43 is 'ant' something in NDK or i need to download it again? Sep 13 18:05:02 nah, I've decided it looks better beside it, anyway Sep 13 18:05:05 ant is it's own thing, ant.apache.org Sep 13 18:05:06 you can do it with relative layout also with the right positioning. the view listed later in the xml will be the one on top Sep 13 18:05:07 ah ok Sep 13 18:05:10 reenignEesreveR: by default, android has a really minimalist implementation of sh. You could probably deploy a tiny arm binary that would do what you're looking for instead of a shell script Sep 13 18:05:38 gutano, is it in eclipse then? Sep 13 18:05:43 no Sep 13 18:05:48 ant is it's own thing Sep 13 18:05:53 it uses java as it's runtime Sep 13 18:06:24 lov, i would rather mount the emulator image on my system and use system's bash rather than going all that way :P Sep 13 18:06:52 hmm, I see class RtpStream but I don't know if this provides much that would let me do my own RTP streaming from the device Sep 13 18:06:56 i don't remember i downloaded ant separately when i was using my last computer Sep 13 18:07:08 do you know why? gutano Sep 13 18:07:10 zhangxaochen, sounds good, go with that Sep 13 18:07:23 but that computer was stolen.... Sep 13 18:07:24 Anyone else have suggestions for how I might programmatically stream _from_ the device? Sep 13 18:08:08 and i don't know where I could get it now.. Sep 13 18:08:43 i configured eclipse, ndk, cygwin, but seems there is no ant there... Sep 13 18:08:58 your question has already been answered, scroll up Sep 13 18:10:18 thx gutano .. just wondering why last time i didn't download that separately... Sep 13 18:10:44 I'm sorry I can't tell you that, I have no knowledge of your situation... and I would have to depend on you for that, and you don't know Sep 13 18:11:56 damn this project, every time I get something the way I like it and everything works I feel a really strong urge to add another feature Sep 13 18:12:04 get off my damned computer! Sep 13 18:12:20 i am trying to do this: context.getString(R.string.twitterConsumerKey) outside of an activity - however i get an NPE for R.string.twitterConsumerKey Sep 13 18:12:22 but the key exists: ( $ ) grep -r twitterConsumerKey res/ Sep 13 18:12:30 gives me: /res/values/config.xml: 11111111 Sep 13 18:12:35 also this R.string.twitterConsumerKey works within an activity Sep 13 18:12:42 any ideas? Sep 13 18:12:57 what is your 'context' outside of the activity? Sep 13 18:13:10 iterative releases, Ankhwatcher Sep 13 18:14:05 zinx, the context is initialized like this: context = this; in the onCreate callback (Context context;) Sep 13 18:14:19 is the NPE for R.string.twi... or for context? Sep 13 18:14:25 troessner: ... in your activity? Sep 13 18:14:28 troessner: don't do that Sep 13 18:14:42 troessner: you need an actual context to get resource information Sep 13 18:14:58 troessner: you should not be running any code "outside" of a context either Sep 13 18:15:27 is that possible? Sep 13 18:15:49 speakingcode, let me check Sep 13 18:16:54 zinx, not sure what you mean - i moved some logic out of my activity during refactoring. in this very example i initialize my twitter client Sep 13 18:17:01 if R.string... is null then there might be an issue with your project setup, but my guess is "context" is null because you're outside of an activity Sep 13 18:17:17 zinx, could you elaborate what you mean with "actual context"? Sep 13 18:17:30 i have a date in UTC Sep 13 18:17:34 I want to print it out as PST Sep 13 18:17:35 troessner: everything should be run within a context, whether by threading or otherwise Sep 13 18:17:36 in your class you are donig this in, you need a pointer to a Context object, and your activity needs to pass itself to it Sep 13 18:17:40 I'm using SimpleDateFormat Sep 13 18:18:20 speakingcode, that's why i pass in the context to be able to access it. how does that differ from what you mean? Sep 13 18:18:40 so like class myClass { Context mContext; public void setContext(Context context) { mContext = context; } } Sep 13 18:19:00 zinx, well, i have this huge pile of shit here left from a asian agency and i am trying to clean as much as possible Sep 13 18:19:02 Hello. There's a way to sniff the data that an application is sending to a server? (For example, the Facebook app, I need to see which urls its calling, which parameters, psot data, etc) Sep 13 18:19:03 then in your activity after you instantiate the myClass, do instanceofmyclass.setContext(this); Sep 13 18:19:15 zinx, outsourcing stuff like that seemed like a good start Sep 13 18:19:44 paste yoru code on gist.github.co troessner and i'll look at it Sep 13 18:19:50 .com** Sep 13 18:19:56 wilco, sex Sep 13 18:19:59 errrrrr Sep 13 18:20:01 sec! Sep 13 18:20:32 huh, so MediaRecorder can output to a file descriptor, and ParcelFileDescriptor has a fromSocket method... this lets me write video to a network socket but I wonder how well that'll work Sep 13 18:21:47 Argorok: you could always use tcpdump, but any app worth its salt is using SSL so you're just going to see that a connection exists. Sep 13 18:22:05 The best case scenario there is that you get the dns request so you know what domain it's calling Sep 13 18:22:30 basically, without rooting your phone and adding hooks into your networking stack, no, probably not. Sep 13 18:23:00 use wifi connection and use wireshark Sep 13 18:23:08 lov, theres something to do this yet? So I root my phone and install the app that hooks, then I read the logs Sep 13 18:23:10 Hi all, trying this question again (didn't seem anyone was around earlier). Anyone know the best way to stop a ViewFlipper at its last child View instead of looping? Sep 13 18:23:13 and other wifi tools Sep 13 18:23:30 o Sep 13 18:23:31 no Sep 13 18:23:34 I didn't say "an app that hooks" Sep 13 18:23:42 speakingcode, I thought... But how can I sniff with wireshark if the cellphone dont broadcast? Sep 13 18:23:44 I mean that you modify the firmware so that you can hook into it. Sep 13 18:24:00 lov, I know. But I asked if exists one Sep 13 18:24:04 no, definitely not. Sep 13 18:24:15 You have to actually modify the firmware to deliberately leak information Sep 13 18:24:48 if you're not really sure what this entails, this may not be an appropriate task for you at this time. Sep 13 18:25:07 speakingcode: you're assuming that the network connection is HTTP, not HTTPS Sep 13 18:25:27 for a company the size of facebook, especially after things like firesheep, I cannot fathom them sending ANYTHING in the clear. Sep 13 18:25:50 lov, I have no problem in get the sources, edit, cross compile and reburn the firmware... Just need the right versions and toolchains. Last time I did it was android 1.5. Now is 4.0.4 Sep 13 18:26:00 Argorok: source.android.com Sep 13 18:26:05 speakingcode, zinx ah, got it: i was using the base activity that extends Application for initializing my twitter client but passed in the context from my actual activity Sep 13 18:26:09 thanks for the assist Sep 13 18:26:09 lov, was an example. I dont want facebook data Sep 13 18:26:11 go find an ubuntu64 box with 16GB+ Sep 13 18:26:20 speakingcode, zinx thanks Sep 13 18:26:45 lov, to compile? no problem, my desktop at home will handle that Sep 13 18:27:25 But I need better approaches... Theres something like "universal proxy"? Some place that I set a proxy and all connections use it? Sep 13 18:28:11 I don't really know what you plan on doing. Sep 13 18:28:12 Look. Sep 13 18:28:19 If the connection is NOT encrypted, you can use tcpdump Sep 13 18:28:21 or wireshark Sep 13 18:28:30 if the connection IS encrypted, then how do you plan on performing a MITM attack? Sep 13 18:28:38 answer me that, and we can go from there. Sep 13 18:29:13 ARP Poison and fake signs? Sep 13 18:29:24 so do that. Sep 13 18:29:37 If it is encrypted Sep 13 18:29:39 if you can handle that, what are you asking in here for? Sep 13 18:29:42 But let me try with wireshark Sep 13 18:30:20 Because the conenction is wireless, my computer is wired. We are at the same network, but Im pretty sure that the cellphone will no broadcast the packets Sep 13 18:30:47 it will broadcast the packets over wifi. Obviously you can't sniff the cell data without specialized equipment. Sep 13 18:32:13 Then lets start from the basics. How can I see my cellphone IP on the cellphone? Sep 13 18:32:43 * lov shrugs Sep 13 18:32:45 whatismyip.com Sep 13 18:33:15 settings -> about -> status will probably have your ip Sep 13 18:35:01 Yeah, whatsmyip wasnt a nice try :P Sep 13 18:36:06 and when you *are* looking for wan ip's, use ipget.me instead. ;) Sep 13 18:36:09 I know one of org or com (whatISmyip) works, this will get your public ip though (probably not useful within your local network) Sep 13 18:37:49 14:33:24 < lov> settings -> about -> status will probably have your ip Sep 13 18:38:44 When exactly is a content provider initialized? Sep 13 18:40:53 Yeah, I was trying on wireshark... with ip.src == 192.168.0.163 Sep 13 18:41:05 But nothing that the chrome sends appear on wireshark Sep 13 18:43:29 are you listening in on your network in promiscuous mode? Sep 13 18:43:36 are you sure that you can actually capture any packets from the devic? Sep 13 18:44:03 are the packets being routed in any way that you could capture them? Sep 13 18:44:09 You mentioned that your computer is wired, not wireless. Sep 13 18:44:18 if the phone is sending packets directly to your router, your computer isn't going to pick them up. Sep 13 18:44:40 unless you mean that it has a wired connection and a wifi card which you've turned on and are listening on Sep 13 18:44:51 do they even make wireless "hubs" (as opposed to switches?) Sep 13 18:46:12 I suppose you could put a double nic'd pc (or tricker with a single nic) between your wireless router and your internet connection Sep 13 18:47:32 does anyone know of an SDK for twitter that's similar to Facebook's? Sep 13 18:47:47 I like how the Facebook one will invoke either the twitter app or a webview based on what's installed Sep 13 18:47:55 would like equivalent functionality with twitter Sep 13 18:49:35 i use twitter4j Sep 13 18:49:35 not sure it does what you're looking for tho Sep 13 18:49:45 HorizonXP: Twitter app will recieve the Intent for the webpage if it's registered as the handler. Send the regular web page intent. Sep 13 18:50:38 doogan: just need to post to their twitter account, and receive a callback when it's complete Sep 13 18:50:52 gutano: No, because wireless NICs aren't unique. I blame Windows XP. Sep 13 18:51:12 HorizonXP: Their REST API does that. Sep 13 18:51:39 freeone3000: how does that keep you from using a PC as a "DSL/Router" and dumping? Sep 13 18:51:45 freeone3000: right, but it means that I need to implement a UI for it Sep 13 18:51:53 freeone3000: it'd be nice to just pop up the twitter UI Sep 13 18:51:56 https://github.com/lorensiuswlt/AndroidTwitter Sep 13 18:52:09 that is a decent starting point Sep 13 18:52:15 gutano: Because a router operates at the IP level, and a hub operates at the MAC level, and since wireless MACs aren't complete, you can't route wireless traffic based on MAC. Sep 13 18:52:21 gutano: *aren't unique. Sep 13 18:52:26 hubs are repeaters Sep 13 18:52:31 they don't operate at either level Sep 13 18:52:45 I see, you where talk ing about the hub comment not hte intercepting comment Sep 13 18:52:48 my bad Sep 13 18:52:58 gutano: Oh, sure, you can set up a wireless router as a repeater. Mine has a nice physical switch for that. Sep 13 18:53:23 accidental defensiveness ; ) I thought you where speaking to my other comment Sep 13 18:54:45 Is a MapView supposed to have panning enabled by default? Sep 13 18:58:14 Heh, this is clearly not the networking fundamentals channel. ;) Sep 13 19:01:52 DaveD0101: yeah, it might be useful knowing the difference between a switch and a router before trying to nail packet inspection tactics :p Sep 13 19:06:42 Anyone have any recommendations on the best way to stop that ViewFlipper? Sep 13 19:29:17 hey guys, im trying to add spell check to a Android game(scrabble like) but i heard a rumor that the android spell check dictionary is only 20k words. can anyone confirm this? Sep 13 19:30:49 I don't know either way, but a smart dictionary might be able to distinguish between suffixes in English, so it might be counting 'counting' and 'counted' and 'counts' and 'count' as one word Sep 13 19:31:10 I remember Psion Scrabble from the 1980s having a dictionary that did that Sep 13 19:33:51 do people still use Psions? I remember when I ordered a Newton in 2007 the Psions still fetched a high price Sep 13 19:34:40 Well when I say 'Psion Scrabble', this was when Psion was a software company making games and programs for itty bitty 8-bit computers. Psion Scrabble ran on a ZX Spectrum! Sep 13 19:35:03 AimHere: I'm pretty sure that you can download dictionary files. Sep 13 19:35:14 anyone know how to measure signal strength on cma phones? the dmv values arnt making sense to me Sep 13 19:35:18 in fact, you probably should; you don't want to depend on the device's spell checker. Sep 13 19:35:25 it's going to have proper nouns, etc. Sep 13 19:35:35 Well those can be filtered out Sep 13 19:35:42 *the dcma rssi dbm values are confusing Sep 13 19:35:48 *cdma Sep 13 19:35:57 Quick question, I have my dialog box show a variable but its showing 1 less than the inputed value Sep 13 19:36:08 Is this proper, editalert.setTitle("Index " +index); Sep 13 19:36:36 index is 0 baes? Sep 13 19:36:39 *based Sep 13 19:37:00 Index is set to 0 Sep 13 19:39:45 freedomcaller, if I post my source, think you could see why its being dumb? Sep 13 19:40:05 https://gist.github.com/049943119630b080bcb2 Sep 13 19:40:36 Anyone care to explain why the variable 'index' is being displayed in my dialog 1 less than the value asked before the dialog pops up? Sep 13 19:41:31 because the first one is 0? Sep 13 19:42:01 Well it should start by saying Index 0 then loop again and say Index 1 Sep 13 19:42:04 so-on Sep 13 19:42:23 and it says -1? Sep 13 19:42:36 Ugh ugh ugh. I've got a intro wizard type screen I'm trying to make changes to. Normally it's a ViewPager in a LinearLayout except for large-portrait in which it's a LinearLayout that includes each of the 3 layouts of pages I have to display them all at once. What I essentially want to do is have images at the bottom that will indicate to the user that there's multiple pages and which page Sep 13 19:42:36 they're on. Sep 13 19:42:49 Nope but its not starting at Index 0 but rather starting at Index 2 if I say there are 3 values Sep 13 19:43:02 That would make 3 if I include 0 Sep 13 19:43:08 So its working but its backwards Sep 13 19:44:01 *shrug* Sep 13 19:44:09 see what I am saying, its weird Sep 13 19:45:31 I have a fragment with a message handler that occasionally gets messages that trigger UI responses. But if the fragment is not in view, I get a "Fragment not attached to Activity" error, which makes sense. So I have my message handler check fragment.isDetached(), but that returns true even when it's not visible/not attached to an Activity. How am I supposed to prevent this exception if the fragment doesn't accurately report whether it Sep 13 19:45:31 attached or not? And this is in the message handler/i.e. UI thread so there seemingly should be no race condition, right? Sep 13 19:45:36 can anyone help me lol Sep 13 19:48:15 i have an interface that I want to have 2 functions in, 1 required, 1 optional Sep 13 19:48:25 what's the keyword to set the abstract function to be optional? Sep 13 19:49:28 HorizonXP: there are no optional methods in interfaces Sep 13 19:49:36 p_l: yeah, just reading Sep 13 19:49:44 p_l: seems like 2 separate interfaces is a better bet Sep 13 19:49:45 you can, at best, raise a NotImplemented or something like that Sep 13 19:49:46 Snwspeckle Sep 13 19:49:52 or return null Sep 13 19:50:16 Log.i() the getQuestions string after you initialize it Sep 13 19:50:20 before yuo parse it into int Sep 13 19:50:39 ok second Sep 13 19:50:52 do it for resQuestions too Sep 13 19:50:54 as an int Sep 13 19:51:04 lets make sure the loop range is correct first Sep 13 19:51:55 Petes use a call back in detach()? Sep 13 19:52:03 and log.i (index) in the top of the loop also Sep 13 19:52:32 lasserix: gotcha, thanks! Sep 13 19:53:48 It looks like the loop is going all the way through and not waiting till the button is pressed to continue the loop Sep 13 19:54:30 hmmm, so the native Android Spell checker api does have a limit on the amount of words in it? Sep 13 19:54:39 it doesnt magically update from google? Sep 13 19:54:54 there ya go Sep 13 19:55:34 Any idea on how to pause the loop for input? Sep 13 19:55:38 editAlert.show() is called - it shows the dialog, returns, and execution resumes Sep 13 19:55:45 yeah Sep 13 19:55:46 So hmm Sep 13 19:55:55 right after you call show Sep 13 19:56:01 well Sep 13 19:56:04 outside the loop Sep 13 19:56:11 do boolean hasAnswered = false; Sep 13 19:56:41 then right after you call show, put Sep 13 19:56:56 while (!hasAnswered) ; Sep 13 19:57:22 in your onClick on the dialog, put hasAnswered = true; Sep 13 19:57:34 also set hasAnswered back to false before calling show Sep 13 19:58:06 being in one thread, that might cause an issue, but it's a start anyway Sep 13 19:58:30 my MapView cant be panned/zoomed, any suggestions why that is? :S Sep 13 19:58:36 Its just a basic algorithm app, nothing crazy needed Sep 13 19:59:56 Weird still going through the whole loop -.- Sep 13 20:00:57 https://gist.github.com/055641e9e3fbf1688f60 Sep 13 20:01:16 like that Snwspeckle Sep 13 20:02:36 Thanks, I was placing it incorrectly and you spelled answered wrong :P Sep 13 20:03:06 ah i sure did Sep 13 20:03:09 Mmm instead of two while loops why not just one while!isAnswered with a conditional inside index > ? resQ isAnswered = false? Sep 13 20:03:16 it worked, tho? Sep 13 20:03:51 hasAnswered = true; is coming up as an error that I cannot refer to a non-final variable Sep 13 20:03:59 ahh, damnit Sep 13 20:04:06 yeah, cause it's an anonymous class Sep 13 20:04:07 lol Sep 13 20:04:13 the onClickListener Sep 13 20:04:19 final is no good cause then you can't switch it Sep 13 20:04:29 let me thinkfor a minute Sep 13 20:04:59 cant we check an int similar to a boolean? Sep 13 20:05:04 Obviously not a good way to do it but Sep 13 20:06:11 you could maybe, hmmm Sep 13 20:06:33 why not use a for loop ? Sep 13 20:06:47 lasserix the issue is that the loop continues after the dialog shows Sep 13 20:07:01 I need to pause the loop Sep 13 20:07:02 Ahh sorry Missed that Sep 13 20:07:03 he ants the dialog to show and pause the loop until the user clicks ok Sep 13 20:07:22 Snwspeckle off the top of my head the only thing obvious coming to me is to resturcture this a bit Sep 13 20:07:38 Does anyone have a good reference for how onDestroy handles threads started by your application? Currently, my threads stay alive and functional, but the fields pointing to those threads are null. Sep 13 20:07:38 and have the onClick call the method again Sep 13 20:07:56 kind of recursively, make index a parameter, and in onClick call it again with (index-1) Sep 13 20:08:11 Guys, I have a problem with the calendar.. Sep 13 20:08:14 why not just _not_ use an anonymous inner class? Sep 13 20:08:30 ^^^ Sep 13 20:08:38 there you go lasserix Sep 13 20:08:47 well, hmm Sep 13 20:08:47 My appointments which I created (using code in my application) are dissapearing... Sep 13 20:08:48 that* Sep 13 20:08:50 whats thar Sep 13 20:09:13 even if its not anonymous i think the same issue will apply Sep 13 20:09:24 cause it's still an inner class Sep 13 20:09:30 Sometimes directly after closing the default calendar app (mostly Samsung devices), and on my HTC they are gone when I reboot.. Sep 13 20:09:39 Does anyone have an idea where I should look for? Sep 13 20:09:42 But he can use the boolean to check for that second while loop Sep 13 20:10:07 It's on 2.3 and >4.0 versions.. Sep 13 20:10:07 MontyCarleau onDestroy will not automatically clean up any threads you spawn, you have to do that manually (usually in onDestroy) Sep 13 20:10:08 hi lasserix ! Sep 13 20:10:17 hello! Sep 13 20:11:02 lasserix: How do I create one of these, never heard of them... lol Sep 13 20:11:08 Snwspeckle Sep 13 20:11:20 in your onClick you have new onClickListener.... Sep 13 20:11:25 as a paramaeter Sep 13 20:11:42 ditalert.setPositiveButton("Send via email", new DialogInterface.OnClickListener() { Sep 13 20:11:48 any idea how I can install an app to /mnt/asec (JB encryption) without Google Play? Sep 13 20:11:48 that is an anonymous inner class Sep 13 20:11:54 move it out Sep 13 20:11:59 I'm trying to get a workaround for my app Sep 13 20:12:03 Is Romain or Chris here? I do have the feeling they could help me :-) Sep 13 20:12:07 but I don't really want to test on the live app Sep 13 20:12:09 down at the bottom of your activity just put Sep 13 20:12:52 OnClickListener myListener = newOnClickListener(){ //move onclick stuff into here } Sep 13 20:13:17 err i did that wrong Sep 13 20:13:27 do Sep 13 20:14:12 that's write Sep 13 20:14:13 *right Sep 13 20:14:32 But remember I need to set the title of the dialog still Sep 13 20:14:34 is it? meh i' mtired :( Sep 13 20:14:49 anyone? Sep 13 20:14:51 hold on Snwspeckle Sep 13 20:15:51 private OnClickListener mClicks = new OnItemClickListener() { } Sep 13 20:16:03 declared like any other function, then import Sep 13 20:16:04 oops Sep 13 20:16:19 private OnItemClickListener mContentListClicks = new OnClickListener() { } then import OnClickListener and implement the methods Sep 13 20:16:24 lasserix: Do you see the OS calling onDestroy, or should the OS only call onStop, leaving onDestroy as user initiated? Sep 13 20:17:00 https://gist.github.com/055641e9e3fbf1688f60 Sep 13 20:17:57 If you just throw a Log.d(mtag, "onDestroy") in ondestroy you can see when it gets called, though it's not going to be called like onstop will be since onstop the activity is still waiting to either be resumed or destroyed Sep 13 20:18:26 lasserix: The context is that the app should stay alive as a daemon - it's acquired the partial wake lock, but it's being destroyed and then re-created by the OS. Sep 13 20:18:28 Depending on what you're threads are doing youmay or may not want to finish them in onStop Sep 13 20:18:39 MontyCarleau i think the system should call onDestroy() - you just override its implementation. call finish() to kill your activity Sep 13 20:18:41 Then maybe you want a service instead? Sep 13 20:18:55 if it needs to stay alive, you need to implement a service Sep 13 20:20:05 speakingcode: I don't need to expose it to other activities and it does need to be in its own thread - what is the advantage of a service here? Sep 13 20:20:40 "the app should stay alive as a daemon " Sep 13 20:20:48 Use a service. Sep 13 20:20:50 activities will likely get killed in the background Sep 13 20:20:56 a service has a higher priority to stay alive. Sep 13 20:21:18 grrr damn you errrors Sep 13 20:21:27 Snwspeckle what's up now? same error? Sep 13 20:22:06 hasAnsewered = false; under the button title is sayings its false and I am getting a } error Sep 13 20:23:08 ahaha Sep 13 20:23:13 your spelling error :P Sep 13 20:23:42 oh you knwo what Sep 13 20:23:49 Ah problem Sep 13 20:23:55 move the declaration of hasAnswered outside of submit Sep 13 20:23:57 when I click submit it gets frozen and no dialog box Sep 13 20:24:07 make it a member variable Sep 13 20:24:09 oh Sep 13 20:24:40 inifnite loop maybe? Sep 13 20:24:48 I believe so Sep 13 20:24:50 sec Sep 13 20:24:52 sigh, i fear you might have to thread this and implement callbacks Sep 13 20:25:29 https://gist.github.com/45dcc64725b0cd690cb0 Sep 13 20:25:32 current code Sep 13 20:26:12 just to nitpick yuo can do index++ instead of += 1 :-p Sep 13 20:26:23 :P Sep 13 20:26:30 yeah, the dialog is in the same thread Sep 13 20:26:39 so having that infinite loop blocks the onclick event from happening Sep 13 20:27:03 lets see if one trick will work Sep 13 20:27:25 Basically whats supposed to happen is it shows a dialog box, enters data, loops, shows dialog again for more data etc Sep 13 20:28:08 yeah Sep 13 20:30:33 I need a background thread tho right? Damn android difficult Sep 13 20:30:50 difficult compared to what? Sep 13 20:30:56 iOS Sep 13 20:31:03 Damn girl, you mad difficult Sep 13 20:31:05 yeah i think you are gonna have to thread this Sep 13 20:31:06 Since there isnt built in functions to make stuff wait etc Sep 13 20:31:08 you all wanting flowers and shit Sep 13 20:31:12 and do the dialog in a seperate one Sep 13 20:31:13 why dont you just put out yo Sep 13 20:31:23 do whats good for BOTH of us Sep 13 20:31:24 damn Sep 13 20:31:28 * Hodapp looks at lov Sep 13 20:31:35 Well I gtg, I will be back later to hopefully get this working Sep 13 20:32:24 https://gist.github.com/0e1af0f5797bb4444093 Sep 13 20:32:29 try that Snwspeckle Sep 13 20:32:34 real quick if you can Sep 13 20:33:17 Shit, now throwing around threads for such a simple, simple, task ;p Sep 13 20:33:34 looks like it turns out not to be so simple Sep 13 20:34:00 why not just check if index < resquestions in the MyListener and if so open up a new dialog instead of using this dynsfunctional loop ? Sep 13 20:34:01 hmm, looking at min3d, and I see a Layout but nowhere in the single source file do I see anything in the way of Android widgets being manipulated Sep 13 20:34:18 that's not the issue Sep 13 20:34:24 anyone know any existing (free) libraries which allow me to load/visualize models? Sep 13 20:34:32 oh Sep 13 20:34:37 yeah, i suggested that already Sep 13 20:34:45 too hackish? Sep 13 20:35:03 i guess, its all pretty hackish at this point Sep 13 20:36:47 Hodapp its not too hard to write your own if you have well formed input model data Sep 13 20:37:19 ok this is the third day in a row people have responded to Hodapp and i see nothing he says Sep 13 20:37:36 speakingcode: It's because you ignored me a week ago after you threw a tantrum in here, doofus Sep 13 20:37:59 must be on ignore i guess Sep 13 20:38:12 lasserix: the model types are most likely something like 3ds or STL; if I can find a reader, visualization shouldn't be too hard Sep 13 20:38:15 but some libraries do both Sep 13 20:38:33 pop into ##opengl and ask im sure someone will kno Sep 13 20:38:42 they'll tell me to ask #android-dev Sep 13 20:38:52 ive met a few android devs in there Sep 13 20:39:35 if I can just use min3d's parsers that'll probably work... Sep 13 20:39:56 the fact that it just uses this global 'scene' variable and no Android widgets is not good, but I don't have to use their visualization Sep 13 20:40:50 https://github.com/MasDennis/Rajawali Sep 13 20:41:27 although that's 2.0 Sep 13 20:46:15 speakingcode: One error editalert.show(); Sep 13 20:46:24 Cannot refer to a non-final variable editalert inside an inner class defined in a different method Sep 13 20:46:38 hahaa Sep 13 20:46:39 damn Sep 13 20:46:45 well then Sep 13 20:46:46 what a bitch this is.... Sep 13 20:46:50 theres two things you can do Sep 13 20:47:00 quit? Sep 13 20:47:03 :P Sep 13 20:47:11 1. full out implement threads and do callbacks to stop and resume eecutions of your loop Sep 13 20:47:32 Is there any other way to get multiple input from the user in a loop fashion? Sep 13 20:48:06 or 2. as lasserix suggested, have your onClick method recall your function in a recursive type of fashion Sep 13 20:48:28 sadly, no. this is actually a tricky pattern Sep 13 20:48:33 you could also use a handler and inside the mylistener and check if index < q and do a handler.post (reaskuser) Sep 13 20:48:57 ^^ Sep 13 20:49:04 or, you could use another way to get input Sep 13 20:49:04 Handler? Sep 13 20:49:05 like a form Sep 13 20:49:19 but the problem with that speaking is that I dont have a static amount of forms Sep 13 20:49:27 A handler, like your onClickListener is a handler Sep 13 20:49:29 I need to show the forms based on the number of questions Sep 13 20:49:32 it handles the onClick event Sep 13 20:49:36 Thus why I used dialogs Sep 13 20:49:42 nah Sep 13 20:49:47 you can dynamically create a form Sep 13 20:49:52 Whats a good way to do that then? Sep 13 20:49:59 Isnt it sloppy having tons of forms tho lol Sep 13 20:50:05 your questions are in an array yeah? Sep 13 20:50:08 like EditText's everywhere Sep 13 20:50:15 not if you do it cleanly Sep 13 20:50:18 I need to implement the data they put into an array Sep 13 20:50:20 better than alert after alert ,IMO Sep 13 20:50:25 lol Sep 13 20:50:27 ok Sep 13 20:50:33 so your questions are an array of Strings? Sep 13 20:50:41 No Sep 13 20:50:44 You know perl? Sep 13 20:50:52 * ctate | A handler, like your onClickListener is a handler Sep 13 20:50:52 yeah lets not go there Sep 13 20:50:54 I am porting a script I made in perl to android Sep 13 20:51:00 err, a click listener is not a Handler Sep 13 20:51:18 is it not @ctate? doesn't it handle the onClick event Sep 13 20:51:25 Basically I get the EditText info and then I need to append that to the array Sep 13 20:51:32 how to properly deal with support lib and ABS? intellij complains about adding a supportmethod twice, eclipse is fine with it Sep 13 20:51:39 Handler has nothing to do per se with dealing with input events Sep 13 20:51:53 whats a clean way for forms then Sep 13 20:52:04 rather, there's a supportlib in /libs and one in ABS Sep 13 20:52:05 it's just half of the core Looper/Handler message loop mechanism Sep 13 20:52:44 i think we are victim of a semantic differenct right now @ctate Sep 13 20:53:14 you are talking about the looper/handler mechanism of the system n I am just using the term handler loosely as in an eventynt handler Sep 13 20:53:22 Snwspeckle i am having a hard time understanding your application tho Sep 13 20:53:29 you have a set of questions Sep 13 20:53:35 No Sep 13 20:53:40 ? Sep 13 20:53:45 Ok here Sep 13 20:53:45 then what are you looping on? Sep 13 20:54:00 I am looping on the # of questions on the test Sep 13 20:54:34 So it first asks the user how many questions there is, I need to then dynamically create an amount of forms equal to the # of questions, thus the loop Sep 13 20:54:39 ok Sep 13 20:54:51 then insert the values from the forms to an array Sep 13 20:55:01 ok Sep 13 20:55:03 so this is making a test Sep 13 20:55:19 the user is populating a set of questions Sep 13 20:55:20 No its an algorithm to get answers for a test Sep 13 20:55:36 They are populating the forms with bytecode that I use my algorithm with Sep 13 20:55:49 bytecode? Sep 13 20:55:53 The big thing is that the program is dynamic and not statically based on the # of questions Sep 13 20:55:53 i dont know why you are instanatiating so many dialogs if they are getting the same inputs Sep 13 20:56:14 programs, generally are Sep 13 20:56:14 Dont worry about the bytes, I just need to dynamically create forms and then input their data to an array in order Sep 13 20:56:22 ok Sep 13 20:56:26 @ctate: In my program I add calendar items using content://com.android.calendar (because use a listview Sep 13 20:56:39 you only need one dialog, and handle the input from the user according to what index you're on Sep 13 20:56:55 @ctate: is it the event, or the calendar? Sep 13 20:57:06 or you could use a view pager ;p Sep 13 20:57:15 dialogs is bad because your input is bytecode Sep 13 20:57:17 what if i typo Sep 13 20:57:23 i have to go through the whole thing again? Sep 13 20:57:26 horrible experience Sep 13 20:57:36 bytecode as in like 40's Sep 13 20:57:41 Not actual byte strings Sep 13 20:57:47 i will never use an app that has more than a couple of dialogs Sep 13 20:57:49 but anyway Sep 13 20:57:49 Its number based before the conversion method Sep 13 20:57:49 look Sep 13 20:57:51 easy solution Sep 13 20:57:59 use a ListView Sep 13 20:58:44 you need to create a custom ArrayAdapter (easy - extend ArrayAdapter and overwrite getView() ) Sep 13 20:58:58 you need to create a layout for each item in the list - presumable an edit text and maybe a label? Sep 13 20:59:03 or a view pager if you want each question section graphically self contained Sep 13 20:59:21 so you create one layout file Sep 13 20:59:36 then you put a listview in the layout for your activity Sep 13 21:00:07 then in code, you instantiate the custom ArrayAdapter, using the empty array you create Sep 13 21:00:28 by empty i mean it has elements with no data Sep 13 21:00:30 speakingcode you might as well just code it up for him at this point ;p Sep 13 21:00:35 yeah pretty much Sep 13 21:00:39 wouldn't take long Sep 13 21:01:33 on Snwspeckle i'll code it up for you for a paypal donation Sep 13 21:01:38 ;-P Sep 13 21:01:40 Well I appreciate you flow charting it, I am off to work but if it isnt too much of a hassle, I would like a template ;) Sep 13 21:01:45 Bro, I'm broke Sep 13 21:01:50 blame Verizon Sep 13 21:01:57 Screwing me on my phone bill I swear Sep 13 21:02:03 just google listview tutorial android Sep 13 21:02:08 with custom adapter Sep 13 21:02:14 hah, well no worries. i'll skeleton something ofor you n put it on github Sep 13 21:02:16 yeah Sep 13 21:02:23 Alright well ttyl gtg Sep 13 21:02:23 ListView and custom adapter is easy Sep 13 21:02:26 appreciate the help Sep 13 21:02:29 good luck! Sep 13 21:02:52 he's in over his head! Sep 13 21:03:06 hell, so am i Sep 13 21:03:26 well i just think its kinda funny because i think he was so insistent on forms / dialogs since that is the typical user expierience on a computer Sep 13 21:03:55 *not so insistent, but inclined towards Sep 13 21:17:50 does anyone know why webview is slower than native browser? and any solutions ? Sep 13 21:23:16 Backing up app data is basically backing up the folder w/ the app name and only that? Sep 13 21:23:40 lasserix yeah, paradigm shit collision ;-) Sep 13 21:23:56 shift* Sep 13 21:24:43 ldiamond_: http://developer.android.com/training/cloudsync/backupapi.html Sep 13 21:25:39 tors, yea I mean backing up data from other apps. Sep 13 21:25:43 as well as the application itself. Sep 13 21:25:50 requiring root of course Sep 13 21:27:36 does anyone know why webview is slower than native browser? and any solutions ? Sep 13 21:32:44 hi all, i am getting problem in my android client (socket programming ) , please help me Sep 13 21:35:55 anybody know a good screencast tool? just anything that will let me create a video fo my applicatin in action Sep 13 21:37:13 https://code.google.com/p/j2objc/ Sep 13 21:37:24 java to objc (if you want to do some ios development) Sep 13 21:37:49 i wonder how well it works Sep 13 21:38:10 f2prateek, droidAtScreen (very slow fps)... I haven't encountered anything better Sep 13 21:58:21 gutano: yeah i know a couple too, but most seem really slow :( Sep 13 22:18:22 EvilPenguin: neat Sep 13 22:18:29 :) Sep 13 22:18:44 Bink: it will only for data stuff and what not Sep 13 22:18:49 you'd have to understand objc to build a ui Sep 13 22:18:58 and its WAY different from Android :P Sep 13 22:20:14 EvilPenguin: still neat, even if iOS is loosing market share daily ;) Sep 13 22:20:35 Bink: iOS is still an amazing platform to develop for :) Sep 13 22:20:46 yawnworthy Sep 13 22:21:18 whats amazing about building for ios Sep 13 22:22:11 * Jug6ernaut wonders if thats a prelude or a question Sep 13 22:23:57 tech1: im a c junky, so i love objc :) Sep 13 22:24:07 (and i love handling my own memory) Sep 13 22:25:12 yea well Sep 13 22:25:21 lol Sep 13 22:25:28 i dont like closed corporate crap Sep 13 22:25:34 so i'll stay with android Sep 13 22:25:55 allows me to do what i want without money looking over me shoulder Sep 13 22:26:07 i do what i want to my ios device? Sep 13 22:26:15 but you can develop for 'ios' whatever you want dude Sep 13 22:26:29 in my time ios was something for cisco routers Sep 13 22:26:37 lol. Sep 13 22:26:38 hah Sep 13 22:26:51 this is a true statement. Sep 13 22:41:16 I finally figure out that text switching and font resource thing. Code here: http://pastie.org/4716605 and XML here: http://pastie.org/4716609 Sep 13 22:51:18 hi, I have uploaded my app along with expansion file onto my publisher account Sep 13 22:51:28 how can I test file download without publishing my app? Sep 13 22:52:43 Hello. May I ask if there is a free available open source application like whats-up with encryption? (on the client and server side) Thank you in advance for any hints. Sep 13 22:56:31 calvinchan: if you can install on a device from the command line (or eclipse), i would imagine it works from play Sep 13 22:56:36 so i have a strange problem. I am running a (server like) java application by directly invoking dalvik. it has some java threads. If I run it on 4.1 emulator, it works pretty well. but if i run it on 2.3.3, for God knows what reason, some threads don't get schedule or whatsoever the cause, very strange behaviour is shown. Sep 13 22:57:01 is there a difference between dalvikvm 2.3.3's implemetnation and 4.1's implemetnation regarding the way threads are scheduled? Sep 13 22:57:09 calvinchan: otherwise, why not just publish it, test it quickly, then unpublish if it doesn't work? Sep 13 22:57:48 sampullman: thanks for advice, I can test download now! Sep 13 22:59:14 need some help Sep 13 22:59:19 i think Dropbox corrupted my shit Sep 13 22:59:34 Drawable crossDrawable = getContext().getResources().getDrawable(R.drawable.close); Sep 13 22:59:42 what would cause that line to return null? Sep 13 22:59:51 R.drawable.close is a valid resource Sep 13 22:59:54 PNG image is there Sep 13 23:00:12 getContext() and getResources() are not null, checked with watch in debugger Sep 13 23:01:26 HorizonXP: have you tried doing a clean/rebuild project? Sep 13 23:01:33 sampullman: trying it now Sep 13 23:02:39 sampullman: thanks fixed. that was annoying. :-( Sep 13 23:03:16 yeah, i might be paranoid, but i do a clean before every build Sep 13 23:19:13 does anyone have experience loading images using a fragmentpageradapter? Sep 13 23:20:43 I have a memory leak :( Sep 13 23:27:55 hello Sep 13 23:29:17 hello Sep 13 23:34:54 hey, i was thinking about creating a local mirror for AOSP repo syncing, is it possible to change what clients sync to later on? as in can i sync to my mirror and change later to the main server (maybe using repo init -u again?) Sep 13 23:36:08 so I started an AVD to simulate the nexus 7 Sep 13 23:36:30 and it has the notification bar down the bottom, and the back/home/thing bar up the top Sep 13 23:36:34 ?!?!?!? Sep 13 23:39:33 all the clicks are off too Sep 13 23:39:53 like to click the app icon thing, I have to click way above where it actually is Sep 13 23:41:48 Probably you should restart your emulator. Sep 13 23:41:58 I've tried, wipe data, etc Sep 13 23:42:03 creating it again now Sep 13 23:42:40 also, although the notification bar appeared at the bottom and buttons up the top, I had to guess where the back button should be and click there to press it Sep 13 23:47:37 I think it only happens when gpu emulation is enabled Sep 13 23:49:05 yeah Sep 13 23:49:10 what the hell?!? Sep 13 23:50:08 maybe that's why it's experimental Sep 13 23:58:47 tried an ics x86 image, got this Sep 13 23:58:51 http://www.whatsbeef.net/wabz/emulator.png Sep 13 23:59:23 pretty sure it says Unfortunately, System UI has stopped Sep 13 23:59:33 sometimes Launcher stops Sep 13 23:59:37 this is so messed up :p Sep 14 00:01:02 that is amusing Sep 14 00:02:53 and http://www.whatsbeef.net/wabz/emulator2.png Sep 14 00:03:20 it's not that amusing if you're trying to get it working for a presentation :p Sep 14 00:03:41 i sympathize Sep 14 00:03:47 this is with gpu turned on, right? Sep 14 00:03:51 but yeah, seems to only happen if I set gpu emulation to yes in the avd settings Sep 14 00:03:54 yeah Sep 14 00:04:11 so it's clean without gpu accel turned on? good to know, thx Sep 14 00:04:21 so uh for hte prezzo i gues syou turn it off :( Sep 14 00:04:39 heheh yeah Sep 14 00:04:55 I have a MHL cable, that might work Sep 14 00:06:39 Can I get fragment's index using fragment instance from FM? Sep 14 00:07:58 maybe the letters are upside down because my locale is AU Sep 14 00:08:12 ha ha ha ha Sep 14 00:08:38 comedy gold Sep 14 00:08:42 (swidt?) Sep 14 00:09:19 :D Sep 14 01:03:18 morning all Sep 14 01:22:51 JakeWharton, (or other knowledgeable ABS people): https://snipt.net/tweakt/-808/ Sep 14 01:23:06 hmm Sep 14 01:23:07 trying to use choiceModeMultiModal. THis happens on long-press. Sep 14 01:23:28 I'm probably "doing it wrong" Sep 14 01:23:33 think you can create a very simple test case? Sep 14 01:23:51 there's a 'known-bugs' sample app in the repo that you could create a pull request against if you can Sep 14 01:24:01 yep Sep 14 01:24:04 otherwise a .zip or even java snippet for an activity would be helpful Sep 14 01:24:10 thats helpful Sep 14 01:24:19 probably can't hit it until this weekend, possibly tomorrow at lunch Sep 14 01:24:32 this is on JellyBean though. So maybe it has nothing to do with ABS? Sep 14 01:25:08 well, on ICS+ we wrap native action modes in custom types compatible with pre-ICS types so that you're always interfacing with the same class types Sep 14 01:25:39 lemme try real quick with GB Sep 14 01:26:26 this is the "right way" to do action mode for a multi select list right? I just stumbled onto it. I assumed I had to add some code to trigger it. Sep 14 01:26:43 i have no idea to be honest Sep 14 01:26:49 i know that feature exists but have never used it myself Sep 14 01:26:59 Gmail is the best example Sep 14 01:27:11 you can click on a message. or check a bunch and take some action on them Sep 14 01:27:52 swipe-to-dismiss is another candidate pattern here. but would need to get more code in place :-/ Sep 14 01:29:07 god it's been a while since i actually used a phone with screen < 4" Sep 14 01:29:14 blech Sep 14 01:30:15 nothing happens on GB Sep 14 01:30:47 I will investigate, but I will likely just not use the "choiceMultiModal" mode for now Sep 14 01:30:48 hey guys, can someone tell me why the mapview zooms when i swipe with my finger? Sep 14 01:31:09 the mapview is displaying correctly along with the markers Sep 14 01:31:37 yeah I know the pattern. the problem is that ABS is trying to wrap the native action mode Sep 14 01:31:38 but when i try to use my finger to move towards a marker it zooms all over the place Sep 14 01:50:31 Think I might go swipe-to-dismiss Sep 14 01:51:04 I'll see if I can repro later. offline for a bit Sep 14 01:51:53 Does anyone know if it's possible using Eclipse/DDMS to see all of the Listeners that may be currently active (SMS, GPS, etc). Trying to detect a possible spying app. Sep 14 01:52:54 speakingcode: Yea there bud? Sep 14 01:57:42 Anyone know how I can dynamically create some forms based on the number someone chooses to make Sep 14 01:59:39 QbY: you can run 'adb shell dumpsys package' from a command line (pipe it to a file) and crawl through the list of apps that have sms / location permissions Sep 14 02:00:12 also there may be some dumpsys output in a full 'adb bugreport' that describes known observers/listeners, i dunno Sep 14 02:00:20 bugreports are even huger; pipe that to a file as well Sep 14 02:01:30 Ok so I need some guidance Sep 14 02:01:33 ctate: OK. That'll get me started. Cheating spouses and paranoia… Not my normal cup of tea, but hey, I'll do it. Sep 14 02:02:39 I need to create some code so that a user enters the number of text fields they want and when the button is pressed it will swipe to a new page and it will dynamically display those text fields. Then there will be a button on the bottom and when clicked inserts all the info from the text fields into an array then goes back to the previous view. Sep 14 02:12:01 use exact same code (HttpsURLConnection) connect/post to a url. Android 2.3 and 4.0 are getting different HTML header response - 2.3 has cookies-set while 4.0 without . Any suggestions or clue? really at a lost .....:( Sep 14 02:12:36 keepalive is buggy pre-4.0, let me get you a link Sep 14 02:13:21 test___: http://android-developers.blogspot.com/2011/09/androids-http-clients.html Sep 14 02:20:19 Hi Sep 14 02:21:16 I'm trying to install the android ask on windows 8. I've installed JDK but the SDK installer complains about not being able to detect JDK Sep 14 02:21:39 android ask? Sep 14 02:21:49 *sdk Sep 14 02:29:07 anyone in here? Sep 14 02:31:09 Snwspeckle: you really don't get how IRC works, do you? Sep 14 02:31:38 Lol I do Sep 14 02:52:16 When passing data from one activity to another, is my intent correct --- intentMain.putExtra("index", resQuestions); Sep 14 02:52:37 Then I can get the string 'index' and just manipulate its integer resQuestions right? Sep 14 02:53:37 Hey all. I don't know how many are around, but here's what that TextSwitcher and font thing looks like, worked out: https://vimeo.com/49423741 Sep 14 02:53:57 It's the part at the end of each of those quizes, for the code. Sep 14 02:57:38 Anyone? Sep 14 02:58:29 Snwspeckle: yes, that's how intents work Sep 14 02:59:39 I keep having my error crash with Invalid int: null **** ENDING LOGGING AT Fri Sep 14 02:59:59 2012