**** BEGIN LOGGING AT Wed Oct 17 03:00:01 2012 Oct 17 03:09:09 http://pastebin.com/PDKM9zGS <-- does this use of 'final' result in leaking the Intent object every time view is clicked on? Oct 17 03:10:38 I have a problem w hen I call .show() on my dialog it executes and then executes the next line after .show() before the dialog selections can be made Oct 17 03:10:52 is there a way to wait for the dialog to be submitted/canceled/oked before continuing to the next line Oct 17 03:11:32 no, you need to put that sort of code int the click listeners for the dialog.. Oct 17 03:12:32 mahamoti: here is what i have http://pastebin.com/T29zDvS5 Oct 17 03:12:37 try this: http://pastebin.com/Dgz2CUzi Oct 17 03:13:15 and i'm using the date picker dialog from here http://developer.android.com/guide/topics/ui/controls/pickers.html Oct 17 03:14:10 i assume your question is answered by my paste Oct 17 03:14:59 my dialog doesnt have a builder Oct 17 03:15:33 pico idea is in your dialog set up the logic that executes whatever you need to do from input from the dialog Oct 17 03:15:49 ie in the onclick listener in the dialog, not from outside of the dialog Oct 17 03:15:52 http://pastebin.com/PDKM9zGS <-- does this use of 'final' result in leaking the Intent object every time view is clicked on? Oct 17 03:15:55 and you should be using dialogfragment Oct 17 03:16:16 lasserix: ok ill try that Oct 17 03:17:53 lasserix: so if I wanted to pass a # from dialog to the activity that has .show(), there is no way to do that unless I set a textview or something similar? Oct 17 03:19:09 you can use an interface? Oct 17 03:19:37 although there might be a simpler way, and if you are using dialog fragments you can send information to a particular fragment Oct 17 03:19:50 or you can set some state variable Oct 17 03:20:22 but the idea is in your dialog set an onclicklistener like mahamoti showed which, on clicking, sets the variable up somewhere else Oct 17 03:20:35 k Oct 17 03:20:48 I didnt know that was how it had to be Oct 17 03:21:04 I have an activity class and dialog class so i wasn't sure how to pass between the two Oct 17 03:21:30 from within the click listener you can set any variable outside that is in scope..ie, a class member on your activity, or something you declared above as final Oct 17 03:24:04 what if i make the value static? Oct 17 03:24:29 normal scoping rules apply... Oct 17 03:25:10 i would say it is bad practice but it looks like the best solution for me Oct 17 03:31:23 pretty interesting, about google, moto, and VZ http://www.theverge.com/2012/10/16/3513860/motorola-stock-android-customization-verizon Oct 17 04:03:41 What's the easiest way of changing an icon in the action bar if the action is to chose from 3 catagories? Oct 17 04:15:03 setIcon isn't what you're looking for? Oct 17 04:26:50 Is there a good way set an animation for a menu item Image Oct 17 04:30:36 anyone know of a good way to set an animation for a menu item image. I need to start an animation for a menu item, but only see how to do so with ImageViews Oct 17 04:30:49 what do you mean? Oct 17 04:30:59 how can there be an animation for a menu item? Oct 17 04:32:08 menu item image Oct 17 04:32:28 the image/drawable next to a menu item Oct 17 04:33:56 what do you expect to happen? i've never heard of someone wanting to do that, im not sure if it's possible Oct 17 04:35:11 not sure either. It seemed as if it was online, but I kept seeming to miss something from some of the descriptions Oct 17 04:35:27 setActionDrawable? Oct 17 04:36:34 do you mean setActionView? Oct 17 04:36:40 and how does that help him? Oct 17 04:36:49 yeah Oct 17 04:37:02 I was looking at doing an animation list for the image of the menuitem. Sequence of image cycled by a delay in duration Oct 17 04:37:05 http://stackoverflow.com/questions/9731602/animated-icon-for-actionitem Oct 17 04:38:22 ah yes, that's what he wants. Oct 17 04:38:32 excuse my ignorance :o Oct 17 04:38:49 I wish google would just put actionbarsherlock into the compat pack Oct 17 04:39:58 AlexanderZ: I appreciate it, but I found this and am missing something. I created the standard menu xml file, with various items in there. These items have an image, but I wasn't quite sure how to make it an imageview Oct 17 04:40:39 AlexanderZ: that would be officially admitting that they suck at something Oct 17 04:41:24 you need to set an imageview as the actionview for the menu item. and then animate that imageview Oct 17 04:44:38 AlexanderZ: Sorry for being annoying, but that one is new to me and I am having a hard time finding how to do this. I see that I can create an actionViewClass, but it seems as if that is overkill Oct 17 04:45:53 there is a way to do it, someone on a blog posted how to for spinning a refresh icon Oct 17 04:45:59 i dont remember the link sorry Oct 17 04:46:26 the answer to the so question AlexanderZ posted is pretty explicit Oct 17 04:46:28 just do that Oct 17 04:46:36 (I haven't actually done this yet, I am planning on doing it tomorrow) but when you want to animate it, call setActionView(imageView2) on the menuitem, and then call imageView2.startAnimation() Oct 17 04:47:19 I am calling invalidateOptionsMenu / onCreateOptionsMenu when I'm loading different fragments, but the action bar menu actions are stacking Oct 17 04:47:51 menu.clear() Oct 17 04:47:58 thanks Oct 17 04:48:25 onPrepareOptionsMenu might be useful to you as well Oct 17 04:48:33 when is it called? Oct 17 04:48:49 I have a sort by catagory icon i want to change the icon depending on the sort Oct 17 04:49:26 it's in the docs, im not sure Oct 17 04:49:31 oh ok Oct 17 04:49:50 I have 2 questions, for someone myself about those menus: is the only way to get access to the menu in oncreateoptionsmenu? there is no way to get it from an actionbar reference right? and the second question is, how do I change the icon of a menu item? my method of changing it in on prepare/oncreateoptionsmenu, made it switch to the new icon for like 100ms and then switch back to the original Oct 17 04:49:52 i saw it but haven't figured out how to use it, actually I've seen i can change the action bar in the fragment / not in the activity but couldn't get it working Oct 17 04:58:02 ahh cool got it to work with onprepare thanks sampullman Oct 17 04:58:54 now i get to spend a wonderful amount of time pixel perfect editing Oct 17 04:59:28 http://developer.android.com/guide/topics/ui/menus.html#ChangingTheMenu Oct 17 05:03:01 Anyone know why a ListView would slightly scroll up when I display a PopupWindow using IcsListPopupWindow? Oct 17 05:13:20 Somehow I got a java.lang.NoClassDefFoundError: com.actionbarsherlock.R$styleable crash reported - even though my app includes ABS properly, it is a library in eclipse and it seems to work on two different android versions for me. What could be the cause of this? Oct 17 05:26:50 If I have a listview with different catagories that will end up showing >500 items, should I bother implementing a descending/ascending ordering? Oct 17 05:27:29 The difference being w/o the ordering, I can just swap the icons in the action bar, but w/ I have to set up a popupmenu and have catagories x2 for either up or down Oct 17 05:34:17 AlexanderZ: thanks for the help earlier. Think I almost have it working, however, the animation starts, but doesn't actually animate. It loads the first image, but no subsequent images. Any ideas while I look into it. Oct 17 05:51:42 I have a layout wrapper to be shared by 4 of my activities. What is the best way to implement such a functionality. It is not an actionbar or some standard view elements. Oct 17 05:52:40 put it in one file and use Oct 17 05:53:21 sampullman: and inside the activity add a child to shared_view Oct 17 05:53:21 ? Oct 17 05:53:58 no, it should be like a template used by html frameworks, if you've seen that Oct 17 05:54:09 sampullman: ok got it Oct 17 05:54:15 include can hold other views Oct 17 05:54:30 so the hierarchy is in layouts, not in activities right? Oct 17 05:54:35 main view Oct 17 05:54:35 -include header Oct 17 05:54:35 custom stuff Oct 17 05:54:35 -include footer Oct 17 05:54:35 /main view Oct 17 05:54:46 ok Oct 17 05:54:52 yeah, that would be in xml Oct 17 05:55:31 ty sampullman Any other suggestion like extending activities? Oct 17 05:55:50 well, you can reuse fragments if you're doing it that way Oct 17 05:56:26 one fragment can be used in many activities Oct 17 05:56:31 ok fragments. Looking into both of these. Thanks :) Oct 17 05:56:44 no problem Oct 17 06:16:22 can a pop up window use a menu action as its anchor view? Oct 17 06:34:18 does anyone know how to take advantage of 9 patch scaling when manually loading a resource? Oct 17 06:34:28 as a bitmap, i mean Oct 17 06:36:32 you mean 9patching at run time? Oct 17 06:36:55 yiss Oct 17 06:36:58 How am I supposed to display a contextual menu on a single item in 3.0+? Oct 17 06:37:19 getNinePatchChunk? Oct 17 06:37:37 nm Oct 17 06:38:03 it seems BitmapFactory.decodeStream should do it on a pre compiled 9 patch Oct 17 06:40:53 so I now have a menu item that I was able to add an animation to, however once it is animated, it loses the clickable aspect. Is there a way to fix this? Oct 17 06:45:31 Is there any way to set the anchor of a popup window's show as drop down as an action item in the action bar? Oct 17 06:58:18 when i my app tries to sign a user in via facebook, facebook tells me that an error has occurred. i think it may be due to an incorrect key value. can i, for example, use my key for multiple apps? Oct 17 07:00:06 how can i read source code of ListView? Oct 17 07:00:14 How do you make an action view (for an action item) clickable Oct 17 07:23:55 hi! Oct 17 07:32:22 i'm trying to rebuild a boot.img to turn on ro.debuggable, but when i reboot the device (an sgs2) it just gets stuck in a reboot loop. can anyone help? Oct 17 07:33:04 What is the overflow menu doing when it pops up the menu items in the overflow? Oct 17 07:33:33 what? Oct 17 07:34:04 alch__: #android-root might get you an answer Oct 17 07:34:37 ahh, thanks Oct 17 07:35:35 hi Oct 17 07:35:47 Hiya Oct 17 07:36:13 how do I make any layout which will scale to parent but with proportional size? Oct 17 07:36:41 xml / programming are also preferred Oct 17 07:38:22 for example, my relativeLayout will be rescaled between portrait & landscape Oct 17 07:38:35 the contents in the relativelayout will be all stretched Oct 17 07:38:55 i wish to keep the contents in the original proportion Oct 17 07:39:00 not stretched Oct 17 07:40:47 Is it possible to make a drop down list like the share action provider on the developer website for an action bar item? Oct 17 07:41:51 vanson2012: you can create two separate (xml) layout files, and load one according to the current orientation (in onCreate) Oct 17 07:44:22 http://ScrnSht.com/hdmqux Oct 17 07:44:45 http://ScrnSht.com/gvcurf Oct 17 07:44:57 both portrait & landscape layout are stretched... Oct 17 07:45:24 i just wish to replicate this ->> http://ScrnSht.com/glgrdj Oct 17 07:46:16 (12:41:51 AM) sampullman: vanson2012: you can create two separate (xml) layout files, and load one according to the current orientation (in onCreate) Oct 17 07:47:00 but how about different android devices' resolution? Oct 17 07:47:06 there are more than 10 Oct 17 07:47:19 am i creating more than 10 xmls for 1 single page? Oct 17 07:47:38 the android design guidelines cover this Oct 17 07:48:08 for the love of Oct 17 07:48:10 How can I use action provider to make a drop down menu Oct 17 07:48:11 you may want to look at http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Oct 17 07:48:25 I can't use navigation mode to do it because I have other icons that need non-drop down functionality Oct 17 07:49:17 damn… ive spent a whole day putting this thing there, and that thing over there Oct 17 07:52:16 i miss iOS's autolayout Oct 17 08:03:35 eventually i took you guys' suggestions Oct 17 08:04:00 and voila i got a better result, and i will temporarily stop landscape layout Oct 17 08:04:20 then i guess i have to invest a few days to make more layouts later on Oct 17 08:11:33 Is there a way that I can find out whether the ActionBar Overflow icon is shown in the ActionBar? I mean it depends on the size of the device, so I need to know if it's visible or not? Oct 17 08:13:45 has anyone here used the twitter api? i can't figure out how to deal with the callback, for which the documentation is almost nonexistent Oct 17 08:21:59 BaseAdapter has a position parameter in getView, which the SimpleCursorAdapter in its newView and bindView methods does not... is there a way to get an equivalent value in it? Oct 17 08:30:32 hi Oct 17 08:30:40 http://stackoverflow.com/questions/12930083/how-to-debug-listview-code-when-programming-android Oct 17 08:36:57 bigmeow: answered you Oct 17 08:38:06 getResources().getDisplayMetrics().density always returns 1 1.5 or .75? Oct 17 08:59:04 timroes: still not solved Oct 17 08:59:14 Is there a way to get the y position at the bottom of the action bar? Oct 17 08:59:52 bigmeow: i have no idea, if its possible to download only part of it :) Oct 17 08:59:58 i have always a full copy :) Oct 17 09:00:21 timroes: dude, are you rom developer? Oct 17 09:00:43 nope, but its neither a harm to have a full copy, its not that large Oct 17 09:02:23 hypothetical situation: I query the DB, check the resulting Cursor against the up-to-date dataset I've got, and find one entry that's not in the DB and I insert it. Does the Cursor update to reflect that this value is now in the DB or do I have to re-query? Oct 17 09:06:50 Tee_Pee: your statement is a little low on details, but for most cases you can just call notifyDataSetChanged() or notifyDataSetInvalidated() and it'll reload. Oct 17 09:12:48 Anyone in here using in-app billing? I'm considering using it for a "upgrade free app to full version" strategy, but it seems awfully complicated. Oct 17 09:18:49 just redirect them to the play store for the full version? Oct 17 09:20:23 Shit, finally I understand the error of my ways. Oct 17 09:21:36 Please share? Oct 17 09:22:34 I've spent hours trying to figure out how to cache images via a ContentProvider and a SQLite database, because the android official documentation told me that a contentprovider is the right way to do it for gallery applications Oct 17 09:23:33 and I've set up the content provider, the database, and was helplessly stuck on the SimpleCursorAdapter... turns out I was going about it all wrong, trying to cache and display images in parallel, rather than sequentially. Oct 17 09:24:23 dun dun dun! Oct 17 09:24:27 good job Oct 17 09:24:50 seriousily development programming is like a game of chutes and latters ;) Oct 17 09:25:18 lasserix: I don't think you learn much playing chutes and ladders Oct 17 09:26:09 ha yeah not what it teaches you as much as the way it progresses Oct 17 09:26:40 lasserix: toe Oct 17 09:26:40 Yeah, gave myself a nice smack for missing the obvious. I got so distracted by trying to figure out how these contentproviders that I missed obvious things... Not seeing the forest from all the trees etc. Oct 17 09:26:55 lasserix: touche Oct 17 09:28:03 Tee_Pee: trying to use contentproviders feels like you've genetically regressed to neanderthal, nothing makes sense any more Oct 17 09:28:20 mitch0: well, the arguments against that are having to manage a separate app + codebase and in my case, a means of exporting and importing data from and to the paid app. Oct 17 09:29:01 I'm considering a simple unlocker app so I can add a "is package installed?" check to the free version... drawback is that it's quite easy to crack. Oct 17 09:29:11 Ankwatcher - It's convoluted. Create DB, create provider, create adapter, create view. Oct 17 09:30:27 I don't want to say "needlessly convoluted" because content providers are primarily for app-to-app communication, and they make sense for that Oct 17 09:31:05 Tee_Pee: yeah, been there. There is that point where you scream at eclipse "Why am I creating a framework to share data with myself?" Oct 17 09:35:13 https://github.com/robotmedia/AndroidBillingLibrary hmm this is interesting Oct 17 09:36:20 hi. I will be working on software for Android soon, and so I was wondering whether anyone has any tips on workflow stuff as I'd like to get set up. all I know is I'll be using vim for my editing, and a free software VM. Oct 17 09:50:32 alexander__b: you probably won't be working in vim. http://developer.android.com/tools/index.html for what/how to setup and then http://developer.android.com/training/basics/firstapp/index.html for Hello World, but i highly recommend getting a beginners book. or watching tutorials online. Oct 17 09:50:59 DysonReturns: nothing wrong with working in vim Oct 17 09:51:33 Leeds: agreed, but I said he "probably won't be". my boss codes in vim, like a boss :) Oct 17 09:52:09 DysonReturns: I will definitely be working in vim Oct 17 09:52:30 alexander__b: are you writing things in C or java? Oct 17 09:52:43 (as a matter of interest) Oct 17 09:53:05 I'm not writing anything yet, but I thought you needed to write in java for android? if you can use C, I'd prefer that, heh. Oct 17 09:53:37 hy all Oct 17 09:53:51 So I have an activity that allows the user to change some values. These values originally came from an object stored in an arraylist in the previous activity, and that object was loaded into this activity when it started. Now I need to overwrite the previous information in the arraylist stored in the previous activity before finishing this activity. Oct 17 09:54:18 well, I start my program, ask for turn on the bluetooth, and finds nothing. After it I kill the program's process, bluetooth stayed on, restart the program and it finds the modul Oct 17 09:54:33 alexander__b: 'native' Android is in Java - you can write in C, but it's really meant for games and other performance-hungry stuff... it means bypassing a bunch of Android's native API Oct 17 09:54:50 how should I correct this? how can I detect if the bluetooth is already turned on or not? Oct 17 09:55:15 or how should I recognise if the discovery process is already stopped or not? Oct 17 09:55:32 HDroid: you can still do the "install this unlocker app" link Oct 17 09:55:43 and worrying about cracking it is pointless Oct 17 09:55:57 make app good, honest folks will pay for it Oct 17 09:56:06 Leeds: I am a game developer, so I might be doing some games sometime. but for my initial "getting to know android app", I thought maybe write a free SMS app that does GETs and POSTs to providers that have n free SMSs per month in a Web interface. Oct 17 09:56:10 dishonest folks will crack it no matter what you do Oct 17 09:56:21 alexander__b: right, you'd be doing that in Java Oct 17 09:56:29 Leeds: I imagined. Oct 17 09:57:11 I don't mind the language, but I don't really like the things that come with it, heh. also I haven't done it with android ever, so I'm keen on getting a workflow set up before my class starts. Oct 17 09:58:03 right now I'm reading the android sdk licence, and after that I'll be compiling the sdk and taking it from there. Oct 17 09:58:47 um... compiling the SDK? Oct 17 09:58:55 for my computer Oct 17 09:59:02 right... Oct 17 09:59:12 * Leeds backs away slowly, not breaking eye contact Oct 17 09:59:39 OK compiling "android-sdk-update-manager" then. Oct 17 09:59:53 Leeds: a vim user is crazy and builds all his own tools, big surprise Oct 17 10:00:51 trying to insult people who work in a different way from you makes people respect you on the internet Oct 17 10:00:54 oh wait... Oct 17 10:01:35 alexander__b: sorry I can't hear you through your beard Oct 17 10:02:06 Ankhwatcher: be nice Oct 17 10:02:24 I have catagories with three sorting modes (alphabetically, frequency, random) that populate a list view (>300 rows) depending on the user choice, as a design implementation should I bother adding the ability to do reverse alphabetical / reverse frequency ? Oct 17 10:02:26 oh lighten up, I'm only playing around Oct 17 10:02:33 somebody? Oct 17 10:03:05 alexander__b: just to flag, it'll probably be easier to user Eclipse for java. You can use whatever, but I'm just trying to help. Oct 17 10:03:45 DysonReturns: eclipse doesn't sit well with me. I am positive I can make a workflow that is better for me. Oct 17 10:04:31 gregtom6: have you tried googling? Oct 17 10:05:10 obviously, but I try that again Oct 17 10:06:12 gregtom6: maybe this will help: http://stackoverflow.com/questions/11242519/check-if-bluetooth-is-enabled-using-an-android-application Oct 17 10:07:24 true, I used that previously, lol Oct 17 10:13:57 Why would a popup window ignore the offset in showing? Oct 17 10:14:03 *ignore in only one direction Oct 17 10:14:28 nm it spuriousily works now Oct 17 10:23:26 http://stackoverflow.com/questions/12932159/why-there-are-so-many-git-projects-related-to-framework-in-android-source Oct 17 10:24:51 bigmeow: have you tried turning it off and on again. Oct 17 10:27:46 Ankhwatcher: how to turn off a project? Oct 17 10:28:08 BluetoothDevice.ACTION_FOUND this is an action. what kind of values can it get? Oct 17 10:28:26 will it be null until it finds something? Oct 17 10:29:56 gregtom6: it's just a constant, it gets sent to a listener somewhere, I presume (not entirely up to speed on how bluetooth works in Android). Oct 17 10:31:22 http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#ACTION_FOUND Oct 17 10:31:29 "Your application must register a BroadcastReceiver for the ACTION_FOUND Intent in order to receive information about each device discovered. For each device, the system will broadcast the ACTION_FOUND Intent. This Intent carries the extra fields EXTRA_DEVICE and EXTRA_CLASS, containing a BluetoothDevice and a BluetoothClass, respectively. For example, here's how you can register to handle the broadcast when devices are discovered:" Oct 17 10:31:36 http://developer.android.com/guide/topics/connectivity/bluetooth.html Oct 17 10:31:52 any hints on how you set up/use the android emulator thing? Oct 17 10:32:12 Yes, developer.android.com Oct 17 10:32:21 how can I detect if the bluetoothdevice instance has finished the discovery action? Oct 17 10:36:07 hm. apparently my $ANDROID_SDK is supposed to be set but isn't. I installed the SDK via android-sdk-update-manager, then added my user to the android group and logged back in. do I need some extra steps to set $ANDROID_SDK Oct 17 10:36:09 ? Oct 17 10:40:24 shold it be /opt/android-sdk-update-manager/ or /opt/android-sdk-update-manager/platform-tools/ or something? Oct 17 10:41:11 I'm assuming the root of your sdk install, i.e. the dir that contains platform-tools/, etc. Oct 17 10:41:26 For me it defaulted to ~/android-sdks but apparently not on your setup. Oct 17 10:41:46 HDroid: it wasn't set at all here Oct 17 10:42:20 I mean the sdk path, I'm not aware of anything setting $ANDROID_SDK (I use eclipse, anyhow). Oct 17 10:42:21 oh. I meant the variable wasn't set at all. the SDK tools are installed to /opt/android-sdk-update-manager/ Oct 17 10:42:30 I imaghine you'd set it in your bash profile or something. Oct 17 10:42:37 -h Oct 17 10:42:57 I'll probably set it in .bashrc Oct 17 10:43:05 but I'm not entirely sure what it's supposed to be, heh Oct 17 10:43:21 Whatever dir has platform-tools, etc. Oct 17 10:43:46 that would be that dir Oct 17 10:45:18 hm. apparently that's not what it should be. Oct 17 10:45:27 the script I'm trying to use is trying to do if ! ctags --recurse --langmap=Java:.java --languages=Java --verbose -f ~/.vim/tags $ANDROID_SDK/sources Oct 17 10:45:50 I imagine that won't work if you haven't actually installed any sources. Oct 17 10:45:53 which gives "ctags: Failure on attempt to read file : Is a directory" when set to that dir. Oct 17 10:45:56 HDroid: aha Oct 17 10:46:07 Hi guys, how do I create a non-visible/translucent activity on top of my app? I need to create an activity that just listens to an openAuth library to call back onActivityResult. I used the following code, but it makes the screen black: http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android?lq=1 Oct 17 10:46:50 HDroid: I have only installed android sdk tools and android sdk platform-tools. what more should I get? Oct 17 10:47:02 just tick and install everything in the latest android version? Oct 17 10:47:34 There's one that should say source (but you'll need at least one platform as well) Oct 17 10:48:13 Note that I haven't ever installed a source package, so unless your situation requires it, it may not be needed. Oct 17 10:53:07 HDroid: I apparently need it to build autocompletion for ctags. Oct 17 10:53:08 Anyone knows where is frameworks/av/media/libmedia/ on http:/github.com/android ? Oct 17 10:53:40 HDroid: can't say I see any "source" in the sdk-update-manager though Oct 17 10:53:55 I have tools, a bunch of apis, and extras. Oct 17 10:54:33 extras is libraries, drivers, sdks, "cloud messaging" and x86 emu accelerator Oct 17 10:54:42 oh Oct 17 10:54:51 sources are in the api dirs. heh. silly me. Oct 17 11:00:40 I hate the bluetooth, I want to discover a device, but I can't. It asked to turn on the BT, can't find anything. I kill the program's process, restart the program with the BT is already on and it finds the device Oct 17 11:02:45 can somebody advice something? Oct 17 11:03:22 since the SDK keeps changing, what's the best target api to use? the newest, or the most used, or the oldest used, or what? Oct 17 11:05:23 HDroid: apparently ctags still dies. guess I'll have to ask the script author. Oct 17 11:06:23 alexander__b: probably target=16 min=8 or 9 Oct 17 11:06:47 What's the best way to zero/"calibrate" a rotation matrix about the device? (rotation matrix is pulled from sensors) Oct 17 11:06:50 sad thing is, i think that will be the situation this time next year hahahaha Oct 17 11:07:09 that is, the min :) Oct 17 11:09:14 Froyo (8) is down to 12.9% Oct 17 11:09:40 HDroid: heh I think the error is elsewhere entirely. "ctags: Failure on attempt to read file : Is a directory" Oct 17 11:09:58 alexander__b: not sure what it expects to find, frankly. Oct 17 11:10:01 I think the error is somewhere in here "ctags --recurse --langmap=Java:.java". guess man ctags is next. Oct 17 11:10:37 HDroid: it's looking for the android sources, and I think that portion is correct now. the sources directory has been made in /opt/android-sdk-update-manager/ - so I think the script is broken elsewhere. Oct 17 11:11:12 i think next year, this time, GB will be still very large, maybe 30%-40% Oct 17 11:11:12 Isn't there a vim plugin for eclipse or something? Oct 17 11:11:33 This is all so complicated Oct 17 11:13:17 Hey Guys Oct 17 11:13:29 is anyone here ? Oct 17 11:13:41 Just a lots bots echoing about bots echoing Oct 17 11:13:59 echo echo echo Oct 17 11:14:07 What is your question? Oct 17 11:14:12 that's good Oct 17 11:14:35 anyway in my layout I have a listview below it a linearlayout which has buttons Oct 17 11:14:40 Just going a little mind numb, been working too many hours straight Oct 17 11:14:47 but button eats up the last row of my list Oct 17 11:15:03 Want's your parent viewgroup containing these? Oct 17 11:15:14 It's a RelativeLayout Oct 17 11:15:17 Om nom Oct 17 11:15:44 echo om nom copy over echo om nom Oct 17 11:15:46 Should probably use a LinearLayout as a container instead of relativelayout and use layout_weight="1" on the listview. Oct 17 11:16:05 and set the layout_height=0 Oct 17 11:16:07 oh, I've set listview height as fill_parent Oct 17 11:16:13 that's bad right Oct 17 11:16:13 that' Oct 17 11:16:15 yeah Oct 17 11:16:34 layout_weight 1 will force the listview to take up remaining space not occupied by the button row Oct 17 11:17:10 putting layout_weight 1 in both the linear layout button row and listview will make them each occupy equal halves of the screen Oct 17 11:17:33 lasserix: I used RelativeLayout as I wanted the button layout to stick to the bottom Oct 17 11:17:42 yes Oct 17 11:17:53 brickhead: this is what the weight will do, since the listview will push it down. Oct 17 11:18:15 cool will give it a try ..thanks Guys Oct 17 11:18:34 np goodluck Oct 17 11:20:14 HDroid: fixed it. once I found out which argument was the actually broken one, things got easy, heh. Oct 17 11:22:15 how can i force the menu button onto the navbar? Oct 17 11:22:28 you are not supposed to do that Oct 17 11:22:35 :/ Oct 17 11:22:44 i don't have a place in my app where i can put a menu button Oct 17 11:22:59 tell me about i spent the last two hours making a popup window act as a dropdown menu since i can't use navmode dropdown Oct 17 11:23:09 are you using ABS? Oct 17 11:23:17 ABS? Oct 17 11:23:22 actionbar sherlock Oct 17 11:23:28 nah, i don't have an action bar Oct 17 11:23:52 this is full screen… i just have the navbuttons at the bottom Oct 17 11:24:00 oh sorry I misinterpretated your question, what do you mean by navbar? Oct 17 11:24:01 are there any formatting guidelines? wrt indentation, bracer placement, etc? Oct 17 11:24:48 in honeycomb+ there's the back, home, and appswitch softkeys…for legacy apps, there's also a menu button… this app is for honeycomb+, but i want that button Oct 17 11:24:54 just add a menu button and tell it to invalidateoptionsmenu Oct 17 11:25:13 that'll force oncreateoptionsmenu which is what the menu button does Oct 17 11:25:18 *physical menu button Oct 17 11:25:37 ultra-: the options button is deprecated Oct 17 11:25:40 what CPU/ABI should I use for my emu? Oct 17 11:25:56 but if you'll put your target sdk < 10 then android will show the soft options menu button for you Oct 17 11:26:18 ultra-: but you should have a very good reason for not using actionbar Oct 17 11:26:29 target or minimum? Oct 17 11:26:46 ultra-: target Oct 17 11:27:00 that tells android that it is an old legacy app Oct 17 11:27:13 oh sorry that's right Oct 17 11:27:16 that's android's way saying "don't use it" Oct 17 11:27:28 :/ Oct 17 11:27:38 ok, well i don't like the space taken up by the action bar Oct 17 11:27:51 what is your app doing? Oct 17 11:27:55 also, this interface is 100% custom (it's music performance related), and that action bar looks like crap Oct 17 11:28:08 controlling sequencing software on a computer Oct 17 11:28:16 ahh cool Oct 17 11:28:26 designed for tablets? Oct 17 11:28:34 yep Oct 17 11:28:46 well you can put tabs in it and stuff and move the navigation to it, but well that's all you got Oct 17 11:29:06 or go the Evernote kind of menu Oct 17 11:29:10 "PANIC: Missing arch-specific emulator program: /opt/android-sdk-update-manager/tools/emulator-mips" uhm Oct 17 11:29:16 let me check evernote's menu Oct 17 11:29:29 so not mips then? Oct 17 11:29:34 Since the last time I ran my project, I've implemented a custom database that holds thumbnail BLOBS, a custom content provider, and a custom SimpleCursorAdapter to my gridview. Wanna take bets on which part it'll crash on first? Oct 17 11:29:37 although I don't know how they do it Oct 17 11:30:01 contentprovider! Oct 17 11:30:18 what do you mean about evernote's? Oct 17 11:30:23 alright, here goes nothing... Oct 17 11:30:28 emulator x86 starts. or... I have a process that uses a lot of CPU at least. no actual window or anything. Oct 17 11:31:05 nullpointer exception in the adapter! Oct 17 11:31:19 more and more it's looking like i'll be using an actionbar Oct 17 11:31:25 so Evernote and couple of other apps (I guess G+ too) uses a slider kind of options Oct 17 11:31:27 maybe i should just accept it Oct 17 11:31:44 you click on a home and it slides the menu for you Oct 17 11:31:49 oh, yeah… where the entire view can be dragged over Oct 17 11:32:01 yep g+ too Oct 17 11:32:10 5. Select the new AVD from the Android Virtual Device Manager and click Start. - check. 6. After the emulator boots up, unlock the emulator screen. - the what now? Oct 17 11:32:35 i'd think that's just animating the leftMargin property on subviews within another view Oct 17 11:33:35 ultra-: it looks classy Oct 17 11:33:47 yeah it is nice Oct 17 11:33:59 about ABS, it can be themed to look less crappy, but it will save you tons of code Oct 17 11:34:00 "starting emulator" reaches 100%. then I get some emulator-x86 process. then there's no window, no nothing. is this WAI? Oct 17 11:35:07 android avd is very helpful by being a GUI app that spits nothing to STDOUT about wtf's going on. so that's nice. something is eating up HDD space though. Oct 17 11:35:30 I assume that would be the snapshot behaviour I activated. Oct 17 11:37:30 First, run ./adb logcat from the platform-tools dir Oct 17 11:37:49 «If your Linux is x86_64 system then is likely that sound in Android emulator will not work out of the box.» right Oct 17 11:37:58 Not sure what the standard way of deploying is for non-Eclipse... but build the apk and adb install or something. Oct 17 11:38:14 Is there an ant script that you're using to build? Oct 17 11:38:17 I have built the apk. Oct 17 11:38:37 ant debug && ant install bin/foo.apk Oct 17 11:38:44 the problem is no emulator. Oct 17 11:39:06 Oh Oct 17 11:39:12 Not how it should be. Oct 17 11:39:19 Should spawn a window Oct 17 11:41:14 I am on a multilib system, so the fact that the emu is for 32-bit atom shouldn't be a problem. in avd there's a nice green check next to the emulator. running it produces no errors anywhere. but... no window. Oct 17 11:42:22 Did it spawn the little loader window though? Oct 17 11:42:42 yes. the bars fills up. then nothing. Oct 17 11:43:33 *bar Oct 17 11:45:30 trying to start it from the command line now Oct 17 11:45:37 emulator: ERROR: Could not load OpenGLES emulation library: libOpenglRender.so: cannot open shared object file: No such file or directory Oct 17 11:45:39 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. Oct 17 11:46:08 Either install that or disable hardware accel. Oct 17 11:46:17 it says it's using software renderer Oct 17 11:46:27 Did you enable GPU as well? Oct 17 11:46:59 Oh, this is GPU acceleration I guess, not hardware acceleration. Oct 17 11:47:15 It's tricky, best try without any acceleration at all and go from there. Oct 17 11:47:19 I didn't enable anything. I just added an emulator with intel atom. Oct 17 11:47:32 how do I specify to not use any acceleration? Oct 17 11:47:50 here's a stupid question: my menu button has "new" and "settings" items in it… so there must be a default menu somewhere… where is it?? Oct 17 11:48:08 i think you can use popupmenu Oct 17 11:48:13 check api level though Oct 17 11:48:17 It's an option if you add a new avd (or you can use the edit button) Oct 17 11:48:19 its different from popupwindow Oct 17 11:49:10 if I want to build an application with a workflow (several 'screens' that the user navigates like a web browser) what is the best way to do this? Oct 17 11:49:33 fragments fragments pager ? Oct 17 11:50:44 using activities would have been the 1.5 way of doing it Oct 17 11:50:49 but that seems to 'heavy' Oct 17 11:50:53 yeah Oct 17 11:50:55 fragments Oct 17 11:50:55 so fragements are the way to go? Oct 17 11:50:59 definatly Oct 17 11:51:03 ok i'll have a good read up on it. Oct 17 11:51:06 if you want people to be able to swipe left and right Oct 17 11:51:10 use a fragment pager adapter Oct 17 11:51:19 HDroid: trying with -gpu off, to no avail Oct 17 11:51:20 ok, thanks for the help :) Oct 17 11:51:21 there is also a pager indicator by jack wharton somewhere Oct 17 11:51:27 ok Oct 17 11:52:00 ah just found it Oct 17 11:52:35 this makes no sense… i get a weird "rounded/shaded" effect at the edge of a view when i change the target from 15 to 10 (to force the menu button on the navbar), also, display performance goes bad Oct 17 11:52:56 it becomes choppy Oct 17 11:53:13 can my app have an open port that I can use to send commands to it from my desktop machine? Oct 17 11:53:21 sure Oct 17 11:53:30 know of any examples that I can look at? Oct 17 11:53:36 udp or tcp client Oct 17 11:53:43 alexander__b: I dunno... try an arm image, I guess. Oct 17 11:53:49 any java example will work Oct 17 11:53:50 Works For Me (tm) Oct 17 11:54:01 java tcp client example? Oct 17 11:54:09 or udp Oct 17 11:54:24 http://systembash.com/content/a-simple-java-tcp-server-and-tcp-client/ Oct 17 11:54:28 like that? Oct 17 11:55:00 I want to send my app lua commands Oct 17 11:55:00 yep Oct 17 11:55:06 you'll probably want it in a thread Oct 17 11:55:16 cool Oct 17 11:55:20 thanks ultra- Oct 17 11:55:22 ultra-: try doing a clean build see if that helps Oct 17 11:55:25 i mean you will for sure Oct 17 11:55:37 b/c android bombs if you do networking on the main ui thread, and it would block anyway Oct 17 11:55:41 ok brickhead Oct 17 11:55:47 network thread for both client and server? Oct 17 11:56:18 no luck brickhead :/ Oct 17 11:56:23 i think it might have something to do with the theme Oct 17 11:56:33 minsdk is 11, target is 10 to force the menu Oct 17 11:56:37 are you just checking in eclipse preview or on device Oct 17 11:56:48 HDroid: lol. that just worked. it spawned instantly and is super responsive. thanks. Oct 17 11:56:50 sdaq: does your app need to receive data at any time, or only after sending to the server? Oct 17 11:56:54 :) how does he let you have a minsdk of 11 and target of 10? Oct 17 11:56:57 ultra- there might be some auto hardware accel going on Oct 17 11:57:09 i'm using it on the device… n7 Oct 17 11:57:09 i can't remember but they changed something about that around one of those apis Oct 17 11:57:13 ultra-: are you asking if it needs to be asynchronous? I am not sure Oct 17 11:57:40 well you need to think about how the flow will be Oct 17 11:57:43 ultra-: probably doesn't need to be able to recieve at any time Oct 17 11:57:56 ok use a client from the android side of things Oct 17 11:58:11 you can just arbitrarily send data, or send and wait for a response from the server Oct 17 11:58:23 see the writeBytes and readLine? Oct 17 11:58:41 yep Oct 17 11:58:49 you can leave out readLine if your app doesn't receive responses… leaving that in means the app will sit there until a response is received Oct 17 11:59:10 busywait, yay Oct 17 12:00:07 ultra- I think I understand Oct 17 12:00:11 brickhead: i think those are two different things Oct 17 12:00:22 sdaq: are you writing the server side? Oct 17 12:00:45 ultra- yes, its supposed to be a small lua interface for our app to load 3d models into the scene Oct 17 12:01:19 i would write out exactly how you need it to behave regarding communications Oct 17 12:01:36 figure out if you need udp or tcp, etc… do all that first so you don't waste your time Oct 17 12:01:55 know of any guides to help me along? Oct 17 12:02:14 existing sw examples? Oct 17 12:02:20 there's not really a guide for that… first look at tcp vs udp if you don't know the difference Oct 17 12:02:50 well I think tcp would be better since I want guaranteed communication and speed is not much of an issue Oct 17 12:02:53 sdaq: any good network programming book Oct 17 12:03:26 ultra-: hmm.. looks like there is no dependency on two Oct 17 12:03:29 mind you, *network* programming, not "how to add HTTP-based RPC" Oct 17 12:03:56 p_l: like socket programming? I have a book here on my desk "Advanced Programming in the UNIX Environment" Oct 17 12:04:14 p_l: I guess I could use that but it is written in C Oct 17 12:04:22 p_l: I would prefer java Oct 17 12:04:26 i personally don't think a book is necessary… networking is easy… you open a socket and send/receive data Oct 17 12:04:36 sdaq: might be useful a bit, don't know that specific book Oct 17 12:04:38 just search for "java tcp client example" Oct 17 12:04:47 ultra-: got it thanks Oct 17 12:05:23 can I ssh into my device and run the client or would it be better to run the client from my desktop? Oct 17 12:05:42 sdaq: a good networking book will be still useful. Something about l7 protocol design and how lower layers interact, so you don't run like headless chicken in face of errors Oct 17 12:05:50 also, mobile data drops packets like crazy Oct 17 12:06:15 yeah i'm using udp but only b/c it'll always be on a lan Oct 17 12:06:27 and performance is more important than reliability, to me Oct 17 12:06:30 p_L: thanks Oct 17 12:07:09 * p_l dances a happy dance seeing people use readable fonts ;) Oct 17 12:07:09 sdaq: i wrote a client for android and a server for mac… to write the client, i used netcat (available for windows too) so i can verify that my client is working without having to worry about my server code Oct 17 12:07:29 to write my server, i used some tcp/udp tester from my phone Oct 17 12:08:19 ultra- what is netcat? Oct 17 12:08:34 it's a command line server Oct 17 12:08:50 lets you open a generic tcp or udp server, see messages coming in, and give a response Oct 17 12:09:13 can I embed it into my android app? Oct 17 12:09:18 no it's not like that Oct 17 12:09:35 if you're writing a client and a server, it's tough to troubleshoot b/c you might not know which one is giving you problems Oct 17 12:09:48 so write your android client first and test it against netcat on your computer Oct 17 12:09:56 once you have a working client, write a server Oct 17 12:10:06 oh I see Oct 17 12:10:17 netcat is just a tool, it's not code Oct 17 12:10:30 a very handy tool Oct 17 12:11:05 cool tip ultra thanks Oct 17 12:11:30 nice I'll check it out Oct 17 12:12:08 there's an app for android called "socket protocol" that lets you connect to a tcp server and send out commands Oct 17 12:12:18 that could be used to test your server, or your own client once it's working Oct 17 12:13:15 once you have netcat, i *think* you can start it using "nc -l 9000" Oct 17 12:13:23 where -l is a flag to listen, and 9000 would be the port Oct 17 12:13:29 adding in -u would make it a udp server Oct 17 12:13:47 just browse to it via the command prompt Oct 17 12:16:22 getCursor() in a SimpleCursorAdapter gets the underlying cursor, according to the documentation. changeCursor() sets that cursor. So why does getCursor() after changeCursor() throw a null pointer exception? Oct 17 12:16:29 Does it need to be commited or something? Oct 17 12:27:47 actually... changeCursor(newcursor) throws a nullpointerexception (The cursor exists)... the exception happens at android.support.v4.widget.SimpleCursorAdapter.findColumns(SimpleCursorAdapter.java:312) Oct 17 12:33:49 Tee_Pee: changeCursorAndColumns() is what you want? Oct 17 12:36:02 Yeah, the problem is that those have been null all along... I create the view and bind everything manually Oct 17 12:36:17 But I expect it's that, so I'll probably have to do it that way Oct 17 12:58:51 Hey, when using s radio buutton is it possible to put the round button on the right of the text? Oct 17 13:03:01 refactoring is so much fun if I'm ever in a position of authority and have to hold someone accountable for fucking up I'm just going to make them refactor code in a loop Oct 17 13:05:01 dudes, could really use your help here? when using s radio buutton is it possible to put the round button on the right of the text? for RTL languages Oct 17 13:05:21 yeah you have to do your own layout Oct 17 13:05:29 relativelayout align it differently Oct 17 13:05:44 or linearlayout i can't remember but you have to do it customly Oct 17 13:10:52 is there a way to reinstall an app, or do I need to adb uninstall and then adb install? using the emulator. Oct 17 13:11:55 or uninstall in the emu, and then adb install, as it were. Oct 17 13:12:10 alexander__b: write a bash script for it Oct 17 13:12:19 lemme paste you mine Oct 17 13:12:19 "('-r' means reinstall the app, keeping its data)" Oct 17 13:13:13 HDroid: adb -r foo.apk just prints the help msg Oct 17 13:13:29 adb install foo.apk -r says "can't find -r to install" Oct 17 13:13:49 alexander__b: it's picky about the order, adb install -r file.apk Oct 17 13:13:54 Yes because it's adb install -r , as the helpful help msg tells :P Oct 17 13:14:06 ah. thanks. Oct 17 13:14:15 alexander__b: Oct 17 13:14:19 http://pastebin.com/E8Rjeg0r Oct 17 13:14:21 HDroid: I didn't get any helpful message. Oct 17 13:14:37 I got the entire help output, or "can't find -r to install" Oct 17 13:14:38 put that in your project dit and make it executable. also change package name and remove the delete line, if you don't have any files to clean out Oct 17 13:14:55 hi, does anyone know how listen to NFC enabled/disabled? Oct 17 13:15:08 DysonReturns: adb install -r was good enough for me. thanks though. Oct 17 13:15:11 alexander_b: that's a reinstall script i use, which uninstalls from all devices and reinstalls to them Oct 17 13:15:43 I only have one device ATM. I can see where to put your script to use though. it's neat. Oct 17 13:16:15 alexander__b: save it somewhere - once you start deploying to multiple devices and have, say 10 connected to adb via wifi, it gets handy. Oct 17 13:16:38 "Incoming build, testers!!!!" *bam* :) Oct 17 13:16:38 hehe, I can imagine Oct 17 13:18:37 Hi, does anyone know how listen to NFC enabled/disabled? I never get the intent: NfcAdapter.ACTION_ADAPTER_STATE_CHANGED Oct 17 13:22:03 Hey Guys I have a GridView inside an linearlayout container and below it a layout with buttons Oct 17 13:22:33 I have put layout_weight to 1 so that I could push the button layout down but when I see it on emulator the gridview has collapsed Oct 17 13:23:01 instead if I make it a listview it properly expands Oct 17 13:23:08 btw Its a dialogfragment Oct 17 13:23:53 lasserix: Hey you there ? Oct 17 13:31:59 Yea Oct 17 13:32:00 umm Oct 17 13:32:20 If I'm implementing a Fragment that will let the user modify some metadata, would PreferenceFragment be acceptable for this, or is this class supposed to be tied more to app-specific settings? Oct 17 13:32:21 what's gridviews layout height? Oct 17 13:33:24 Hodapp probably depends on type of data they are changing, does it fit the form of a preferencefragment or would it be easier to set up the input views for your particular metadata using a normal fragment? Oct 17 13:33:38 Was Roboto in v11? Oct 17 13:35:09 lasserix: The form of the data is fine, I guess my concern is that this metadata is not app-specific - but rather something that will be dumped to XML and then discarded by the application - and PreferenceFragment looks like it wants to keep things around for longer Oct 17 13:35:31 I have a gridview with 6 items, yet the adapter's getView() method was called well over 30 times... Is this normal? Oct 17 13:36:33 Tee_Pee: yes Oct 17 13:37:04 lasserix: fill_parent Oct 17 13:37:08 Hardcore, do your own fragment. If you are going to use an actual preference fragment for actual preferences, use your own fragment. Otherwise just make it clear enough and it'll be okay Oct 17 13:37:19 try match_parent? Oct 17 13:37:34 no, wait will give it a try Oct 17 13:38:32 also if you do a relativelayout parent, then do your button row as alignbottom true height wrap width match, then do your linear layout as above button row height match width match i might work, I can't remember if that's how to do it Oct 17 13:38:40 Ok then... my current setup "works" as in that I see the data... But it's messy, both database writing and cursor updating happen on the main thread, and incidentally are triggered by the getView() method. Gotta clean this up.... Oct 17 13:39:22 lasserix: so you're saying I should... what, subclass PreferenceFragment? Oct 17 13:39:25 so If I try a listview instead of grid one it shows up perfectly but for grid he collapses it Oct 17 13:39:31 Have an issue with language support. I have a folder called values-zh-rCN to support simplified Chinese and the necessary strings in the strings.xml file. Now when I change my phone setting to Simplified Chinese, everything is still showing up in English. any idea? Oct 17 13:39:54 Hodapp ahh no just make a fragment tailored to your needs Oct 17 13:40:12 you could rely on preferencefragment but since you seem to not want to confuse your users don't Oct 17 13:40:22 *rely -> reference Oct 17 13:40:46 it's not a matter of confusing users but of using a class rather against its purpose Oct 17 13:41:07 The older version of my app works and when I do a compare with my current code's values-zh-rCN, it's same. Oct 17 13:42:26 if it makes your coding easier by all means reuse! Oct 17 13:49:56 This can't be right.... for a dataset of 250 items getView is called well over 2000 times. Oct 17 13:50:06 And the height of the gridview is fill_parent Oct 17 13:55:06 does anyone know of any example projects that contain unit tests for fragments? Oct 17 13:58:32 Hi, does anyone know how listen to NFC enabled/disabled? I never get the intent: NfcAdapter.ACTION_ADAPTER_STATE_CHANGED Oct 17 14:03:15 lasserix: hey I tried match_parent doesn't help here's the xml Oct 17 14:03:28 http://pastebin.com/Ratx9sZA Oct 17 14:13:48 brickhead Oct 17 14:14:03 if that's not working then you can use a root relative layout like so http://pastebin.com/hhgfZvKU Oct 17 14:14:06 yes lasserix ? Oct 17 14:15:24 lasserix: yeah that's what I had before but the bottom of gridview was getting hidden by the buttons layout Oct 17 14:15:36 but I'm gonna revert to it and then improvise from there Oct 17 14:15:43 Hi, does anyone know how listen to NFC enabled/disabled? I never get the intent: NfcAdapter.ACTION_ADAPTER_STATE_CHANGED......I have tried to have intentfilter for all actions on NfcAdapter, but still no success in getting any broadcast Oct 17 14:15:46 uhh key is to do alignparentbottom for button row Oct 17 14:15:51 then align grid container above it Oct 17 14:16:11 then align views above grid container in vertical order as Oct 17 14:16:19 topmost alignparenttop Oct 17 14:16:27 then below up until the last view above gridcontainer Oct 17 14:16:47 ie ="@+id/file_browse_path_frame" which grid container will layout below Oct 17 14:19:58 brickhead: http://pastebin.com/LSNsJL2K Oct 17 14:20:15 you'll have to fill in view firstviewabove and view secondviewabove but that's the idea Oct 17 14:20:15 lasserix: hmm.. layout_above might do the trick Oct 17 14:20:19 hopefully that will work Oct 17 14:20:44 the key is to sandwich the grid contain linear layout between the bottom layout and the one just above it Oct 17 14:21:13 everyview but the gridview container will have wrapcontent as height and the gridview container will have matchpatch as height Oct 17 14:21:22 lasserix: got it, Just trying that now Oct 17 14:23:07 I am having extreme difficulty getting viewpagerindicator https://github.com/JakeWharton/Android-ViewPagerIndicator/ to run the sample code, I will pay 10 bucks if someone can help me, as I tried about 6 common solutions via stackoverflow and I still cant get it to run Oct 17 14:23:53 I checked ADT, eclipse, jdk versions, build errors/problems, xml issue, dependancies, and so much more Oct 17 14:25:09 hkhalid: you haven't told us what's broken about it. Oct 17 14:25:47 tophyr: I have a red exclamation mark, and it says when building, "cannot find ddd.apk" Oct 17 14:26:05 restarted eclipse, did cleaning, still the ame Oct 17 14:26:13 check buildpaths Oct 17 14:26:18 ah. your build path is wrong Oct 17 14:26:27 right click project, go to Java Build Path Oct 17 14:27:45 hm. what magic event can cause android to "forget" how to play mp3 files? (which is fixed by a reboot...) Oct 17 14:29:03 mitch0: that's an interesting one.. as in the music player keeps "working" but produces no audio, or..? Oct 17 14:30:44 anyone in here have a US SGS3 ? Oct 17 14:31:05 I do. =D Oct 17 14:31:16 anyone here know how to enable cookies in webview? Oct 17 14:34:59 tophyr: import existing android code (the lib) and make sure its marked as library, make a new project and reference that lib, I have done this Oct 17 14:36:50 hkhalid: whatever ddd.jar is, it doesn't (and probably shouldn't) exist. you need to remove it from the eclipse build path Oct 17 14:36:55 Can someone suggest me some good sites or learn layouts and UI designing..... I am finding myself horrible at it .... i sometimes wonder how some apps have such beautiful layouts Oct 17 14:37:20 digitalfallacy, usually through custom made drawables Oct 17 14:37:49 you mean general mobile UI design, or how to implement design in android technially Oct 17 14:38:20 anyone know of any good resources for debugging jni code with jellybean? Oct 17 14:39:28 did anyone know how to implement a vertical gallery ?? Oct 17 14:39:35 tech1: yeah general UI design along with good practices in UI design which makes an app esthetically and functionally appealing Oct 17 14:39:46 vanson2012, gridlayout? Oct 17 14:40:16 gridview?? Oct 17 14:40:29 dark3n: Is their a site which provide good pointers on UI design ? Oct 17 14:40:48 dark3n: except developer.android.com i mean Oct 17 14:41:30 when i downloaded a image with imageloader Oct 17 14:41:38 tech1: *aesthetically Oct 17 14:41:41 don't know, you could search for some info about mobile version of websites which should have similar designs Oct 17 14:41:41 and then displayed it in my imageView Oct 17 14:42:01 when I goes to background & goes to foreground immediately Oct 17 14:42:05 the image is gone Oct 17 14:44:09 i expereince the same problem when i turn my device from portrait to landscape the images are gone , but i fixed it Oct 17 14:44:35 however i have no idea how to fix the problem if the images are disappeared when i resume the app Oct 17 14:44:52 it is not a restart , the async work only works once Oct 17 14:49:52 hi, when I call ANativeWindow_UnlockAndPost, there is 40ms latency before the image is draw. Is it normal ? how can I improve this ? Oct 17 14:51:42 i've got my activity_main.xml and i'd like start a new activity when a button is clicked? other than creating a new layout file for it, what should i do? a new class? in what name? how do i call it? Oct 17 14:53:04 socket you could benefit from some basic tutorials Oct 17 14:54:25 Hi, does anyone know how listen to NFC enabled/disabled? I never get the intent: NfcAdapter.ACTION_ADAPTER_STATE_CHANGED......I have tried to have intentfilter for all actions on NfcAdapter, but still no success in getting any broadcast. Oct 17 14:58:16 hrmph, ViewPager wants to use Fragment out of android.support.v4.app Oct 17 14:59:42 Hello world Oct 17 15:02:22 Hello cyrilmottier Oct 17 15:02:41 (in a "world" voice) Oct 17 15:06:25 profligacy: got a recommendation? Oct 17 15:06:40 Hey romainguy! Sorry for highlighting you directly, but do you know who I could turn to in order to get HDMI running as the default framebuffer? I.e., that the Android system uses a 1280x720 rendering solution and writes it to /dev/graphics/fb1? Oct 17 15:07:47 profligacy: what should i google for it? im finding some stuff on stackoverflow, but nothing complete Oct 17 15:11:12 hi guys, how do I call proguard from the command line on an eclipse android project? Is there some adt script? Oct 17 15:13:28 never mind… found out that eclipse prints the generated command line into the output window. Oct 17 15:16:28 blarg, why am I trying to make Fragments work on older devices Oct 17 15:17:01 So... in my adapter I check if the current view has been cached, and if yes, displays the cursor data... but if the data isn't in the cursor, then it starts an asynctask that downloads that data... However, in the asynctasks onSuccess function I write the newly obtained file to the database... which is happening on the main thread. Do I need to create another AsyncTask class to separate this as well? Oct 17 15:17:12 Or is there a simpler way to create a background thread? Oct 17 15:19:34 why not just move the writing bit to happen in doInBackground(...)? Oct 17 15:20:33 I am not entirely sure on how doInBackground() works for a simplecursoradapter Oct 17 15:21:39 Er, wait, you meant the AsyncTask method? Oct 17 15:21:51 of course I meant the AsyncTask :) Oct 17 15:22:21 lasserix: It worked! Oct 17 15:22:22 thanks Oct 17 15:23:09 well yeah, so I do need to create a new asynctask class to use with the database writing... that's what I was asking :) Oct 17 15:24:04 hrm, if I do use PreferenceFragment then I can't use the support library Oct 17 15:25:27 brickhead all cool right on Oct 17 15:25:33 *ahh cool Oct 17 15:25:49 What is so special about preferencefragment? Oct 17 15:26:43 it will save me a good deal of work Oct 17 15:26:54 Tee_Pee: that's not what I'm saying at all Oct 17 15:27:06 Tee_Pee: why don't you combine your download task with your write task? Oct 17 15:27:17 and have a better chance of correct behavior Oct 17 15:27:35 public Result doInBackground(...) { Result r = downloadData(); writeToDatabase(r); return r; } Oct 17 15:29:05 To tell you the truth the methodologies of the AsyncTask aren't entirely clear to me... whatever method I call from doInBackground() will be handled on that thread? Oct 17 15:29:28 Tee_Pee, yes Oct 17 15:29:46 alright, let's see what I can do... Oct 17 15:37:45 Hello!, how to install cURL in android using the official binary file? Oct 17 15:37:56 this one: http://curl.haxx.se/dlwiz/?type=bin&os=Linux&flav=Android Oct 17 15:44:27 How do I place my app to reside in the background in upper notification area? Oct 17 15:45:10 like the skype app has its icon Oct 17 15:45:58 reuf: put up a notification, but you probably don't want to do this Oct 17 15:46:07 well, let me rephrase: your users probably don't want you to do this Oct 17 15:46:08 is it feasible to store 1024x768 jpg images as blobs in a database? I think it's preferable to cache that to the filesystem and only put the URI into the DB, but I might be wrong Oct 17 15:47:00 evancharlton: why not? Oct 17 15:47:55 im creating an app that monitors for malware beahviour and it needs to be operational at all times and when the user choses it from notificagtin area he or she can view the stats up until now Oct 17 15:49:03 ah good, a malware scanner Oct 17 15:50:07 Tee_Pee: I doubt it really makes much of a difference. Oct 17 15:50:42 yea, intrusion detection system - and im planning on connecting it with snort network intrusion detection system which is industrail standard for intrusion detection - so that the data on mobile can be abalyzed on snort as well Oct 17 15:52:54 Is there a way to pop the second to the last fragment on the backstack? Oct 17 15:53:07 *second to the top Oct 17 15:53:20 see, my take is that if you have the experience and competence to write a security app worth having, you wouldn't need to ask how to pop a notification Oct 17 15:54:03 because you would at least have the skills you need to search for information in the docs... Oct 17 15:54:42 oh i think i need to make an app that is purely a tribute to the power of coffee Oct 17 15:55:55 I am working with creating an animation for my action items. I created a special view (action view) and tied it to the action item, however it is not clickable anymore. The item is animating, but I can not click it. Is there a way to fix this? I have already tried making the layout clickable Oct 17 15:56:32 I would enable copy on TextView on API 10: my idea is to extends EditText so i have developed this class. This works but i have only one problem, but i would avoid to show keyboard when i select text and copy it. Have you any idea ? Oct 17 15:57:15 http://pastebin.com/dsMTmQjC Oct 17 15:58:54 just hide the keyboard when you initiate text selection in the edit text? Oct 17 15:59:46 lasserix: i have thinked that, but where ? Oct 17 16:00:01 i dont know how you initiate a selection in edit text Oct 17 16:00:38 lasserix: long touch on text and automatically context menu with "copy" entry is created Oct 17 16:01:39 oh i guess figure out how to override or add a callback when that happens and then http://pastebin.com/hmf8SD2p Oct 17 16:09:29 im using documentbuilder to read an xml input stream Oct 17 16:09:39 which is formatted with characters like : &qout Oct 17 16:09:48 how do i convert the &qout to the actual character Oct 17 16:09:56 or have my textview output the actual character Oct 17 16:10:12 it seems the default methods dont do that Oct 17 16:11:15 drumer306: they should do that. " is not valid xml though, it should be " or &quot if meant literally the 5 letters Oct 17 16:11:47 you probably request the data from xml the wrong way. Try using textContent() on an element node. Oct 17 16:11:54 alankila : probably my typo, its " Oct 17 16:12:07 I intend to write a call recorder Oct 17 16:12:22 one way to accomplish task could be service Oct 17 16:12:28 any other options ? ? Oct 17 16:12:34 alankila: i am just doing parser.getValue( e, "whatever") Oct 17 16:13:17 Hmm... I guess android's xml support isn't like the normal documentbuilderfactory -> documentbuilder -> document ... ? Oct 17 16:13:28 because I don't recognize parser.getValue API Oct 17 16:13:44 sorry, i have that method to help Oct 17 16:14:04 the real method is : getElementValue() Oct 17 16:14:25 getNodeValue() Oct 17 16:14:46 so i am checking if its a TEXT_NODE, then doing getNodeValue() Oct 17 16:14:47 well, nodevalue should be the entity-decoded text Oct 17 16:16:31 at parsing time the bytestream representation of the text content and attribtue values should become pure strings Oct 17 16:17:23 hmm im using DocumentBuilderFactory Oct 17 16:17:44 with InputSource and StringReader Oct 17 16:19:21 hmh. That also feels wrong. serialized xml documents are not strings, they are byte streams. In general anything that starts with the difference is that java strings are in unicode, byte streams have no intrinsic encoding. In fact, XML documents declare that encoding, which is one of the pieces of information required to convert the byte stream to a string. Oct 17 16:20:26 and when xml prolog does not mention the encoding, that is same as declaring UTF-8. Oct 17 16:26:23 analkilla: i was able to just decode the text value as html Oct 17 16:26:30 seems to work okay Oct 17 16:26:59 well, depending on what the source document says, I suspect you're doing it wrong somewhere Oct 17 16:27:39 yea i must be not setting something correctly Oct 17 16:27:41 The parser absolutely should convert the well-known 4 xml entities to their character values. Oct 17 16:27:56 or parsing it Oct 17 16:28:29 im just using InputSource to setCharacterStream, and then using Document to build a doc out of that Oct 17 16:28:45 ill have to look into it more Oct 17 16:29:04 did that vim guy leave? Oct 17 16:29:10 you should try to pass the document as an inputstream if you read it over a file or network socket Oct 17 16:29:15 seems like a troublemaker. Oct 17 16:31:45 I am working with the action bar and adding an action view to one of the items. So far it works, however, the item is no longer clickable. Is there a way to fix this? Oct 17 16:32:07 anyone know of a demo for jellybean multicast dns-based service discovery? Oct 17 16:38:37 Anyone knows how to see dalvik compiler output via eclipse? I keep getting this popup, but no other messages in eclipse output; “Conversion to Dalvik format failed with error 1” Oct 17 16:39:39 tofi9: check the error console Oct 17 16:39:45 erm, the console window Oct 17 16:42:12 evancharlton: the console window doesn't show anything strange… it doesn't show anything in red, and I couldn't find anything strange searching for 'error', 'exception' and 'fail'. Oct 17 16:43:00 tofi9: are you looking at the wrong console log? there's some hieroglyphic you can click to toggle from one to the other Oct 17 16:43:28 the one that looks like a computer monitor, kind of. Tooltip says "Display Selected Console" Oct 17 16:44:48 No, I'm definitely looking at 'Android'. I see all my proguard outputs, and the other aapt stuff. I think the error is probably caused by some proguard setting, but I was hoping the error message would help Oct 17 16:45:16 there's some way to make the build log more verbose, let me dig that up Oct 17 16:45:32 window > preferences > android > build > build output Oct 17 16:45:36 crank that up to Verbose Oct 17 16:45:57 ==evancharlton Oct 17 16:46:23 Also, make sure you've tried just cleaning it. I've seen the build system get into a weird state that cleaning fixes. Oct 17 16:46:53 evancharlton: it's already on Verbose, but that didn't help. Oct 17 16:47:26 mdwright: I've deleted the bin directory, and restarted eclipse. I will try to do an eclipse -> clean project. And try again now Oct 17 16:48:07 Most commonly this problem is jars with conflicting packages/classes (so if you've added a jar recently check that) or the jvm running out of heap on large projects Oct 17 16:49:08 mdwright: yes, I added many. I added the google-drive-sdk-v2 jars (about 10 in total or so). But I need them :'( Oct 17 16:57:28 I've done a 'clean all projects' and doubled the -Xmx in eclipse.ini to 1024m, the error is still the same. Any other idea's? Is there any script that eclipse runs? I can potentially run it myself in a bash console and see what happens Oct 17 16:58:08 qwertyuioplkjhgfdsazxcvbnm,./\'] Oct 17 16:58:19 shit, my cat :) Oct 17 16:58:26 bullicon: confirming your keyboard is working LOL Oct 17 16:58:45 tofi9: yeah you are right Oct 17 16:58:47 apologies Oct 17 16:58:52 spilled water on my air Oct 17 16:59:15 oh, I hope it still works Oct 17 16:59:32 well, for now. Oct 17 16:59:46 tofi9: i suspect it might get sticky along the way Oct 17 16:59:56 left it off for 24 hours so I tried my best Oct 17 17:00:05 don't have a screwdriver…should have dried it Oct 17 17:05:29 tofi9: check to see if you have duplicated packages. also, compiling from the commandline with ant might give more output, perhaps Oct 17 17:06:38 mdwright: I will try to setup ant. Thanks! Oct 17 17:17:20 Hi all Oct 17 17:17:47 Im looking to hone my skills on android, can anyone recommend some good project tutorials? Oct 17 17:18:18 http://developer.android.com/training/advanced.html Oct 17 17:18:19 to introduce things like activities and other fundamental things Oct 17 17:18:20 http://developer.android.com/training/index.html Oct 17 17:18:23 damn you, lov Oct 17 17:18:23 oh. Oct 17 17:18:31 then http://developer.android.com/training/index.html Oct 17 17:18:34 what evancharlton posted Oct 17 17:18:39 haha cheers guys Oct 17 17:18:48 sweet Oct 17 17:18:50 thats perfect Oct 17 17:18:51 thanks x Oct 17 17:19:09 hi leslie, im back Oct 17 17:19:20 i got another project :) Oct 17 17:24:44 mdwright: ant works without error. Using a mac now. I will try to build on my windows machine when I get home to find out whether it is not related to the installation Oct 17 17:38:16 Does android supporr lambas functions? I dont mean anonymous classes..... Oct 17 17:39:00 can the onPause function be used to display a screen prior to a user exiting when the home button is pressed? Oct 17 17:39:23 no Oct 17 17:39:58 Or well, you can probably show a screen.. But it'll be hidden along with your activity Oct 17 17:40:03 i see Oct 17 17:41:55 if you changed your website's domain name, is it ok to keep your apps on the old domain namespace Oct 17 17:41:59 so you dont lose reviews etc Oct 17 17:42:29 tech1: yes. Never change your package name. Oct 17 17:42:30 Gavilsn3: may be Scala? Oct 17 17:42:41 ok thanks Oct 17 17:42:42 tech1: #1: http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html Oct 17 17:42:44 Gavilan2: may be Scala? Oct 17 17:52:34 Hi, I have a question: I have an activity with a WebView Object, that loads a webpage. I want to disable the keyboard that pop ups (I think it is called soft keyboard), so the user has to input data through an UI I develped, However I cant find a way to disable it. I already tryed with android:windowSoftInputMode="stateAlwaysHidden" and android:configChanges="keyboard|keyboardHidden". Does anyone have any clues ? Oct 17 18:02:02 hi Oct 17 18:02:22 why my imageview image disappears after quitting to background & then resumes back Oct 17 18:02:23 LuigiBairesDev: Have you tried this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); Oct 17 18:02:40 hey guys, anyone know offhand what the "focused" tab state is for on the action bar? Oct 17 18:02:45 test Oct 17 18:02:47 vs. say, pressed Oct 17 18:03:53 LuigiBairesDev: it turns out disabling the soft keyboard for edittexts is really difficult Oct 17 18:04:14 hey guys Oct 17 18:04:28 I've tried everythingb Oct 17 18:04:35 but unable to clear the entire backstack Oct 17 18:04:39 is there any tricks to do it? Oct 17 18:04:51 or simply restarting the application Oct 17 18:05:15 Guys can you help me ? iam using ViewSwitcher , but when i switch to the "previous" view (not important) it does not only switch to the previous View it automatically opens a DatePickerDialog which i have impemented, this happens always, i dont know how to manage the childs , can you help me ? Oct 17 18:05:29 meetoman: you can override onActivityResult, and if it catches a certain value, it simply finishes and passes that vlaue along Oct 17 18:05:32 anyuse google mapviews, I have overlays working with pin's and onclick popping up a info text box, but now I want to add another button to press to go into details about the location ? Oct 17 18:05:33 meetoman: have you tried to create a new activity on top, with this: intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Oct 17 18:06:08 tofi9, yes Oct 17 18:06:19 it only clear activities of same instance Oct 17 18:06:25 hence different instance comes in, it wont work Oct 17 18:06:49 Hi, does anyone know how to listen for NFC enabled/disabled? I try to use BroadcastRecevier with IntentFilter NfcAdapter.ACTION_ADAPTER_STATE_CHANGED, but do not get anything =( Oct 17 18:07:02 sampullman, that would trigger a total rewrite Oct 17 18:07:12 sampullman, need some quick solution Oct 17 18:07:18 sampullman, I don't want to disable ir for an edittexts, I wan to disable for all the input/textarea HTML elements in a WebView, IS there a wat to do it ? Oct 17 18:07:41 meetoman: i guess i don't understand what you're trying to do Oct 17 18:08:12 LuigiBairesDev: there's no easy way im aware of to do that Oct 17 18:08:43 sampullman, during logout session, i want to clear every stack from every instance Oct 17 18:08:48 and log into login screen Oct 17 18:08:54 that's it Oct 17 18:09:38 "stack" meaning activity? Oct 17 18:09:47 yes Oct 17 18:10:13 then i don't see why my solution doesn't apply Oct 17 18:10:22 what does "trigger total rewrite" mean Oct 17 18:10:50 you just need to call finish() in all the activities you don't want open Oct 17 18:11:00 sampullman, this is a huge project, over 30 activities, the navigation controll needs to be rewritten if revolves around StartActivityForResult Oct 17 18:11:11 basically, pop from the top of the stack until you hit the bottom Oct 17 18:11:13 sampullman, that sounds very easy Oct 17 18:11:21 hmm Oct 17 18:11:27 is there any function that does it? Oct 17 18:12:20 i can't imagine any way besides startActivityForResult, but it seems this would be a fairly common pattern, so i bet there's an easier way Oct 17 18:12:45 30 activities is crazy Oct 17 18:13:16 its not my project, i just started Oct 17 18:13:20 moving all of them into fragments Oct 17 18:14:36 check this out: http://stackoverflow.com/questions/3825987/how-to-clear-all-activities-in-android-app Oct 17 18:14:43 looks like a hack, but it might work Oct 17 18:16:56 please, can someone help me ? my ViewSwitcher always switches into activity which is okay, but always when it switches it opens DatePickerDialog Oct 17 18:17:09 Look into the different intent flags like CLEAR_TOP and CLEAR_TASK Oct 17 18:17:46 Simon refefering to me ? Oct 17 18:17:51 no Oct 17 18:18:04 ok thanks :D Oct 17 18:19:59 hello Oct 17 18:20:03 Hello Oct 17 18:20:32 is anyone here per-chance using the mini-box pico board with a sierra wireless card + android setup? Oct 17 18:20:41 Is there a good reason that resources are defined in a seperate file than the layout besides the fact that you might want to change something? Oct 17 18:21:29 is there a way to add a click listener to map overlay Oct 17 18:21:29 Belacan: like strings for example? Oct 17 18:21:41 y Oct 17 18:21:44 tnzr: yeah Oct 17 18:21:48 or colours etc Oct 17 18:21:51 colours is more obvious Oct 17 18:21:54 but like strings Oct 17 18:21:58 Belacan: yes. Oct 17 18:22:00 like hints and stuff Oct 17 18:22:05 Belacan: strings are in a separate file so that you can add internationalization Oct 17 18:22:10 What do you do if you want to translate to more than one language? Oct 17 18:22:17 What do you do if you want different colors for different screen sizes? Oct 17 18:22:26 ahhhhhhhhh Oct 17 18:22:27 wtc. Oct 17 18:22:29 cool Oct 17 18:22:31 *etc. Oct 17 18:22:33 anything else? Oct 17 18:22:44 Not really. Oct 17 18:22:52 cool thats a good enough reason i suppose Oct 17 18:22:52 cheers Oct 17 18:22:53 Technically you can inline values, but you generally should not. Oct 17 18:22:55 Theming is an obvious reason Oct 17 18:23:09 What do you mean by that SimonVT Oct 17 18:23:12 http://developer.android.com/guide/topics/resources/localization.html Oct 17 18:23:21 Like 'pirate theme'? Oct 17 18:23:34 If you want to change your text from black to some other color Oct 17 18:23:43 Do you update the textColor attribute on every single TextView Oct 17 18:23:53 Question: can you change the blue selection background on a text box? I've got a blue text box, and need to make the selection overlay another color Oct 17 18:23:59 Or, do you change it in your theme/whatever color resource you defined Oct 17 18:24:54 sweet, thats another good reason, thanks SimonVT Oct 17 18:26:17 Does anyone know about loading annotations in a mapview in eclipse? Oct 17 18:32:39 Hi, does anyone know how to listen for NFC enabled/disabled? I try to use BroadcastRecevier with IntentFilter NfcAdapter.ACTION_ADAPTER_STATE_CHANGED, but do not get anything =( Oct 17 18:49:00 erk Oct 17 18:59:22 Is it possible to have a web view where, if I know the content is X pixels wide, to have the web view scale so that the X pixels fill the web view container? Right now, trying every trick that has popped up on Google, all I can do is set this seemingly arbitrary zoom factor, which then does not help me when dealing with multiple screen sizes... Oct 17 19:00:41 PeteS: maybe you can ask the webview what width is the content when it's loaded and then adapt it to the size of the webview that should be known once layouting has completed. Oct 17 19:00:59 there should be javascript expressions that return it... though I forget what they might be Oct 17 19:01:02 alankila: thanks, that's a good idea Oct 17 19:01:35 PeteS: you obviously have tried meta viewport = width=device-width,initial-scale=1,maximum-scale=1 ? Oct 17 19:02:02 tofi9: yup. that just makes the page load at like 2000+ pixels when it's supposed to be 700px Oct 17 19:03:20 Is anyone familiar with Action Views. I am trying to make a menu item on my action bar animate when it is pressed. It is simply showing that the tablet is still trying to connect to an external device. Oct 17 19:03:37 I think I'm just going to restructure everything to fill the width of the screen and use percentages so that the content will naturally resize to the size of the container. it's just annoying because this uses some static images so… I'd rather have px dimensions set Oct 17 19:04:34 PeteS: there is also some width attribute that you can set on the viewport: http://stackoverflow.com/questions/7152474/confused-on-initial-scale-1-0-iphone-3gs-vs-4 Oct 17 19:04:53 hmm, can't use PreferenceFragment due to being stuck with compatibility libs, but I wonder if I'd be able to put together something that could still read from the Preference XML and build up a GUI Oct 17 19:05:24 Hi, does anyone know how to listen for NFC enabled/disabled? I try to use BroadcastRecevier with IntentFilter NfcAdapter.ACTION_ADAPTER_STATE_CHANGED, but do not get anything =( Oct 17 19:06:30 QUERY/AUDIO: Is it possible for an app to utilize both the analog audio out (specifically the headphone jack) *and* BT/A2DP simultaneously, as separate audio channels? If so, what codecs are available for A2DP? Oct 17 19:07:57 This would be a primary/foreground app, on a tablet, taking priority over both outputs and everything else on the device. Oct 17 19:08:05 Have a stalled flashcard app and looking for code contributions https://github.com/abettisworth/flashcards Oct 17 19:08:19 free beer on request Oct 17 19:09:08 that is... could I coax the classes into parsing an XML resource for me and giving me individual GUI elements for preferences, even if I still have to assemble these into a Fragment or Activity myself? Oct 17 19:09:17 pique: so basically you're asking us to do your work for you? Oct 17 19:10:03 Baylink: I SUSPECT that the answer is no, but I can't tell you that for sure. Oct 17 19:10:20 what properties do i need to have a imageview grow to the size of the image ? Oct 17 19:10:29 or is that something i need to do after it loads the image programmatically Oct 17 19:10:36 if one terminates an activity of an app, would the service continue to function ? ? Oct 17 19:11:42 hey, please take a look, the setText() crashes my program, is it because it's running from a thread ? http://pastebin.com/qmf37xy4 Oct 17 19:12:01 possibly. Oct 17 19:12:20 how do i get the view object? Oct 17 19:12:22 That one really doesn't need to live on its own thread. Oct 17 19:12:26 You're already doing it Oct 17 19:12:34 there are some things that need to be done on the UI thread Oct 17 19:12:39 consider using a Handler or an AsyncTask Oct 17 19:13:30 how does Handler helps? Oct 17 19:13:55 I wonder how long it will take to build AOSP on a 2500k with 16GB of ram Oct 17 19:15:43 lov: I was very much afraid of that. Modifying that condiiton would require ... a custom kernel? Custom Android build? Which level is likely to be pinching me; can you speculate? (I need a cue channel on an audio playback app) Oct 17 19:16:07 Is there, perhaps, a regular here who digs in that corner of the garden regularly? Oct 17 19:19:05 Baylink: you can pop into #android-platform but who knows whether anyone is alive. Oct 17 19:19:16 This is a firmware update at a minimum. It's POSSIBLY a custom kernel. Oct 17 19:19:25 I simply don't know the audio layout for android well enough to tell you. Oct 17 19:19:37 Consider posting on stackoverflow? Oct 17 19:20:43 Anyone familiar with Action Views for Menu Items Oct 17 19:25:00 p_l: check this out, selinux for 4.2 http://www.androidpolice.com/2012/10/17/exclusive-android-4-2-alpha-teardown-part-2-selinux-vpn-lockdown-and-premium-sms-confirmation/ Oct 17 19:25:09 Is there any way I can get an instance of the PreferenceManager class? Oct 17 19:25:19 whats a callback Oct 17 19:27:45 lov: http://pastebin.com/PSXE1n3j line 35 crashes the program, a is not null... why is it happening? Oct 17 19:29:03 How can I write messages to log from kernel code, and read it like debuging/ Oct 17 19:30:11 socket: Only touch the ui from the ui thread Oct 17 19:30:47 hrm, I guess I'm just not supposed to ever get an instance of PreferenceManager Oct 17 19:30:47 good 1 SimonVT Oct 17 19:31:03 guys can you help me ? when i change view of activity my ScrollView always adjust the screen to the bottom , how can i change it so it starts normally, focused on TOP Oct 17 19:31:42 SimonVT: what do you mean? Oct 17 19:32:05 Hey guys, been struggling with this for a while. Is anyone familiar with Action Views. Trying to add one to an Action Item and ran into a few issues with what I am trying to do. Oct 17 19:32:09 socket: you cant change the UI from within a thread Oct 17 19:32:23 a.setText("AAAAAAAAA"); Oct 17 19:32:32 Belacan: so how can i do that? i need to create some kind of timer Oct 17 19:32:37 you need to do it in your main activity Oct 17 19:32:43 no Oct 17 19:32:45 and i need a thread to do the intervals Oct 17 19:32:50 you can do it onProgressUpdate Oct 17 19:33:13 you need to invoke the progress update and then you change the UI within that Oct 17 19:33:19 i forgot exactly what to write gimme a sec Oct 17 19:33:32 ok Oct 17 19:33:48 take a look at this: http://developer.android.com/reference/android/os/AsyncTask.html Oct 17 19:33:58 two things to notice Oct 17 19:34:21 publishProgress(); within the do in background Oct 17 19:34:36 and a seperate method, onProgressUpdate Oct 17 19:34:39 hrmph, just seems silly to rewrite all this functionality from Preference*, even the XML reading Oct 17 19:34:42 that's where you can edit the UI Oct 17 19:34:48 anyone have brilliant suggestions? Oct 17 19:35:10 or you may try doing it on post execute Oct 17 19:35:53 socket: also, do you see this: setProgressPercent(progress[0]);? Oct 17 19:36:29 your variables are transfered from the onProgressUpdate using an array Oct 17 19:36:54 since you only want to pass one variable from the doInBackground part, you use progress[0] Oct 17 19:37:02 g00s: pity that SElinux, though I guess it might fit Oct 17 19:37:08 you can change that name to whatever you want, but it will still have a [0] at the end Oct 17 19:37:16 let me see if I can edit your code Oct 17 19:37:16 g00s: TOMOYO was actually designed for speed in embedded environments Oct 17 19:38:30 never heard of tomoyo Oct 17 19:39:34 it's possible to intercept the event: "close contextmenu with back button" ? Oct 17 19:39:56 socket: something like this? http://pastebin.com/ff20T14p Oct 17 19:40:21 However, if you want to pass a value from your doInBackground to your onProgressUpdate you need to provide arguments Oct 17 19:40:38 oops i did a typo Oct 17 19:40:48 on publishProgress(); Oct 17 19:40:52 that's ok Oct 17 19:41:31 socket: oh, and you should change 'void' to 'integer' in my example Oct 17 19:41:37 but thats the basic idea Oct 17 19:41:39 Belacan: it does not crash, but it does not change the textEdit Oct 17 19:43:17 hmmm Oct 17 19:44:43 try using kmView instead of 'a' Oct 17 19:44:53 and scrap the viewbyid Oct 17 19:45:10 Hi, does anyone know how to listen for NFC enabled/disabled? I try to use BroadcastRecevier with IntentFilter NfcAdapter.ACTION_ADAPTER_STATE_CHANGED, but do not get anything..... Oct 17 19:45:38 socket: http://pastebin.com/HynJWfyB Oct 17 19:46:26 Ok, I am getting more and more lost. Is anyone familiar with Action Views with menu Items. Oct 17 19:46:48 epsilonorion: probably :P Oct 17 19:47:31 Belacan: lol, I am trying to add an Action View to a menu item. The item is simply an icon with text next to it. The menu item calls a function for connecting to an external device..... Oct 17 19:48:10 thanks Belacan, it works, what did you change? Oct 17 19:48:27 Belacan: What I would like to do is when the item is pressed and the function is called, create an animation on the icon that shows it is attempting to connect. Through discussion and such Action View seemed the best.... Oct 17 19:48:37 Ok, lov; so I'm clear: there's not a *stock* facility for pointing a media_player at a specific output channel, then, as I believed. Oct 17 19:49:00 Belacan: however, I created the action view, tied it to it, but it is not clickable (nor does it match all the others given the different format in view) Oct 17 19:49:54 socket: well you already declared this, ' kmView = (TextView) findViewById(R.id.km); ' then you tried to do it again with ' a = (TextView) findViewById(R.id.km); ' so when you tried to change the text using a i guess it didnt work Oct 17 19:50:33 socket: will you need to pass variables across ? Oct 17 19:51:17 sorry epsilonorion no idea :/ Oct 17 19:51:39 can someone point me to an article to learn about transform matrix? Oct 17 19:51:46 Belacan: np. I just feel it shouldn't be this hard, but no one seems to know how to do it Oct 17 19:52:10 fakingfantastic: what do you want to know? Oct 17 19:52:11 just to animate one image Oct 17 19:52:40 sampullman: http://pastie.org/5074960 Oct 17 19:52:43 Belacan: no, it's fine, thanks a lot Oct 17 19:52:45 I want to be able to know what this stuff means Oct 17 19:54:40 fakingfantastic: the rows are for red/green/blue/alpha Oct 17 19:55:09 first result from google search: http://stackoverflow.com/questions/4354939/understanding-the-use-of-colormatrix-and-colormatrixcolorfilter-to-modify-a-draw Oct 17 19:55:41 sampullman: thanks man, I'm not just looking for Color Matrix, I'm trying to understand the concept of all of these transform matrixies Oct 17 19:55:51 matrixcolor :) Oct 17 19:55:59 well, there's no "one concept" with color matrices Oct 17 19:56:05 as far as i know Oct 17 19:56:09 oh again wrong unbold shortcut Oct 17 19:56:16 looks nowadays im tired :) Oct 17 19:56:35 sampullman: i hear you, i'm just talking about the concept of matrixes as the apply to transformations Oct 17 19:56:59 that's what im saying though, they mean whatever you want them to mean Oct 17 19:57:11 some standard ones are rotation/translation/scaling Oct 17 19:57:51 To be more specific, concept of matrixes as the apply to Android's provided transformations Oct 17 20:00:15 just color transformations? Oct 17 20:00:59 they're new to me, but it's just multiplying the color vector for each pixel by the transf. matrix Oct 17 20:01:11 lol Oct 17 20:01:54 JakeWharton: getting a ton of "java.lang.NoClassDefFoundError: com.actionbarsherlock.R$styleable" errors on a published version of the app even on android versions 4.0.4... I've got a 4.0.3 phone & tablet and a 2.1 android and my local apk works fine. Is there anything I need to do different for publishing ABS now? Oct 17 20:02:23 no, probably a build system/proguard problem Oct 17 20:02:54 Ah proguard. I'll check it out Oct 17 20:04:52 Seems there's a filled proguard.cfg, though I don't recall doing it. I hope deleting it will make it happy Oct 17 20:07:17 Hi everybody! Can anybody tell me how I can find out if the ActionBar Overflow Menu Icon is displayed in the ActionBar? On some devices it's shown and on some not. I need to treat both differntly, so I need to know if it's shown. Anybody an idea? :D Oct 17 20:07:43 4.1.2_r2 out yet? Oct 17 20:07:45 or not yet Oct 17 20:08:13 evident: you can't reliably Oct 17 20:08:19 nor should you really Oct 17 20:09:52 does anyone know how to listen for NFC enabled/disabled? I try to use BroadcastRecevier with IntentFilter NfcAdapter.ACTION_ADAPTER_STATE_CHANGED, but do not get anything..... Oct 17 20:09:58 it's just that I am showing an arrow that is pointing to one of the icons. Unfortunately, if the overflow icon is shown, the arrow points to the wrong icon... Any ideaß Oct 17 20:10:35 How does one fix "Conversion to Dalvik format failed with error 1" - and no other useful error message from Eclipse when on the final stages of exporting? Oct 17 20:11:54 vadi2: change your compile messages to verbose Oct 17 20:12:00 it's usually because you screwed up a resource or something Oct 17 20:12:24 Well I did just delete my proguard.cfg. Oct 17 20:16:22 Hm, making a blank proguard.cfg file didn't satisfy it Oct 17 20:21:26 vadi2: window -> preferences -> android -> build -> build output -> verbose Oct 17 20:21:28 clean, build. Oct 17 20:21:32 Look for the angry red lines. Oct 17 20:21:59 Thanks, just found the option Oct 17 20:22:47 Whaddaya know, it's perfectly happy now to export unsigned and signed packages Oct 17 20:32:23 Hi, does anyone know how to disable soft keyboard when used in webpages load by the android.webkit.WebView ?? Oct 17 20:32:36 Seems it's happy to load ABS now as well. Great. Oct 17 20:34:20 JakeWharton: In the docs I found something about different screen widths in dp, that show how many icons can be shown... unfortunately that doesn't help. But I found out that the overflow icon is only shown on phones that have no hardware menu key... So is there a way to check whether that button exists? Oct 17 20:34:37 ViewConfiguration.get(context).hasHardwareMenuKey() or something Oct 17 20:35:06 API 11-13 has none, API <=10 always has it Oct 17 20:36:16 ok thank you! Oct 17 20:36:21 I will try that! Oct 17 20:41:30 JakeWharton: were API 11-13 devices not allowed to have a hardware menu key? I don't think that's accurate but I can't think of a counter-example Oct 17 20:42:05 not sure, for all I remember that API is 14+ only though Oct 17 20:42:31 https://developer.android.com/reference/android/view/ViewConfiguration.html#hasPermanentMenuKey() Oct 17 20:42:44 read the first sentence, second P Oct 17 20:43:50 how can i have a dialog return values other than just the BUTTON_POSITIVE? Oct 17 20:44:04 (using fragments api) Oct 17 20:47:19 Hello, I'm trying to read a text file from res/raw/ however im running into something called "Data exceeds UNCOMPRESS_DATA_MAX ##### vs ##### " Oct 17 20:47:43 im thinking opengl es 2 code that works on an iphone should work on an android device w/gl es 2 Oct 17 20:47:49 is that crazy ? Oct 17 20:47:50 the file is only 4.1 mb Oct 17 20:48:00 and i swear i've done this before with a larger file Oct 17 20:48:39 nm, SO has plenty Oct 17 20:48:42 maybe there is a maximum set on the size of an uncompressed file Oct 17 20:48:56 would make since if they want to force devs to compress big files with zip or something Oct 17 20:49:27 im reading on stackoverflow and "load-files-bigger-than-1m-from-assets-folder" Oct 17 20:49:30 that cant be right Oct 17 20:49:46 hhmmm is there a callback i can hook for when an application becomes active, not a particular Activity? Oct 17 20:50:10 what's the galaxy nexus' width dp? Oct 17 20:50:12 mantas322: i think prior to gingerbread, the max was 1mb Oct 17 20:51:27 Is anyone familiar with how to make an action view that resembles a menu item completely. Text, Spacing, Press Animation, etc. Oct 17 20:52:04 pfn: i'm going to guess 600 :P Oct 17 20:52:04 does anyone know how to listen for NFC enabled/disabled? I try to use BroadcastRecevier with IntentFilter NfcAdapter.ACTION_ADAPTER_STATE_CHANGED, but do not get anything.....? Oct 17 20:52:18 maybe you know g00s? Oct 17 20:52:35 g00s, took a bit of searching, but 365 Oct 17 20:53:00 huh, i looked at the last table here http://developer.android.com/distribute/googleplay/quality/tablet.html Oct 17 20:53:03 sorry pfn Oct 17 20:53:26 hmm, how can I set android:orientation via a value? @string/value? Oct 17 20:54:07 that doesn't sound right Oct 17 20:54:43 let's see if #android-dev can count Oct 17 20:54:43 1 Oct 17 20:55:07 I guess I can set a number Oct 17 20:55:09 I guess not, Dany0 Oct 17 20:55:16 :( Oct 17 20:55:20 ok one more time Oct 17 20:55:21 1 Oct 17 20:55:32 one! ha ! ha ! ha ! Oct 17 20:56:12 How do i style the dialog box that is launched from a spinner? Oct 17 20:57:19 spinnerStyle probably Oct 17 21:01:13 nah that only lets me style the spinenr view, and set how i want the dropdown to apepar, but im using dialog, not dropdown, and it still woudlnt let me set the divider. Oct 17 21:03:41 fyi everybody - I totally just fixed my own ActionBarSherlock style problem by my self and I am proud. Oct 17 21:03:57 theTerry, haha nice Oct 17 21:05:36 congrats Oct 17 21:07:35 hello guys, I need sql server on my Ubuntu machine for Android app, which one you would recommend? Oct 17 21:07:57 not really the channel for that kinda q :S Oct 17 21:08:24 mysql or postgresl, both will do the job Oct 17 21:08:57 ok,thanks anyway Oct 17 21:09:37 stupid android memory limitations >:O Oct 17 21:14:54 I have not yet grasped activity lifecycles, however I noticed my program executes in the background(which is not a bad thing;saves me the trouble of figuring them out). But is that normal? Oct 17 21:19:17 diki: the docs on activity lifecycle are pretty goog Oct 17 21:20:04 yeah, android apps don't "quit" until the system needs the resources. they pause. check docs. Oct 17 21:20:31 heh, "good" not "goog". but they're goog by definition too Oct 17 21:21:10 I just thought it was a pun Oct 17 21:27:37 pfn: were you asking about the dp with of the gn or the nexus 7? (cleared my history) Oct 17 21:28:46 Is anyone familiar with how to make an action view that resembles a menu item completely. Text, Spacing, Press Animation, etc. Oct 17 21:30:59 in case uve done it, anyone know how to make libjpeg-turbo decompress into the rgba (intead of rgb) format ? Oct 17 21:31:09 ability was added in v 1.2.0 apparently Oct 17 21:31:38 and would save a lot of cpu cycles to just write out to rgba as opposed to rgb and then covert that into rgba as a separate pass Oct 17 21:32:11 ting about open source projects, very seldom do they have good, up to date documentation Oct 17 21:35:55 I have an animation with three images. When finished, depending on a functions result, I want to change the image to one of two other images (not included in the animation). How can I do this? The way I thought doesnt work Oct 17 21:37:29 hello guys.. any freelance devs interested and available for a chat?? Oct 17 21:40:42 @Azra-el about what? Oct 17 21:41:55 i found the answer to my question probably , in jpeg_decompress_struct set out_color_components to 4, out_color_space to JCS_EXT_RGBA Oct 17 21:43:58 does anyone know how to listen for NFC enabled/disabled? I try to use BroadcastRecevier with IntentFilter NfcAdapter.ACTION_ADAPTER_STATE_CHANGED, but do not get anything....? Oct 17 21:44:44 g00s: btw, where the fuck is eclipse 3.8? Oct 17 21:45:43 p_l: http://download.eclipse.org/eclipse/downloads/drops/R-3.8.1-201209141540/ Oct 17 21:46:15 i just get the platform runtime binary and then add JDT + ADT. its pretty lean Oct 17 21:46:31 p_l: did you try intellij yet ? Oct 17 21:46:38 g00s: intellij is what I normally use Oct 17 21:46:52 I'm giving Eclipse a try on a different machine with a lot more power Oct 17 21:46:57 where would one go to get a list of holo theme attributes and documentation? Oct 17 21:47:07 I can't seem to find a reference on the developer website Oct 17 21:52:53 I'm still stumbling my way through trying to program an app and am having a few issues Oct 17 21:53:04 I've got a dialog that I'm able to use a layout to specify its attributes Oct 17 21:53:21 but when I try to get the button on that layout to add a click listener, it returns null Oct 17 21:54:26 Button okButton = (Button) findViewById(R.id.noDevicesOkButton); Oct 17 21:54:39 is that the correct method to retrieve the button from a layout? Oct 17 21:55:19 g00s: ok, installing Oct 17 21:55:24 let's see how much it will suck Oct 17 21:56:21 quadmasta, are you searching for the button before assigning the layout? Oct 17 21:56:33 any freelance devs interested and available for a chat?? Oct 17 21:57:12 gutano: I'm not sure what you mean by that Oct 17 21:57:15 http://pastebin.com/tmzVtQMT Oct 17 21:57:19 p_l: i'll be interested in your report :P Oct 17 21:57:45 one of the things i do right away is make sure you have all your tab / space settings the way you want Oct 17 21:57:59 go to prefs and type 'tab' and set all that shit :P Oct 17 21:59:22 quadmasta, it appears you are searching your activity layout, not your dialog layout.. forgive me, I am fuzzy with custom layout dialogs, but I think you might try noDevicesDialog.findViewById(..) Oct 17 21:59:25 p_lbtw, what desktop browser do you use ? Oct 17 21:59:32 p_l ^^^ Oct 17 22:00:03 gutano: I just figured that out :) Oct 17 22:00:06 gutano: thanks though Oct 17 22:00:41 hi Oct 17 22:05:48 g00s: Firefox with a bunch of extensions Oct 17 22:06:48 thx Oct 17 22:07:34 ... okay, it seems that the ADT can go fuck itself Oct 17 22:08:26 Is there an easy way to swap fragments. I have two fragements (one on left, one on right) that I want to flip. Oct 17 22:08:45 I am trying to using FragmentManager and FragmentTransaction, but they just go blank Oct 17 22:09:28 you can add / remove / replace Oct 17 22:09:31 or you could show / hide Oct 17 22:09:34 I want to keep their current state during the swap Oct 17 22:09:37 are you remembering to ft.commit() ? Oct 17 22:09:38 oh, apparently it lets me create a project if I don't try creating an activity and fake some answers Oct 17 22:10:16 yes Oct 17 22:10:37 right now, it actually crashes saying that onCreateView was called and there is an error inflating Oct 17 22:11:35 I tried replace before and it gave me an id container error Oct 17 22:12:01 since I am not making a new fragment in the process Oct 17 22:16:39 doogan: or I get Fragment already added Oct 17 22:17:34 doogan: I tried following this for swapping fragments, but just get errors http://www.michenux.net/android-fragment-swapping-325.html Oct 17 22:20:15 i'd investigate the errors Oct 17 22:20:18 that looks aight to me Oct 17 22:20:32 anyone know how I can set paddingLeft on the home icon in action bar sherlock? Oct 17 22:20:32 I can do it on the GN by finding android.R.id.home but no luck with lesser versions of android Oct 17 22:25:32 awesome, Jakob Nielsen's "Mobile Usability" is published Oct 17 22:26:01 finally … the books in mobile ux / id / usability are kinda lacking at the moment Oct 17 22:29:53 nice, that looked good Oct 17 22:29:58 gonna have to pick that up Oct 17 22:30:12 doogan: I have all of that typed, but I keep getting a Binary XML file line #13: Error inflating class Oct 17 22:32:42 are you importing the right classes Oct 17 22:32:49 android.support.v4.app.Fragment Oct 17 22:33:17 if you're on pre honeycomb that can be an issue Oct 17 22:34:10 I am on honeycomb, but not using the support libraries as I did not think I would need to for this one Oct 17 22:38:30 doogan: one thing to note is that the error seems to be because of the MapView in the fragment. It seems to be trying to create the fragment again (thus causing to mapviews), instead of just using the current fragment Oct 17 22:40:56 doogan: actually, commenting out a little code shows that only the mapFragment is the issue, specifically the mapView part, so now I need to find out how not to inflate the view again Oct 17 22:41:23 ok, don't have much experience w/ Maps Oct 17 22:41:31 tho i was messing around w/ Polaris the other day Oct 17 22:41:34 seemed pretty slick Oct 17 22:41:44 https://github.com/cyrilmottier/Polaris Oct 17 22:44:05 might have to try it later Oct 17 22:44:59 it is simply annoying right now. I am just trying to change the view container for two fragments, it is does not want to work Oct 17 22:48:22 is there a way to save the current view (do not call onCreateView) to swap fragments Oct 17 22:51:03 hy all Oct 17 22:51:26 when rotating the telephone, the program is rotating too Oct 17 22:51:40 what kind of codes will run again when rotating? Oct 17 22:51:51 can I reproduce the rotating action in code? Oct 17 22:53:03 heh, chrome still can't disable animated gifs without half-working extensions Oct 17 22:53:08 suck Oct 17 22:53:25 gregtom6: your activity is restarted Oct 17 22:53:40 how can I restart the activity? Oct 17 22:53:56 the system does that automatically Oct 17 22:54:21 g00s: http://t.co/cc4gqZhE :D Oct 17 22:55:14 heh Oct 17 22:55:52 sampullman: but I want restart the activity Oct 17 22:55:59 I need to restart that Oct 17 22:56:13 because of a bluetooth problem Oct 17 22:56:30 it works if I just rotating the screen, so I need to reproduce the rotating Oct 17 22:56:41 I need to restart the activity Oct 17 22:57:05 no you don't Oct 17 22:57:34 you need to find out what code is making it work, abstract it, and call it when necessary Oct 17 23:00:01 How can I make selection be visible in a ListView? I've enabled CHOICE_MODE_MULTIPLE_MODAL and getCheckedItemCount is telling me that items are being selected after a long-press, however there are no UI changes. Oct 17 23:06:39 sampullman: well, it doesn't need to be nice code Oct 17 23:06:44 it needs to be working Oct 17 23:07:22 im not going to help you do something the wrong way Oct 17 23:07:25 touché ! Oct 17 23:12:36 hello. have anyone used a library to generate PDF reports from android? I'm using droidtext but it creates the file with Java. It would be good to use xml for that Oct 17 23:14:46 uh... what Oct 17 23:27:55 question on .restartLoader() http://stackoverflow.com/questions/12887133/why-does-getloadermanager-restartloader-deadlock-after-first-use Oct 17 23:30:12 if i register a listener for location updates from an onbootreciever do i need to do so from a service or will the listener remain valid even after the bootrecievers thread dies? Oct 17 23:33:58 Question on threads. If one thread is currently engaged in JNI, can the other also access JNI functions or will there be issues? Oct 17 23:34:08 when drawing a route between to items in a mapView, does anyone know how to make the route an arrow and scale correctly with zoom in and out Oct 17 23:35:13 diki should be fine Oct 17 23:35:17 easy enough to test tho :P Oct 17 23:35:49 epsilonorion draw it yourself and account for changes Oct 17 23:36:17 Jug6ernaut: I am already drawing it myself, but I am not sure how to get feedback as to how far the map is zoomed in our out Oct 17 23:36:39 zoom level Oct 17 23:37:24 Jug6ernaut:I feel like I have coders block or something. Oct 17 23:37:33 ? Oct 17 23:37:34 y Oct 17 23:37:39 I feel reluctant to code lol. Oct 17 23:37:46 lol Oct 17 23:38:16 I mean, I am excited and have plans on what to do, but when I think of all the work that needs to be done, I just don't do anything. Oct 17 23:38:28 haha Oct 17 23:38:31 yea i know what u mean Oct 17 23:39:22 if you get overwhelmed break the problem into smaller parts and do one small step at a time ;) Oct 17 23:39:49 ^^^ Oct 17 23:39:52 but Oct 17 23:39:55 u should do that anyways :P Oct 17 23:40:02 The inherent problem is that my android application(the java part) is like..even for a newbie like me, awfully coded. Oct 17 23:40:34 lol Oct 17 23:40:47 thats good, the harder it is the less competition Oct 17 23:42:02 'competition is a sin' - Rockefeller Oct 17 23:42:28 Too bad, I envy people every day. Oct 17 23:49:06 ok, Almost there on this swapping fragments. I have to fragments. I perform a remove on both, then commit. Then try to replace the containers of the fragments with the opposite fragment. In this process I get a cannot cast one fragment as another fragment error Oct 17 23:49:24 I am looking at an example of how to do this and it works, but mine doesn't so I assume I am missing something Oct 17 23:50:51 urg, nm Oct 17 23:53:11 hey again Oct 17 23:53:30 onohesback Oct 17 23:53:43 does wifi on a virtual device have known issues? Oct 17 23:54:10 what sort of virtual device? Oct 17 23:54:25 the emulator in the ADK Oct 17 23:55:05 or am I just a retard and forgot to set up wifi Oct 17 23:55:09 probably the latter Oct 17 23:55:14 i've never had internet connection issues with it, but im sure there are Oct 17 23:55:34 wifi won't turn on, so it's not my fault :) Oct 17 23:55:34 yay Oct 17 23:56:02 so, if I'm going to need to talk to devices on my LAN, I'm going to have to use a physical device to test my app Oct 17 23:56:09 that's less than ideal :/ Oct 17 23:56:16 Hey guys in GooglePlay is the URI identifier for a newly published applicaiton still the package name???? Oct 17 23:56:24 https://play.google.com/store/apps/details?id=My.Package Oct 17 23:56:25 ? Oct 17 23:56:34 or did google change things up again Oct 18 00:01:36 Is ListActivity.setListAdapter different from ListView.setAdapter ? My background attribute style doesn't seem to be working, and all examples make use of setListAdapter instead. Oct 18 00:17:57 i've changed my app target to 10 so it'll force the menu button onto the nav bar… all of a sudden there's a shaded/rounded effect around the edge of my custom view, and display performance becomes choppy… what's up with that? Oct 18 00:32:57 is there a master list somewhere of what weirdnesses there are across android devices/carriers? Oct 18 00:35:04 Is it possible for an app to have the ability to make a call in the background (without anything being directly displayed to the user) and send DTMF tones through said call? Oct 18 00:35:25 I'm pretty sure that's a bug NO-NO Oct 18 00:35:27 big! Oct 18 00:35:54 like, there was that one phone that would always give you the same UUID no matter which one you got Oct 18 00:36:37 hmmwhatsthisdo: if it IS possible, that's a huge security problem. Oct 18 00:36:39 That's why I'm asking, I wasn't sure if it was something that wouldn't be allowed because it would be used maliciously (it'd be to perform challenge-response with a separate device over a phone line) Oct 18 00:36:43 so I sure hope it isn't. Oct 18 00:37:08 you can send a complex phone number with pauses to the dialer if you have permission Oct 18 00:37:20 hey guys, so i can run my app on my devices, but how do I find it ? first time using an android Oct 18 00:37:21 so you can send your codes, but it'll be a phone call presented to the user Oct 18 00:37:32 it installed via eclipse Oct 18 00:37:41 I think ',' is the pause digit for the dialer Oct 18 00:37:41 but i dont see where i find it, so i can click it to run Oct 18 00:37:53 drumer306: in the app drawer like all the other apps Oct 18 00:38:01 wheres that Oct 18 00:38:03 drumer306: unless you didn't define an activity that gets the launcher intent Oct 18 00:38:11 thats possible Oct 18 00:38:15 how can i do that ? Oct 18 00:38:30 Drumer306_: you read the basic developer docs, which tell you Oct 18 00:38:32 nah, it'd need to be able to listen in as well (essentially, the device would send 4 DTMF tones to the phone, the app would need to decode it to an actual number, then combine it with a number given by the user, hash it, then send the hash back over DTMF) Oct 18 00:38:49 Leeds: thought i did, but Oct 18 00:38:53 thus, I think presenting a call dialog to a user would probably not work Oct 18 00:39:13 Leeds do you have a link ? Oct 18 00:39:16 hmmwhatsthisdo: that won't work, you're not really supposed to record phone audio either (security, legal, etc) so it's not made easy Oct 18 00:39:17 Drumer306_: if you think you might have missed making your activity launchable - and you don't *know* - then you missed something in the docs Oct 18 00:39:33 sure: http://developer.android.com/training/index.html Oct 18 00:39:40 Leeds: it launches when running through the emulator to th device Oct 18 00:39:43 hmmwhatsthisdo: for various levels of "not easy" ranging from "not possible" to "vendor hacks allow it on some phones" Oct 18 00:39:48 but I cant "FIND" the app anywhere on the phone Oct 18 00:39:55 or, is there a good sample set of phones that I should test with? Oct 18 00:40:46 mheld: get an old phone (droid 1, nexus 1). Get a brand new google phone (galaxy nexus). If you're doing anything that touches cell stuff, get a gsm and a cdma/lte phone Oct 18 00:40:46 Drumer306_: do you not know how to open apps on your phone? Oct 18 00:40:56 mheld: that covers most of the weirdness Oct 18 00:40:59 Leeds: i guess not, because i dont see it anywhere Oct 18 00:41:11 Drumer306_: you never open an app on your phone? Oct 18 00:41:27 drumer306 / Leeds; if you/he didn't make the launcher activity filter in the manifest, it won't have an icon. Oct 18 00:41:31 Leeds: second time using an android, i dont see the icon on any of the sliding home screens Oct 18 00:41:36 dragorn: ha, I guess that's fair Oct 18 00:41:44 dragorn: he doesn't know where to find the app drawer Oct 18 00:41:45 dragorn: I've got those bases covered Oct 18 00:42:01 drumer306: if you don't know how the phone works to begin with, you probably should familiarize yourself with basic operation first Oct 18 00:42:10 Leeds: to be fair, "app drawer" is a horrible name Oct 18 00:42:12 Drumer306_: you might want to pick up the most very basicest bits of using the phone before coding for it Oct 18 00:42:21 mheld: You're probably in good shape then for 90% of your market Oct 18 00:42:25 mheld: "scrolling list of all apps" Oct 18 00:42:35 mheld: Some things are Extra Wacky, like USB host Oct 18 00:42:40 mheld: so that'll bite you in the ass Oct 18 00:42:44 dragorn: thanks for the advice, just want to know where this app is, or if its because i didnt code something, which is why there's no icon Oct 18 00:43:04 Drumer306_: how do you open an app - any app - on your phone? Oct 18 00:43:06 dragorn: I've developed android apps for years, it's just been 10ish months since I've published anything Oct 18 00:43:11 Leeds: click it Oct 18 00:43:14 dragorn: didn't know if things changed Oct 18 00:43:15 or tap it Oct 18 00:43:16 Drumer306_: Either you didn't make the manifest properly, or you don't know how to use your phone Oct 18 00:43:20 Drumer306_: where? Oct 18 00:43:26 Leeds: on the app icon Oct 18 00:43:29 mheld: it's more or less the same; other than maybe some high-res stuff Oct 18 00:43:33 * Leeds guesses iPhone refugee Oct 18 00:43:57 Drumer306_: here's a little hint for you - the Android launcher *isn't* just all your apps on multiple sliding screens... Oct 18 00:44:00 Drumer306_: you ARE aware that on android there is the app drawer, which is different than icons placed on the home screen, right? Oct 18 00:44:18 what phone do you have? Oct 18 00:44:19 dragon: so thats the problem then :) wheres my app drawer Oct 18 00:44:48 razor Oct 18 00:45:05 I see the Apps icon Oct 18 00:45:10 ah, a Philidroid? Oct 18 00:45:51 dragorn: cool, thanks Oct 18 00:47:08 dragorn: If Android is linux-based, would the raw mic output and speaker output be accessible through /dev ? Oct 18 00:47:23 hmmwhatsthisdo: not unless you're root - that's not your solution Oct 18 00:47:43 darn. Oct 18 00:47:53 this is proving to be more difficult than I thought Oct 18 00:47:59 well, this is why iphone kicks droids ass Oct 18 00:48:19 Drumer306_: please don't do that Oct 18 00:48:53 Leeds: not programming or app wise, but just basic UX Oct 18 00:49:05 right, because you don't know how to use your new phone Oct 18 00:49:11 If I cant find all my apps in 30 secs, especially when I click the Apps button..... Oct 18 00:49:14 thats a problem Oct 18 00:49:24 which almost certainly came with at least a quickstart guide... or onscreen tips Oct 18 00:49:30 *what* Apps button? Oct 18 00:49:43 oh, whatever, I'm going to have my breakfast Oct 18 00:49:47 at the bottom of my screen, i see Phone, People, Apps Oct 18 00:52:09 okay so i guess im coming closer Oct 18 00:52:22 my app is just not installed to the point where there is an icon or anything in the app drawer Oct 18 00:52:26 anyone have a link how to do that > Oct 18 00:54:13 How come there's no arm system image for level 10? I'd like to use it in the emulator. Oct 18 00:54:20 if you created the app using a standard template, it will have a launchable activity by default Oct 18 00:54:49 you'd actually have to go out of your way to remove that Oct 18 00:56:51 Leeds: I have the intent in my xml file Oct 18 00:57:00 or intent-filter Oct 18 00:57:20 then it should be in your app drawer Oct 18 00:57:23 it sounds like the app just isn't installed on the phone Oct 18 00:57:43 would it be under widgets Oct 18 00:57:52 sampullman: its there when i go to manage apps Oct 18 00:58:03 maybe im just still not finding this app drawer Oct 18 00:58:16 But im tapping the icon that says Apps Oct 18 00:58:49 unless you've built a widget - which is rather unlikely - it won't be under widgets... Oct 18 00:59:03 Leeds: so how do i get to my app drawer Oct 18 00:59:28 have you found the button which gives a list of all your apps? Oct 18 00:59:38 Under the Apps button, that screen says Verizon Wirelsess, Widgets, and the Play Store icon Oct 18 00:59:43 Leeds: i guess not Oct 18 01:00:02 never used a motorola phone (presumably you *did* mean razr) Oct 18 01:00:18 yea.... Oct 18 01:00:20 Dumer: are you running linux/mac? Oct 18 01:00:25 yes Oct 18 01:00:26 MAc Oct 18 01:00:40 open up a terminal window Oct 18 01:00:58 k Oct 18 01:01:04 type: adb shell pm list packages | grep Oct 18 01:01:13 assuming adb is on your path Oct 18 01:01:48 sampullman: whoa Oct 18 01:01:55 let's find the guy's app drawer first Oct 18 01:02:04 lol how did he code for it in the first place ? Oct 18 01:02:05 it sounds like he found it Oct 18 01:02:11 if he can't even find the on button Oct 18 01:02:15 sam its there Oct 18 01:02:21 ok, that's bad news Oct 18 01:02:27 :( Oct 18 01:02:28 why Oct 18 01:02:33 you may be... Oct 18 01:02:37 technically illiterate Oct 18 01:02:40 lol Oct 18 01:02:57 Drumer306_: launcher, bottom row, middle button - what happens? Oct 18 01:03:08 like i said, this my second time using a droid... my app is no where on any home screen or sliding screen Oct 18 01:03:17 when i click the middle button that says Apps; Oct 18 01:03:33 I get Verizon Wireless, Widgets, and the playstore app Oct 18 01:03:33 right, then that's your app drawer, and if you've managed to install your app, it'll be there Oct 18 01:06:02 okay so... i guess its under the play store Oct 18 01:07:22 seriously though - walk away from the compiler for a day or two and learn how to use your phone Oct 18 01:07:39 well its not under widgets Oct 18 01:07:50 Leeds: i really dont think i have the app drawer Oct 18 01:07:52 it *doesn't* work exactly how an IPhone does - some things may be better, some things may be worse... but a lot of things are different Oct 18 01:07:53 im looking everywhere Oct 18 01:08:08 if its not here.... where ive looked then somethings wrong with this phone Oct 18 01:08:19 or the app was pushed incorrectly Oct 18 01:08:22 it's much more likely that sampullman is correct Oct 18 01:08:31 but I'll say it again Oct 18 01:08:33 or they done something stupid and this version sucks Oct 18 01:08:41 what did sampullman say ? Oct 18 01:08:52 please walk away from the compiler, from dev, from this channel, for a day or two and learn how to use your fucking phone Oct 18 01:08:56 Drumer306__: did you install the USB drivers for your phone ? Oct 18 01:09:09 * Leeds is naive Oct 18 01:09:21 shmooz: i assume so since it installed and ran on the phone Oct 18 01:09:23 I'm assuming that there was a "successfully pushed to device" message of some sort, at some point Oct 18 01:09:44 he said he ran list packages and it was there Oct 18 01:09:49 it ran on the phone the first time you compiled ? Oct 18 01:10:00 I see it under Manage apps Oct 18 01:10:13 bah Oct 18 01:10:45 but it only says force stop , uninstall, it wont open it, so I assume thats not the app drawer ? Oct 18 01:11:16 have fun guys, I'm out of this one Oct 18 01:11:34 i have the lotr soundtrack playing, this is so epic Oct 18 01:11:46 lol Oct 18 01:13:11 you misspelled "gay" Oct 18 01:14:40 I think my girlfriend fcked up her phone Oct 18 01:14:54 cuz even the phone doesnt follow the motorola docs Oct 18 01:15:15 theres no All Apps, Recent, or Downloaded icons anywhere Oct 18 01:16:00 Drumer306__: this is a developer channel. not tech support Oct 18 01:16:16 KNERD: Thanks bro Oct 18 01:16:42 KNERD: I guess I was hoping the smart people here might have seen this before, or could direct me faster Oct 18 01:17:37 people developing tend to concetrait on their application developing problems on here Oct 18 01:17:51 that's what #android is for Oct 18 01:18:25 KNERD: well how am i supposed to know if this isnt a technical problem or a developer problem ?? Oct 18 01:18:50 Which after a several minutes of help, I think this is an os / technical issue Oct 18 01:19:01 if the problem was caused by your application you are developing....... Oct 18 01:19:56 So, I understand the issue of being able to open calls in the background would be a total security risk, but what about text messages? Oct 18 01:20:07 KNERD: .......... it was a simple question why my app would not appear , or where it would appear after installed on the device, all good bro thanks for the input Oct 18 01:20:51 it should appear in the apps sect Oct 18 01:21:20 KNERD: its cool your way late dude Oct 18 01:22:11 We've finally established that my girlfriends phone for some reason ( probably her own ) has no All Apps option anywhere , so im going to ask in the other channel that its established its not an issue with my app Oct 18 01:23:44 drumer306: what's the issue? Oct 18 01:24:53 borisdb: In the app drawer or when I click the Apps button, there is no "All Apps" or "Recent Apps" option anywhere Oct 18 01:25:03 so I cant navigate to my app I installed through eclipse Oct 18 01:25:23 Which is okay, if she messed up her phone, I wanted to make sure its not my app, which it doesnt seem to be Oct 18 01:25:58 I dont really use droids, so its still a little new, but following the motorola docs, she is missing those options somehow Oct 18 01:26:08 you have no app at all? you can't get by the global search on the phone? Oct 18 01:26:50 borisdb: I can find it that way, but it also shows all the activities running for my app Oct 18 01:27:17 which i assume is normal ? Oct 18 01:27:49 or maybe not that def looks weird Oct 18 01:30:26 Drumer306__: have you tried another app drawer? with an alternative launcher? Oct 18 01:31:04 I first tought that your app was not launched nor appearing in the applications list in your phone Oct 18 01:31:31 thought Oct 18 01:33:07 so why is the official google calendar app just released only available for 4.0.3 and up ? Oct 18 01:34:25 g00s: I'm sort of assuming it's a pre-4.2 thing Oct 18 01:42:09 heh, google scheduled their event on the big ms day Oct 18 01:50:22 I have multiple fragments that have menus for each fragment. This means that their menus (specifically ones I designate to be shown) are placed in order of how each fragment is created. Is there a way to control this order manually Oct 18 01:50:31 beside creating the fragments in a different order Oct 18 01:52:04 or is this even possible Oct 18 01:55:03 decouple the menu ordering from the fragment ordering Oct 18 01:57:23 which is better, 1 activity with 2 seperate views, or 1 activity with 2 fragments, for a login/out page (one with login form, one with logout) Oct 18 01:58:14 better yet, try to make the content the interface, and avoid all that dumb shit in menus if possible Oct 18 02:06:23 menus respect groups and orders Oct 18 02:06:24 use them Oct 18 02:06:47 the action bar will even keep groups together in and out of the overflow Oct 18 02:07:14 Hello - I need help with listeners if anyone is so kind. Oct 18 02:07:35 what? i can't hear you! Oct 18 02:08:47 I'm using slidingmenu and am having trouble with updating my front activity from the slidingmenu. I need to just change the selection of a cursor query but not sure what the best way to do that. Oct 18 02:09:43 JakeWharton: thank you for actionbarsherlock too Oct 18 02:29:34 How do you publish a magazine to Google Play? Oct 18 02:30:29 doesnt look you can. theres just "application" and "games" under "application type" Oct 18 02:31:16 I think you a) be a big magazine publisher and b) have a direct commercial relationship with Google Oct 18 02:34:44 i heard that method of distribution was falling out of favor anyhow between newspapers and magazines Oct 18 02:36:36 along these lines http://www.technologyreview.com/news/427785/why-publishers-dont-like-apps/ Oct 18 02:46:07 What is the best way to generalize a textView to match the same font, size, etc. of a menu item. I am working on an Action View that has text and would like it to match Oct 18 02:49:29 define a custom style Oct 18 02:49:48 yeah, figured that would be the way Oct 18 02:50:01 sampullman: thanks **** ENDING LOGGING AT Thu Oct 18 03:00:01 2012