**** BEGIN LOGGING AT Wed Jun 12 02:59:58 2013 Jun 12 03:01:49 <|0xD34D|> you could look at the source for the AOSP DeskClock app https://android.googlesource.com/platform/packages/apps/DeskClock/+/master Jun 12 03:04:13 * pfn ponders ripping the stopwatch out of the aosp clock to make a lockscreen widget Jun 12 03:06:24 StingRay_: I'm trying to do it in getView. I'm not sure what I should be adding the padding to? The row I'm inflating, or the parent? Jun 12 03:06:41 Ugh. That's... definitely not beginner-level. Jun 12 03:07:24 ejcweb: you would not Jun 12 03:07:34 you would use layoutParams margin Jun 12 03:07:40 if you were doing that way Jun 12 03:07:45 but not a great idea Jun 12 03:07:57 better to have a subview of the item I think Jun 12 03:08:13 as in root > theviewyouwantopisswith > content of your item Jun 12 03:10:11 In the getView method, is the parent argument the ListView itself? Jun 12 03:10:34 There seems to be no documentation: http://developer.android.com/reference/android/widget/ArrayAdapter.html#getView(int, android.view.View, android.view.ViewGroup) Jun 12 03:11:36 I think it is, but why would you want that ? Jun 12 03:12:00 I was trying to understand the method call. Jun 12 03:14:54 wabz: it is just the database handle, and I have read that you can just leave it open, but part of me doesn't like that. I changed it to close the handle in onDestroy. Jun 12 03:15:06 and it seems to work just dandy now Jun 12 03:15:31 for example, iosched doesnt' close it Jun 12 03:15:40 unless the database is being deleted Jun 12 03:16:13 I see. Jun 12 03:16:34 Well if it gives me any trouble I'll take it out Jun 12 03:28:38 jasta did you really upgrade your ubuntu box ? Jun 12 03:29:48 i am right now, yes. Jun 12 03:30:02 apt made me reboot once before the dist-upgrade, mysteriously Jun 12 03:37:01 leag Jun 12 03:37:06 mistype Jun 12 03:51:13 Wrote a library to make it easier to set typefaces, directly from the XML layout... Jun 12 04:52:31 Does anyone know why the docs don't indicate that boolean resources can be used in the AndroidManifest? Jun 12 04:53:11 hwrd|work can they ? Jun 12 04:53:40 g00s: afaik, it works. I'm just wondering why it isn't documented Jun 12 04:53:48 didn't you pointed out something similar the other day? related to the manifest docs Jun 12 04:53:49 you can use @strings, etc - i would assume its ok Jun 12 04:53:59 danm undocumented functions taking our jobs! Jun 12 04:54:09 g00s: Something like Jun 12 04:54:20 seems legit Jun 12 04:55:55 I'm also wondering why no one has commented on my patch! https://android-review.googlesource.com/#/c/60217/ Jun 12 04:56:19 romainguy : did the raw process in Lr 5 change from Lr 4 (Process 2012) Jun 12 04:57:26 Is romainguy alive right now? Jun 12 05:01:29 hopefully somewhere, yeah Jun 12 05:01:31 he's probably busy playing with Lr5 Jun 12 05:01:33 otherwise we're all screwed Jun 12 05:04:40 oh, lightroom Jun 12 05:04:51 I had no idea what you were talking about :p Jun 12 05:05:06 I was like "Lr5? Is that some new android component or something?" Jun 12 05:05:20 :) Jun 12 05:05:37 g00s Jun 12 05:05:43 hey ron_frown Jun 12 05:05:58 internet out of your primary internet sources normal operating hours Jun 12 05:06:08 at neighbors :D Jun 12 05:06:27 if your at the neighbors why not just ask em for a wifi pass and use it from your house Jun 12 05:06:43 yeah, internet hours are strictly 10-8 M-Th, 10-6 Fr-Sat, 1-5 Sun now :D Jun 12 05:06:51 starbucks? Jun 12 05:06:53 oh, too far Jun 12 05:06:59 JesusFreke library Jun 12 05:07:02 ah Jun 12 05:07:06 fuckers are blocking skype Jun 12 05:07:13 the horror Jun 12 05:07:21 probably need to pony up for vpn Jun 12 05:07:44 or you know, get internet access to your home. Jun 12 05:08:14 dont have a home now :) Jun 12 05:08:22 long story :D Jun 12 05:08:27 hah, ok :) Jun 12 05:08:31 living free and large huh? Jun 12 05:08:40 The thought has crossed my mind before :) Jun 12 05:08:49 at least the lib isn't spoofing authentic site's certs Jun 12 05:08:51 JesusFreke: nah, he's trying to make a living from Android development... Jun 12 05:09:00 thats right Leeds ! Jun 12 05:09:33 at least you don't live near neighbors who use a jamming device to block 3g/wifi when it's past their kid's bedtimes Jun 12 05:09:44 I'm not much better - just trailer trash. Jun 12 05:10:03 JesusFreke this guy is my hero thomasbacklund.com Jun 12 05:10:06 granted, SF area trailer parks aren't exactly like trailer parks in the middle of nowhere, oklahoma Jun 12 05:10:10 isn't blocking 3G illegal, mostly? Jun 12 05:10:16 but where its cool enough to be here, there are bears - unlike his place Jun 12 05:10:53 g00s: yes, exactly that (the sort of thing I have thought about doing before) Jun 12 05:11:00 Leeds i would think so, pragma- wut ? Jun 12 05:11:02 never seriously considered it, but still :) Jun 12 05:11:39 JesusFreke can you hook up a bike trailer to a monocycle ? Jun 12 05:11:43 find out ! Jun 12 05:11:59 k, got like 20 minutes left to code Jun 12 05:12:02 I'm sure you could. but I doubt it would be very pleasant :) Jun 12 05:12:22 i'm not finding the link for the eclipse adt plugin. i'm not using the bundle. https://developer.android.com/sdk/index.html#ExistingIDE Jun 12 05:13:37 BullShark: https://developer.android.com/sdk/installing/installing-adt.html Jun 12 05:13:53 thanks kakazza Jun 12 05:13:54 One click away from https://developer.android.com/sdk/installing/index.html Jun 12 05:13:59 Not sure where you got your link from Jun 12 05:14:25 navigating links but it seemed to be hidden in favor of adt bundle and android studio Jun 12 05:14:47 oh god why... the gas is just out of control Jun 12 05:15:00 ron_frown too many beans ? Jun 12 05:15:06 bean stalk Jun 12 05:15:11 0 beans that I recall Jun 12 05:16:06 Oh, was romain alive? Jun 12 05:16:42 i need jdbc on my ec2 instance (linux) how????? Jun 12 05:27:11 ron_frown if i have class Foo { interface Bar { String X } } } …. idea simply refuses to let me say Bar.X … (and add an import for Foo) … so everywhere i have to say Foo.Bar.X which is annoying, do you have any idea wth its doing ? Jun 12 05:29:28 no... but thats typical Jun 12 05:29:39 whoa Jun 12 05:29:40 c#? Jun 12 05:31:26 oh, it was Imports -> insert imports for inner classes Jun 12 05:32:42 gnight Jun 12 05:32:46 Hi, I've a problem with custom notification layouts. When I do notification.contentView.setTextViewText(" ..." ) , and then notify it with my notification manager with a specific ID, it affects all my notifications with different IDs Jun 12 05:34:38 I'm doing all of this in a service , creating my NotificationManager and NotificationCompact.Builder in onStart method, and then calling my function in which I run a thread and in that thread I change my notification contentView and notify it .... Jun 12 05:34:53 any Idea where the problem is ? Jun 12 05:36:49 I think some how I should use a copy of layout for each individual notification then changes are not applied to the same contentView, I've set the RemoteView in my thread but doesn't work, it gets worse Jun 12 06:26:58 onStart() is an odd place to do any of that Jun 12 06:27:06 for getting your NM, onCreate makes a lot more sense Jun 12 06:27:17 and you'd generally create the actual notification only when you want to use it Jun 12 06:40:04 ok, so I created a new branch in Android Studio and now I can't push it... Jun 12 06:47:17 This might be a bug, when I created a new local branch in Android Studio, made changes, and tried to commit and push the changes remotly it would not create the new branch in my bitbucket server, I had to use git CLI to push to remote, after the branch was created remotly Android Studio is able to push to it. Jun 12 06:51:26 shiz Jun 12 07:43:57 Snicers-Work: try to see if you can push it from the command line Jun 12 07:44:08 Snicers-Work: git push -v remote_name branch_name Jun 12 07:46:32 how can I check from my app, if some other app is installed? Jun 12 07:53:26 hmm, did anyone have to deal with proguard messing up string ids? Jun 12 08:19:25 can someone tell me what is wrong with this code? http://pastebin.com/CswgDWAP - the imageview returns blank in my listView Jun 12 08:19:49 * Achillion is a noob Jun 12 08:19:56 I'll get back to you when I go pro Jun 12 08:32:55 hello. I have a lengthy but important question. anyone wants to participate for 150 points bountry ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 12 08:36:24 omid8bimo: |returns blank| ? ... you mean hits line 22 (avoids setting image bitmap?) Jun 12 08:38:29 capella: yes. returns black. i think i hit line 22. by the way, ignore the line 18 (wrong paste!), also the Log.d returns "images: file:///storage/sdcard0/DCIM/OrangeClubPhotos/1370853592867.jpg" Jun 12 08:39:01 hey guys... i have a question about merchant accounts Jun 12 08:39:24 in the list for supported locations for merchants is a bunch of countries Jun 12 08:39:52 my question is... do i just need a bank account in that country? do i have to be a citizen of that country? do i need a visa for that country? Jun 12 08:40:25 alegen: in reality? Bank account and credit card attached to it Jun 12 08:41:09 does it have to be credit or can it also be debit? Jun 12 08:41:24 alegen: probably can be debit, at least VISA and such work Jun 12 08:41:37 p_l: ok thanks! :D Jun 12 08:43:03 alegen, before earning bunch of money I'd check with Play TOS though, would suck to get a profitable Play account suspended Jun 12 08:45:04 Mavrik: ok, will go through it too... thing is that i`m a student in a country which is on that list, but my home country is not... Jun 12 08:45:13 Hello all Beginners welcome here or is there another channel available? Jun 12 08:45:41 skyz99, we eat beginners for breakfast with mustard and some broccoli salad Jun 12 08:45:44 skyz99: here i guess Jun 12 08:45:48 lol Jun 12 08:46:03 in truth, are we not all beginners in some sense Jun 12 08:46:09 anyway, ask away just PLEASE don't ask stuff that's answered on first page of d.android.com articles -_- Jun 12 08:46:19 Is there another channel then? Jun 12 08:46:43 no, this is the channel - just don't be too dumb :) Jun 12 08:47:01 in general it is okay, skyz99 - as long as you google before eyou ask Jun 12 08:47:03 *you Jun 12 08:47:07 alegen, that should be ok then :) Jun 12 08:47:19 Ok sounds good. Im a redditor so I can kinda guess what not to ask. Jun 12 08:47:40 heh, welcome, fellow redditor :) Jun 12 08:47:47 Mavrik: thanks :) Jun 12 08:47:51 alegen: if you're a student in a supported country and have things like a local address, bank account and card, you should be fine - just note that if/when you leave you probably would have to keep your accounts active if you wanted to keep that app publisher account active Jun 12 08:48:33 Thank you YuviPanda Jun 12 08:57:15 * capella laughs |don't be too dumb| ... is that some corporate motto? :P Jun 12 08:58:54 For Google Games, has anyone found in the docs a more straight forward way to get the achievemnet progress for a current signed in player? Jun 12 08:59:10 The only way I see is fetching all achievements and iterating over them. Jun 12 09:45:17 in custom grid adapter ... when you recycle a convertView I use setTag and getTag to get the view from layout .... this works fine as long as i only have one textView for each cell ... now i want to add imageview as well but cant figure out how to recycle both views then.... Jun 12 09:45:47 can i use settag and gettag twice ..... but i pass no parameter to getTag so how does it know which one to get Jun 12 09:48:33 i read somewhere calling findViewById in every loop interation is too slow so you need to recyle the view, but how do you recyle two views? Jun 12 09:53:01 you just need to keep references to both views in your view holder object Jun 12 09:53:02 http://developer.android.com/training/improving-layouts/smooth-scrolling.html#ViewHolder Jun 12 09:53:12 something is wrong with my setViewValue -> http://stackoverflow.com/questions/17060872/setting-imageview-from-cursor/17061724 can someone help? Jun 12 09:53:38 viewholder ... that's the keyword. thanks karlo|w i'll check it out Jun 12 09:56:28 I am trying to translate a ListView when the user taps and drags the view. I was able to implement this using the view.setX(value) api but since this API is not available for android versions below 3.0 it does not work on them. Is there another way to do this? Jun 12 09:56:56 The ListView is from a ListFragment and added inside a FrameLayout Jun 12 09:57:55 hm, eclipse doesn't know where to import viewHolder from ... it's offering support library and change to ViewPager, ViewBinder or ViewSwitcher .... Jun 12 09:58:50 primski: it's just a pattern, you have to create such class by yourself, usually as inner class in your adapter Jun 12 09:58:55 oh wait ... i just need to create this simple class ..... Jun 12 09:58:59 aha ok, i'll try Jun 12 09:59:38 vivek_rk: maybe take a look what NineOldAndroids does for translate animations for Android 2 Jun 12 10:01:39 @karlo|w: Thanks. I will check it out. :) Jun 12 10:04:49 ok got it working thanks karlo|w Jun 12 10:05:29 What are optimizations to make a view start faster? I heard something about excluding it from the recent apps and using a different theme. What are your suggestions? Jun 12 10:10:30 Nobody knows any tricks for this? Jun 12 10:16:19 marrrk, what exactly are you trying to optimise? View is a pretty general term Jun 12 10:17:17 hey guys Jun 12 10:17:23 I have a funky question Jun 12 10:17:50 the app I inherited displays the resulting fragments as just the results of an http request Jun 12 10:17:53 I'm making a lock screen replacement. I want my lock screen to come up immediately once the user locks the screen, such that when he or she unlocks he or she will be greeted by it. Jun 12 10:18:00 presumably not the best but that's what I have at the moment Jun 12 10:18:09 one of the requests requires an authtoken Jun 12 10:18:34 That works alright however if somebody locks and unlocks quite fast the lock screen does not come up at all. I want to minimize the time interval in which this can happen. Jun 12 10:18:48 so my activity is storing the authtoken and then when someone clicks on the correct list item this activity can make that next http request with the authtoken Jun 12 10:19:32 but my problem right now is...in my callback that gets the notification that the user logged in and gets the authtoken Jun 12 10:19:48 I have if(mFragment == null) and it seems to be triggering all the time Jun 12 10:21:35 the callback get triggered inside a dialog fragment so I think the mFragment is still there...just in the background Jun 12 10:21:38 like...I can see it Jun 12 10:25:01 ProgramMax: fragment.is* Jun 12 10:25:10 there are some methods that might be helpful Jun 12 10:26:00 but to be honest, the solution your predecessor left you with sounds a bit "dirty". you'd be better of rewriting parts of it to fit your needs Jun 12 10:26:04 imhp Jun 12 10:26:07 imho* Jun 12 10:26:20 I definitely agree Jun 12 10:26:28 I don't yet know the right way to do it Jun 12 10:26:33 so maybe you can help me with that Jun 12 10:26:41 while I check this fragment.is* Jun 12 10:27:16 All this fragment stuff is horribly annoying. Jun 12 10:27:22 well, there are some relevant methods like isVisible() Jun 12 10:27:25 marrrk: how so? Jun 12 10:28:45 Because it is too complicated for my head. What was more or less easy before now needs a few more classes than before and I still don't get what for. Jun 12 10:29:06 marrrk: it's called "seperation of concerns" Jun 12 10:29:12 and modular development Jun 12 10:29:39 right now my dialog fragment has an onAttach that takes an activity Jun 12 10:29:40 In what way do fragments provide that? Jun 12 10:29:47 and it is keeping that activity as a listener for the callbacks Jun 12 10:30:19 any way I could like...take the fragment as a listener? Call a callback on that other fragment? Jun 12 10:30:26 marrrk: are you trolling me? or is your question meant to be taken seriously Jun 12 10:30:38 I am not trolling you. I told you I don't understand it yet. Jun 12 10:31:04 I'm just always trying to use Fragments because "you're supposed to" but I've never felt, yeah this is really better now. Jun 12 10:32:03 So for example I have a settings view which now loads a settings fragment. And if I understand it correctly, before I would have just put everything that's in the SettingsFragment inside the SettingsActivity. Jun 12 10:32:04 marrrk: http://developer.android.com/images/fundamentals/fragments.png that explains modularity and separation of concerns in an android sense Jun 12 10:32:22 marrrk: fragments are more reusable Jun 12 10:32:32 What if I don't want my app to run on a tablet in the first place? Jun 12 10:33:15 I mean that isn't the only reason for fragments, right? Jun 12 10:33:18 fragments are supported by the android support library, backwards compatible to 1.6 Jun 12 10:33:43 marrrk: android does not "know" tablets, it knows devices. anyhow, supporting multiple device sizes is not the only reason to use fragments. Jun 12 10:33:45 fragments should make your life easier Jun 12 10:33:51 regardless of device Jun 12 10:33:55 first of all, fragments don't need to provide a view Jun 12 10:34:07 secondly, you have more power over the backstack Jun 12 10:34:29 fragments are logical units of UI, giving you better leverage through OOP's principle of composition Jun 12 10:34:40 in addition, swapping two fragments (which have already been initialized before) is less pricy than starting an activity Jun 12 10:34:46 ^^ Jun 12 10:35:09 marrrk: do you need more reasons? because i could go on for hours Jun 12 10:35:28 What if I just did setContentView with another xml instead of getting a Fragment manager? Jun 12 10:35:52 brb lunch Jun 12 10:36:39 siyb: could you come up with few more? (interested) Jun 12 10:37:02 The first of all one isn't even a reason Jun 12 10:38:03 Thus, so far we have "more power over the back stack" Jun 12 10:38:10 Which I do accept. Jun 12 10:39:09 What should I commit to a repository besides source files for an android project? (using Android studio) Jun 12 10:40:47 marrrk: exactly. I'm interested in fragments vs views, not really fragments vs activities Jun 12 10:45:33 Hi. Is it permissible and "within scope" to ask about Android development contract rates here? Jun 12 10:47:13 maroloccio I would say yes Jun 12 10:49:22 you are not supposed to make repeated calls to setContentView Jun 12 10:49:41 Hey all. Jun 12 10:49:51 if you are doing this, it means your software design is flawed Jun 12 10:50:57 the basic idea of the fragment for non-fragmentation purposes is let's you have a splash screen, a login and a main user screen. typically in the past those might have been distinct activities using bundles in the intent to set off various whatever Jun 12 10:51:15 now you can have one activity host each discrete piece of ui by leveraging it through fragments Jun 12 10:51:27 I have a tree-like structure to display (parent, children, no sub-children), but the ExpandableListView wastes a lot of space on landscape or large-screen devices. Can anyone suggest an alternative? Jun 12 10:51:38 what's more is you can have cross talk between fragments (ie don't need intents, can directly access info in a living fragment, etc) Jun 12 10:52:32 and each fragment will serve (i could be wrong on the terminology) the appropiate encapsulation of controller-view Jun 12 10:53:16 Lachezar can you post up on some screen shots ? Jun 12 10:55:26 lasserix: Doh, will have to create some, basically all the text sticks to the left, leaving lots of unused space to the right. Jun 12 10:56:10 hrmmm I'm not sure where in my app the loading indicator is hidden Jun 12 10:56:17 I see this inside a fragment's onCreateView: Jun 12 10:56:34 final ImageView loadingIndicator = (ImageView)view.findViewById(android.R.id.empty); Jun 12 10:56:46 loadingIndicator.post(() -> { Jun 12 10:57:01 AnimationDrawable drawable = (AnimationDrawable)loadingIndicator.getDrawable(); Jun 12 10:57:05 drawable.start(); Jun 12 10:57:09 }); Jun 12 10:57:27 Lachezar: heh, thought so--ads? details? Jun 12 10:57:40 preview? Jun 12 10:58:49 lasserix but that sounds like that if the use cases that you were just talking about don't apply to your case you might just as well use activities/views instead of fragments Jun 12 10:59:12 when i delete an apps data in the settings is there a guarantee that the app will be restarted? Jun 12 11:00:29 karlo|w: reduction of coupling (in combination with LocalBroadcastManager), code reuse (even without considering device diversity e.g. dialogs, other projects), testability, maintainability, etc Jun 12 11:03:00 "If I install an App, does it ever start with Data?" Jun 12 11:03:59 karlo|w: you cannot compare fragments and views in my opion. views are views, fragments and activities resemble controllers Jun 12 11:05:31 What does the LocalBroadcastManager do? Jun 12 11:05:43 you can have fragments entirely without views Jun 12 11:06:10 like a mini-service Jun 12 11:06:16 sounds reasonable Jun 12 11:06:38 lasserix: I'll go whip-up an example :( Jun 12 11:06:43 marrrk: it allows you to send broadcasts locally (within your app) Jun 12 11:07:04 any ideas how that loading indicator might get hidden? Jun 12 11:07:11 marrk: the whole point of fragments is to be encapsulated quasi-activity views Jun 12 11:07:34 Is that the preferred way of sending messages around between some instances? I wondered about this the other day, whether it's a good idea to use a broadcast when you know there will be only one listener for it any given time. Jun 12 11:07:53 marrrk: what i like to do in my projects: have an activity which functions as a container, have fragments communicate with each other using the LocalBroadcastManager. register/unregister callbacks in onResume / onPause respectivly Jun 12 11:08:13 i was just giving an example, its fairly easy to handle them so any inertial resistance to using them is just laziness imho ( i made some arguments in my head as you are making, previousily in my coding life ) Jun 12 11:08:37 marrrk: i use broadcasts excessivly, imho it's better to use LocalBroadcastManager than having to establish listener links in between instances Jun 12 11:09:20 android:translationX in View .... what value does it take in xml file ? it says float but how do i format that? Jun 12 11:09:36 marrrk: because LocalBroadcastManager acts like a mediator, and because all fragments then depend on LocalBroadcastManager rather than N other fragment instances Jun 12 11:09:45 For me the biggest concern was really the name BROADcast. It feels like there is unnecessary overhead. Jun 12 11:10:08 marrrk: LocalBroadcastManager has a "local" (application) scope Jun 12 11:10:22 i tried android:translationX="0.0" android:translationX="0" android:translationX=0 android:translationX=0.0 - build error ... Jun 12 11:10:24 it's basically a loop with an intent matcher Jun 12 11:11:32 how can i get a column of returned cursor used in simplecursoradapter's setViewValue? Jun 12 11:11:45 Okay, I might try to do it that way. It would be so nice if I could make my Keyboard a singleton Jun 12 11:11:53 the only downside: it does not support sticky broadcasts and ordered broadcasts yet, i have written a wrapper to implement those features Jun 12 11:14:02 ah it has to be with dp android:translationX="0dp" Jun 12 11:14:14 hrmmm so I have a service receiver that is parsing the results of the http request Jun 12 11:14:26 it gets an empty object and doesn't add anything to the list that it returns Jun 12 11:14:29 so it just returns an empty list Jun 12 11:14:38 when I do that, the loading indicator keeps spinning Jun 12 11:14:54 but as soon as I force an item into the list by hard-coding it, the loading indicator goes away Jun 12 11:16:54 the only place in the code that has "> 0" or ">= 1" Jun 12 11:17:05 there is a place in the fragment that gets onComplete with that list Jun 12 11:17:20 and it has if(thatList.size() >= 1){ mListView.setSelection(0); } Jun 12 11:17:32 I doubt setting the selection is what is doing that Jun 12 11:19:31 changing it to >= 0 doesn't fix it Jun 12 11:19:36 I don't think it is that Jun 12 11:20:48 omg Jun 12 11:20:51 I think I see Jun 12 11:20:57 in the fragment's xml Jun 12 11:21:06 there is a listview with the items Jun 12 11:21:18 then there is also an imageview with the loading animation Jun 12 11:21:39 so maybe when the list view gets filled, it fills the parent's area and just pushes the loading indicator down? Jun 12 11:22:26 Been trying to figure out which files I need to share or commit to a CVS. I want to commit the minimum amount of files that still allow the project to be imported, compiled and run. Jun 12 11:22:33 msch: Mind you, I am not a recruiter, at all. I would just like to ask about contract rates for an Android development job in Europe. /msg me privately if you either are one such developer or you know about one. Again: no spam, genuine interest and an actual project. Jun 12 11:23:16 Obviously, all source .java files should be in there and the AndroidManifest. Resources under build/ are also required (right?). What else? Jun 12 11:27:13 http://pastebin.com/4YQ3H715 Jun 12 11:27:19 is that the normal way to do a loading indicator? Jun 12 11:27:49 (with some code that sets an AnimationDrawable on it Jun 12 11:28:09 I'm not sure what to look for to figure out when the loading animation is hidden/stopped Jun 12 11:39:01 Interesting, I did not expect to get such a low response.. how should I have asked instead? Jun 12 11:42:43 maybe just pop up in the channel and say "What's the going rate for an android dev these days?" :) Jun 12 11:44:29 Achillion: Thank you. Jun 12 11:44:39 IRC is weird when it comes to pleasantries. People usually prefer forwardness and "getting to the point" Jun 12 11:44:40 Hi guys.. what's the going rate for an android dev these days? Jun 12 11:45:54 I would expect it's not very different from any other kind of software project, but I'm new to the scene so I really can't say with any certainty. Jun 12 11:48:06 The topic does say "No advertising please, jobs or otherwise".. but I am.. _not_ advertising? Never mind, thanks anyway guys to the couple who at least answered. Jun 12 11:54:27 lasserix: RE: Here is a picture of an expandable list on a large-landscape: http://postimg.org/image/rjrckybq5/ Jun 12 11:55:11 lachezar: can you describe what the content is about? Jun 12 11:55:26 basically you can center it and crop the sides so it stands out Jun 12 11:55:45 but if you want to utilize the extra space, it might be useful to put some kind of details on the RHS Jun 12 11:55:54 but that depends on whatever the actual data is Jun 12 11:56:04 lasserix: I would like to make better use of the available space. Centering won't do it. Jun 12 11:56:22 lock it in portrait :) Jun 12 11:56:33 um Jun 12 11:56:33 lasserix: I can only lock it in landscape! Jun 12 11:56:39 what happens when you click a child? Jun 12 11:56:57 lasserix: nothing. It's supposed to display the list only. Jun 12 11:57:09 lasserix: It's on a TV screen: no-no for portrait! Jun 12 11:57:17 oh Jun 12 11:57:32 put some kind of meta information per row on the right? Jun 12 11:57:53 lasserix: It's a report: a list of shipments, with a list of parcels for each (just a number), and an icon: whether it's there or not., Jun 12 11:58:20 lasserix: I'd like to show more elements, not more details for the elements. Jun 12 12:00:01 shhort of making two lists side by side idk Jun 12 12:00:53 lasserix: I've considered multiple lists, but those would have to be 'disconnected' from each other (very one with its own scroll, etc.) Jun 12 12:02:00 yeah just two list views Jun 12 12:02:14 figure out where to segment your data set Jun 12 12:02:43 althought that's a little --unorthodox? Jun 12 12:02:53 funny a guy had the same problem a while back with server-item game info Jun 12 12:06:40 lasserix: I'd think this is a common problem: displaying tree data on a wide screen... It's not just Android, it's more basic than that. Jun 12 12:08:06 yeah Jun 12 12:08:19 lasserix: Something like an ExpandableGridView? Jun 12 12:08:28 ahh Jun 12 12:08:30 that would be good Jun 12 12:08:35 lasserix: That... Yeah... Jun 12 12:08:44 then you can use a dialog on click that pops up with details or whatever Jun 12 12:08:57 though is this for industry or general user? Jun 12 12:09:08 lasserix: When you 'click' an item to open it, it should 'add' a new 'row' or 'column' to display the children in. Jun 12 12:09:09 because i personally dislike gridview for textual stuff Jun 12 12:09:26 ahh Jun 12 12:09:44 so like gridview of the subset of childern in the listview of parents ;p Jun 12 12:09:55 that's a piece of work ;p Jun 12 12:10:16 lasserix: I was thinking a griv view of parents, with sub-grids for the children. Jun 12 12:10:51 lasserix: Oh... I've seen similar: the Image Search in Google :):):) Jun 12 12:11:09 lasserix: Click an image in the grid, and it inserts a new row with the details... Jun 12 12:11:48 lasserix: The new row could easily display anything, including a list or grid... Nah... That's beyond my abilities (I think). Jun 12 12:14:14 I'm off to looking for a solution... Jun 12 12:15:04 not beyond your abilities, but a little bit of a intractable sub-project ;p Jun 12 12:16:21 lasserix: Pretty much yes, I think I can do it, but it would take me... an awful lot. Jun 12 12:19:58 how do i send variables from an activity to a service so i can use that value in " public void onCreate()" Jun 12 12:20:26 is there an option to compress a bitmap to jpeg and apply a bilinear filter to it Jun 12 12:20:29 ? Jun 12 12:20:43 using the android bitmap api Jun 12 12:22:37 anny__, bilineral filtering comes into effect when you scale it Jun 12 12:22:40 not when you compress it Jun 12 12:22:59 if you say "true" to filter parameter when scaling you'll get bilinear filtering when scaling the bitmap Jun 12 12:23:05 Lachezar: just make the text bigger! Jun 12 12:23:18 you said it's for display on a tv right? Jun 12 12:23:28 just make it easier to read and call it day :) Jun 12 12:25:10 rved: onStartCommand(..) / onBind(..) both get the intent used to start / bind the service Jun 12 12:25:29 you can transport arbitrary data using the intent Jun 12 12:25:39 hello. I have a lengthy but important question. anyone wants to participate for 150 points bountry ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 12 12:46:38 lasserix: I think I got an idea: LinearLayout[GridView, DetailView, GridView] In the top grid I'll display the items before the selected, in the bottom grid I'll display the items after the selected, and in between the children/details of the selected item. Jun 12 12:47:17 lasserix: No custom views needed, just some Adapter juggling. Jun 12 12:49:12 ahh nice Jun 12 12:49:21 KISS all the way :) Jun 12 12:52:19 KISS \o/ Jun 12 12:52:27 no, not the band Jun 12 13:21:09 Afternoon developers! Does anyone have a good experiance with ORM on android? and combining it with a content provider? Jun 12 13:22:14 ClockworkAnt: I've had good luck with https://github.com/mitmel/SimpleContentProvider Jun 12 13:22:58 thanks pjdelport, any tutorials or are the docs and source enough to learn from? Jun 12 13:26:17 ClockworkAnt: http://mel-tools.mit.edu/code/SimpleContentProvider/doc/edu/mit/mobile/android/content/SimpleContentProvider.html should have enough to get you started Jun 12 13:26:26 along with the other references from the README Jun 12 13:26:59 you'll want to be at least somewhat familiar with http://developer.android.com/guide/topics/providers/content-provider-creating.html Jun 12 13:27:34 SimpleContentProvider avoids the need for almost all that boilerplate, though Jun 12 13:29:06 you'll want one subclass of SimpleContentProvider for your app, with a bunch of ContentItem subclasses for each table / directory Jun 12 13:41:21 is there anyone around whos done drop box sdk stuff? I have an app that works, but it rather often requires me to regrant access to the folder tha the app itself created.. Jun 12 13:43:22 hello all Jun 12 13:43:32 how to create Parcel Jun 12 13:43:40 for copying Parcelable object Jun 12 13:43:56 is there an easy way to set the threshold for long press detection? i want to make it faster (i.e set the threshold lower) Jun 12 13:51:57 Hello, I'm implementing GCM between my server and the app. I always receive a pushnotification when the app is running or even when the onDestroy() is called, but when onDestroy() is called and the user clicks on the push notification message, what should I do to show the message in the TextView Jun 12 13:52:21 I'm trying to have a square camera preview like the instagram app, which works fine in portrait mode.. but when I rotate to landscape the image is squashed Jun 12 13:53:10 What is the location of /sdcard/Android/obb from within adb shell for 4.2+ ? Jun 12 13:53:17 So I can put files in there as a developer Jun 12 13:57:01 xastey: I'm not sure, but did you already look at Camera.setDisplayOrientation(int)? Jun 12 13:57:09 yes to 90 Jun 12 13:59:23 Should I store the message somewhere or what should I do Jun 12 13:59:41 how to do copy of object implements Parcelable? Jun 12 14:01:01 I've got a bunch of buttons inside a linearlayout inside a linear layout (rolling my own keypad) it's giving me a lint warning saying that "buttons in button bars should be borderless" what is this button bar business and why does it think I have one? I tried just using the style, but that made my button borderless. Jun 12 14:05:58 pjdelport: thanks for the information, I've written my own contentprovider before however its an awful lot of boilerplate code! I'll look at this project, thank you again!! Jun 12 14:06:46 I want to comply with the standard, but I don't see how I can make a keypad of sorts without borders to the buttons. Jun 12 14:12:39 is anyone here aware of the existence of an open source country code picker, to select a phone country prefix? Jun 12 14:14:28 xplosivant: i would guess libphonenumber has something like that Jun 12 14:14:33 but i haven't used it myself Jun 12 14:15:35 I'll check it out, thanks! Jun 12 14:21:31 libphonenumber is actually extremely interesting Jun 12 14:22:04 I was hoping to find an Android control with a list picker with flags and everything though :) Jun 12 14:25:31 I can never seem to grasp the layouts properly. I needed RelativeLayout but it made my button lower. What must I do? http://pastebin.com/nih93MkU Jun 12 14:52:30 so.. how do you usually do the application launch on an app that needs to show a login screen if authentication info is missing? Jun 12 14:53:50 i can only think of pretty ugly ways to do this, e.g. having a "launch activity" that launches either the login activity or the main activity depending if the user has already logged in Jun 12 14:54:21 how to make copy of object implements Parcelable? Jun 12 14:55:44 hi Jun 12 14:56:08 what pull to refresh would you suggest me to use for compatibility with ios5 ? Jun 12 14:56:19 hrnt: very good question, I've often wondered this myself Jun 12 14:56:32 hrnt, I have a "similar" situation where I have an activity to choose a server and another to actually use stuff on that chosen server... but I always launch the chooser activity and that activity launches the actual main activity thing if it has enough info on which server is supposed to be used Jun 12 14:56:47 hrnt, I haven't found a good solution Jun 12 14:57:01 hrnt: Just use fragments Jun 12 14:57:05 I usually launch into the app and main activity replaces itself with login activity if user is not authenticate Jun 12 14:57:06 d Jun 12 14:57:15 LoginFragment, ContentFragment Jun 12 14:57:19 since wasting time launching and loading login activity for 99% use cases just breaks performance Jun 12 14:57:32 or fragments yeah ;) Jun 12 14:57:41 Mavrik, nah, it doesn't show at all for me Jun 12 14:58:01 well, depends what kind of activity do you have right? Jun 12 14:58:24 we have resource-heavy stuff and loading screen-size backgrounds which you don't need 90% of time is pointless Jun 12 14:59:13 fragments do solve that issues pretty well if you want to go down that way :) Jun 12 14:59:23 you don't need to setContentView immediately though Jun 12 15:00:22 Zharf: that is what i have done as well previously, it just feels a bit ugly to have an activity that only has one job - launch another activity :P Jun 12 15:00:27 I did make it with fragments initially Jun 12 15:00:33 hrnt, http://eclipser.xmms2.org/git/xmms2-android.git/tree/src/org/xmms2/server/Client.java :p Jun 12 15:00:42 Zharf: i assume you finish() the launch activity right after launching the actual activity? Jun 12 15:00:47 Mavrik, but I had trouble because I ended up with nested fragments Jun 12 15:01:27 hrnt, yeah Jun 12 15:02:00 yep, or just set a flag to clear/start new task Jun 12 15:02:27 a pity that the "clear task" intent flag is API level 11 :( Jun 12 15:03:06 Zharf: there is one annoying thing with that approach though. now your application no longer has a common "root activity" Jun 12 15:03:12 so implementing logout is a bit annoying Jun 12 15:03:25 if you had a root activity, you could just launch it with clear top flag Jun 12 15:03:54 to go back to the login screen Jun 12 15:04:21 I don't have logout, I do have disconnect... basically I have a service which talks with the server and propagates connection states to the current activity Jun 12 15:04:22 SimonVT: i could use fragments, but in this particular case i'd rather avoid them Jun 12 15:05:05 SimonVT: my login screen does something that breaks the android's fragment support library, and the workaround that is very tedious Jun 12 15:06:16 Zharf: in my app, you basically just log in once. however, in the preferences screen you can "clear" the authentication information. Jun 12 15:06:34 Zharf: at that point i need to tear down all the activities instantly, because they all break if they are used without a server connection Jun 12 15:12:37 how to make copy of object implements Parcelable? Jun 12 15:13:03 hrnt, my main activity also breaks without connection, but I only have one activity for that, it uses fragments inside it for various stuff Jun 12 15:14:30 I can never seem to grasp the layouts properly. I needed RelativeLayout but it made my button lower. What must I do? http://pastebin.com/nih93MkU Jun 12 15:30:08 rokets, parcel and unparcel it Jun 12 15:32:07 Quacked, then make the button higher :p Jun 12 15:32:18 hello all! does anyone know which transport protocols and data formats are used by gcm (between message sender and GCM as well as between GCM and message receiver)? Jun 12 15:32:35 pfn, how? Jun 12 15:32:56 rokets, write it into a parcel, and read it from a parcel Jun 12 15:33:08 how to create a parcel??? Jun 12 15:33:22 by reading the docs Jun 12 15:34:38 .obtain()? Jun 12 15:35:07 ggaaahh Jun 12 15:35:12 no idea why this won't work >.> Jun 12 15:35:13 So much debugging to do Jun 12 15:35:59 derp-bugging Jun 12 15:36:16 * Achillion is going to dive into AsyncTask now Jun 12 15:36:51 how to make copy of ParcelableSpan Jun 12 15:36:52 ? Jun 12 15:36:53 object Jun 12 15:37:03 reflection? Jun 12 15:45:02 Hello, this is probably more java than android, but how should I do to extend a Runnable class' Jun 12 15:45:50 I'm having this: http://ideone.com/Axx3yT do I have to create a new class that extends Runnable in order to add methods to it? Jun 12 15:47:58 if you want to access those methods from outside of the class, of course Jun 12 15:48:12 to implement runnable, you always have to create a new class anyway Jun 12 15:48:35 pretty silly question Jun 12 15:48:50 why don't you experiment and write code, compile and see what sticks Jun 12 15:49:27 they were right, berating you in ##java Jun 12 15:49:33 i am actually using a universal image https://github.com/nostra13/Android-Universal-Image-Loader and eventhough i added the jar file i still get a error Jun 12 15:50:36 stating Gradle: error: package com.nostra13.universalimageloader.core does not exist Jun 12 15:50:41 pfn: thanks, I know it's basic Jun 12 15:50:46 can anyone help me Jun 12 15:51:36 then add it correctly Jun 12 15:52:12 ya i downloaded the jar file and added it correctly Jun 12 15:52:25 in the path but still i get the error Jun 12 15:52:35 review how to add it correctly Jun 12 15:52:43 hmm okay Jun 12 15:52:48 you say it's correct, everything else is telling you it's now Jun 12 15:52:49 not Jun 12 15:53:19 hmm okay pfn thanx Jun 12 15:53:40 how reliable is audioManager.setStreamMute across devices? Jun 12 15:53:53 Oh, Runnable is an interface, not a class... Now I get it ;) Jun 12 15:53:56 would i be entering some sketchy waters? Jun 12 15:53:56 how can I get jni callbacks (in java) on the thread that launches the jni call? Jun 12 16:02:14 Can someone explain to me what is going on? My app (net.ednovak.covert_listen) crashes with this output in the unfiltered logcat. I am confused because I don't have any binder code in my app. Jun 12 16:04:11 logcat output: http://pastebin.com/AiYyzgCe Jun 12 16:08:55 is there any alternative media player widget to crappy MediaController for playing audio? Jun 12 16:12:17 kegsay audiotrack api? Jun 12 16:12:48 it doesn't present the ui elements though, which is mainly what I'm after Jun 12 16:13:38 So make your own Jun 12 16:13:39 oh Jun 12 16:13:42 i see Jun 12 16:14:55 I would've hoped that android would have something a bit better than what MediaController provides. Do you know of any decent third party libraries for this? Jun 12 16:16:07 none that are free Jun 12 16:16:15 and widget? Jun 12 16:16:16 huh Jun 12 16:16:22 make your own controls Jun 12 16:16:36 View Jun 12 16:17:23 wtf would you want pre-made controls, those always look like ass unless your app theme is super ass Jun 12 16:17:45 That feel when you forget to invalidate your view Jun 12 16:17:46 D: Jun 12 16:18:03 which is exactly why I was inquiring whether there were any decent alternatives already available Jun 12 16:18:22 deadmund, read the tombstone Jun 12 16:18:27 Kegsay: What does MediaController do? Jun 12 16:18:29 decent alternatives? Jun 12 16:18:31 I've never run into it Jun 12 16:18:32 any existing media player Jun 12 16:18:51 It basically acts as a view for a MediaPlayer object Jun 12 16:18:57 playback buttons, scrubber, etc Jun 12 16:19:12 O.o Jun 12 16:19:16 Why not just make your own? Jun 12 16:19:26 If you don't wanna use MediaController, it seems like something simple to make Jun 12 16:19:38 well, not simple as in fast/easy, but simple as in not complex Jun 12 16:19:42 * pfn is absolutely confused about what's being whined about Jun 12 16:20:12 it's a relatively common thing to want to do, so I was sort of expecting there to be something available which doesn't suck Jun 12 16:20:33 Kegsay: Most apps just implement their own media components Jun 12 16:20:42 E.g. Youtube, Twitch.tv, etc. Jun 12 16:20:52 I believe all of those implement custom media componenets Jun 12 16:21:53 pfn: I don't see anything that is meaningful to me: http://pastebin.com/T8AfL2Jn Jun 12 16:22:55 The hex, it hurts Jun 12 16:27:56 I'm having an issue with executing javascript on WebView, it's dismissing the keyboard which is up during the interaction. any ideas on how to keep the keyboard from dismissing Jun 12 16:28:20 why are you using a webview ? Jun 12 16:28:33 rich text editor Jun 12 16:28:52 for input text ? Jun 12 16:28:53 using the contenteditable attribute available in html to do thing slike nested bullets, etc easier Jun 12 16:28:54 yeah Jun 12 16:29:06 basically a small proof of concept note taker with rich text editing Jun 12 16:29:33 so I have native buttons that execute small javascript snippets to things like bold/italic on a toolbar Jun 12 16:29:44 but when i do press those buttons/execute the js, it dismisses the keyboard Jun 12 16:30:00 nothing really surfaces when I google/SO Jun 12 16:30:44 anybody have thoughts on the best practice for using two parameterized loader callbacks in a fragment? Jun 12 16:30:59 Seems like the inner class solution is dirty Jun 12 16:31:13 druhttp://stackoverflow.com/questions/13350616/rich-text-in-a-textview Jun 12 16:31:16 ooops Jun 12 16:31:21 drunkn718: http://stackoverflow.com/questions/13350616/rich-text-in-a-textview Jun 12 16:31:43 are android textViews really not suited ? Jun 12 16:31:54 And it also seems like there is no practical way to keep the inner classes static or singletons Jun 12 16:32:09 StingRay_: yep, I played with spannables and EditText Vies but they're very limiting, especially when it comes to bulleting (I'd have to roll something completely custom) Jun 12 16:32:24 and even then I couldnt do nowhere near as much as a generic html document could do = \ Jun 12 16:33:56 * Lachezar bids everyone good night. Jun 12 16:35:21 Ugh, I need to give an Android talk but I feel like everything about Android has already been talked about Jun 12 16:35:48 hwrd|work: Then talk about it more lol Jun 12 16:36:10 Brian|CB: Good point. I'll just re-do "The World of ListView" Jun 12 16:36:49 StingRay_: http://stackoverflow.com/questions/9303836/webview-hides-soft-keyboard-during-loadurl-which-means-a-keyboard-cannot-stay :( Jun 12 16:38:03 lol Jun 12 16:38:08 hwrd|work: Talk about Fragments and Tablets Jun 12 16:38:11 those are pretty awesome things Jun 12 16:38:17 and I feel like they dont get enough attention Jun 12 16:38:52 hi. i have created a context menu to a layout (that has two textviews inside) but i would like to pass some information to the onContextItemSelected (such as the text of a textview inside the layout that has the context menu). is this possible? Jun 12 16:43:15 deadmund, your app coredumped, that's meaningful Jun 12 16:45:39 pfn: ok. Trying to google how to read this file Jun 12 16:47:31 pfn: What do you think caused the crash? **** ENDING LOGGING AT Wed Jun 12 16:48:41 2013 **** BEGIN LOGGING AT Wed Jun 12 16:50:19 2013 **** ENDING LOGGING AT Wed Jun 12 16:52:05 2013 **** BEGIN LOGGING AT Wed Jun 12 16:54:22 2013 Jun 12 16:57:53 <|Agent> What do you guys do for the Log tag? Do you define a static in some app-wide class, or per-activity, or do you grab the app identifier from some lookup? Jun 12 16:58:49 |Agent: I just type it in usually. I never have more than like 10 Log calls going at a time Jun 12 16:58:55 and usually its 3-5 log calls Jun 12 16:59:11 I prefix "Debug" with whatever type of thing I am debugging Jun 12 16:59:39 E.g. Measurements: "MeasureDebug", Drawing Views: "DrawDebug" Jun 12 17:00:03 <|Agent> makes sense Jun 12 17:00:50 But other people prefer other conventions Jun 12 17:00:52 thats just what made logical sense to me Jun 12 17:00:53 :S Jun 12 17:01:03 Most programmers are against the use of ANY hard coded values in parameters Jun 12 17:01:11 because it makes code harder to read Jun 12 17:01:16 <|Agent> sure, that's why I'm doing a general survey :) Jun 12 17:01:17 but sometimes a babies gotta do what a babies gotta do Jun 12 17:02:12 hi, i'm not a 4.2 developer but i have a somewhat technical issue, so far silence in response to my question in #android Jun 12 17:02:12 i got a Kingeleon/Star S7589 MTK6589 from China. When browsing certain sites, the thing gives SSL error 107's on various pages. A web search shows folks on xda-developers talking about this error occurring on some combination of CyanogenMod roms and/or stock roms, with certain providers. Jun 12 17:03:19 my concern is intentional degradation of the CA chain. Any easy way to check the SSL certificate chain? or to check for SSL MITM's? Jun 12 17:03:33 hi all, i have an app that runs a WebView. the WebView contains some large images, that when they scroll into view, stay white for a while until they get rendered. i've tried HW accel on and off, set render priority to high and set cache mode to LOAD_NO_CACHE. also tried compiling with large heap, but nothing helps. anyone have any suggestions? completely lost Jun 12 17:03:48 using 4.2.2 on a nexus 10 by the way Jun 12 17:04:03 Use smaller images Jun 12 17:06:05 SimonVT: i guess it's an idea, could try it. i take it from your response that it's really something that i have no control over? Jun 12 17:06:31 SimonVT: as in, that's the best solution there is? Jun 12 17:07:16 i downloaded an app from the playstore called SSL Verify by a fellow named Kurt Huwig. At first I panicked because it shows certificate mismatches on like 1 out of 3 of the 300 certificates it claims to check. But then I reran it on other contemporary phones and it gives the exact same errors. Jun 12 17:08:38 I'm asking here also, because, if these SSL protocol error 107's are just a flaw in the 4.2 codebase, one that only effects certain combinations of hardware, sofwware, and provider, then perhaps I can talk the vendor into giving me an updated rom at somepoint. Jun 12 17:09:12 As opposed to, say, demanding a refund and reporting them to the FBI. =) Jun 12 17:09:15 antgel: As far as I know you have no control over how WebView renders. If it chokes on large images, I don't see any other solution.. But then again, I've never used WebView :) Jun 12 17:09:21 stimoceiver: Yeah, wrong channel Jun 12 17:09:54 Alternatively don't use a webview? Jun 12 17:11:00 SimonVT: not sure where else I can inquire. Perhaps someone here could point me to the existence of any sort of apps for checking integrity of the installed codebase, specifically the SSL protocol stack? Jun 12 17:12:29 I keep hearing rumors (but no verified instances) where people are claiming that some chinese phones have been found where certain less frequently used linux syscalls run by default as root. So having persistent SSL protocol errors when browsing, but only with certain sites, rustles my jimmies just a bit. Jun 12 17:21:59 is it possible from one app to force another app to sync data? Jun 12 17:24:28 robocr0n: you can send an intent to that app, if it exports one Jun 12 17:25:08 hm ok. Don't know what an intent is.. i'm a new dev with experience in non-mobile stuff Jun 12 17:25:17 is that a keyword that i could look up that would be documented in the android docs? Jun 12 17:26:02 robocr0n: indeed it is Jun 12 17:26:18 awesome Jun 12 17:26:38 more to the point, it's something you should have picked up while doing the tutorial - which you should have done before starting your own coding Jun 12 17:26:43 is it common for apps that sync data (like the stock news app as an example of the type i'm talking about) have an intent exported? Jun 12 17:26:53 leeds no coding has been done yet Jun 12 17:26:53 lol, string concatenation sucks! Jun 12 17:27:01 robocr0n: obviously... Jun 12 17:27:14 Brian|CB: i don't think there's any other option than to use webview for my use case Jun 12 17:27:23 (combining html5 with native android code) Jun 12 17:27:30 leeds then why did you say i should have done the tutorial BEFORE i started coding? Jun 12 17:27:41 What does HTML5 give you that android couldn't? Jun 12 17:27:55 robocr0n: because it's a less rude way of saying "before you ask silly questions here which are answered in the tutorial" Jun 12 17:28:18 sorry to have offended you leeds Jun 12 17:28:33 Brian|CB: i have a large code base in HTML5, and for political reasons, it's not going to change. so my hands are tied from that point of view Jun 12 17:33:42 Hey Everyone Jun 12 17:44:08 <|Agent> Shouldn't my EditText OnEditorActionListener be called every time the user taps a keyboard button? Jun 12 17:44:21 <|Agent> *soft keyboard button Jun 12 17:47:52 <|Agent> Ah, I want addTextChangedListener. Jun 12 17:49:50 on-device certstore can't be interfered with by providers Jun 12 17:49:55 oops Jun 12 17:50:09 sl4a wont run any python scripts Jun 12 17:50:37 I wish the settings shortcuts on 4.2 could be customized Jun 12 18:01:51 pfn: hey Jun 12 18:02:01 in what way customized? you mean the panel Jun 12 18:05:39 Napalm, items on it Jun 12 18:09:52 Can I determine which button was clicked first ? Jun 12 18:10:03 If two clicks was almost in the same moment ? Jun 12 18:16:24 This is sad, someone helped me yesterday with a blackberry question and I forgot who it was =( Jun 12 18:17:53 Blackberry creates android phones ? :P Jun 12 18:18:12 bluesm: Of Course =) Jun 12 18:19:36 marrrk: was it you? Jun 12 18:19:48 Always Jun 12 18:20:04 No, I don't know anything about blacberries Jun 12 18:20:06 k Jun 12 18:20:09 I think who helped me started with an M Jun 12 18:20:22 Meathead? Jun 12 18:20:30 *shrug* Jun 12 18:20:38 Molemachine? Jun 12 18:20:50 Blackberry creates garbage phones Jun 12 18:20:57 Blackberry won't exist in 2 years IMO Jun 12 18:20:59 I just found a solution to decompiling blackberry app and was going to share is all Jun 12 18:21:07 It will be eradicated from your O Jun 12 18:21:39 marrrk: ??? Jun 12 18:23:17 Well, whoever helped me with the blackberry question yesterday, Thanks again! I found a solution that worked perfectly here: http://z3nhacks.blogspot.com/2011/10/blackberry-app-cracking.html Jun 12 18:23:41 I now learned something new. What goatse is/was. Jun 12 18:23:57 marrrk: Sowwwy bout that =) Jun 12 18:24:16 I was hoping for something more intellectual but hey. Jun 12 18:24:24 marrrk: I think it what inspiried 2G1C Jun 12 18:25:21 the producer of which got his ass tossed in jail by the FBI Jun 12 18:25:43 is it intended that an app with SYSTEM_ALERT_WINDOW permission is able to create a (fullscreen) error window covering even the lockscreen? Jun 12 18:27:39 Jymmm why would you go to jail for that? Jun 12 18:27:46 Or was it for a different reason? Jun 12 18:28:59 EPG: There are various ways of doing that, so I guess, yes Jun 12 18:29:24 marrrk, ok, what other ways are there? Jun 12 18:29:25 Gotta love Eclipse Jun 12 18:29:34 ERROR. Ok, clean. OK ITS GOOD NOW, KEEP GOING Jun 12 18:29:49 www.ihateeclipse.com Jun 12 18:29:50 yeah it's like gay love ... eclipse is made in java ... but with native UI calls Jun 12 18:30:00 what is a good example of a foreground service using an intent? Jun 12 18:30:24 EPG: I don't remember by heart. But I remember that I did a window like that and without that permission, I think. Jun 12 18:30:42 Why parent doesn't receive "onTouch" event ? Jun 12 18:30:44 anyone ever got ERROR/CameraHAL(129): Error while configuring rotation 0x80001005 when working with a CameraPreview Jun 12 18:30:53 marrrk, ok, thanks Jun 12 18:31:53 EPG: Actually, I do have that permission, so I probably lied :I Jun 12 18:32:01 :D Jun 12 18:32:19 But... Jun 12 18:32:28 Yeah I'm not sure about in front of the lock screen Jun 12 18:32:34 Just do it like that, it works :) Jun 12 18:32:39 If i have an activity that's called Mainactivity and its the launcher but it extends another activity say baseactivity Jun 12 18:32:43 what gets called first Jun 12 18:33:04 what's a bit strange is that it works on my Nexus 7 but not on an older Samsung Galaxy Y Jun 12 18:33:39 Oh, that's really strange. Jun 12 18:34:53 say i have "BaseActivity extends SherlockFragmentActivity" and "MainActivity extends BaseActivity" Jun 12 18:35:11 if MainActivity is the launcher Jun 12 18:35:16 base gets called first right ? Jun 12 18:35:22 .. gets called first? Jun 12 18:35:29 What does that even mean Jun 12 18:35:31 holyshit Jun 12 18:35:36 its you:) Jun 12 18:35:42 i mean what run's first Jun 12 18:36:16 if i create an object in baseactivity Jun 12 18:36:40 will it run before the launcher activity Jun 12 18:37:00 also many kudos on your library Jun 12 18:38:05 anyone else witnessed a problem with SpeechRecognizer on the Galaxy S3? Jun 12 18:38:13 I'm wondering why it isn't being called first and hoping its not a flaw in my logic Jun 12 18:38:23 baseactl.. that is Jun 12 18:39:18 Activity is just an object that methods are called on by the fragment Jun 12 18:39:25 err Jun 12 18:39:26 framework Jun 12 18:39:46 I don't know what you mean by "what is run first" Jun 12 18:39:51 And you're welcome :) Jun 12 18:40:19 If onCreate is called on MainActivity, whatever implementation BaseActivity has is executed when you call super.onCreate Jun 12 18:40:29 Same for everything else Jun 12 18:40:38 that is exactly what i thought Jun 12 18:41:00 i wanted verification that im not wrong *this time* :) Jun 12 18:41:39 what is a good example of a foreground service using an intent? Jun 12 18:41:58 also SimonVT , have you heard of any success stories using your library for two separate fragments i.e one for left and one for right? Jun 12 18:43:45 Is there a view? That Doesn't convey any "inteface". Jun 12 18:44:00 You're probably gonna run in to problems if you use the attach method for both.. But other than that, it's just regular views Jun 12 18:44:01 I mean to have "html's div", that I could easily colour :] Jun 12 18:44:25 bluesm: what ? Jun 12 18:44:47 StingRay_: The area that is like container. Jun 12 18:44:53 you mean, a View ? and use setBackground*() Jun 12 18:45:01 Has anyone of you ever created a custom keyboard? Jun 12 18:45:06 as in "View" <-- the class Jun 12 18:45:27 StingRay_: Right. But this element would be just to set the background color :] Jun 12 18:45:44 SimonVT, can you elaborate further please? Jun 12 18:46:19 I am abit confused Jun 12 18:46:58 What do you mean for two seperate fragments exactly? Jun 12 18:47:46 is it okay to pm you SimonVT ? Jun 12 18:47:58 anyone of you would consider yourself rich?:< Jun 12 18:48:07 I wish Jun 12 18:48:10 me... in sadness! Jun 12 18:48:19 blackberry and apple for fruits ;) Jun 12 18:48:37 Tronflowers whine moar :c Jun 12 18:48:52 hehe Jun 12 18:52:00 anyone? Jun 12 18:52:01 :< Jun 12 18:52:51 SimonVT, if i have one activity with say two fragments Jun 12 18:53:03 can i attach a left and right drawer Jun 12 18:53:09 and assign each fragment to them Jun 12 18:53:14 Eh. It seems that android "emulator of layout" again screwed up... Jun 12 18:53:25 When I nested linear layouts.. Jun 12 18:54:11 Tronflowers: Sure. Just add the drawers to your layout Jun 12 18:55:02 programmaticly or xml? or doesnt it matter? Jun 12 18:56:01 Either, they're just Views Jun 12 18:59:05 I am trying to implement a viewpager with a FragmentPagerAdapter as the adapter. I have 3 pages and I am trying to create an infinite scroll effect. I have an array with all the fragments that correspond to page and when the user scrolls to the left or right, I rearrange the fragments in the array and set the current item to the middle one. The problem that I am having is that when I change the array items, the adapter d Jun 12 18:59:09 How do I fix this? Jun 12 18:59:53 brian_petersen: Your question got truncated and abruptly ends Jun 12 18:59:57 you might want to fix that :D Jun 12 19:01:01 why do you bind something to an intent / service? Jun 12 19:01:05 Brian|CB: No, it didn't. Haha, I just need to force the viewpager to get the new array items, but it's cached or something so it never picks up the changes. I tried using the notifydatasetchanged, but that didn't work. Jun 12 19:01:30 why would you bind.. like this: startService(i); Jun 12 19:01:31 bindService(i, serviceConnection, Context.BIND_AUTO_CREATE); Jun 12 19:02:39 Here's a post that is similiar to the thing I am experiencing. http://stackoverflow.com/questions/13594894/how-to-force-a-viewpager-to-reload-its-children-from-a-child-fragment Jun 12 19:08:46 btw which of the android channels would be the right one to search for beta testers? Jun 12 19:08:56 anyone have a galaxy s3? Jun 12 19:09:01 beastmanrage: yes Jun 12 19:09:07 beastmanrage: I do. Jun 12 19:09:09 monsti, have a sec to test an apk? Jun 12 19:09:18 ..or brian Jun 12 19:09:22 beastmanrage: you can get a remote S3 from samsung Jun 12 19:09:32 what? Jun 12 19:09:46 samsung offers developer hardware via internetaccess Jun 12 19:09:56 No way. Jun 12 19:10:00 there's a dev program from samsung Jun 12 19:10:25 How touchscreen reacts to two clicks in almost the same time ? Jun 12 19:10:29 Ok cool, complete with audio in/out? Jun 12 19:10:43 .. I'll check it out, thanks Jun 12 19:10:59 no idea i just know you can get a specific hardware with specific rom version Jun 12 19:11:26 remotetestlab Jun 12 19:11:30 I mean what is the amount of time, i know the Touch events would be fired in the proper order ? Jun 12 19:17:46 bluesm: what do you mean by order? Jun 12 19:18:06 click vs. longclick? Jun 12 19:19:40 monsti: That first clicked button will fire first ontouch event. Jun 12 19:20:15 that statement is true, in a lot of cases Jun 12 19:20:17 monsti: I noticed that if I click two buttons at once, the "button nearer the top of the screen will fire the event first) Jun 12 19:20:32 ah that is device and hardware dependent Jun 12 19:20:43 on some cheap hardware you have 4 digitizer points Jun 12 19:20:51 on more expensive hardware you might have 10 Jun 12 19:21:14 an then it really depends on the guy who made the hardware which point is toggled first Jun 12 19:21:43 monsti: Mhm. I don't really care if there are 10 or 4 or 2. Jun 12 19:21:57 monsti: I want to "detect" cllick in proper order :P Jun 12 19:22:01 yes but you can't get what you want ;) Jun 12 19:22:08 the hardware won't tell it ;) Jun 12 19:23:26 how is that a problem that the "click order" is important? Jun 12 19:26:19 pfn: how should I make the button higher? I don't want to specify pixels Jun 12 19:26:35 I needed RelativeLayout but it made my button lower. What must I do? http://pastebin.com/nih93MkU Jun 12 19:27:07 monsti: Ok. Thanks :) Jun 12 19:27:32 Quacked: your first RelativeLayout can be replaced with a FrameLayout Jun 12 19:27:46 bluesm: maybe you want to make sure that the 2nd click is ignored if the 1st click is running Jun 12 19:27:57 Quacked: no need for the layout_alignParent* attrs Jun 12 19:27:59 bluesm: you can do that with the setEnabled() to the "other" button Jun 12 19:28:39 Hi, can I add actionbarsherlock as a subdirectory in my Eclipse project or should I have it in a separate top project? Jun 12 19:28:45 monsti: I'm afraid it won't help. Because if i make the clicks at once. The "one always be first" Jun 12 19:28:48 Quacked: why do you even have that ImageView with id imageView1? Jun 12 19:29:16 this is just not the right way to do this layout Jun 12 19:29:23 monsti: My device isn't sensitive enough :) Jun 12 19:29:28 monsti: Thanks for time :) Jun 12 19:29:32 bluesm: you have buttons A and B and the eventhandler of A disables B and the hanlder of B disables A Jun 12 19:29:38 luyang: it can be a subdir but it has to have its own project in the workspace Jun 12 19:29:46 Napalm, hehe, I just put it in an existing linearlayout and wanted it behind the textview Jun 12 19:29:49 bluesm: so one event will always be first and the 2nd gets ignored Jun 12 19:29:51 So I figured relativelayout Jun 12 19:30:01 bluesm: after the event is handled you enable it Jun 12 19:30:07 monsti: "first Jun 12 19:30:27 monsti: "first", but first could be for me the latter (because of device)... you know. Jun 12 19:30:35 bluesm: you can also add some fluff time e.g. 50ms Jun 12 19:30:39 Napalm: but how should I increase the button height? Jun 12 19:30:57 monsti: What do you mean ? Jun 12 19:30:58 bluesm: yes! it's still the best you can do with that hardware Jun 12 19:31:01 JakeWharton: ok thanks! You and Square are doing excellent stuff! Jun 12 19:31:11 anyone ran into the ViewPager not switching views when swipped Jun 12 19:31:19 like it moves a bit then jumps back Jun 12 19:31:49 luyang: thanks! Jun 12 19:31:52 Quacked: android:minHeight="48dp" Jun 12 19:31:53 bluesm: handle_click_a() ( .. if less then 50ms since last click; return; disable b; doo stuffForA; save currnt time; enable B ) Jun 12 19:32:14 xastey: is that when you have more than 1 page on the screen at once? Jun 12 19:32:19 think I found it Jun 12 19:32:23 stupid ScrollView Jun 12 19:32:27 lol Jun 12 19:32:28 knew it was something I added Jun 12 19:32:30 you can fix that Jun 12 19:32:32 let me fix this crap Jun 12 19:32:37 yeah found this http://stackoverflow.com/questions/8381697/viewpager-inside-a-scrollview-does-not-scroll-correclty Jun 12 19:32:50 Napalm: didnt really want to use dp, but I guess its ok Jun 12 19:33:11 xastey: i think it's a scrollview inside of a scrollview - which is a bad idea ;) Jun 12 19:33:19 yeah I know Jun 12 19:33:23 but need it for this case Jun 12 19:33:27 got a fix for it though Jun 12 19:33:36 that's cool! Jun 12 19:35:42 Getting tired of this app Jun 12 19:35:46 can't wait till it launched Jun 12 19:36:02 meh.. don't like dp.. button to small on large screens and too big on small screens Jun 12 19:36:26 huh? Jun 12 19:36:46 dp => button same size on small and large screens Jun 12 19:38:04 doesnt look the same here Jun 12 19:40:15 dp != same size on all screens Jun 12 19:40:30 either physical or pixel Jun 12 19:40:37 you might need all images in the dreawwable folders Jun 12 19:41:10 or rather the pixel size relationship is not guarenteed Jun 12 19:41:27 Got a suggestion for how to increase height of the button here, StingRay_? http://pastebin.com/nih93MkU Jun 12 19:41:49 Obivously the weight I had used when it was linearlayout doesnt work anymore Jun 12 19:41:50 icrease to what ? Jun 12 19:41:57 to mars Jun 12 19:41:57 increase* Jun 12 19:42:00 to venus Jun 12 19:42:28 I just want it taller :) Jun 12 19:42:54 then change it's height Jun 12 19:42:57 What have you said (I was in park and, my battery ran out) Jun 12 19:43:09 monsti: ^ ? Jun 12 19:43:20 21:37 < monsti> bluesm: handle_click_a() ( .. if less then 50ms since last click; return; disable b; doo stuffForA; save currnt time; enable B ) Jun 12 19:43:50 StingRay_: I want it to be like 1/10 of the height of the screen for instance Jun 12 19:44:13 RelativeLayout made it smaller Jun 12 19:44:13 do you want it a vairable height ??? Jun 12 19:44:14 bluesm: so whatever button comes first - the 2nd won't do any harm Jun 12 19:44:16 why ? Jun 12 19:44:22 thats stoopid :) Jun 12 19:44:44 I want it set with weight really, hehe Jun 12 19:44:58 that would make the button variable Jun 12 19:45:19 yeah, its one button at the bottom of an activity Jun 12 19:45:52 but why would you want to make the height variable Jun 12 19:45:59 thats like….very very silly Jun 12 19:46:15 thats pre 9 year old design school silly Jun 12 19:46:49 uncontrolled and variable heights are not suited to mobile/table UI layout for static things such as buttons Jun 12 19:47:28 what do you mean variable? it will always be the same height on the same device Jun 12 19:47:41 well, till you rotate the screen Jun 12 19:47:47 tille the kb pops up Jun 12 19:47:54 till any number of other things happen Jun 12 19:47:56 no kb Jun 12 19:48:01 it looks ok when rotating Jun 12 19:48:06 StingRay_: i love that "pre 9 year old design" sentence - can i use it? ;) Jun 12 19:48:06 Hi there. I am trying to find out why my API level 17 source code for android.webkit.webview is out of sync with the API found here: http://developer.android.com/reference/android/webkit/WebView.html Jun 12 19:48:12 what's the difference between accessing a contact photo via PHOTO_THUMBNAIL_URI versus via openContactPhotoInputStream() ? Jun 12 19:49:13 Quacked: neways, I wont aid people in doing very silly things :) Jun 12 19:49:19 hehe Jun 12 19:49:22 monsti: You mean to dismiss the clicks that are to in very short time between ? Jun 12 19:49:51 monsti: and accept click that are at least 50ms between ? Jun 12 19:49:57 Quacked: if you have a requirement, and an idea, sure, but when some1 says I want to run nude, backwards across the highway, you dont help them Jun 12 19:49:58 bluesm: yes that's strategy one and strategy two is to disable the 2nd button Jun 12 19:50:00 tis that simple Jun 12 19:50:13 bluesm: yes experiment with this 50-80ms Jun 12 19:50:16 haha Jun 12 19:51:06 StingRay_: I just think that when a button updates a textview in the middle of the screen, the button shouldnt be a tiny line at the bottom when its run on a tablet Jun 12 19:51:07 keyboard,config change, user font sizes, the list is endless to what would screw what you want to do Jun 12 19:51:22 or rather the way you want to do it Jun 12 19:51:37 Quacked: no it shouldnt Jun 12 19:51:58 but it should not be a variable height that you have not choosen or controled even more!! Jun 12 19:52:12 hehe Jun 12 19:52:19 monsti: Ok. Thanks for time :) Jun 12 19:52:34 Quacked: give it a dam height Jun 12 19:52:37 :( Jun 12 19:52:43 referenced in dimension resource Jun 12 19:52:46 job done Jun 12 19:52:50 that blows, hehe Jun 12 19:52:54 no Jun 12 19:53:05 thats called controlled design consideration and implementation Jun 12 19:53:12 dams do not blow, they block Jun 12 19:53:22 ok, ok, ill do it Jun 12 19:53:30 * Quacked bends over Jun 12 19:53:35 what blows is wanting 100s of things to change the height of something that should not change Jun 12 19:55:36 I'm totally for creating something outside the fixed guides that the platform wishes of you, but not ouside the bounds of reason :) Jun 12 19:57:36 StingRay_: well, you too? ;) Jun 12 20:07:08 me too? Jun 12 20:07:32 monsti: me too at what/to what ? Jun 12 20:07:48 SimonVT, I tried to make your RightOverlaySample work on both sides Jun 12 20:08:01 i made another copy of the list Jun 12 20:08:02 StingRay_: i create my own UI elements ;) Jun 12 20:09:04 and another drawer Jun 12 20:09:23 monsti: with what app have you dont that ? Jun 12 20:09:24 i used setMenuView Jun 12 20:09:30 cause your a programmer/dev right ? Jun 12 20:09:40 I would be interested to see it :) Jun 12 20:09:43 i think i am also a dev ;) Jun 12 20:09:56 we don't sell our app in the android market xD Jun 12 20:10:10 just screenshots anywhere ? Jun 12 20:10:28 nop Jun 12 20:10:50 do you have any visuals at all ? Jun 12 20:10:52 e.g. i have a breadcrum UI element and a listtree Jun 12 20:11:11 it's a checklist with parent/child Jun 12 20:11:23 and you an pin a path like the breadcrums in windows explorer Jun 12 20:11:28 you must have screenshots ? Jun 12 20:11:41 nop ;) we don't show them Jun 12 20:11:49 oh deer Jun 12 20:12:00 I think thats a design/marketing fail right there Jun 12 20:12:03 :) Jun 12 20:12:40 or it looks really bad, and thats why you hide it from potential customers :) Jun 12 20:12:45 the android part is only 5% of our software Jun 12 20:12:58 95% is the PC software Jun 12 20:13:29 it's not the app we sell - it's a solution with a phone/tabet component Jun 12 20:13:56 I was just interested to see some programmer/dev art Jun 12 20:13:59 :) Jun 12 20:14:01 always am Jun 12 20:14:17 i might upload some screenshots of my test app Jun 12 20:14:30 i use androidbinding for my main UI component Jun 12 20:14:39 we are on github now Jun 12 20:24:20 hi, I have a service that establishes a single-threaded bluetooth connection to another device. now I want to interrupt this procedure when I receive an incoming SMS. I was thinking of adding an anonymous broadcast receiver which acquires a lock, adds the sms data to a queue, and finally releases the lock. In the service thread, after each read timeout I empty the queue (using the same lock) and continue reading/writing. Now, I do Jun 12 20:24:20 not seem to get notified by new SMS messages. I do not have the broadcast receiver in my app manifest (since its only possible for static inner classes). Could this be the problem? This is the relevant code: http://pastebin.com/x8yvkdAF (using a state pattern, the service's onHandleIntent method proxies to the signal() method in the state). any pointers would be helpful Jun 12 20:24:46 guys any easy way to load wordpress blog posts to app? Jun 12 20:24:57 i mean to load em Jun 12 20:25:08 ciurkut, from html or does it have an rss feed? Jun 12 20:25:34 from rss Jun 12 20:26:02 hey guys Jun 12 20:26:14 I think I've figured out this app's spinner...seems really strange Jun 12 20:26:19 want to run it past you and see if it seems right Jun 12 20:26:23 https://friendpaste.com/5fpRz03UvGaOtqDr9rLmG9 Jun 12 20:26:40 ciurkut, a http client and xml parser could do that Jun 12 20:26:43 there's the xml for the list. Until I add an item to that list, it shows the spinner (the image view, here) Jun 12 20:26:56 so I suspect that the list somehow has like... 0 height until it is populated Jun 12 20:27:04 then it just bumps the spinner down, off the screen Jun 12 20:27:17 no where in the code is it hiding the spinner or stopping it Jun 12 20:27:23 hmm, I'm looking for an ImageView in which I can pinch to zoom Jun 12 20:27:26 it just gets that image view and put an animation on it Jun 12 20:27:44 I've seen some examples, but none work (in a Fragment, part of ViewPager) Jun 12 20:28:52 thanks dennisd Jun 12 20:30:38 I'm using a ProgressDialog that I dismiss and show several times, when I show it i always call setProgress() before, but it seems to retain the old value, what's the correct way? Jun 12 20:35:58 Does appending EditText to alert is the only way to create "dialog" ? Jun 12 20:36:16 you have a Dialog class Jun 12 20:36:27 I mean isn't there any class that offers prompt ? Jun 12 20:36:28 here you can style your own dialogs Jun 12 20:36:39 no - you have to use your own xml file for that Jun 12 20:36:53 the dialog class is just a frame Jun 12 20:37:12 you can also use a custom alert dialog in a lot of cases Jun 12 20:37:30 monsti: When should I use dialog when the alert ? Jun 12 20:37:39 http://developer.android.com/guide/topics/ui/dialogs.html <- you can use a builder, bluesm Jun 12 20:38:14 Can I get better than millisecond precision on android? Jun 12 20:39:14 deadmund, have you tried System.nanoTime() ? Jun 12 20:39:48 dennisd: No, let me try. Jun 12 20:46:07 anyone an idea for a zoomable ImageView? Jun 12 20:46:15 a single setting would be ok Jun 12 20:46:50 not really a zoom is it ? Jun 12 20:47:15 would you not just use a canvas ? Jun 12 20:47:22 and draw it yourself ? Jun 12 20:47:26 belgianguy: i tried that and in the end i gave up! Jun 12 20:47:51 belgianguy: a 14mp image of a galaxy s4 won't fit in my apps memory! Jun 12 20:47:54 monsti: I'm actually stunned it's so hard Jun 12 20:48:04 I have a webserver running on a thread, My main_activity wants to get notified when the webserver get a "HTTP POST" so I can update my view, I tried using callback and Observer pattern but I get the error that another process cant change the view Jun 12 20:48:12 belgianguy: that's why i use a simple preview image and then i start the system galery Jun 12 20:48:12 I thought it'd be one og the go-to effects in Mobile dev Jun 12 20:48:14 what is a correct way to solve the problem Jun 12 20:48:32 monsti: why would you load such a huge size anyway? Jun 12 20:48:35 there is no need Jun 12 20:49:02 StingRay_: the user decides to create a 14mp image Jun 12 20:49:06 i can't judge that Jun 12 20:49:07 StingRay_: how would you do zoom then? Jun 12 20:49:09 create is fine Jun 12 20:49:13 show is stupid Jun 12 20:49:19 14mp ? Jun 12 20:49:23 yes and zoom a user decision Jun 12 20:49:28 you would have to have a 4k display Jun 12 20:49:32 so view it Jun 12 20:49:39 the cam of the s4 is 14mp ;) Jun 12 20:49:40 so why would you even try and load 14mp ? Jun 12 20:49:49 yeah but it dont load the whole thing Jun 12 20:49:53 Bitmap bp = new Bitmap(...) Jun 12 20:49:54 to show you on-screen Jun 12 20:50:11 yes and how to zoom with pinch and zoom without loading? Jun 12 20:50:12 it loads the max sample size it can for the display area Jun 12 20:50:19 adaptive loading Jun 12 20:50:24 look at gallery source Jun 12 20:50:28 same way Jun 12 20:50:33 yes i gave up and call the gallery Jun 12 20:51:08 there is no zoomable imageview that can handle this as UI element Jun 12 20:51:15 i would love getting one Jun 12 20:51:24 webVIew iirc can Jun 12 20:52:29 yes but it has a problem :( Jun 12 20:52:48 on some android device the image you take with the cam is rotated by 90 or 180 degrees Jun 12 20:53:09 and the exif info holds an indicator "rotate my by 90 degree" Jun 12 20:53:40 which is a shit by desing - but you have to deal with that Jun 12 20:53:48 while webview doesn't handle this Jun 12 20:54:04 webview? Jun 12 20:54:06 neither does any view does it ? Jun 12 20:54:14 it's always something you deal with Jun 12 20:54:19 out of preference of use Jun 12 20:54:22 yes but for views i can handle this by myself Jun 12 20:54:23 rather than anything Jun 12 20:54:32 and if i show it in gallery - it automagically works Jun 12 20:54:38 that's the whole of the browser engine Jun 12 20:55:03 StingRay_: this took me 2-3 weeks to find out ;) Jun 12 20:55:16 find out what ? Jun 12 20:55:31 the exif, the webview stuff not rotating, ... Jun 12 20:55:40 the magic galleries does Jun 12 20:55:45 the different hardware behaviour Jun 12 20:55:54 none is documented :( Jun 12 20:55:59 different hardware ? Jun 12 20:56:02 in what way ? Jun 12 20:56:35 some camera rotates an image by 90 degree and saves a "rotate my back by 90 degree" in the jpeg's exif Jun 12 20:56:45 get it? Jun 12 20:56:45 yes Jun 12 20:56:57 and some others ….. ? Jun 12 20:56:58 so webview isn't good for displaying Jun 12 20:57:02 others by 180 Jun 12 20:57:13 and some hardware makes no rotation Jun 12 20:57:24 or it does and won#t put it in the exif - then you are lost ;) Jun 12 20:57:26 so your saying that there is an 90 degree offset in exif data that is incorrect on some devices ? Jun 12 20:57:31 yes Jun 12 20:57:46 I dont belive that Jun 12 20:57:48 what devices ? Jun 12 20:57:54 on some tablets with front cam you have a left/right flip Jun 12 20:58:02 which is very odd Jun 12 20:58:12 even with the android default camera app Jun 12 20:58:44 should really always be screen direction = +y relative rotation Jun 12 20:58:55 but you can Jun 12 20:59:01 t rotate a 14mp image ;) Jun 12 20:59:12 out of memory xDDD Jun 12 20:59:36 well sure you can Jun 12 20:59:41 but yes not out of memory Jun 12 20:59:45 you need memory Jun 12 20:59:47 :) Jun 12 20:59:52 or call the gallery ... that's what i did ;) Jun 12 21:00:09 ... after 2 weeks fooling around Jun 12 21:00:09 but I would suspect loading through a matrix or using a texture in openGL would be fine Jun 12 21:00:20 and thats what gallery does I would tink Jun 12 21:00:22 think* Jun 12 21:00:47 yes it might rotates the pixels in the opengl view Jun 12 21:00:55 that's a very nice idea! Jun 12 21:01:08 well you could just do it on a canvas neways Jun 12 21:01:24 however - that's no standard image view Jun 12 21:01:26 so yeah, same way gallery does it, I would just look at the src to the gallery app Jun 12 21:01:29 job done Jun 12 21:01:43 there is Jun 12 21:01:50 tis called, imageView Jun 12 21:01:52 :) Jun 12 21:02:01 looool ;) Jun 12 21:02:14 * monsti is sending some nice "wishes" to google xDDDD Jun 12 21:02:14 I would have thought I'd had to extend ImageView Jun 12 21:02:30 yeah, and do what you want onDraw Jun 12 21:02:32 I would too Jun 12 21:03:15 StingRay_: well ... a lot of work for a zoomable image view ;)))) Jun 12 21:03:44 maybe somebody solved this for me ;) Jun 12 21:04:02 if I execute a few async startService() methods for the same IntentService, does it execute onHandleIntent() asynchronously on a single instance of that IntentService, does it wait for previous onHandleIntent() operations to finish (assuming no manual sync locks are involved) or does it start multiple instances of that IntentService? Jun 12 21:05:48 Synchronously in a single instance Jun 12 21:07:01 SimonVT, so if I want a new call to interrupt a previously time-consuming call, I should fork the time-consuming call to a separate thread instead? Jun 12 21:08:10 Not sure intent service is the right service then Jun 12 21:09:49 I see it more as a fire and forget kind of class Jun 12 21:11:57 SimonVT, my use case is the following: broadcast receiver (BR) A listens for the bluetooth adapter to turn on. when it does, it starts the service, which starts listening for bluetooth clients. in the mean time a second BR listens for incoming SMS messages and should interrupt any connection to bt clients and send the message data over the connection Jun 12 21:12:21 would you advice me to create a simple thread for this instead of an intentService? Jun 12 21:13:09 okay, zoomable/pinchable is off the table Jun 12 21:13:19 for some reason my fragment doesn't like it Jun 12 21:16:13 not sure thats true Jun 12 21:16:21 :) Jun 12 21:16:44 not sure the fragment has any choice other than to act how you have it defined to Jun 12 21:19:30 i solved my problem before with a handler so no need to read it Jun 12 21:21:02 StingRay_: computers just execute the errors we command them to Jun 12 21:21:36 nm the zooming, it was more of a gimmick anyway Jun 12 21:21:45 I'll just show the picture in full Jun 12 21:38:05 im using url.decoder(msg, "utf8") but It cant handle åäö which are very important swedish characters, shouldnt utf8 be able to handle this? Jun 12 21:38:49 I am trying to create a dropdown ..like in the screen shot http://wstaw.org/w/1ZTQ . The layout below the gridview is a scrollview and both gridV , ScrollV are in a LinearLayout.The Feed Items is a linear layout. All the child items are in a relative layout. Jun 12 21:39:21 Can someone sujjest how to proceed with the animation part Jun 12 21:39:46 chinmaya: use animation ? Jun 12 21:39:52 have you ever animated a view ? Jun 12 21:39:53 Hi StingRay_ Jun 12 21:40:18 It's a good feeling when you do something you love for a living, so you almost forget work is almost over. Jun 12 21:40:38 Brian|CB: I wish Jun 12 21:40:50 StingRay_, I was thinking of using a translate animation Jun 12 21:41:16 chinmaya: sure, try what you want to try, see if it gets you what you want Jun 12 21:47:51 its surprising how many android developers and users dont know that long pressing an action icon brings up a toast with its textual name so you know what it does Jun 12 21:49:24 cause it's quite irrelevant Jun 12 21:49:33 if it was not obvious for you to begin with Jun 12 21:49:39 you should be using an iPhone Jun 12 21:49:41 :) Jun 12 21:50:44 have you seen some apps icons? users just dont know what they mean Jun 12 21:51:05 not the failure of the user or the OS Jun 12 21:51:17 is there web site with vulnerabilities information specifically in android phones ? like the ones that can be used by android developers to make patches Jun 12 21:51:19 thats called " programmer design " Jun 12 21:51:49 elkng: just look at AOSP bug lists Jun 12 21:52:03 they get fixed, eventually Jun 12 21:52:20 what is AOSP ? Jun 12 21:52:48 elkng: I think it's time for google Jun 12 21:52:53 :) Jun 12 21:53:01 yes, go google Jun 12 21:53:30 pun intended Jun 12 21:54:46 what is that "Android Open Source Project", thats a full name of android ? Jun 12 21:54:53 or its another fork or something ? Jun 12 21:55:17 thats android Jun 12 21:55:24 and if you wanted to patch something Jun 12 21:55:27 thats it Jun 12 21:57:40 is it common that some SMART_BANNER ads from admob doesnt match parent all the way? :S Jun 12 21:58:09 I have this issue: http://bildr.no/image/1638175.jpeg Jun 12 21:59:13 im doing addView on my viewpager and inflate a layout with the ad. The layout with the ad has width set to match_parent. Jun 12 21:59:56 odd that it looks like the exact dimensions of the button ;) Jun 12 22:00:10 what can I do to stop flicker when adding Fragments at runtime? Jun 12 22:00:53 belgianguy: you shouldnt get flicker when adding Fragments at runtime.. sounds like you are adding it twice or something similar Jun 12 22:00:59 StingRay_: heh.. the odd part is that it sometimes stretches all the way :P Jun 12 22:01:10 Quacked: thats normal Jun 12 22:01:15 Napalm: it only does it with a YouTubePlayerSupportFragment :s Jun 12 22:01:27 (which I might be handling wrong) Jun 12 22:02:40 I only set padding on the RelativeLayout, and if I'm not mistaken the ad that I inflate in the viewpager activity should be outside that relativelayout: http://pastebin.com/gKwswhfF Jun 12 22:04:17 In the Activity I do: LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); View adView = inflater.inflate(R.layout.decor_adview, mViewPager, false); ((ViewPager.LayoutParams)adView.getLayoutParams()).isDecor = true; mViewPager.addView(adView); Jun 12 22:05:59 Anything that stands out that could cause the problem? Jun 12 22:07:11 here is the decor_adview: http://pastebin.com/vXwVZ4bg Jun 12 22:09:36 Napalm: do you have any experience with FragmentStatePagerAdapters? Jun 12 22:10:06 StingRay_: any ideas? :S Jun 12 22:10:29 I don't understand where the padding comes from, hehe Jun 12 22:10:32 belgianguy: yes, whats up Jun 12 22:11:11 that flicker :/ I must be doing something horribly wrong, I have put the following in a switch case of my getItem method: Jun 12 22:11:59 Napalm: http://pastebin.com/wSbjynbQ Jun 12 22:13:01 and without error, the flicker happens on the Fragment right _before_ the video fragment page is loaded Jun 12 22:13:09 (I guess it tries to fetch it already) Jun 12 22:15:47 Napalm: when did you say "thats normal", why does it change between match_parent and something that looks like its padded? Jun 12 22:24:48 Weird. I've changed nothing and the ads now fill the width.. Jun 12 22:29:40 ads expand to fill space Jun 12 22:29:57 Napalm: any idea? I've removed the Youtube Fragment and then it doesn't flicker :/ Jun 12 22:30:33 capella: but why didnt they expand in the beginning? Jun 12 22:31:42 heh ... small joke ... "ads expand to fill space?" Jun 12 22:34:40 does anybody know how to evade SocketException: Connection reset by peer Jun 12 22:36:27 belgianguy: what is flickering exactly? Jun 12 22:36:57 Napalm: a black screen that momentarily fills the screen Jun 12 22:37:12 ahhh Jun 12 22:37:14 ive seen this before Jun 12 22:37:16 (I guess it's the next fragment's YouTube chrome loading) Jun 12 22:37:32 its to do with the fact the ViewPager is not hardware accelerated Jun 12 22:37:38 and your adding a surfaceview to it Jun 12 22:37:54 google: android surfaceview flicker.. im sure you'll find a solution Jun 12 22:38:03 Napalm: hmmm, interesting, that might very well be it Jun 12 22:39:19 belgianguy: this might help http://android-developers.blogspot.co.uk/2011/11/android-40-graphics-and-animations.html Jun 12 22:39:51 I'm having display problems with Eclipse. It's a new install. All I did was add the Android ADT plugin. http://i.imagebanana.com/img/hwkrlmaf/JavaEclipseSDK_090.png Jun 12 22:41:48 I'm having display problems with Eclipse. It's a new install. All I did was add the Android ADT plugin. http://i.imagebanana.com/img/hwkrlmaf/JavaEclipseSDK_090.png Jun 12 22:43:38 belgianguy: i believe i have a fix Jun 12 22:43:48 belgianguy: you can set the window to 32bpp Jun 12 22:44:14 belgianguy: getWindow().setFormat(PixelFormat.RGBA_8888); Jun 12 22:44:22 try it Jun 12 22:44:48 this should set the code-path that leads to the surfaceView being recreated and the black flicker Jun 12 22:44:48 Napalm: oh, thanks, I'll try that now Jun 12 22:44:49 Napalm: post 2.3 I thought that was now a default over 565 Jun 12 22:44:56 was reading up on Maps, seem that did it too Jun 12 22:45:47 StingRay_: i doubt it, because most screens still only use 565 Jun 12 22:46:09 so its a waste of memory Jun 12 22:46:43 Napalm: hmm no, still flickers Jun 12 22:46:45 well, most is a bit strong, and I think the difference in bit/diff to actual pixel visual values is very apparent Jun 12 22:46:49 damn Jun 12 22:46:52 can I force it to not prefetch? Jun 12 22:47:11 prefetch? you mean prefetch the view Jun 12 22:47:46 Kinda looks like some ads are not optimized for 1920x1080 screens, doesnt it? http://bildr.no/image/1638213.jpeg Jun 12 22:47:49 Napalm: I have 5 fragments in the ViewPager, the youtube one is the third, the flicker happens on the second fragment Jun 12 22:47:53 yes, ViewPager#setOffscreenPageLimit .. but i wouldnt recommend it Jun 12 22:48:07 (where I think it tries to prepare for the next fragment) Jun 12 22:48:08 its better its prefetched Jun 12 22:48:18 That pattern on right and left side is not added by me Jun 12 22:48:19 but it will just happen a little later then Jun 12 22:48:55 the double buffering is probably at the core of it Jun 12 22:49:07 belgianguy: have you tried turning on hwAccel and/or changing the type of layer the ViewPager uses? Jun 12 22:49:21 Napalm: no, not yet Jun 12 22:49:26 belgianguy: http://code.google.com/p/android/issues/detail?id=36742 Jun 12 22:49:29 looks like thats it Jun 12 22:50:54 Napalm: yeah, that sure looks like it Jun 12 22:51:17 http://stackoverflow.com/questions/12232583/android-surfaceview-causing-screen-flicker Jun 12 22:52:12 basicly you should use TextView on API14+ and SurfaceView on everything else Jun 12 22:52:17 garg Jun 12 22:52:19 TextureView Jun 12 22:52:27 damn im so used to typing TextView Jun 12 22:52:32 going on auto-pilot Jun 12 22:52:33 lol Jun 12 22:54:24 i wonder if i should do a CompatTextureView Jun 12 22:54:25 or something Jun 12 22:54:31 might come in handy Jun 12 22:54:54 Napalm: ah, was just adding a SurfaceView with visibility 'gone' and w and h 0dp Jun 12 22:55:05 you were? Jun 12 22:55:10 or that solved it? Jun 12 22:56:03 they said something about that in the bug report Jun 12 22:56:27 belgianguy: so you've fixed it? Jun 12 22:56:46 Napalm: no, I was trying to, but then I read your textureview post Jun 12 22:57:06 but that would require access to the code of the fragment, which is closed I think Jun 12 22:57:24 belgianguy: its not going to help you.. because you cant change that Jun 12 22:58:11 belgianguy: its a shame that TextureView doesnt inherit from SurfaceView then you could fix it by detecting the SufaceView inflation and providing a TextureView Jun 12 22:58:31 Napalm: that hack fixed it Jun 12 22:58:45 it's actually what you suggested before Jun 12 22:58:45 which hack? Jun 12 22:58:55 a dummy SurfaceView in the Activity Jun 12 22:59:03 ah Jun 12 22:59:03 0 height 0 width Jun 12 22:59:08 and invisible Jun 12 22:59:13 straight but true Jun 12 22:59:14 lol Jun 12 22:59:17 strange Jun 12 22:59:18 arg Jun 12 22:59:23 right its time for sleep, cya all Jun 12 22:59:24 but it forces the rest into 32bpp Jun 12 22:59:36 (and it won't change format, and thus, won't flicker) Jun 12 22:59:54 but to any Google/YouTube engineer here: BAD! Jun 12 23:00:05 naughty googler Jun 12 23:00:07 lol Jun 12 23:00:10 bad googler Jun 12 23:00:13 go sit in the corner Jun 12 23:00:14 :D Jun 12 23:00:20 cya around matey Jun 12 23:00:40 yeah, thanks for all the help Jun 12 23:00:50 it was quite the discovery Jun 12 23:01:48 what are the rules on @RemoteView? Jun 12 23:02:26 Any of you dev for iOS as well? Are there just as many workarounds needed for weird behaviour there as in Android? Jun 12 23:08:22 I'm having display problems with Eclipse. It's a new install. All I did was add the Android ADT plugin. http://i.imagebanana.com/img/hwkrlmaf/JavaEclipseSDK_090.png Jun 12 23:09:12 nice blank screen Jun 12 23:09:25 so what's the display problem? Jun 12 23:12:43 intellij will clear that up for ya Jun 12 23:17:27 Quacked: weird behaviour ? Jun 12 23:26:40 Is there no dedicated SDK installer for windows anymore? Only this package which included eclipse?! Jun 12 23:29:22 huh? http://developer.android.com/sdk/index.html#ExistingIDE Jun 12 23:29:43 there are sdk tools only Jun 12 23:29:47 always have been Jun 12 23:30:02 and for windows there is a silly exe installer Jun 12 23:30:05 :) Jun 12 23:38:27 StingRay_, how much do you code for Android a day? Jun 12 23:38:53 or long* Jun 12 23:38:56 o/ Jun 12 23:39:02 if you don't mind answering :) Jun 12 23:39:48 not sure I understand the uint your asking for Jun 12 23:39:52 time ? Jun 12 23:40:32 how many hours a day do you spend on code? Jun 12 23:40:50 oh, well I dont code 100% of my day Jun 12 23:41:02 so dunno, somedays mabye 4 hours Jun 12 23:41:28 maybe at a stretch if I'm focused, 12 hours Jun 12 23:41:31 god know Jun 12 23:41:33 s Jun 12 23:41:38 why? Jun 12 23:42:22 cause I respect you and I wanted to set a good goal for myself Jun 12 23:42:42 fk really ? you know I'm not a professional at this right ? Jun 12 23:42:57 this is my experiment of another career choice (or something that I did not know) Jun 12 23:43:10 eh, being a pro doesn't mean that much :) Jun 12 23:43:15 since I got a bit bored and topped out at what I was doing Jun 12 23:43:32 professional < always contains ego connotations Jun 12 23:43:41 it does not Jun 12 23:44:25 i guess haha now that i thinka bout it Jun 12 23:44:30 must be playing too many video games :/ Jun 12 23:44:30 I am a 3D Graphics / VFX Artist/ TD in games and film, and I am a professional …. and I question what I do in that field more than any critic Jun 12 23:45:24 I find more comfort in attempting things that I know nothing about, and have no clue how to do, rather than doing what I know Jun 12 23:45:27 bit odd that Jun 12 23:45:49 but this is not ego, but I did run out of things like that in my career … so wated to start something new Jun 12 23:45:50 :) Jun 12 23:46:02 maybe wasn't the best choice … but hey…. learned lots :) Jun 12 23:47:08 do you have any games/apps out on the market atm? Jun 12 23:47:18 android market ? Jun 12 23:47:38 or just anything ? out anywhere ? Jun 12 23:49:20 android market :) Jun 12 23:49:24 oh no Jun 12 23:49:28 working on my 1st Jun 12 23:49:32 almost at beta Jun 12 23:50:05 have a g+ group setup and ready to go :) Jun 12 23:50:16 only has 2 members atm, me and g/f Jun 12 23:50:21 but we use it lol Jun 12 23:51:54 im guessing a game? Jun 12 23:52:04 fk no Jun 12 23:52:13 I have a list of games I want to do Jun 12 23:52:23 but see not sure I have the coding skillz Jun 12 23:52:54 this is called SmartMessenger Jun 12 23:53:29 tiny simplistic sms app :) Jun 12 23:53:45 ok, maybe not tiny, or simplistic Jun 12 23:54:05 what does it do? Jun 12 23:54:16 ugh you want a list ? Jun 12 23:54:18 lol Jun 12 23:54:22 tis a long list Jun 12 23:55:24 does a few things that I haven't seen on other apps (unrelated to sms) Jun 12 23:55:44 and then has some unique sms features that I wanted and have not seen Jun 12 23:55:58 and then many features I have seen, that I just wanted to do a little diff Jun 12 23:56:26 I have a serious moral dilema with it though Jun 12 23:56:47 that eats at me Jun 12 23:57:00 what's the dilemma? that your strings.xml is full of misspellings? Jun 12 23:57:11 I wish that were it Jun 12 23:57:14 no Jun 12 23:57:25 I have a good friend who is a police officer Jun 12 23:57:37 ah, yes, that's a problem Jun 12 23:57:40 he asked a few questions about my app that I had not considered Jun 12 23:57:49 well in a light that I had not considered Jun 12 23:57:51 tell him to get a warrant Jun 12 23:58:01 from a perspective I had not thought about Jun 12 23:58:26 see it has a rules processor that allows you to construct many different types of events/actions Jun 12 23:58:45 so a user could use it for the 2 following things that he pointed out to me Jun 12 23:59:01 untracebale illegal deals (drugs) Jun 12 23:59:10 child porno use etc Jun 12 23:59:21 typical police officer bias Jun 12 23:59:24 * pragma- snores boredly. Jun 12 23:59:28 and since nothing goes through servers and such, would be imposs to trace Jun 12 23:59:40 yeah but is that something to worry about Jun 12 23:59:43 as a dev Jun 12 23:59:51 something you should at least consider Jun 12 23:59:53 Sounds useful, then. Because some *might* abuse it, that isn't your problem. Jun 13 00:00:00 well true Jun 13 00:00:06 same could be said of guns etc Jun 13 00:00:15 but still something that one should at least consider Jun 13 00:00:24 lol, thank the heavens Jun 13 00:00:27 too much Jun 13 00:00:29 pressing enter Jun 13 00:00:31 dont ever change it then Jun 13 00:00:31 after every Jun 13 00:00:35 sentence Jun 13 00:01:18 pragma-: until there is a tonal (voice/tone) plugin for irc Jun 13 00:01:29 :) Jun 13 00:01:35 Ventrilo lol Jun 13 00:03:13 I'm gonna have to drop a USP from version 1 though Jun 13 00:03:35 and the thing for me as an artist/designer type….its really fkin hard to do!!!! Jun 13 00:07:43 StingRay_ you are now on a PRISM list ! Jun 13 00:08:58 a what ? Jun 13 00:09:43 * jug6ernaut_ is so tired of all this PRIZM/NSA stuff Jun 13 00:09:47 * jug6ernaut_ honestly doesn't care Jun 13 00:23:21 StingRay_: yeah, weird behaviour as in stuff that doesnt work like intended and requires a workaround Jun 13 00:23:52 you get that with most 3rd party things I would think Jun 13 00:24:03 3rd party ? Jun 13 00:24:05 but what in android do you think fits that ? Jun 13 00:25:02 well, I've stumbled into it on occasions.. the only thing I can recall right now is setting flags to unlock keylock Jun 13 00:25:40 doesnt work on ics but works on frodo Jun 13 00:26:01 frodo. Jun 13 00:26:05 should work for all bagginses Jun 13 00:26:08 haha Jun 13 00:26:27 froyo* Jun 13 00:26:41 I just installed xbmc frodo you see :p Jun 13 00:26:59 the workaround to fix that was to use deprecated methods for ics Jun 13 00:27:22 the correct thing to do is tell your users to upgrade to jellybean Jun 13 00:27:39 pragma-: same issue in jb Jun 13 00:27:47 irrelevant! Jun 13 00:27:51 :) Jun 13 00:29:31 is ScrollView heavy? Jun 13 00:30:11 I could use some help...got an app crash due to some surely incorrect design Jun 13 00:30:15 but I'm not sure how it should be Jun 13 00:30:27 so...the crash happens in a callback function on this activity Jun 13 00:30:38 it was basically forwarding the callback to the fragment Jun 13 00:30:48 mLandingFragment.LoggedIn(accessToken); Jun 13 00:30:58 mLandingFragment was null and that was crashing the app Jun 13 00:31:20 so really what I would like to do is just have the callback happen in the fragment ...the activity doesn't need to be involved here Jun 13 00:31:23 but here's my problem Jun 13 00:31:54 the callback comes from this dialog fragment that has an onAttach(Activity activity) Jun 13 00:32:08 it makes sure the activity implements the callbacks required Jun 13 00:32:49 so like....if I could have somehow gotten the fragment instead of the activity this wouldn't be a problem Jun 13 00:32:53 but that's not how it works Jun 13 00:33:19 so basically, you just get a NPE on mLandingFragment Jun 13 00:33:26 yeah Jun 13 00:33:33 why not actually fix that then ? Jun 13 00:33:37 and move ono Jun 13 00:33:38 for now I ended up checking for null and putting up a toast of "Would have crashed" Jun 13 00:33:39 on* Jun 13 00:33:43 I'm trying to fix it Jun 13 00:33:55 the only reason the NPE is happening is because of this design Jun 13 00:34:00 no Jun 13 00:34:05 no? Jun 13 00:34:09 cause your mLandingFragment is null Jun 13 00:34:19 well I mean, I am now checking if it is null and not crashing Jun 13 00:34:23 but now the app doesn't behave correctly Jun 13 00:34:24 why cant you ask fragmentManager for an instance ? Jun 13 00:34:25 it doesn't log in Jun 13 00:34:29 it can't forward the callback Jun 13 00:34:38 hrmm? Jun 13 00:34:46 fragment...manager? Jun 13 00:34:56 huh ? Jun 13 00:35:05 your using fragments ? Jun 13 00:35:09 yes Jun 13 00:35:24 and how are you adding mLandingFragment ? Jun 13 00:35:58 out of memory and eclipse crashed Jun 13 00:36:01 hah Jun 13 00:36:03 cause at this stage if you dont know what fragmentManager is, you missed like the 1st 20 pages in the docs/tuts Jun 13 00:36:26 okay, just checked Jun 13 00:36:42 I don't. I have jumped around a bunch trying to put out fires Jun 13 00:36:50 it is a bad idea. But not my idea to make Jun 13 00:37:10 either way, you shoud really learn the basics Jun 13 00:37:17 saves sooo much time in the long run Jun 13 00:37:21 so onCreate has if(getSupportFragmentManager().findFragmentById(R.id_landing_fragment) == null) { Jun 13 00:37:38 FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); Jun 13 00:37:52 mLandingFragment = new LandingFragment(); then adds it to the transaction and commits Jun 13 00:38:01 hwo Jun 13 00:38:03 hwo Jun 13 00:38:04 ugh Jun 13 00:38:06 how Jun 13 00:38:14 3 param action ? Jun 13 00:38:50 as in *.add(dest,frag,tag) ? Jun 13 00:38:59 maybe the problem is when it is not null, it never sets mLandingFragment Jun 13 00:39:01 tag being if you want it later from somewhere Jun 13 00:39:04 2 Jun 13 00:39:12 .add(R.id.landing_fragment, mLandingFragment) Jun 13 00:39:15 you should go over the basics again Jun 13 00:39:26 alright, give me a url and I'll read :) Jun 13 00:39:27 3 param tag is useful Jun 13 00:39:43 * StingRay_ now refuses to be a search tool. sorry :) Jun 13 00:39:55 well tell me what to search for, where to look Jun 13 00:40:05 fragments 101 on android.com Jun 13 00:40:11 thx Jun 13 00:40:13 well the intro to fragments Jun 13 00:40:19 always d.android.com Jun 13 00:40:35 probably */learning/fragments or something like that Jun 13 00:41:07 will read through. I appreciate it :) Jun 13 00:45:49 ProgramMax: to save some time, look at the add(3 param) tags <--- findFragmentByTag(tag) Jun 13 00:45:55 thats what you should be doing really Jun 13 00:46:14 I will have to read about it, but I'm not sure I fully understand the benefit of tags Jun 13 00:46:22 from what I understand, there are ids that are unique Jun 13 00:46:25 findFragmentById (not that I've ever used it) is for xml defined fragments Jun 13 00:46:27 and tags that are not Jun 13 00:47:06 so if you add a fragment to R.id.someid <-- that id is not the fragment Jun 13 00:47:10 it's a view Jun 13 00:47:20 oh, I see Jun 13 00:47:32 add(R.id.someid,myfrag,"thisisatag"); Jun 13 00:47:36 means Jun 13 00:47:47 findFragmentByTag("thisisatag"); Jun 13 00:47:56 will get your fragment and not the view that you put the frag in Jun 13 00:47:58 :) Jun 13 00:48:06 got ya Jun 13 00:48:09 okay, will do Jun 13 00:48:11 thank you Jun 13 00:49:25 still think you should go over the tuts cause they explain it better Jun 13 00:49:30 that I :) Jun 13 00:49:35 than* Jun 13 00:49:38 I will Jun 13 00:57:46 Whats the right way to center_vertical a textview in a scrollview? Jun 13 00:58:07 err what ??? Jun 13 00:58:09 If I do layout_gravity="center" on the textview the top of the textview gets hidden Jun 13 00:58:10 :P Jun 13 00:58:18 that has to be the craziest thing I heard today Jun 13 00:58:28 heh Jun 13 00:58:50 you basically asked how do I in an infinate vertial view, put something in the center Jun 13 00:58:52 lol Jun 13 00:59:14 infinate / 2 obviously :) Jun 13 00:59:29 its the middle of the night.. :P Jun 13 00:59:38 ineed it is Jun 13 00:59:56 but that does not mean there is a middle of a scrollView Jun 13 00:59:58 :) Jun 13 01:04:53 http://pastebin.com/ig7jVnvE Jun 13 01:05:35 Using android:layout_gravity="center" on the TextView will hide the top of the String Jun 13 01:05:59 yes Jun 13 01:06:02 When the String is too large and the scrollview kicks in Jun 13 01:06:07 no Jun 13 01:06:14 the scrollView is active all the time Jun 13 01:06:23 Ok Jun 13 01:06:45 I think rather than doing something that A ) Is not possible Jun 13 01:06:50 b ) is very silly Jun 13 01:07:04 and c ) you should have come to the conclusion yourself Jun 13 01:07:15 you should look at an alternate way Jun 13 01:07:27 hm Jun 13 01:07:31 which is that? Jun 13 01:07:34 as in a textView can be scrollable Jun 13 01:08:01 so why try an put a textView in the middle of something that doesnt have a middle Jun 13 01:08:03 :) Jun 13 01:08:52 StingRay_ … playing around with Sketch - this was for doing app icons - it doesnt seem to be as feature complete as inkscape. not sure what you see in this app so far Jun 13 01:09:19 define icons Jun 13 01:09:26 nouns Jun 13 01:09:28 I used it for container, buttons etc Jun 13 01:09:33 flat monochromatic nouns Jun 13 01:09:34 erm view decor Jun 13 01:09:43 did not use it for icons Jun 13 01:10:02 * g00s is so sad about inkscape on mac Jun 13 01:10:42 StingRay_: youre thinking maxlines? Jun 13 01:11:01 no. I'm not Jun 13 01:11:04 g00s, I started putting something together... Jun 13 01:11:19 g00s: whats good about inkscape ? Jun 13 01:11:24 as in what are you missing ? Jun 13 01:11:44 i liked all the alignment modes Jun 13 01:11:48 and the path editor Jun 13 01:11:57 modafinil Jun 13 01:12:00 Ologn : what are you putting together ? Jun 13 01:12:29 StingRay_: what then? Jun 13 01:12:37 g00s, Android ID's to manufacturers, product name...and then screen size etc. Jun 13 01:12:43 Quacked: what what ? Jun 13 01:12:49 Ologn oh cool ! Jun 13 01:12:58 how should I make the TextView scrollable? Jun 13 01:13:01 g00s, I will DCC send you it Jun 13 01:13:13 Quacked: is that a serious question ? Jun 13 01:13:33 yeeees Jun 13 01:13:50 http://developer.android.com/reference/android/widget/TextView.html <--- in this, do you see the word "scroll" mentioned ? Jun 13 01:14:00 like 20 or so times ? Jun 13 01:14:46 g00s, DCC send request activated and waiting Jun 13 01:15:07 Ologn oh shit, i'm at the library - firewall probably kills that Jun 13 01:15:14 lemme see Jun 13 01:15:23 I can put it on the web Jun 13 01:16:21 StingRay_: but you mean android:scrollbars="vertical"? Jun 13 01:17:48 can do that yes Jun 13 01:18:01 That Jun 13 01:18:05 that has no effect Jun 13 01:18:15 isScrollable ? Jun 13 01:18:30 read the class doc Jun 13 01:18:32 :) Jun 13 01:18:41 no such thing Jun 13 01:18:54 omg Jun 13 01:18:57 scrollContainer Jun 13 01:18:58 something Jun 13 01:19:06 you want me to read for you ??? Jun 13 01:19:14 seriously ? Jun 13 01:21:28 this is the channel - just don't be too dumb Jun 13 01:21:55 I'm reading and I can't find anything that works Jun 13 01:22:43 dcc doesn't often work through NAT in any case Jun 13 01:22:48 disregarding any firewall issues Jun 13 01:23:36 dropbox/gdrive Jun 13 01:23:46 dcc fails like 50% of the time for me Jun 13 01:23:46 hey pfn Jun 13 01:23:53 when googling I can only find methods requiring setMovementMethod dynamically Jun 13 01:24:14 or putting it into a scrollview Jun 13 01:24:37 do your test conditions include…erm…..lots of text ? Jun 13 01:24:52 to the point where the bounds would be restricted by the screen ? Jun 13 01:24:58 yeah Jun 13 01:25:13 * pfn wonders if pairing his bluetooth keyboard to his phone would make testing any faster Jun 13 01:25:29 and you have no properties that make the view disrespect it's parent bounds ? Jun 13 01:25:45 pfn and you also have to get a monkey Jun 13 01:25:48 that I'm not certain of, hehe Jun 13 01:26:32 easy to see, add padding 30,30,30,30 and setBagroundColor(Color.RED) or something Jun 13 01:26:33 hello g00s, all moved yet? Jun 13 01:26:43 back* Jun 13 01:26:48 Can I describe my problem in one sentence? Jun 13 01:26:49 pfn floating atm Jun 13 01:27:02 MRay27: your asking us your capability Jun 13 01:27:02 this is the layout: http://pastebin.com/h6vSQQ0r Jun 13 01:27:08 not sure anyone knows you well enough Jun 13 01:27:12 g00s, fancy :p Jun 13 01:27:14 I think he can! Jun 13 01:27:16 good Jun 13 01:27:24 I need help understanding root Jun 13 01:27:26 g00s, you should get yourself like a mini-RV and call that your base of operations Jun 13 01:27:34 pfn someday! Jun 13 01:27:39 cheaper than finding real estate to live in Jun 13 01:28:02 mray27 tried #android-root yet? Jun 13 01:28:10 i have some blogs about entrepreneurs that started their tech companies from RVs and such Jun 13 01:28:15 thanks for the info Jun 13 01:28:22 I met with an angel today Jun 13 01:28:29 see, I knew he could do it Jun 13 01:28:41 i'm waitinf for mr fusion Jun 13 01:29:01 mr fusion? Jun 13 01:29:03 Back to the future Jun 13 01:29:10 to power all the gadgets off the grid :D Jun 13 01:29:16 and the monkey will give you banana peels to power it with? Jun 13 01:29:26 the monkey is for pfn's testing Jun 13 01:29:46 ah - wrong segway :P Jun 13 01:29:55 g00s, install a huge set of solar panels on the roof Jun 13 01:30:10 StingRay_: would it be the same to put that within the top linearlayout in the xml? Jun 13 01:30:13 g00s, and you don't need that much power... what kinda gadgets are you gonna have, a laptop, phone, and a tv Jun 13 01:30:20 that's only a few hundred watts Jun 13 01:30:23 no tv :D Jun 13 01:31:53 anyone recommend a good vpn Jun 13 01:32:02 g00s: http://www.nytimes.com/2013/04/14/education/edlife/ken-ilgunas-lives-in-a-van-while-a-graduate-student-at-duke-university.html?pagewanted=all&_r=0 Jun 13 01:32:13 library blocks the torrentfreak website, so i can't read their review Jun 13 01:32:27 g00s, not sure. i've used purevpn and donottrackme Jun 13 01:32:32 i still have a couple of days off of purevpn Jun 13 01:32:36 ill give you access if you want Jun 13 01:33:00 Solupus oh thanks, i'm fine with buying a decent service Jun 13 01:33:04 StingRay_: doing it in the xml showed a nice fat border within the linearlayout Jun 13 01:33:21 well, i was in Shanghai last week haha so I had to have a VPN :? Jun 13 01:33:30 Solupus hope you encrypt your dns requests on vpn ;) Jun 13 01:33:39 nah, i have nothing to hide :) Jun 13 01:33:51 with a nick like Solupus Jun 13 01:33:55 not so sure Jun 13 01:34:17 is there a different definition of Solupus than the definition i intended for it? Jun 13 01:34:27 just kidding Jun 13 01:35:00 anyways let me know if you want the credentials Jun 13 01:35:24 StingRay_ werent you talking generally about UX yesterday ? Jun 13 01:36:08 here's my idea of bad UX: Lr doesn't have a lens profile for my G9, so they want me to download an app which will download it, and it depends on fing Adobe AIR Jun 13 01:36:42 that program design Jun 13 01:36:56 resulting in bad (what you call) UX Jun 13 01:37:04 UX is something you survey Jun 13 01:37:08 not something you design Jun 13 01:37:12 that was my point Jun 13 01:38:32 what's the difference between hydrid and recovery? Jun 13 01:38:45 in the ez-recovery app Jun 13 01:38:53 MRay27: wrong channel Jun 13 01:39:05 get back there Jun 13 01:50:19 everybody excited for the next eclipse release :D Jun 13 01:50:31 i can year it ! all you guys going nuts Jun 13 01:51:39 * capella meh ... never looked back Jun 13 01:51:39 i'm sure i will be when it comes time to deal with it. Jun 13 02:40:02 i can't seem to get my phone to hit my local webserver using the ip of my local networked computer (starting with 192.168), my phone is connected to my network via wi-fi, is there something else i need to do? Jun 13 02:40:55 hit? Jun 13 02:41:00 throw it harder ? Jun 13 02:41:04 i'm using chrome Jun 13 02:41:04 aim better Jun 13 02:41:18 use a sling-shot Jun 13 02:41:53 hey i used to have a sling-shot, wonder where that went Jun 13 02:43:54 webserver you mean :80 ? Jun 13 02:44:08 and does anything else view it ok ? Jun 13 02:44:37 in this case it's on a different port - yeah i can view it from another laptop, just not from my phone for whatever reason Jun 13 02:44:48 port Jun 13 02:44:56 should not make a diff Jun 13 02:45:10 I can contact a whole host of hardware on my local net Jun 13 02:45:17 all different ports Jun 13 02:45:33 chrome, browser,ff etc Jun 13 02:46:21 hmmm i'll try firefox Jun 13 02:46:33 well wont matter really Jun 13 02:46:44 I would say it's your phone connection setup Jun 13 02:46:50 something to do with Jun 13 02:46:56 if I were the guessing type Jun 13 02:47:22 yeah must be, i think the other end is fine Jun 13 02:49:26 Does anyone have recommendations for good laptops to do Android development on Linux? Jun 13 02:49:42 does it matter ? Jun 13 02:49:55 and by good what do you mean ? Jun 13 02:50:03 zomg my wi-fi was off, doh Jun 13 02:50:14 Jc_Dev: so I was right :) Jun 13 02:50:16 yay Jun 13 02:50:28 lol yeah, glad that's all it was Jun 13 02:51:05 Just something that works well with Linux :) Jun 13 02:51:39 what do you mean well ? Jun 13 02:52:12 just get an intel cpu, and no shared gfx crap and it will work "well" Jun 13 02:59:18 hi, can anyone help me with this aosp compilation error? Jun 13 02:59:19 http://paste.ubuntu.com/5760173/ Jun 13 02:59:56 loin: not a rom dev channel **** ENDING LOGGING AT Thu Jun 13 02:59:59 2013