**** BEGIN LOGGING AT Tue Sep 18 02:59:59 2012 Sep 18 03:09:56 Why are eclair devices so slow? is it because of low RAM or low CPU? Sep 18 03:10:07 *slow CPU (for animations and things like that) Sep 18 03:11:43 no hw accel Sep 18 03:11:52 slow processors, low memory Sep 18 03:12:09 eclair, really? Sep 18 03:20:16 anyone done droid coding from vstudio 2012? Sep 18 03:21:01 hwrd|work: depends on device Sep 18 03:21:05 Visual Studio doesn't do Java. It barely does C - and getting it to use an external build system is a right pain. Sep 18 03:21:22 hwrd|work: some were really shortchanged on RAM, and had drivers that were pretty much abandoned Sep 18 03:21:39 p_l|backup: Ah. I see. Sep 18 03:21:52 If I register my broadcast receiver inside the manifest file, what context will I be getting? The application context or some activity context? Sep 18 03:22:09 in onReceive() Sep 18 03:22:18 I guess that makes sense. I'm just wondering if I _really_ need that ViewHolder to make my ListView fast even though I'll only have about 60 entries in the list. Sep 18 03:22:20 how do you make a driver for a phone ,...? the lg viper which i have the people are looking for a driver and asking if we could just make one ,...? Sep 18 03:22:45 napster: Activity. Sep 18 03:23:11 RedBunny: learn about developing linux device drivers Sep 18 03:23:12 napster: Really, whichever context you do Context.registerReceiver with, iirc Sep 18 03:23:31 RedBunny: even if the part is mostly userspace, you might need it due to interactions Sep 18 03:24:08 hmmph Sep 18 03:24:18 is Eclipse the preferred IDE then? Sep 18 03:24:23 hwrd|work: ok Sep 18 03:24:25 Netbeans seems rather clunky for droid Sep 18 03:24:39 mryanbrown: It's preferred by Google. I use IDEA. Sep 18 03:24:59 IntelliJ IDEA? Sep 18 03:25:30 mryanbrown: Yes. Sep 18 03:25:33 I don't even think people at Google use Eclipse Sep 18 03:25:46 I think they use IntelliJ (unless you're on the ADT team, probably) Sep 18 03:25:48 Do they use BlueJ Sep 18 03:25:50 I like BlueJ Sep 18 03:26:12 It has that nice UML styled view Sep 18 03:26:26 All of the development/deployment tutorials are done in Eclipse, probably beacuse Eclipse is easier to tool. Sep 18 03:26:28 isn't that just for teaching OO? Sep 18 03:26:37 technically Sep 18 03:26:43 "done in" == "written for". Sep 18 03:26:44 but it still works as a super basic IDE Sep 18 03:26:57 mryanbrown: You want one that can integrate with a build system and source control. Sep 18 03:26:59 hwrd|work: i think it depends from person to person, though intellij is pretty popular. But I have small sample size Sep 18 03:27:16 Are you on windows freeone? Sep 18 03:27:19 Yes. Sep 18 03:27:36 What Cygwin packages do I need to make a basic hello world? Sep 18 03:27:43 i couldnt find it in documentation Sep 18 03:27:46 just the make app Sep 18 03:27:47 ...Uh, not sure how that's android? Sep 18 03:27:50 p_l|backup: Everyone I know in my circle of peeps thinks IntelliJ > Eclipse Sep 18 03:28:16 mryanbrown: The NDK has a windows download. Use that. Sep 18 03:54:49 evening gentleman Sep 18 03:55:57 is there a tablet which support wifi display? Sep 18 03:56:14 Is this correct use of storing a long number in strings.xml? 5000 Sep 18 03:58:09 qkzoo1978: you may have got confused somewhere... Sep 18 03:59:02 That is certainly a possibility.... Sep 18 03:59:26 where have you got that 'type="long"' attribute from? Sep 18 03:59:39 and... why are you trying to store numbers in strings.xml? :) Sep 18 04:00:07 I guessed. It worked when I did it for type integer in my strings.xml Sep 18 04:00:21 you guessed, rather than just reading the docs? Sep 18 04:00:49 I've just been storing all my configurable options/variables in there Sep 18 04:01:15 I don't have easy access to the docs, I'm on a mobile, no pc Sep 18 04:02:36 then get onto a computer with a real browser and read the docs Sep 18 04:03:03 Easy for you to say, thanks for your help. Sep 18 04:03:16 yup, very easy Sep 18 04:03:30 seriously, who codes by guessing rather than looking stuff up? Sep 18 04:03:46 are you using AIDE or something? Sep 18 04:03:49 Like I said, no pc. Sep 18 04:03:56 Yes. Sep 18 04:04:01 go to the library, find a PC Sep 18 04:04:08 ask your mum if you can borrow hers Sep 18 04:04:24 Really? Sep 18 04:05:32 or your dad... or older sister... whatever Sep 18 04:06:19 Wow. Sep 18 04:06:40 is there any way to ask Android to use a particular codec / bitrate when using MediaStore.Audio.Media.RECORD_AUDIO_ACTION ? Sep 18 04:06:54 Are you referring to the android docs? Sep 18 04:06:56 I'm getting URIs for recordings back but they're of pretty poor quality Sep 18 04:07:12 no, the Windows Phone 8 .net docs... Sep 18 04:07:16 yes, of course I mean the Android docs Sep 18 04:07:40 I get lost in that darn thing. Sep 18 04:08:36 Really? Sep 18 04:09:29 Yes, I can never seem to find what I'm looking for. Sep 18 04:09:43 http://developer.android.com/guide/topics/resources/available-resources.html Sep 18 04:09:45 go wild Sep 18 04:11:57 Awesome, thank you! Sep 18 04:23:54 hallo y'all! anything espicially exciting happen in dev of android development the last few days? Sep 18 04:24:02 *in Sep 18 04:28:28 io did anyone see that article? http://mashable.com/2012/08/20/real-time-translation-glasses/ Sep 18 04:29:41 funny how it is all assumed to have to mean something Sep 18 04:30:08 hi guys, during a translate transition between webviews, the screen flickers white temporarily… I want it to be black . Sep 18 04:30:30 lasserix: wow thats a pretty cool thing to see in action Sep 18 04:31:07 yeah talk about helpful Sep 18 04:31:19 @ f2prateek Sep 18 04:31:20 any ideas?… not sure why the screen flashes white hmm. Sep 18 04:31:55 codeshah i am not sure but heard of this problem before, i think it has to do with how webview is able to render html Sep 18 04:32:04 not so fast as the java android code Sep 18 04:32:22 lasserix: does project glass have that feature or something similar as well? Sep 18 04:32:36 oh, I see… that makes sense. hmm, wonder if there is any way to make the default view black before webview renders HTML Sep 18 04:32:41 f2prateek: i hope so Sep 18 04:33:42 codeshah you might just take abitmap of the webview and blur it for x2 ms and load the next page once ready Sep 18 04:33:54 ya hmm good idea Sep 18 04:39:55 Has anyone found that synthetic sensors aren't being implemented on newer phones? rotation_vector sensor, for example? Sep 18 04:54:51 hi~~all, does somebody know how to use the latest kernel(download from kernel.org) in android? Sep 18 04:55:04 how to patch it? Sep 18 04:56:19 @MontyCarleau I think you can implement you're own rotation vector from the accelerometer with some preexisting libraries easily Sep 18 04:56:53 @ethancai try asking in #android-root people in here are usually a little busy Sep 18 04:57:49 @lasserix ok :~) Sep 18 04:57:59 lasserix: I think the notion was that manufacturers would implement the synthetic sensor (rotation vector sensor) leveraging the given device's raw sensors – whether there's a gyroscope or not, etc. Sep 18 04:58:36 does Android have anything similar to the way that iOS does per-app media storage directories Sep 18 04:59:04 or as a developer do you have free-reign to put it anywhere on the /sdcard partition? Sep 18 04:59:42 you *can* put files anywhere you like Sep 18 04:59:48 you *should put them in your per-app directory Sep 18 05:00:27 you *must* read the appropriate documentation: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Sep 18 05:01:18 @MontyCarleau, what the gravity of every planet in the solar system is not enough for you? Sep 18 05:01:32 Leeds: thanks for the links. I've been following examples so hadn't found the appropriate reference link yet :) Sep 18 05:02:21 @MontyCarleau I think there is http://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_ORIENTATION_RAW and you can also call getQuaternionFromVector Sep 18 05:02:33 if you didn't klnow Sep 18 05:02:57 lasserix: That's deprecated, and Rotation Vector Sensor is the replacement, unfortunately. Sep 18 05:05:22 lasserix: I wonder if it's worth scouring for the implementation of Rotation Vector Sensor. It's more stable than the "getRotationMatrix(R, I, accelValues, magValues); getOrientation(R, result);" approach (on phones I've tested, at least) Sep 18 05:05:46 I am trying ti implement Dynamic Fragement switch in ViewPager using solution mentioned in http://stackoverflow.com/questions/7723964/replace-fragment-inside-a-viewpager. For some reason after switching, fragement is blank, getItemPosition is not called on FragmentPagerAdapter even though notifyDataSetChanged is invoked, here is my code : http://pastebin.com/tvdhkZ84 Sep 18 05:07:27 @MC with a quaternion you can just calculate your own with predictablity polling the accelerometer Sep 18 05:10:25 lasserix: I use quaternions in my code now - with the axis-angle representation from the RV sensor. Have you tried using the accelerometer with the mag-field sensor to get orientation? Sep 18 05:12:43 @MC Yeah but I don't assume it works anymore Sep 18 05:14:19 lasserix: Did you do the typical thing as in here: http://stackoverflow.com/questions/6846743/which-sensor-for-rotating-android-phone?rq=1 Sep 18 05:18:14 @MC yeah but that only usually works when the person is moving their hands Sep 18 05:18:44 lasserix: As opposed to what? Maintaining an orientation? Sep 18 05:19:48 @MC depends on how much information you need Sep 18 05:20:50 @MC that's what I was asking earlier, why has it been a problem on newer phones? Sep 18 05:21:45 lasserix: On some newer phones, like the Droid Razr, synthetic sensors don't seem to exist - at least, according to getSensorDefault(Sensor.TYPE_ALL) Sep 18 05:27:32 @MC Oh yeah, I thought I heard all android devices had to contain an accelerometer Sep 18 05:28:12 @MC how often can you really trust an oem to implement a phone's full features? Sep 18 05:28:27 lasserix: They contain raw sensors - accelerometer, magnetic field sensor, proximity, etc. But they don't have synthetic sensors like linear accelerometer, Sep 18 05:28:38 gravity, rotation vector Sep 18 05:28:58 The samsung phones have the right specs, HTC phones, Sep 18 05:35:04 @MC You can't assume the phone will implement any functions for you, particularly those that consume real time services Sep 18 05:36:13 lasserix: Any idea where I might find the source code for the Rotation Vector sensor? Sep 18 05:36:47 @MC Just use a runnable that returns post delayed Sep 18 05:37:50 lasserix: I think I lost you there. Sep 18 05:39:03 You can use the accelerometer to calculate your rotation vector Sep 18 05:39:34 And if you do it periodically, you can more easily garuntee the percision of your queries Sep 18 05:39:49 Accelerometer is fine for the orientation along x and z, Sep 18 05:40:50 but not y, since it's collinear with gravity. So you have to use the magnetic field sensor. Sep 18 05:44:10 There's lots of way to interpolate, but I heard you can use quaternarions to do whatever it is you are trying to do with well-known equations Sep 18 05:45:00 quaternions are awesome! Sep 18 05:45:13 sorry Sep 18 05:46:53 Maybe you can use gps instead of the magnetic field sensor? sounds like something not necessarily powered by the back-up battery Sep 18 05:47:09 Quaternions are a great representation for 3D rotations, Sep 18 05:47:32 but you need to provide them with accurate sensor data, Sep 18 05:48:19 which is what the RV sensor actually does - it gives you enough data to make a quaternion. Sep 18 05:48:27 From there you're home free. Sep 18 05:49:22 That's the synthetic sensor you were talking about? Sep 18 05:49:27 And the API has methods for making sense out of it - getQuaternionFromVector and getRotationMatrixFromVector. But apparently that's all pointless because only a few phones will implement the RV sensor? Sep 18 05:49:30 Right. Sep 18 05:50:30 http://developer.android.com/reference/android/hardware/SensorEvent.html - Sensor.TYPE_ROTATION_VECTOR: Sep 18 05:50:32 I thought I heard all android (phones) are supposed to have a physical accelarometer? Sep 18 05:50:41 They are. Sep 18 05:50:57 But an accelerometer is not enough for orientation. Sep 18 05:51:42 There's a time dependent method to do that, sorry I can't recall the name maybe someone else knows Sep 18 05:51:50 kalman filter? Sep 18 05:52:18 Yeah i believe that was part of it Sep 18 05:52:37 That's for getting position from acceleration data. Sep 18 05:52:53 Well, it's for lots and lots of things, Sep 18 05:53:40 but when people apply it in this context, it's a way of filtering noise based on conditions. This is great, but it doesn't apply here. Sep 18 05:57:36 You can use the data to guess where the hand is rotating in the y-direction though, if you're just trying to catch the flip of a wrist Sep 18 05:57:52 Does anyone know of any good examples or libraries performing a dialog file chooser? Sep 18 05:59:16 lasserix: I need much more accurate data than that, unfortunately. I have it with the RV sensor, which means it's possible, it just seems that I'll have to roll my own. That's why I'm thinking it'd be good to peek at the RV sensor source code. Sep 18 06:00:28 @MC yeah i figured i wish I knew I been held up in development town but I'm convinced you got to just roll your own if you are doing something so detailed Sep 18 06:07:09 Anyone know where I might find source code for something like a sensor (e.g., Rotation Vector sensor)? Sep 18 06:21:11 hello everybody Sep 18 06:21:44 I am very interested in game development but don't have any idea how to start it Sep 18 06:22:14 i have heard about some game engines by which i can start the game development Sep 18 06:22:42 can you please suggest me which game engines is good for game development ? Sep 18 06:24:11 LibGDX Sep 18 06:25:38 sampullman: i have heard about AndEngine and cocos 2d/3d Sep 18 06:26:52 i wonder if one can use the new Amazon Maps API using regular android … i'm guessing its only for the Kindle stuff Sep 18 06:27:23 Hi Gaz`` Sep 18 06:31:41 hello - anyone around who can help me figure out why setMultiChoiceModeListener is not being called? Sep 18 06:41:44 Does anyone know of any good examples or libraries performing a dialog file chooser? Sep 18 07:06:54 hey guys, any ideas or recommendations on how to implement this? https://lh5.ggpht.com/94ca5Pk0GMwZ-aeYluAfr4utYNVIG8lia4IQ7AiO8vtZZ94cWjrQxXIi2tBcJx_Ft3s Sep 18 07:07:17 i'm thinking something like a custom listview Sep 18 07:09:35 hmmm.. or maybe a gridview Sep 18 07:09:44 cuz it sort of needs two columns Sep 18 07:09:48 but the height of the items differ Sep 18 07:22:17 If I create a listview in a dialog, how can i get the dialog to end on itemClick Sep 18 07:22:21 Anyone used OpenID or OAuth 2.0 for authentication on an Android application? I want to replace a login system that uses: email address and password with OpenID or OAuth 2.0 for authentication Sep 18 07:22:51 Are there few steps in the OpenID flow or more ? Sep 18 07:23:09 (than the traditional login system) Sep 18 07:32:18 hi. how do you set the textview to be displayed top+centered ? Sep 18 07:44:21 superlinux-hp: Set the layout_gravity Sep 18 07:44:42 David set it as what? Sep 18 07:45:03 what are the values? Sep 18 07:45:23 superlinux-hp: please, read begginner books :( Sep 18 07:46:04 https://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html#attr_android:layout_gravity Sep 18 07:47:45 SimonVT, thanks! this is how you guide someone! and i go read Sep 18 07:49:13 SimonVT, awesome! Sep 18 07:50:55 hey actionbarsherlock users! Sep 18 07:50:59 how do i get a view of a menu item? Sep 18 07:51:08 https://groups.google.com/forum/?fromgroups=#!topic/actionbarsherlock/GmDnpabnTKI Sep 18 07:51:18 i was looking at this and it didn't go anywhere :/ Sep 18 07:51:27 You don't Sep 18 07:51:27 okay nevermind Sep 18 07:51:29 solved it Sep 18 07:51:36 findViewById(item.getItemId() Sep 18 07:51:43 onOptionsItemSelected( Sep 18 07:51:44 com.actionbarsherlock.view.MenuItem item) Sep 18 07:56:38 oh wait Sep 18 07:56:41 damn Sep 18 07:57:00 getItemId gets the view of the layout for the menuitem, not the menu item itself :/ Sep 18 07:58:11 SimonVT, any ideas? Sep 18 07:58:45 Hi! Sep 18 07:59:02 Does anybody know why the 'assets' folder is not inherited in library projects? Sep 18 07:59:35 And how to perform inheritance on this folder without needing to modify the SDK Tools? Sep 18 08:00:27 An idea for? Sep 18 08:00:44 Good Morning #Android-Dev Sep 18 08:01:03 currently I created some weird Ant targets in order to copy the correct assets over - which leads to weird behaviour (APK files built from Eclipse and from Ant differ) Sep 18 08:04:12 guess who's back :3 Sep 18 08:04:26 Yeah, you pretty much have to make your own targets if you want assets copied Sep 18 08:04:41 that's bad :/ Sep 18 08:05:07 It's documented Sep 18 08:05:12 SimonVT, I know Sep 18 08:05:41 I am only asking *why* - because this way it does not make any sense to have 'assets' folders in library projects Sep 18 08:06:14 Damn pgl has freaked out on my server and won't let me connect. Sep 18 08:06:52 so IMHO it would be a great to enable a simple copy-files-over inheritance Sep 18 08:07:26 SimonVT, I also saw some patches to the SDK Tools in Gerrit somewhere - they didn't get approved yet Sep 18 08:07:30 Hmm, why does my arrayadapter / listview work, but the progressdialog not? http://pastebin.com/WTFUThE4 :S Sep 18 08:07:52 It'll probably make it to the tools some day Sep 18 08:08:16 Hello all, I realized that for some devices, onLayout of a view is triggered after onActivityResult. However, I need to view size in onActivityResult, how can I handle this problem? Sep 18 08:08:31 By not needing it in onActivityResult Sep 18 08:08:52 SimonVT: Not quite understand Sep 18 08:08:55 The Activity isn't even resumed yet, you can't really count on it having done anything Sep 18 08:09:50 "I need the size in onActivityResult, how do I fix?" -> "By not needing it in onActivityResult" Sep 18 08:09:51 but I do need the size of the view in onActivityResult. I told you that I am going to pick an image. Sep 18 08:10:01 Yay! My first successfully answered question on StackOverflow: http://stackoverflow.com/questions/12461536/google-maps-mapview-displays-grid-not-map Sep 18 08:10:20 You just said you can't get the size there.. So there's not really anything you can do Sep 18 08:10:43 yep, but I don't know what I can do :P Sep 18 08:10:45 :( Sep 18 08:11:00 I have no experience in this situation Sep 18 08:11:49 Find out if there's some onLayout callback you can use.. Or make your own Sep 18 08:12:00 ok Sep 18 08:14:30 anyone..? Sep 18 08:24:50 :C Sep 18 08:25:16 What can I do to secure my WebView after enabling JavaScript? Sep 18 08:25:20 my app crashes on the progressdialog, any clues? http://pastebin.com/WTFUThE4 Sep 18 08:25:35 i'm thinking i'm doing something wrong with the context. Sep 18 08:26:53 maybe try this.CO (I don't know why, but that's how it was written in the example i based my code off of) Sep 18 08:27:28 i changed from getApplicationContext(); to MainActivity.this Sep 18 08:28:25 iSeeDeadPixels, if it crashes we need the stack trace Sep 18 08:30:21 also, I see some problems with your code Sep 18 08:31:07 e.g. you possibly created a memory leak there Sep 18 08:31:30 where's the memory leak? Sep 18 08:31:39 AsyncTasks are designed to be initiated by activities or fragments, and especially, they should be created on the UI thread Sep 18 08:32:32 chups, he passes views to a new object, and we don't know from where the class is called/created/stored Sep 18 08:32:34 you need to dismiss it in your activity Sep 18 08:33:27 oh? so how does it get fixed? set null on postexecute then call GC? Sep 18 08:33:41 marcreichelt? Sep 18 08:34:37 hmm, marcreichelt, it works now. Sep 18 08:34:54 chups, normally it is good behaviour to create the task within the activity/fragment, and also to be able to cancel the asynctask if the activity is paused/destroyed Sep 18 08:36:40 if the AsyncTask in this class hangs in doInBackground, it will leak the AsyncTask, which will leak the outer class, which will leak the views, which will leak the complete activity including layout and bitmaps Sep 18 08:43:44 marcrechelt, that explains the problems of my current app right now, so i'll just hit task.cancel inside my onDestroy method then call GC? Sep 18 08:43:52 marcreichelt Sep 18 08:55:51 chups, that is definitely a good start Sep 18 08:56:21 I would even go further and cancel the task already in onPause(), since onDestroy() might never be called Sep 18 08:57:00 hmmm.. okay, thank you for the enlightenment! Sep 18 09:00:36 chups, np :) Sep 18 09:10:27 What is that little planet browser icon called? Sep 18 09:10:39 john Sep 18 09:12:06 I lol'd Sep 18 09:12:29 Tim would have been funnier. Sep 18 09:13:23 how can i add an custom icon on the right side of the status bar? Sep 18 09:14:40 SimonVT: :) Sep 18 09:15:31 bah, it's not in my icon_design folder Sep 18 09:16:30 I have an ic_launcher_browser, but I wanted that grayscale one. Sep 18 09:36:47 I need a bigger planet Sep 18 09:46:32 ok Sep 18 09:57:06 a bigger, grayer planet Sep 18 09:58:12 it's very gray here currently ;-) Sep 18 10:00:20 yeah, it's not much better here Sep 18 10:00:43 same Sep 18 10:01:08 we don't need bigger planet, we need a smarter planet :) Sep 18 10:01:24 are you guys seeing grey because you're depressed or colorblind :P Sep 18 10:01:47 gray or grey? :p Sep 18 10:01:50 adq: my planet is badly aliased due to it's size and scaling. I need a bigger planet Sep 18 10:01:56 d Sep 18 10:02:33 Yghmmm Do Ya hear me, cause I've just registered my nicname but did not get any response from console ? Sep 18 10:03:00 what is he talking about? Sep 18 10:03:18 Ok I can post Sep 18 10:04:48 hey look! there is that back arrow I was looking for the other day ic_ab_back_holo_light.png Sep 18 10:04:53 voytech85, they are trouble about nickserv recently Sep 18 10:05:06 about nothing, nothing important at all, That can be considered as some kind of invitation after successfull nickname regitration Sep 18 10:09:26 hmmm Sep 18 10:09:30 this is pretty interesting http://androidniceties.tumblr.com/ … but they are pretty inconsistent Sep 18 10:10:03 now that i rooted my device i wonder if i can install ssh and login as root to access the /data dir via sshfs from my development pc... Sep 18 10:10:06 any idead? ;) Sep 18 10:10:58 technically you can Sep 18 10:11:17 login as root is BAAAADDD for ssh Sep 18 10:11:29 having a root dir in /data is useless without being root Sep 18 10:11:32 :) Sep 18 10:11:32 you're screwed :) Sep 18 10:11:40 this isn't #android-root Sep 18 10:12:04 it's a f*ckin development-phone i dont think its to bad to log in as root on such a device ;) Sep 18 10:12:51 g00s: you mean.. like websites? :P Sep 18 10:16:45 Have anyone used a camera api ? and have anyone problems with using camera on different android devices ? I'm trying to make a program which periodically captures images, but the program seems to be working on some devices, on some it just crashes (for example it hangs on during capture - even no logs are produced then.). I know theay are some strange requirements like a camera preview Sep 18 10:16:45 which must be displayed in activity (I'm following all those requirements - I'm capturing images after preview has been started, I'm starting a preview after image has been taken (because when I take image, preview is stopped, I;m not taking pictures in separate thread - just using handlers and runnables to accomplish it in the main application thread. But still some devices just cannot Sep 18 10:16:45 take a simple picture - (problems occurs on: HTC evo 3d, HTC desire, HTC desire HD - and who knows where else) Sep 18 10:16:50 HDroid: dunno; android has design guidelines :P Sep 18 10:19:35 There must be a common solution that works on any phone ? Am I right Sep 18 10:33:48 Will this work? stopService(new Intent(this, InputMethodService.class)); Sep 18 11:04:34 what is the best charting library to use for in the application for android ? Sep 18 11:13:29 how to remove the gallery app in the emulator , any ideas ? Sep 18 11:15:59 I need the list of phones vs supported API Sep 18 11:16:13 where can I find such table? Sep 18 11:17:13 That'd be a pretty big list Sep 18 11:52:11 hi Sep 18 11:52:34 hi Sep 18 11:58:34 i want to get location of all my facebook friends.. will that be possible Sep 18 11:59:09 hey. Sep 18 11:59:21 vaibhav48: send them an email asking them where they are Sep 18 11:59:24 hehe Sep 18 11:59:25 vaibhav48, i think you have to use the facebook api Sep 18 11:59:55 i was betting on the twitter api Sep 18 12:00:01 i guess i was wrong Sep 18 12:00:32 facebook api is not providing with location Sep 18 12:03:47 I have a touch event. there is a view having a set of words as images that I have to move them onTouchEvent. now what i have is that an image can get out of the borders of the view. and I want to disable this. at least force a repositioning of the image. so what is the best way to do the repostioning? Sep 18 12:04:06 what methods i should use as long as the touch is on Sep 18 12:04:08 ?? Sep 18 12:04:22 vaibhav48: are you kidding ? https://developers.facebook.com/docs/reference/api/ Sep 18 12:04:27 search for location Sep 18 12:24:31 If I want to see subscriptions in my app do I need to go with the API Google is providing or can I roll my own payment system? Sep 18 12:24:35 *see = use Sep 18 12:25:13 I want to do in app payments and subscriptions Sep 18 12:25:26 Is it required by some policy that I give Google some money? Sep 18 12:27:53 hello to all Sep 18 12:28:21 i need little help about eclips configuration Sep 18 12:28:26 for android ndk Sep 18 12:29:01 There is no one here. 656 idle users. Sep 18 12:29:24 BadDesign: or they don't know answer to your question Sep 18 12:29:40 :D Sep 18 12:29:42 BadDesign: Pretty sure you have to give google your money Sep 18 12:29:55 but how will they know Sep 18 12:30:09 pls if somebody is configurated eclips for nativ projects pls msg me :) Sep 18 12:30:28 Should be in the terms Sep 18 12:30:35 eh Sep 18 12:30:47 What if I roll my own market? Sep 18 12:31:04 or don't use Google Play Sep 18 12:31:12 Then you can do whatever you want Sep 18 12:31:14 hmmm Sep 18 12:31:24 arnt the contacts stored in a sqlite db, too? Sep 18 12:32:45 yep Sep 18 12:33:58 cool Sep 18 12:34:22 do you know where the files are? couldnt find them in /data/data/com.android.contacts Sep 18 12:34:55 they are hidden from third-party apps Sep 18 12:35:05 if you want to handle contacts, you use the contentprovider Sep 18 12:35:12 i know that Sep 18 12:35:26 but i thought when i rooted the devices i should be able to acces them Sep 18 12:35:57 There's a database somewhere Sep 18 12:36:01 Just gotta find it Sep 18 12:36:30 you're going in the wrong direction Sep 18 12:36:56 ah its com.android.providers.contacts not just com.android.contacts ;-) Sep 18 12:37:20 Leeds: so you know what i am trying to do? Sep 18 12:37:31 no, but I know it's the wrong thing Sep 18 12:37:31 im pretty much sure you arnt... Sep 18 12:37:42 how could you know that? Sep 18 12:38:00 if you're trying to touch the contacts db from an app, you're doing the wrong thing Sep 18 12:38:19 well... i'm not trying this Sep 18 12:39:30 really... Sep 18 12:40:25 as long as you dont say now "but you are using an ssh server app to access the phone. hence you are touching contacts with an app": yes, really Sep 18 12:41:20 well, no - then you're not doing anything with an app at all Sep 18 12:41:29 never put crash reporting code into your OSS app. it will be ripped by chinese or korean developers and you get spammed with their incompetence... "android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?" Sep 18 12:43:05 Leeds: to bring some light in the dark: i just want to debug my own databases and watch the changes i do (via the ContentProvider) on the contacts -- just debugging, not more :) Sep 18 12:50:47 Has anyone used getAuthToken method from the AccountManager class for making signed OAuth requests to Twitter or Facebook? http://goo.gl/OxOnK Sep 18 12:58:48 I'm interested to know if I can use the Twitter or Facebook accounts the user has stored in the Accounts section on the Settings of the phone for making authorized requests? Sep 18 13:02:39 BadDesign: only if the authenticator service provides its own API to do so, afaik Sep 18 13:04:58 hi. how can I disable the running of xml in eclipse in an android project? Sep 18 13:05:12 or any android project? Sep 18 13:05:24 Somewhere in run configuration I believe Sep 18 13:05:50 ok Sep 18 13:06:34 what do you mean disable the running of xml? Sep 18 13:06:54 SimonVT, cos I always have to delete the *.out.xml when i run while the xml tab is focused and not a java file Sep 18 13:07:01 just don't be inside the XML page when you click that Run button in Eclipse Juno Sep 18 13:07:23 Sicp, it's annoying mate! Sep 18 13:07:23 be in somewhere that is runnable, or click the drop-down arrow and choose the project from the list and not the .xml file Sep 18 13:07:26 I know Sep 18 13:07:46 there is a purpose to it though; one that I am not aware of as of yet Sep 18 13:08:08 i am about to go disbeliever cos of it! darn't Sep 18 13:08:19 :) Sep 18 13:09:25 Sicp, so you mean there's no way i can fix it? Sep 18 13:09:48 it isn't an error Sep 18 13:09:54 you just have to get used to it Sep 18 13:10:11 always go for the dropdown arrow and choose your project and not something else Sep 18 13:10:14 pls Anyone who knows how to use camera the right way, who deployed app and it has worked for others :( Sep 18 13:10:35 I think this feature is used to avoid the need to go to another project and then setting as Main (like in Netbeans) and THEN clicking RUN Sep 18 13:10:42 You can "fix it" Sep 18 13:10:46 you just go to the dropdown arrow and choose ANY project Sep 18 13:10:53 As I said, run configuration or something Sep 18 13:11:25 yea sorry, SimonVT would know more about that honestly, but this is just my experience with it Sep 18 13:12:34 I haven't used eclipse in a long time, so I don't remember what it is you have to do Sep 18 13:13:29 anybody familiar with BUMP sdk? Sep 18 13:15:02 superlinux-hp: yeah, that's super annoying Sep 18 13:15:27 can i post a link to a SO question please maybe somebody knows the answer? Sep 18 13:15:34 sure. Sep 18 13:15:42 http://stackoverflow.com/questions/12477790/bu-mp-sdk-send-message-to-channel-user Sep 18 13:15:42 no guarantee that you'll get an answer, though. Sep 18 13:15:48 thanks . and yes.. ofc.. i know Sep 18 13:15:52 I've never used the bump sdk, for example Sep 18 13:16:19 bump is great.. i just wish their new v3 api docs wouldnt be so vague.. or at least finding some examples... Sep 18 13:16:32 i am still an android newb Sep 18 13:47:46 hi, does someone know if it's possible to do this: http://developer.android.com/guide/topics/search/adding-custom-suggestions.html but with dynamically generated suggestions? I currently do that already but using an autocomplete edittext with a filter object ( for example people use that when the suggestions com from the internet & such ) Sep 18 13:52:43 anyone? Sep 18 13:59:40 It looks like you could create a custom ContentProvider to get its data from anywhere. Sep 18 14:00:07 (but I'm speaking from ignorance here, so hopefully someone will have a better answer) Sep 18 14:00:46 xalbo, I should have done before ( I did but not long enough ): http://stackoverflow.com/questions/4264589/search-suggestions-from-network-resource-into-quick-search-box Sep 18 14:01:15 wow I can't believe I got autocomplete on edittext finally working ! I must be the millionth lucky monkey Sep 18 14:01:29 shmooz: blog it! Sep 18 14:02:28 I modified the LazyList custom List/Adapter example from stackoverflow to have a custom EditText with custom AutoComplete Sep 18 14:03:57 if I can rename some variables to be more generic and clean it up a bit, I might blog it, but I know almost nothing about android programming, just got really lucky lol Sep 18 14:04:32 its only my second week trying to learn android programming Sep 18 14:07:22 its not really autocomplete, it auto sorts the LazyList as the person types with matching values Sep 18 14:36:12 hi! how can i get the application's home directory from a child thread? Sep 18 14:37:00 what? Sep 18 14:37:03 home directory? Sep 18 14:37:05 opariti: Context#getFilesDir() is probably what you want Sep 18 14:37:21 oh i thought you said set Sep 18 14:37:39 just write to the sd card, all the big name apps do it Sep 18 14:37:43 haha Sep 18 14:37:49 be sure to hardcode /mnt/sdcard, too Sep 18 14:37:54 lol Sep 18 14:39:41 evancharlton: I don't have the getFilesDir() in the Context memebers list (?) Sep 18 14:40:30 evancharlton: I am in a child thread created by the main activity of the app Sep 18 14:41:28 https://developer.android.com/reference/android/content/Context.html#getFilesDir() Sep 18 14:41:31 It's right there Sep 18 14:43:56 SimonVT: the method is not recognized because the thread is defines as class ComputeThread extends Thread Sep 18 14:44:26 opariti: you'll have to pass it into your thread. Sep 18 14:44:28 Yeah? Thread is not a Context Sep 18 14:45:29 evancharlton: yes, that works. but there is no possibility to capture it from the thread? Sep 18 14:45:35 Context context = new Context(); Sep 18 14:45:43 opariti: no you need a Context Sep 18 14:45:47 context has all the shit in android Sep 18 14:45:52 without context you dont have an android app Sep 18 14:45:58 some or none of this may be the truth Sep 18 14:47:53 mikedg_: ok it is a step formward, because I can now use the method. but this line doesn't work: Context context = new Context(); Why? Sep 18 14:47:54 Hi there. My app has two EditTexts above each other (next to each other in landscape). However, if the screen gets too small, the usability of the EditTexts is just crap. What I want to do is to distribute the two EditTexts to two different activities. But only on small screens. Is that possible? Sep 18 14:48:55 He was joking, opariti Sep 18 14:48:57 yezariael: that sounds like a job for fragments, tbh Sep 18 14:49:59 SomonVT: he is right about context, but how can I instantiate it from a child thread? Sep 18 14:50:00 opariti: don't do that ಠ_ಠ Sep 18 14:50:10 opariti: make your child thread take in the path Sep 18 14:50:37 evancharlton: is this the only way? if so, that's ok Sep 18 14:50:47 You can pass a context or you can pass the return value from getFilesDir Sep 18 14:51:11 opariti: pass in the path Sep 18 14:51:57 evancharlton: yes, that works Sep 18 14:52:05 ankhwatcher: indeed. thanks. Sep 18 14:52:13 evancharlton: thanks guys Sep 18 14:56:05 how do you fill an sqllite file on your PC? Sep 18 14:56:23 that's for android use later? Sep 18 14:56:33 I am on Linux by theway Sep 18 14:57:18 superlinux-hp: use a bunch of insert statements after a create table or two Sep 18 14:57:56 in earlier days one could filter the api docs for a specific api level. was this feature removed or am i just too stupid to find it? Sep 18 14:58:03 sampullman, and wahta bout if I am going to fill it with arabic words? Sep 18 14:59:01 ah sweet. too stupid i am. thanks Sep 18 14:59:09 superlinux-hp: use the necessary encoding http://www.sqlite.org/pragma.html#pragma_encoding Sep 18 14:59:26 ah ok Sep 18 15:12:53 My tablet update today to 4.0.4 and instanly my application crashes on load. It still works on 2.3.4. Anyone know what may of changed? It looks like it crashes in nativeLoad Sep 18 15:13:44 using -no-skin with my 480x800 AVD produces an emulator window 320x480 with very odd look, is it due to wrong dpi setting since there's no skin loaded? Sep 18 15:13:59 I'm talking about the emulator, updated SDK Sep 18 15:14:11 host is OS X Sep 18 15:41:41 does make sense that syncronized(this) here http://ideone.com/eC4V8 ? Sep 18 15:42:30 anyone here? Sep 18 15:42:56 tom_mai78101: around 650 people here Sep 18 15:43:27 rendar: I don't know, does it? Sep 18 15:43:41 Ok, I see it as working. I have happened to come across a vague SoundPool documentation in the Android Reference page. The vague description is in the "load(String path, int priority)" Sep 18 15:43:49 will anyone else be touching the variables in this critical section? Sep 18 15:44:30 Does anyone know where I might find the implementation of the Rotation Vector sensor? The vendor is google - are those open sourced? Sep 18 15:44:44 What kind of vague do you ask? As vague as it could gets. The "path" variable only states it as the path to the file. What does the "path" look like? In what syntax should a developer use to type the "path"? Sep 18 15:46:10 I guess my message had been drowned out by the many login and logout messages in the Node. :( Sep 18 15:46:27 I'm tell you, SoundPool.load(String, int) is not properly documented. Sep 18 15:48:16 does android.intent.category.LAUNCHER imply .DEFAULT ? Sep 18 15:48:30 in which you do not need to specify category to start the activity Sep 18 15:49:28 hello Sep 18 15:49:32 . Just a guy along with others asking questions. Soundpool.load(String, int), what is String? Sep 18 15:49:49 who wants to help a noob with a android app? Sep 18 15:50:19 droidguy: please just ask your question Sep 18 15:50:40 tom_mai78101: http://developer.android.com/reference/android/media/SoundPool.html#load(java.lang.String, int) Sep 18 15:50:44 anddam: no, android.intent.category.LAUNCHER implies android.intent.category.LAUNCHER Sep 18 15:51:20 evancharlton: pretty tautological but I see the point Sep 18 15:54:45 romainguy_, do you know any reason why (future) SDK Tools should not be able to inherit the 'assets' folder when using library projects? Sep 18 15:55:56 How does one create a String that can be used with Soundpool.load(String, int)? Sep 18 15:56:12 tom_mai78101: look at the source for Soundpool or something Sep 18 15:58:10 tom_mai78101: are you asking about this? https://developer.android.com/reference/android/media/SoundPool.html#load(java.lang.String, int) Sep 18 15:59:05 'coz that seems pretty simple to me... Sep 18 16:01:28 hi everybody... I've just created a new Android project in eclipse with the default two-pane setup. I then added the support-v4 library, set minSDK to 4 but it now crashes at runtime on a 2.3 device, but it works on a 4.1.1 device. The error seems to have something to do with the ListAdapter. Does anybody have an idea what might be wrong there? Sep 18 16:01:42 hey Sep 18 16:01:57 Your stacktrace should tell you what's wrong Sep 18 16:02:01 anyone uses phonegap for developing android app? i want to know if it is good? Sep 18 16:02:10 evident: the support library doesn't magically provide every newer api call Sep 18 16:02:24 evident: you have to call the support library's classes to get support for newer code on older devices Sep 18 16:03:46 tom_mai78101: ? Sep 18 16:04:18 To Leeds, yes. I was just looking at the link. Sep 18 16:04:27 well I imported the Fragment and ListFragment stuff with "import android.support.v4.app.ListFragment;"... don't know if there is any other package I need to get from the support library Sep 18 16:04:32 I'm tell you, SoundPool.load(String, int) is not properly documented. Sep 18 16:04:34 tom_mai78101: so is that it or not? Sep 18 16:04:35 i'm telling you, it's enough Sep 18 16:04:52 paths are hard Sep 18 16:04:58 It isn't enough. There should be an example of what "path" should be. Sep 18 16:05:03 omg Sep 18 16:05:13 "the path to the audio file" Sep 18 16:05:16 you don't need example for that Sep 18 16:05:38 maybe you have trouble finding the "good path" where you stored your audio Sep 18 16:05:43 Anyone? Sep 18 16:05:45 do you know what "path" means? Sep 18 16:05:46 but that's another story, and it's not related to soundpool Sep 18 16:05:59 or maybe it's "audio file" which is confusing? Sep 18 16:06:21 Yes. path is the file directory to a file. No, because I have seen countless "path" being NOT /mnt/sdcard/ Sep 18 16:06:30 voila! Sep 18 16:06:39 I want to knw if there is any other better dev app then phonegap Sep 18 16:06:59 never used it Xtreme666, so IDK Sep 18 16:07:00 Xtreme666: It's better to actually make apps, than just wrapping a webpage Sep 18 16:07:02 There are some "path" I just couldn't figure out. For example, in Wii, the path to an sd card would be /sda5/sdcard Sep 18 16:07:27 Thus, the Android documentation should post at least 1 example of what "path" should look like. Sep 18 16:07:43 You need to use the helper methods for getting the path to whatever data directory you're using Sep 18 16:07:47 is "mimeType:name" at http://developer.android.com/reference/android/content/Intent.html# a typo for "android:mimeType" ? Sep 18 16:07:48 SimonVT need a cross platform for work.. Sep 18 16:07:57 But phonegap sucks bad Sep 18 16:08:42 SimonVT: Does the helper methods help create the correct starting "path" syntax? Sep 18 16:09:24 anddam, looks like Sep 18 16:09:29 Xtreme666: didn't google just release something that ports android code -> iOS? Sep 18 16:09:35 http://developer.android.com/guide/topics/data/data-storage.html#filesInternal that + external tells you what methods to you Sep 18 16:09:36 tom_mai78101: I think the android docs assume you have a minimal knowledge of... minimal stuff Sep 18 16:10:08 Isn't phonegap for all platforms? Sep 18 16:10:22 define all? :) Sep 18 16:10:25 adq: thanks, it seemed but I wasn't sure. Will add it to a ticket already present for the same page Sep 18 16:10:31 isn't phonegap a html5 wrapper, mainly? Sep 18 16:10:42 Leeds yes. Sep 18 16:11:10 Well, office requirement. What can I do? :( Sep 18 16:11:39 Honestly I just wanted to check if file exists in phonegap, and it made me cry :( Sep 18 16:12:08 Leeds: Should that paragraph of yours be placed in the disclaimer? Sep 18 16:12:09 adq: thanks, it seemed but I wasn't sure. Will add it to a ticket already present for the same page <- if you're not sure, you can still say there is inconsistency about the line you pointed, between the paragraph and the paragraph below Sep 18 16:12:11 phonegap makes users cry as well Sep 18 16:12:19 tom_mai78101: it's implied Sep 18 16:12:24 Leeds: Just in the Android Ref... Sep 18 16:12:28 oh Sep 18 16:12:40 I'm not good at implications, then. Sep 18 16:12:49 SimonVT is there any other html5 wrappers? Sep 18 16:13:00 s/phonegap/html5 wrappers/ Sep 18 16:13:11 tom_mai78101, you cannot come and say documentation are not well written because you lack of whatever Sep 18 16:13:51 it's okay :-) Sep 18 16:13:52 adq: since I'm learning now I preferred asking here for confirmation, anyway I had already read intent-filter guide page without finding a mention of mimetype:name Sep 18 16:14:01 Xtreme: I have nothing useful to contribute, I just don't like these cross platform tools :p Sep 18 16:14:05 part of learning java (or any language) is learning also how to grok the documentation for said language Sep 18 16:14:27 @everyone Sep 18 16:14:32 adq: indeed it was inconsistent with everything else Sep 18 16:14:34 My job is done. Logging out. Sep 18 16:14:46 he logged us or what oO Sep 18 16:14:56 I'm loggin out this freeNode. :/ Sep 18 16:15:10 As in, leaving... Sep 18 16:15:17 bye then Sep 18 16:15:31 See? Now implications are hard to understand at first. :/ Bye everyone! Sep 18 16:15:40 oO Sep 18 16:15:46 life is hard for him i think Sep 18 16:17:11 lov: did you write anything in the last minutes? After your first answer my irc seems to have crashed... Sep 18 16:17:40 evident: probably it was due to tom_mai's logger Sep 18 16:17:51 This is my last project if phonegap that's for sure Sep 18 16:18:07 And there is no proper support for it Sep 18 16:18:32 lov: anyway I just figured out the problem... in the setListAdapter() method I had changed "R.layout.simple_list_item_activated_1" to "android.R.layout.simple_list_item_1" and then it worked... but I don't understand why Sep 18 16:18:45 anddam: what's a "logger"? Sep 18 16:19:07 A lumberjack Sep 18 16:19:17 it's okay Sep 18 16:19:34 good one Sep 18 16:19:52 it sleeps all night and it works all day. Sep 18 16:21:36 evident: coz R.layout refers to layouts you made, andorid.R.layout refers to layouts provided by the sdk Sep 18 16:22:14 s/sdk/platform/ Sep 18 16:26:57 http://developer.android.com/guide/practices/tablets-and-handsets.html on this page in the example they use intent.putExtra("position", position). Is it correct that one can access the value of position in the new Intent? If yes, how? I get the 'cannot find symbol' error when trying to directly access it in the new intent's onCreate(). Sep 18 16:27:17 f2prateek: ahh ok that makes sense... weird that it's not created correctly when the project is created... and weird that it at first seems to find the resource... becuase it's not complaining on my nexus7... but well... first step is made... :) Sep 18 16:27:25 thanks for the help and the explanation! Sep 18 16:28:34 ugh, power needs to be shut off at home, and I work from home :( Sep 18 16:28:41 (power is currently off :-/) Sep 18 16:28:49 How do I handle two static libraries one for each archetecture in when including into a project Sep 18 16:28:56 Laptop and tethering? :p Sep 18 16:29:01 SimonVT, precisely Sep 18 16:29:15 getting decent speeds tethering, though, ~650KB/s Sep 18 16:29:25 (updating sdk on laptop) Sep 18 16:29:39 guys there are rather few radio apps which lets you save music you are listening to is there any legal or technical reason for that? Sep 18 16:29:49 yezariael: In the new intent you do getIntent() to get the intent Sep 18 16:29:53 power's gonna be out for another 6.5hrs, don't think my laptop's gonna last that long, even though it's supposed to last ~10hrs Sep 18 16:30:06 Then either getExtras() to get the bundle, or getIntExtra to get the value Sep 18 16:30:39 (called on the intent) Sep 18 16:30:47 yezariael: Bundle bundle = intent.getExtras(); int x = bundle.getInt("position"); Sep 18 16:31:24 yezariael: check out http://developer.android.com/reference/android/os/Bundle.html for other methods besides getInt() Sep 18 16:31:49 What would be the proper way to put a button after a listview Sep 18 16:33:06 Also whats wrong with eclipse, I am clicking in my code and its randomly changing the lines to random stuff... -.- Sep 18 16:34:50 Anyone dealt with the fund open sensing framework? Sep 18 16:35:09 anybody here used BUMP sdk? Sep 18 16:35:39 tnzr, SimonVT: thanks a ton! at least it compiled, let's see if it works.... Sep 18 16:37:35 When I build libcurl I get two libcurl.a one in a armabi and one in an armeabi-7a folder. How do I use these in my application so it uses both libraries as needed. Sep 18 16:37:46 Guys what wrong with my eclipse Sep 18 16:37:57 I am in my xml editor trying to change my code and stuff is randomly being placed Sep 18 16:38:01 Random lines of code, pissing me off Sep 18 16:38:12 Also whats wrong with eclipse, I am clicking in my code and its randomly changing the lines to random stuff... -.- <<< i have this problem with xml Sep 18 16:38:25 somtimes it occurs, most of the time because of comments Sep 18 16:38:27 but it's not normal! Sep 18 16:38:29 Snwspeckle: It's a problem with the XML editor, it's probably pasting the line in the file you copied from. Sep 18 16:38:37 adq: I have restarted eclipse like 6 times... Sep 18 16:38:56 you just have to close and open the file normally to pseudo-fix it :p not quitting eclipse Sep 18 16:39:00 Its pissing me off and making it not possible to developed Sep 18 16:39:02 snwspeckle. I had that problem. It went away with the proper order re-installation of the newest eclipse-adt and ndk Sep 18 16:39:07 Snwspeckle: Try pasting from foo.xml to bar.java then to baz.xml Sep 18 16:39:12 yeah best advice from jshanab Sep 18 16:39:17 update your stuff Sep 18 16:39:21 ok Sep 18 16:39:23 it happens really rarely now Sep 18 16:39:25 (at least for me) Sep 18 16:39:37 Also whats the best way to place a button below a listview? Sep 18 16:39:46 listview footer? Sep 18 16:39:57 (you can have header and footer with listview) Sep 18 16:40:30 so you avoid using a vertical linearlayout containing listview + button or a relative one Sep 18 16:40:36 I am just trying to add it statically though in my xml file Sep 18 16:40:39 and it fits the screen, no pb with scroll Sep 18 16:40:53 I am just making a quick app, nothing that needs to be proffesional Sep 18 16:40:57 Snwspeckle, from the xml i think you cannot add a header/footer Sep 18 16:41:05 so you have to deal with layouts & placements Sep 18 16:41:09 Cant I add the button below the list? Sep 18 16:41:19 of course you can. Sep 18 16:41:29 by doing what i said you can avoid: so you avoid using a vertical linearlayout containing listview + button or a relative one Sep 18 16:41:43 OK Sep 18 16:41:56 anyone here ever used contentresolver to query emails via your contacts? I am having trouble filtering the data Sep 18 16:42:41 manifest filter question - can you explicitly declare devices with front-facing camera's only aren't supported? i see the uses-feature for camera.front but not camera.back Sep 18 16:42:53 how to run this iosched on emulator Sep 18 16:42:59 its looking for google account Sep 18 16:42:59 ? Sep 18 16:44:13 guys can someone suggest me something else like phonegap? Sep 18 16:44:43 hi there Sep 18 16:44:46 Xtreme: native Java development Sep 18 16:44:51 adq: Also I am using MotoDev, could that be my problem? Sep 18 16:45:03 Leeds, no, need a html5 wrapper Sep 18 16:45:13 ah, you want your Sep 18 16:45:18 'app' to be mediocre? Sep 18 16:45:29 im new to android development. tried running the "EffectiveNavigation" sample from developer.android.com and its full of errors Sep 18 16:45:39 im using eclipse Sep 18 16:45:53 anyone had the same problem? Sep 18 16:46:16 hey. i have this music streaming app that worked fine on my previous phone (2.3) and works fine on my tablet (ics), but stops streaming with the new phone (LG-E510, 4.0.3) when the screen shuts down Sep 18 16:46:26 guys ? Sep 18 16:46:44 any leads, or would I've to dig in source :( Sep 18 16:46:50 so far i've tried these: ((WifiManager) getSystemService(Context.WIFI_SERVICE)) .createWifiLock(WifiManager.WIFI_MODE_FULL, "mylock").acquire() ; and Settings.System.putInt(getContentResolver(), Settings.System.WIFI_SLEEP_POLICY, Settings.System.WIFI_SLEEP_POLICY_NEVER); Sep 18 16:47:02 and i have enough permissions for both Sep 18 16:47:22 nb: i have no idea what i'm doing, just got started with android Sep 18 16:47:27 Probably have to acquire a wakelock Sep 18 16:47:41 arf, forgot one line Sep 18 16:47:59 mp = MediaPlayer.create(this, uri); mp.setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK); Sep 18 16:48:03 isn't this enough? Sep 18 16:48:49 (LG-E610 sorry, not E510) Sep 18 16:50:57 oh, and other apps such as tunein manage to stream while the screen is closed just fine Sep 18 16:51:08 fieldlist.xml: Circular dependencies cannot exist in RelativeLayout -- Anyone help? Sep 18 16:51:38 Don't have circular dependencies Sep 18 16:52:13 Weird, I am trying to set a button below a listview by putting listview above the button Sep 18 16:53:40 hmm, how do I get proguard to keep annotated methods... Sep 18 16:53:57 Leeds, actually thats office requirement. Sep 18 16:54:22 so i cant do anything else.. best i can is get my ass away from phonegap to other html5 wrapper. Sep 18 16:54:32 but cant get away from html5 Sep 18 16:58:37 Xtreme try appcelerator... ? Sep 18 16:58:52 Azra-el, looking into it Sep 18 16:59:25 we've switched to it from sencha touch/phonegap and until now it's kinda awesome but it depends a lot on the heaviness of your app Sep 18 17:00:42 tried appcelerator and didnt have cool results at all Sep 18 17:01:28 hello. just started android dev. getting: 'intent' cannot be resolved to a type. im guessing i have to import something? :> Sep 18 17:01:48 ctrl + shift + O? Sep 18 17:01:51 Yeah, you have to import intent Sep 18 17:02:04 java101 Sep 18 17:02:07 cmd if your on a mac Sep 18 17:02:38 god still getting the random code in my xml editor -.- Sep 18 17:02:39 KBZoiD: how did you do that Sep 18 17:02:50 mmm... random cod Sep 18 17:03:04 Emil_: just started Android, or just started Java? Sep 18 17:03:39 both :) have a book though, and know c# so i just jumped on the train :) Sep 18 17:03:54 what does ctrl+shift+o do? Sep 18 17:04:41 Emil_, import the needed modules Sep 18 17:05:00 hah. thats clever. Sep 18 17:06:04 c-s-o is organize imports Sep 18 17:06:10 and automatically import needed packages Sep 18 17:06:17 c-s-m is import necessary package Sep 18 17:06:35 anybody here used bump sdk at all ? Sep 18 17:06:53 ndef > bump :) Sep 18 17:07:48 'cept very few phones suppoort ndef Sep 18 17:07:56 Emil_: sorry i was reading Sep 18 17:08:01 its called magic Sep 18 17:08:03 hahaa Sep 18 17:08:05 :P Sep 18 17:08:09 do all of the sgs2 have nfc? or was it just nexus s? Sep 18 17:08:14 but bump is pretty unreliable Sep 18 17:08:19 one more thing. i have set the theme for my main activity to translucent, no titlebar. however, it does not become translucent and it still has a titlebar. what am i missing? Sep 18 17:08:28 pfn: only some S2 do, I think Sep 18 17:08:39 most sgs2's have nfc, only one i know that doesnt is the initial run on at&t Sep 18 17:08:59 Emil_, for no title bar add in the activity of your manifest: android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > Sep 18 17:09:03 that MUST work. Sep 18 17:09:08 for transparency, no clue :p Sep 18 17:09:31 bump is kidna the most universal thing. and in their app is pretty reliable Sep 18 17:09:59 heuristically speaking, bump is somewhat reliable Sep 18 17:10:11 anyhow, i have never used the sdk, i didnt even know they had one Sep 18 17:10:12 in the grand scheme of things, when devices and interactions are ubiquitous, it won't be Sep 18 17:10:27 birbeck, bump licenses their sdk for other apps to take advantage of "bumping" Sep 18 17:10:33 e.g. I think paypal has some form of bump integration Sep 18 17:10:43 ndef is free :) Sep 18 17:10:52 and not widely supported Sep 18 17:10:55 you can't ndef to iphone... Sep 18 17:11:00 not even iphone5, pos Sep 18 17:11:02 fuck the iphone Sep 18 17:11:02 but im having some problem with the sdk <---newb anybody can take a look at a SO question? Sep 18 17:11:32 Can anyone help me do some calculations for dynamically created EditText widgets? Sep 18 17:11:46 and regarding NFC .. i need a solution that works on as many smart phones as possible... not something that works on 10-20% tops Sep 18 17:12:38 can you use both? Sep 18 17:12:58 its no use to use both.. means higher production cost for terminal Sep 18 17:13:12 nfc is more reliable and on most devices sold in the last year, on almost every new phone Sep 18 17:13:19 and fyi ... http://onmirror.com/yriw5oqlvnvo/Mobile.Design.Pattern.Gallery.pdf.html Sep 18 17:13:23 your "bumping" a terminal? Sep 18 17:13:45 wrong paste Sep 18 17:13:55 and fyi by end of 2012, NFC will have ~8% penetration in US i.e. 1 in 12 phones will be a NFC enabled phone. Sep 18 17:13:58 correct paste... Sep 18 17:14:23 having a solution for 8% of the total smartphone population is bad as a business but ... meh Sep 18 17:14:40 anybody knows why am i getting this "FragmentActivity cannot be resolved to a type" and other errors when loading a project (http://developer.android.com/training/implementing-navigation/lateral.html#horizontal-paging) into eclipse? Sep 18 17:15:05 I have a custom item layout in a android:choiceMode="multipleChoice" ListView which has my custom selector set for its background. Why does android:state_checked="true" not catch anything, and every item gets he android:state_checked="false" background, regardless of the Checkbox in the item being checked or not? Sep 18 17:15:09 its odd im getting errors since im just importing the downloaded project.. :S Sep 18 17:15:14 Anyone know how I can do calculations for each EditText widgets and insert it into an array? Sep 18 17:15:44 6 of the 9 devices on my desk have nfc Sep 18 17:16:11 birbeck.. im not arguing that... but then again you can't build a business on exceptions Sep 18 17:16:28 KBZoiD: You're missing the support package, or your're building against api < 11 Sep 18 17:17:03 the 9 is counting my ipod Sep 18 17:21:01 Anyone experienced with the NDK here? I'd like to use a google-designed sensor service (which already exists on most phones but not all, unfortunately) in my app - it's available on platform_frameworks but it's in C++ – am I looking for trouble here? Sep 18 17:21:56 Someone help me with a for statement to go through all of my EditText widgets and do calculations with their data? Sep 18 17:22:47 Snwspeckle: Just ask your question, you dont have to ask to ask. Sep 18 17:23:44 Also, can I style checked items with the like making them bold, and unchecked items strike-out ? Sep 18 17:24:02 In that case, how can I go through all my dynamically created EditText widgets and get the data from their input box and do some calculations with it Sep 18 17:24:12 Obviously using a for statement to go through the widgets Sep 18 17:25:51 saik0: im building it for api 15 Sep 18 17:26:00 this is weird.. Sep 18 17:27:28 Snwspeckle: thats a little unspecific, you have some EditTexts and you want to "do math to them" Sep 18 17:28:23 So a user enters how many EditText fields they want, it goes to a new activity with them dynamically created, When a button is clicked at the end I need to loop through each widget and do some math for each widgets data Sep 18 17:29:00 anyone an idea why a phone wouldn't be able to set up a tcp connection to a server and another one can ? Sep 18 17:29:27 dzan: One is on 3g the other wifi? Sep 18 17:30:22 Snwspeckle: parse the value of each editText.getText() to a primitive or Number and do your calculations Sep 18 17:30:53 Basically how to make sure a view is floating over the softkeyboard when it appears? Sep 18 17:31:12 I use : android:windowSoftInputMode="adjustResize" Sep 18 17:33:23 I have a "done" button at the bottom of the view but I want it to float over the IME Sep 18 17:34:29 you can't draw on top of the IME Sep 18 17:34:49 set the IME hint to make the "enter" button have the "done" action Sep 18 17:35:25 so can anybody maybe help me with a bump sdk issue? :) Sep 18 17:35:44 How can I add a prefix to a string? Sep 18 17:36:20 Snwspeckle: really? Sep 18 17:36:30 String two = "prefix" + one; Sep 18 17:36:34 prefix? Sep 18 17:36:36 I mean appending with a conversion, sorry about that Sep 18 17:36:45 Snwspeckle: what? Sep 18 17:36:48 Azra-el: I don't think anyone here is familiar, but you should just ask your question in case someone recognizes a familiar aspect. Sep 18 17:36:49 Hold on, my thoughts are jumbled -.- Sep 18 17:36:55 Snwspeckle: we see that :) Sep 18 17:37:01 :D Sep 18 17:38:21 hi all Sep 18 17:38:30 has anyone made an ImageView with rounded corners? Sep 18 17:39:03 i found some samples on StackOverflow, but they don't work with all kinds of drawables Sep 18 17:39:53 ideally I'd like to be able to call super.onDraw(canvas) Sep 18 17:40:23 so all my implementation is independent of what kind of drawable is the source of iMageView Sep 18 17:40:30 MontyCarleau http://stackoverflow.com/questions/12476094/how-to-include-bump-sdk-but-have-it-start-disabled one of the questions Sep 18 17:42:41 Azra-el: Where are you defining api? Sep 18 17:43:08 Azra-el: Is this your StackOverflow question? Sep 18 17:44:20 Who can convert this from python to java, x = int('0x' + calc, 16) Sep 18 17:45:01 wow Sep 18 17:45:27 Leeds: Should I just stop? Sep 18 17:45:44 are there any good alternatives to eclipse? there are so many bugs Sep 18 17:45:50 MontyCarleau... yes... its mine. Sep 18 17:45:50 well, it would help if you knew what you were doing Sep 18 17:45:54 Emi_ IntelliJ Sep 18 17:46:02 private IBumpAPI api; Sep 18 17:46:03 Emil_: some people use intellij - but you don't have to use an IDE at all Sep 18 17:47:23 ill try intellij. think ill be better off with an ide for now. in the beginning at least :) Sep 18 17:47:45 Azra-el: Are you using Eclipse? Sep 18 17:51:27 Snwspeckle: what code are you trying to translate, anyway? Sep 18 17:51:37 Snwspeckle: http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html#toHexString(int) Sep 18 17:51:55 I need to convert from hex to string Sep 18 17:52:12 no, I mean who's code are you reading that you're trying to bring to Android, and what does it do? Sep 18 17:52:35 not that one line of code - the big picture Sep 18 17:52:52 Its a conversion formula I am trying to revert Sep 18 17:53:19 for converting what to what? Sep 18 17:53:21 MontyCarleau, both on 3g Sep 18 17:53:27 MontyCarleau, or both on wifi Sep 18 17:53:54 dzan: Is the one that's not connecting producing an error in the logs? Sep 18 17:53:57 hex to string I believe Sep 18 17:54:29 dzan: Also, are they using different Android versions? Later OS versions refuse to do any networking on the UI thread, whereas earlier versions permit it. Sep 18 17:54:38 MontyCarleau, just throwing an exception when opening the socket Sep 18 17:55:12 dzan: What is the exception, then? Sep 18 17:55:14 MontyCarleau, it's not on the ui thread but I didn't know they didn't permit that, does that throw a special exception or something? Sep 18 17:55:47 MontyCarleau, second getting it :) Sep 18 17:55:50 Snwspeckle: you're writing an app whose entire purpose is "converting hex to string" - and you're not even sure about that? Sep 18 17:56:39 MontyCarleau, it's a timeout actually Sep 18 17:56:49 but doing it with another phone works Sep 18 17:57:01 I am just lost Sep 18 17:57:11 dzan: Go paste it on pastebin and post the url to the stack trace. Sep 18 17:57:11 lasserix, I got a bit further with the contentresolver you mentioned to use instead of contactpicker Sep 18 17:57:42 MontyCarleau, waiting for it to time out :p Sep 18 17:59:17 Can we create dynamic arrays in android? Sep 18 17:59:41 Snwspeckle: since you don't know what you're trying to achieve... you don't appear to know Java, or Python, or Android... Sep 18 17:59:49 I'm not surprised you're lost Sep 18 18:00:06 Leeds: I have the formula in python, its a matter of converting it Sep 18 18:00:34 what. are. you. trying. to. achieve? Sep 18 18:00:45 what is the one-line description of whatever you'll have when you're finished? Sep 18 18:01:55 Can I style the text color/size/bold with a selector drawable? Sep 18 18:03:19 Snwspeckle: ? Sep 18 18:03:21 Azra-el: Something isn't seeing the method you're trying to call. If Eclipse isn't seeing it, it's probably something in your build - maybe you forgot to include the jar on export, etc. Sep 18 18:03:23 just the color Sep 18 18:03:25 MontyCarleau Dunno if you solved your problem, but I found this in my intractable bookmark folder if you hadn't seen: http://www.thousand-thoughts.com/2012/03/android-sensor-fusion-tutorial/comment-page-1/ Sep 18 18:04:10 romainguy - the text color, or just the background color? Sep 18 18:04:15 hkhalid: cool, any luck getting it to do what you needed? Sep 18 18:04:16 Convert an inputed value to a string Sep 18 18:04:19 both Sep 18 18:04:24 but you cannot change the shadow for instance Sep 18 18:04:34 The inserted value is a bytecode Sep 18 18:04:51 lasserix: Hey, thanks - this is a good instructive page, except that it's all relying on the gyro (which most phones don't have). I actually managed to find the source code for the sensor I was talking about and - guess what - it's doing quite a bit of heavy lifting. It's also in C++, so I'm porting it as we speak. Sep 18 18:06:22 romainguy - I can't get it to work for the text color, only background, am I missing something big? Sep 18 18:06:29 Snwspeckle: so it's just looking up values in a table? Sep 18 18:07:02 No Sep 18 18:07:09 Snwspeckle: I get the impression that bytecode does not mean what you think it means Sep 18 18:07:34 you enter a byte value, you get a string reponse... that's a lookup Sep 18 18:07:42 its a yummy snack for java drinkers! Sep 18 18:08:29 lasserix, with this http://pastie.org/4748635 I was able to have it make a list of display names, but what I am trying to do is, Display Name - Email - checkbox, now the problem right now is figuring out how filter this. I tried a projection but it hangs when I make a filter for it and switch it out with the null value. Can you please point me in the right direction on what to do from here. Sep 18 18:08:43 Well I am having problems already trying to get the text from my dynamic EditText widgets which is a problem now... Sep 18 18:08:43 MontyCarleau, http://pastebin.com/tG5XNN7u Sep 18 18:09:26 lasserix, and right now, that code, it lists every email linked to my account, I just want the people that are in my contacts Sep 18 18:09:28 Hello people. How could I send a signal from one activity to another? signal as in a way to say to the other activity that 'something happened' ? Sep 18 18:09:43 dzan: Question 1: what OS version is each phone? Question 2: Are both phones connecting to the same server, same url, same port? Sep 18 18:10:06 Beket, you are trying to pass data from one activity to another or something else? Sep 18 18:10:40 hkhalid: sort of (but without starting the other activity) Sep 18 18:11:18 I'd like to signal the occurence of an event and when the other activity resumes to be able to see that 'message' Sep 18 18:12:20 Leeds: Ok obviously I am having issues, heres my Activity: https://gist.github.com/ae1357b14a8b5cf7417d --- Basically first I need help getting the text from the EditText widget as it performs the loop Sep 18 18:12:31 Beket: broadcast receiver, static variable, service, ..... Sep 18 18:12:47 So during its first loop it goes to the 1st EditText box and gets its data and then loops and does the same Sep 18 18:12:49 Snwspeckle: you still can't answer the question - what is the purpose of your app Sep 18 18:12:56 thanks lov. I will study your suggestions Sep 18 18:13:07 To convert an int to a ASCII string Sep 18 18:13:20 so... to look up strings from a table? Sep 18 18:13:22 MontyCarleau, yes same port & such, one phone is a galaxy s3 ( 4.0.4 ) other one is a motorola droid x2 running 2.3.4 Sep 18 18:13:58 Beket: how important is the message? Do you care if it's lost if the OS kills the service? phone reboot? Sep 18 18:14:59 saik0: it is not that important that it is by all means delivered. Id' be happy if it did 99.99% of time :) Sep 18 18:15:04 dzan: And the droid is the one that's working? Sep 18 18:15:41 MontyCarleau, i'm sorry both aren't working actually the one that is working is galaxy s2 running 4.0.4 in a different location Sep 18 18:15:52 it's not a router thing since 4g doesn't work neither Sep 18 18:16:06 and the stacktrace doesn't seem like that Sep 18 18:16:45 Does anyone know of any good examples or libraries performing a dialog file chooser? Sep 18 18:17:10 Leeds: Convert from a charcode to a string Sep 18 18:17:43 dzan: Can the successful phone (the galaxy s2) connect via both wifi and 4g? Sep 18 18:18:03 MontyCarleau, doesn't have 4g... Sep 18 18:18:13 dzan: 3g, then Sep 18 18:18:15 the server is in yet another location so it's not on the same lan as the succesful phone Sep 18 18:18:16 Snwspeckle: so... you want to look up a string in a list Sep 18 18:18:25 MontyCarleau, doesn't have service at all Sep 18 18:18:43 Uhmm yea if you want to say that Sep 18 18:19:26 Well I gtg, ttyl Sep 18 18:19:36 good luck, you need it Sep 18 18:19:38 dzan: And there are no differences between the app on the S3 and the S2? Sep 18 18:19:53 MontyCarleau, exactly the same fresh git checkout Sep 18 18:21:47 dzan: so the galaxy phones are both running the same app on exactly the same OS version and one is timing out on Wifi and the other isn't? Sep 18 18:21:58 MontyCarleau, it's done from a thread on an executor is that something? Sep 18 18:22:10 MontyCarleau, yes but one is in colorado and the other one in new york Sep 18 18:22:32 but it's not a router thing because 3g doesn't work neither Sep 18 18:23:06 ugh Sep 18 18:23:11 dzan: Ignore 3G for now. Just focus on the equivalent conditions. Sep 18 18:23:20 i really hate that Google Music can't properly handle notification sounds Sep 18 18:23:35 dzan: Have you tried connecting to your server via Python or just a command line tool, like curl? Sep 18 18:23:50 MontyCarleau, yes works from the same location in a regular java app Sep 18 18:24:31 MontyCarleau, I tried adb shell and pinging, doesn't work Sep 18 18:24:38 dzan: "same location" - it would help if you could be more specific. Sep 18 18:24:42 mm, just out of curiosity, can I attach data (like a string) inside the intent when I'm broadcasting ? Sep 18 18:25:08 MontyCarleau, 2 location: A & B in A there is the droid and the s3 in B there is the s2 Sep 18 18:25:14 works in B for the s2 Sep 18 18:25:32 dzan: You are in location A? Sep 18 18:25:35 in A connecting to the server using the same code from a regular java app works on a computer Sep 18 18:25:39 i'm in B Sep 18 18:25:59 Is there a way you can curl from location A to test? Sep 18 18:26:20 MontyCarleau, that's what the java app does right? that's in A and it works Sep 18 18:26:34 setting up a connection to the server from A on a computer with about the same code Sep 18 18:26:49 MontyCarleau, on A using adb shell and pinging the server doesn't work Sep 18 18:26:51 dzan: I don't know what you mean - should I know what your java app does? Sep 18 18:27:05 it does the same thing, connecting to the server, tcp Sep 18 18:27:07 same as phone Sep 18 18:27:15 just opening up the socket, read, write Sep 18 18:28:04 dzan: So, you have done the equivalent of ssh-ing into location A and connecting to the server on your strange port with curl or something similar, is that right? Sep 18 18:28:13 yes Sep 18 18:29:11 dzan: Should any location be able to access the server on that port? Sep 18 18:30:50 MontyCarleau, yes but I see that about the only thing that could be left as an issue so i'm double checking again now Sep 18 18:31:11 dzan: I can curl into 66.132.132.151, but not 66.132.132.151:50000 Sep 18 18:31:58 MontyCarleau, but the phone can't even ping it Sep 18 18:33:01 dzan: Have you tested pinging from your ssh connection? Sep 18 18:33:07 When I ping, they all timeout. Sep 18 18:33:21 MontyCarleau, yes I can ping them Sep 18 18:33:32 them? Sep 18 18:33:33 hmmz second Sep 18 18:33:38 ( servers ) Sep 18 18:33:51 There's only one server we're talking about, so far. Sep 18 18:34:12 i know :) nvm that, there are more but that's not relevant Sep 18 18:34:53 it's fixed MontyCarleau Sep 18 18:35:59 Do I have to edit my manifest file for an activity to be able to receive broadcasts ? Sep 18 18:37:30 Beket: er, no Sep 18 18:37:44 Beket: you need to edit your manifest and add a definition Sep 18 18:38:03 thanks evancharlton -- let me google that Sep 18 18:43:23 I read an example here and It seems that I need to extend BroadcastReceiver to receive the broadcast. What if the recipient is an activity and so I extend Activity as well ? Sep 18 18:45:06 Does anyone know of any good examples or libraries performing a dialog file chooser? Sep 18 18:45:50 ...send an intent to a file browser app? Sep 18 18:46:14 e.g. the way keepassdroid does it. Sep 18 18:46:24 guess it depends on what kind of file we're talking about. Sep 18 18:47:23 The children of a tabhost are supposed to be, like, the tabs, right? Sep 18 18:48:11 marcab: I did the intent way at first, however, it does require the user to have a file browser app and I dont want to have to require this Sep 18 18:48:13 Because I'm trying to add an ontouchlsitener to them and even though the tabspecs have been added to the tabhost and .setup() was called it doesn't seem to have any children Sep 18 18:48:30 Which means it doesn't add the listener to anything. Sep 18 18:48:44 I already created my own ListActivity to do the file browsing and it worked, but I didn't like the way it all looked. I started writing a dialog that does it and it seems ok so far, but ran into a few issues Sep 18 18:49:37 Was curious (from this point) if anyone had made one or looked into it (such as a library) Sep 18 18:52:25 marcab: any ideas on that part? Sep 18 18:53:13 Not particularly. Kinda neat that you're doing a native file-selector. Sep 18 18:53:42 epsilonorion: I assume it's not a known file type? e.g. images? Sep 18 18:54:25 Nah, it is. Actually .csv. My current version grabs folders and then files. Sorts folders on top, then files below by name. I then decided to push it into a dialog to make it look cleaner Sep 18 18:55:15 ah Sep 18 18:55:29 hm, how can I check whether a broadcast is sent ? any debugger ? Sep 18 18:55:38 I was only wondering, in case there was a common app for accessing that file type. Sep 18 18:56:43 no problem. I appreciate it. I am just working on making my application standalone, so I don't want to require a user to need an external app Sep 18 18:57:15 That would be the more professional way to do it, for sure. Sep 18 18:57:56 epsilonorion: Have you ever used ezPDF Reader? Sep 18 18:58:00 hello, I am trying to use LinearLayout layout = (LinearLayout)findViewById(R.id.mainLayout);  but when I try to import com.MyPackage.www it's saying package not found Sep 18 18:58:09 this is within a phonegap app, which I am writing a plugin for Sep 18 18:58:27 It also handles the 'find files on a phone' problem, but for PDFs. Sep 18 18:58:27 or sorry, it would be import com.MyPackage.www.R; Sep 18 18:58:28 oh, bummer, I can't have activity A in foreground send a broadcast and then receive it from activity B, when activity B resumes oO Sep 18 18:58:45 It approaches it differently, but maybe that would be useful. Sep 18 18:58:46 so are broadcasts only for receiving events from background services ? Sep 18 18:58:49 anyone familiar enough with findViewById? Sep 18 18:59:06 epsilonorion: there are definitely ways to spawn external file browsers but there's lots of them and I don't know if they have a standard method of launching them Sep 18 18:59:30 cbarrett1: R.java is generated when you build the project Sep 18 18:59:35 I have used ezPDF Reader. I can thnk about that. Sep 18 18:59:46 dragorn: there actually is, but that is not my actual question/problem Sep 18 19:00:05 epsilonorion: i must have mis-read Sep 18 19:00:33 saik0: so should I ignore the compilation error? Sep 18 19:01:28 I am working on creating my own browser so I don't require an exteranl file browser. I am trying to do it is a dialog and was wondering if anyone had experience Sep 18 19:01:31 cbarrett1: build the project, once R.java exists there wont be a compilation error Sep 18 19:01:51 ah, hmm I bet our build script is wiping the directory at each new build Sep 18 19:02:21 saik0: thanks, I'll check that out Sep 18 19:04:03 So I'm using http://ideone.com/f9z4E . Why is my AsyncTaskLoader's loadInBackground() method never called? Sep 18 19:07:18 Beket: activities in the background are stopped, they cant "do" anything, including recieve broadcasts thats why lov suggested using a service Sep 18 19:08:14 saik0: yeh, so I've read. I was trying the first suggestion 'broadcast receiver' :) Now I'll try the next. thanks Sep 18 19:08:58 saik0: unfortunately it doesn't seem to create R.java for me anywhere.. Sep 18 19:09:31 cbarrett1: Something is wrong. Ant, maven, or eclipse? Sep 18 19:09:48 How do add static libs for each abi to my android.mk? Sep 18 19:10:16 hrm, I think having a service just for this one is overkill. I'll resort to a static, although I don't like it. Sep 18 19:10:38 Beket: Ah, those were not three suggestions, it was a list of tools you'll need to do do what you want Sep 18 19:10:49 ah lol, haha Sep 18 19:10:53 sorry for being noob Sep 18 19:11:40 freeone3000: I'm using ant debug to build it, but this is within a phonegap application Sep 18 19:12:10 but the expectation is that it would create R.java within my package? Sep 18 19:12:34 O Sep 18 19:12:35 Beket: another approach would be to store messages in a sqlite db and use a CursorLoader to observe changes to your db Sep 18 19:13:00 I'll then just use shared preferences, since event generation + delivery will only happen rarely Sep 18 19:13:17 cbarrett1: Yes, the ant build should create your R.java file in your gen/ directory. Sep 18 19:14:23 hmmm Sep 18 19:14:54 don't have a gen/ directory. let me google this some more and get back to you Sep 18 19:18:52 Anyone here using a recent Motorola or HTC phone? Sep 18 19:19:00 define "recent" :) Sep 18 19:19:35 Mavrik: Yeah, let's say OS version 4.x Sep 18 19:20:14 used it, don't have it on hand Sep 18 19:20:20 what's your actual question? Sep 18 19:21:07 Mavrik: I'm just trying to get some numbers on whether they expose the Rotation Vector Sensor. Samsung phones seem to, but I have an instance of a Motorola that doesn't and I'm wondering (hoping) it's an aberration. Sep 18 19:23:41 Beket: sqlite would be better suited if you have an arbitrary number of messages, if you know you'll only ever have just 1 though sharedpreferences could work fine, at least it's on-disk and not in-memory Sep 18 19:25:55 Ah. Turns out I need to override onStartLoading(), even though AsyncTaskLoader implements it. Sep 18 19:31:18 guys, i heard linux got issue with asus laptop, true? Sep 18 19:32:33 >.> Sep 18 19:32:47 what verson of linux are you speaking? Sep 18 19:32:59 you realize there is many more then just one type of linux Sep 18 19:34:00 freeone3000: yeah, or you could call .forceLoad() Sep 18 19:36:19 hrnt: Which is what I'm doing in onStartLoading() (plus a few lines to cache) Sep 18 19:39:37 Is getApplicationContext() expensive? Is it better to have an m_context member variable ? Sep 18 19:42:31 Beket check out the source and see for your self. Sep 18 19:43:02 JoeTheGuest: I will if noone answers; thanks Sep 18 19:43:05 Yay, my server is behaving again Sep 18 19:43:13 I need a script to restart pgl Sep 18 19:48:00 If I have a vertical linear layout with a ListView and a Button below it, how can I have the button always stay at the bottom of the screen and the listview take the rest of the space? Sep 18 19:50:02 evident: what have you tried? Sep 18 19:51:03 evident: how about trying a RelativeLayout and have the button align to the bottom of the parent? Sep 18 19:51:45 Ankhwatcher: well if I tell the listview to have height "match_parent" hte button will disappear... if i put it to "wrap-content" the button is shown, but not at the bottom... but when I add more items to the ListView, the button disappears again... and I don't want to hardcode the height to some dp value, because this probably wont work everywhere Sep 18 19:52:53 evident: http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html#attr_android:layout_weight Sep 18 19:53:08 thank you I will have a look at that Sep 18 19:53:59 Grabbed the wrong anchor. http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html#weight Sep 18 19:55:27 does anyone have a really good tutorial on creating tabs in a non depreciated way? Sep 18 19:56:48 saik0: thank you! I put the height of the ListView to wrap_content, gave it a weight 1 and the button a weight 0... that works perfectly! :) Sep 18 19:57:16 lethjakm_: depends on what is going in the tabs Sep 18 19:57:47 if I wanted to clone this layout, http://24.media.tumblr.com/tumblr_lrc1wbly8s1r2wjwko1_1280.png how would I make the blocks clickable instead of just the graphic part in the block? Sep 18 19:58:14 I'm implementing my own AsyncTaskLoader. I've overridden loadInBackground(), but the items returned from there are not automatically delivered. What method is in charge of doing so? Sep 18 19:58:18 saik0: It's going to be displaying lists. I tried the first method on google....but the list is appearing, but appearing empty. Sep 18 19:58:56 gtfo! Sep 18 19:59:04 wrongchan Sep 18 19:59:05 how do I make my gridview fill in the available space in my layout? Sep 18 19:59:28 i have a button bar at the top made with relativelayout, and a searchbar at the bottom made with another relativelyout Sep 18 19:59:37 i'd like my gridview to fill in the space in the middle Sep 18 19:59:47 HorizonXP: layout_width="match_parent" layout_height="match_parent". Sep 18 19:59:51 currently, it's using all available height and pushing my serachbar off screen Sep 18 20:00:25 freeone3000: match_parent and wrap_content for height both exhibit the same behaviour Sep 18 20:01:14 freeone3000: so i discovered what the problem is with R.java, but now I get 'cannot find symbol' in regards to findViewById() Sep 18 20:01:22 is there something special I need to import to use it? Sep 18 20:01:36 lethjakm_: are the tabs primary navigation, if so ActionBar.Tab if it's part of a layout use a TabHost Sep 18 20:02:09 isn't tabhost depreciated? Sep 18 20:02:12 cbarrett1: You need to make sure you're using my.application.R instead of android.R. Sep 18 20:02:44 is an Android USB Host different from regular (PC) USB hosts? Sep 18 20:02:58 freeone3000: I have import com.myapp.fakeapp.R; Sep 18 20:03:04 belgianguy: On a hardware level, no. Drivers are different. Sep 18 20:03:08 and then LinearLayout layout = (LinearLayout)findViewById(R.id.mainLayout); Sep 18 20:03:25 on compile it's pointing at method findViewById(int) as missing Sep 18 20:03:27 if i want to display a canvas for a long time (e.g. 30min), might i need a wakelock? Sep 18 20:03:53 cbarrett1: What class is your Activity extending? Sep 18 20:03:54 freeone3000: ah, okay, so if I have some unsopported USB hardware, I'd have to use a custom kernel? Sep 18 20:04:14 freeone3000: this is a plugin for PhoneGap, so it's extending Plugin Sep 18 20:04:22 cbarrett1: Does Plugin extend Activity? Sep 18 20:04:30 I don't believe so Sep 18 20:04:38 Hi Sep 18 20:04:39 EPG: set android:keepScreenOn="true" on your view Sep 18 20:04:43 ohai Sep 18 20:04:45 cbarrett1: findViewById() is defined in Activity. Sep 18 20:04:54 I'm trying to install the SDK into eclipse (I've used it before, on a diff. computer now) Sep 18 20:04:57 ok, so I need a reference to Activity then Sep 18 20:05:05 It says that I don't have the android tools when I try and make a project Sep 18 20:05:06 Halp! Sep 18 20:05:35 evancharlton, thanks Sep 18 20:06:00 get the sdk, make sure you have ANDROID_HOME set and run the updater (just android binary?) to install platform-tools and tools? Sep 18 20:06:16 gutano: I'm on a mac Sep 18 20:06:20 what is ANDROID_HOME? Sep 18 20:06:31 a env variable Sep 18 20:06:36 Those are on macs? Sep 18 20:06:39 none of this is specific to win/mac/linux Sep 18 20:06:44 oh Sep 18 20:07:00 where are they? Sep 18 20:07:10 http://developer.android.com/sdk/index.html Sep 18 20:07:22 reading Sep 18 20:07:32 after download, click next, has a walkthorugh Sep 18 20:07:36 while Eclipse introduced me to the happy Android dev world Sep 18 20:07:47 I now like IntelliJ better Sep 18 20:08:04 gutano: Yeah, doesn't say anything about env. variables Sep 18 20:08:08 Looks like I did the same thing Sep 18 20:08:18 freeone3000: any other ideas? Sep 18 20:08:19 danieldaniel, click next, has a walkthrough Sep 18 20:08:23 gutano: I know Sep 18 20:08:29 apparently not Sep 18 20:08:36 oh Sep 18 20:08:38 on the bottom Sep 18 20:08:43 there was a tip about it, sorry Sep 18 20:08:55 : ) Sep 18 20:08:58 Tip: For easy access to the SDK tools from a command line, add the location of the SDK's tools/ and platform-tools to your PATH environment variable. Sep 18 20:09:01 Doesn't say where they are Sep 18 20:09:15 lethjakm_: not according to the api ref pages. TabActivity is, not TabHost and TabWidget Sep 18 20:09:16 if you are only using it form eclipse, I don't htink you need system env vars Sep 18 20:09:16 danieldaniel: Where you installed them. Sep 18 20:09:25 And you do, for ant builds. Sep 18 20:09:32 but it's good to know how to do that, google can help you there... Sep 18 20:09:41 as for eclipse, you should be able to set the android tools path in the prefs Sep 18 20:09:46 should get you going Sep 18 20:09:55 It's right Sep 18 20:10:02 oh wait Sep 18 20:10:08 SDK location or tools location? Sep 18 20:10:18 parent dir is what they want Sep 18 20:10:24 Ok, that's correct Sep 18 20:10:38 it's the right location Sep 18 20:10:41 then run the android sdk manager to donwload the modular components Sep 18 20:11:13 I'm trying to access a webservice method using ksoap, but for some reason nothing happens at all and sometimes it crashes without any errors. The app is quit small: http://pastebin.com/Qu1A9TwT any ideas? Sep 18 20:11:15 already did Sep 18 20:11:31 still getting the error? maybe check your permissions.. Sep 18 20:11:52 I have a button and a textfield, the webservice should be invoked on the button event Sep 18 20:13:25 gutano: what should they be? Sep 18 20:13:43 Im running the app from the cell, INTERNET access is set and cell is in the local network.. can't figure out the issue Sep 18 20:14:11 Daani: for one, dont do networking from the ui thread Sep 18 20:14:48 danieldaniel, for the sake of getting it working 777, I have mine at 'rwxr-xr-x 10 root wheel 340 Aug 1 13:24 android-sdk-macosx' Sep 18 20:14:58 ok Sep 18 20:15:20 saik0: I am going to put it to another thread but for now I thought it should work anyway? or? Sep 18 20:16:15 gutano: that got me something Sep 18 20:16:19 needs to be updated Sep 18 20:16:34 weird, didn't show that before Sep 18 20:16:45 Probably was the permissions then Sep 18 20:16:53 cool Sep 18 20:16:57 somethign better than nothing Sep 18 20:17:03 Thanks! Sep 18 20:17:12 np Sep 18 20:17:16 Yay, worked Sep 18 20:19:39 Is there any benefit in using DialogFragment over Dialog Sep 18 20:22:26 epsilonorion, I thought someone told me it was deprecated, but I can only find mention of Activity onCreateDialog being deprecated Sep 18 20:23:26 got it. Looking online most people seem to suggest DialogFragment. I am working on making a custom class inheriting dialog for a file chooser and wasn't sure if I should switch to DialogFragment Sep 18 20:33:05 Is there any existing 'standalone sqlite' sort of library that mimics the android sqlite/database api, but is sufficiently capable so android sqlite-specific tests can be run outside the emulator? Sep 18 20:39:55 ping romainguy Sep 18 20:42:15 kbs: You mean like… sqlite? Sep 18 20:42:46 MontyCarleau: more like sqlite with java bindings exactly identical to android.database.* Sep 18 20:42:46 kbs: Not to be a smartass or anything.... That's just called 'sqlite' and it's about as standalone as a database can get Sep 18 20:43:21 Ah, I've not been clear I think. The goal is to run android-java-based sql tests, but without needing to run it within the emulator Sep 18 20:43:53 the hope is to be able to do that by finding a (java) library that replicates the android.database.* apis, so I can pull out my android code that only uses those apis, and then test. Sep 18 20:44:35 So you're really looking for an sqlite interface/wrapper that is the same as Android's Sep 18 20:44:49 MontyCarleau: yep, that's correct. Sep 18 20:48:23 kbs: do you know roboletric? Sep 18 20:48:35 it is unit test framework which doesn't need to run within the emulator Sep 18 20:48:57 vavirta: I've heard, but not used it -- does it actually support the sqlite functionality, or does it just return no-op values if I (say) insert values into a table? Sep 18 20:49:22 no, it has sqlsupport Sep 18 20:49:55 there is few issues with it because it uses in-memory-database Sep 18 20:50:41 vavirta: ah, I see -- gotcha. Thanks, I'll take a closer look at it Sep 18 20:51:00 example: in test setup, get writable database and insert something into database -> in your code get new writable database, and it won't contain your data anymore Sep 18 20:51:39 because every call to getWritabledatabase creates (or maybe even replaces) new database Sep 18 20:51:47 aah Sep 18 20:51:49 but that should be enough to unit test database-classes Sep 18 20:52:06 right. That sounds like it might be 'good enough', thank you for the pointer Sep 18 20:52:14 I made pretty ugly workaround to fix the problem Sep 18 20:52:50 heh. I've actually made some progress towards wrapping sqlite4java with an android.database shim, but I wanted to check to see if there was a different option here. Sep 18 20:53:08 but it didn't get pulled to robolectric-project (and maybe it is just a good thing :P) Sep 18 20:53:14 :-) Sep 18 20:53:51 out of curiosity, and I ask because it looks like a fairly heavyweight bit of code -- are running tests under it reasonably fast? [compared to the emulator, I mean] Sep 18 20:55:10 yeah Sep 18 20:55:21 Robolectric runs tests with JUnit 4 Sep 18 20:55:53 they key point is that Roboletric mimics the Android platform Sep 18 20:56:54 http://pivotal.github.com/robolectric/ Sep 18 20:56:58 here is more info about it Sep 18 20:58:08 right, excellent - thanks for the info. [Oddly, at this point, I've sufficiently pulled apart my code so _not_ having the entire android framework to bootstrap the tests would be cool too.] Sep 18 21:00:06 hi Sep 18 21:00:29 http://24.media.tumblr.com/tumblr_lrc1wbly8s1r2wjwko1_1280.png if wanted to clone this, I wouldnt use buttons correct? Sep 18 21:01:34 hkhalid: You could, it'd just need a custom Style. Sep 18 21:01:54 hkhalid: I'd go the custom Style route over the custom View route, because a Style has fewer responsibilities - and if something goes wrong, your app looks stupid, but still works. Sep 18 21:02:52 hkhalid: Look into the theme attributes buttonBarStyle, buttonBarButtonStyle, and borderlessButtonStyle Sep 18 21:03:04 freeone3000, hmmm I am thinking to not use buttons at all, I cant stand this 9patch stuff, I am thinking to just put an image view an textview, but then if they dont click on the imageview or textview, it wont be clicked, unless I can make the nested layouts clickable... Sep 18 21:03:50 hkhalid: Right. Button. Sep 18 21:04:05 freeone3000, ? what do you mean Sep 18 21:04:06 hkhalid: also, compound drawables Sep 18 21:07:07 hkhalid: look at touchdelegate if you want to extend the click to outisde the element Sep 18 21:07:45 thanks f2prateek Sep 18 21:10:42 hkhalid: also i think all views are clickable, so you can make each linearlayout clickable Sep 18 21:11:01 might have to set it with android:clickable=true Sep 18 21:19:50 Hi, does anybody know if amazon android app store works the same way as google play? Sep 18 21:20:33 so I have my api and my expansion file, would amazon require different formats of files or what not? Sep 18 21:48:23 hi, I want to develop cross platform mobile application that works with android and ios. I found phonegap and I wonder Phonegap can work without browser ? Does PhoneGap compiles html5+js+css to native android application? I did not write an mobile app before.I want to make an app that work as a service on back-end on mobile and the application fetch a json object from an api and notify user if there is a new notification without user open app again.Th Sep 18 22:15:11 anyone ever use CWAC's EndlessAdapeter? Sep 18 22:15:22 do you know if I need to load the first dataset myself? Sep 18 22:17:09 mesuutt: I haven't used phonegap myself; but my understanding is that that the UI runs (in effect) as a browser window that fills the screen. In addition, you do have a bit more access to some lower-level functionality that's otherwise not available. Sep 18 22:44:33 kbs: Does phonegap works in browser,in other words if user click to a button page download from server else html pages embedden in application? I hope you understand me.I know little english :) Sep 18 22:45:25 phonegap is html5+js+css Sep 18 22:45:38 but its not remote Sep 18 22:45:54 it is embedded into the apk Sep 18 22:46:21 you can also load pages from a web server, though Sep 18 22:47:37 my experience is that phonegap is very slow for any little complex application Sep 18 22:47:59 and if you use jquery mobile, slower Sep 18 22:51:56 KBZoiD: Should I use phonegap else What can I use for write an app that works on android and ios? Sep 18 22:54:28 no one should ever use phonegap Sep 18 22:54:32 except as a punchline. Sep 18 22:54:45 evancharlton: why ? Sep 18 22:54:51 (just curious) Sep 18 22:55:44 i usually advocate for native development but i've always deal with phonegap or html advocators so, i use to collect arguments against it Sep 18 22:56:21 r0ver: it's a really great way to spend a lot of time creating terrible apps that work on a couple of platforms Sep 18 22:56:55 Should I develop app separately for android and ios ? Sep 18 22:57:29 evancharlton: so, you think working with phonegap is less productive than creating an app for android, ios and blackberry for example ? (blackberry is still used on my country) Sep 18 22:57:29 I am new to mobile app development Sep 18 22:57:42 phonegap worths the time invested if your goal is creating a simple html with fancy css Sep 18 22:57:46 nothing else Sep 18 22:57:58 other than that, is slow like an elefant Sep 18 22:58:13 the other alternative ive seen is appcelerator Sep 18 22:58:23 which is full of memory leaks Sep 18 22:58:33 and mostly focused on ios Sep 18 22:58:49 its just my humble opinion speaking here Sep 18 22:59:27 i cant imagine an app like… google plus, for example, made in phonegap Sep 18 22:59:36 question about best way to record a movie of an android screen: is the x86 emulated/virtualized VM my only choice??? Sep 18 22:59:50 i already try harrashing adb screenshot.. bad FPS. Sep 18 23:00:52 the only use case where i found it worths to use html5-like stuff is wikipedia app... Sep 18 23:01:18 http://sourceforge.net/projects/ashot/ Sep 18 23:01:28 adq: tried this one? Sep 18 23:01:50 r0ver: couldnt agree more Sep 18 23:03:10 KBZoiD, thx i will try :-) Sep 18 23:05:22 I want to develop an app for user can check tweets from api and user can vote tweets for negative-positive.App will be fetch tweets from an api. Sep 18 23:05:35 the funny installer of ashot crashed at end but all seems in place, let's try :p Sep 18 23:08:58 hm, it seems like it just takes a series of (1second separated?) screenshots Sep 18 23:09:58 i need to copy adb to old tools path it seems for this ashot thingy lol Sep 18 23:11:15 App shoud notify if there is new tweet even though user close the app window (app will be work as a service and check new records from server ). this is possible ? Sep 18 23:11:28 https://play.google.com/store/apps/details?id=com.ms.screencast&hl=es Sep 18 23:11:31 and this one? Sep 18 23:11:34 lol Sep 18 23:11:38 im just googling Sep 18 23:11:44 :D Sep 18 23:11:49 mesuutt: yes, it's possible Sep 18 23:12:15 mesuutt: if you want to send a notification, you should (strangely enough) look at NotificationManager Sep 18 23:12:25 KBZoiD, i tried a few, all with low perf/FPS :p this is why i was so specific in my question Sep 18 23:12:37 asking if the emulator is my last resort for something about 24FPS Sep 18 23:12:47 but this one lets you specify the FPS Sep 18 23:12:58 till 30 Sep 18 23:13:02 so about ashot, it finally works with little hackery Sep 18 23:13:06 but it's dammmnnn slow Sep 18 23:13:09 never tried it though Sep 18 23:13:11 same 5FPS max i got :p Sep 18 23:13:21 anyway big thx KBZoiD :) Sep 18 23:13:29 no prob Sep 18 23:16:21 I develop this application with what? There Sep 18 23:17:23 Is there a tool or freamwork for cross platform works, or any suggestion? Sep 18 23:17:31 if your goal is to make more apps for android, i would spend some time learning android development Sep 18 23:17:56 ios is gonna be dead in 1 year Sep 18 23:18:00 (kidding) Sep 18 23:18:03 :D Sep 18 23:18:08 :) Sep 18 23:18:30 no matter what we say here mesuutt Sep 18 23:18:39 you gotta try it out yourself for a while Sep 18 23:18:47 :) Sep 18 23:19:03 read about phonegap and jquery mobile or sencha Sep 18 23:19:41 you can also have a look at titanium appcelerator if you want to increase knowledge Sep 18 23:24:10 KBZoiD : thanks for your helps. I have one more question. Which is the best for mobile, Html+js+css or java ? Sep 18 23:25:36 java Sep 18 23:26:00 so far at least Sep 18 23:26:17 if you are talking about local applications Sep 18 23:27:26 java Sep 18 23:28:24 mesuutt: "html5" often means the application looks utterly out of place and is horribly slow Sep 18 23:28:59 (the first often because the UI was done aping CocoaTouch, and reused as-is) Sep 18 23:29:31 how much slow than java ? (I did not write an mobile app,so I dont know ) Sep 18 23:30:11 mesuutt: if you have older device? slow enough to be visible to user in something as simple as "display a bunch of simple text messages taken from json" Sep 18 23:32:01 and "visibly slow to user" is *bad* Sep 18 23:32:14 yes :) Sep 18 23:32:45 also, they often don't fit to overall platform experience, so you often have bad UX Sep 18 23:33:33 I think I have one app on my phone right now that I suspect being done in HTML5, and they actually did it right... by kicking out any similarity to styling of either Android or iOS Sep 18 23:34:25 instead they focused on their own branding and actually delivering features without overburdening the phone Sep 18 23:35:07 :D Sep 18 23:36:12 another, which could be considered a pure CRUD app similar to the one I just described, was slow as hell, didn't react properly to back button, and often made me frustrated because broken navigation increased annoyances caused by low performance Sep 18 23:36:35 (CRUD = Create Retrieve Update Delete) Sep 18 23:38:09 I should write application in java for android and I should write an separate app for ios, should not ? this is best way Sep 18 23:38:16 mesuutt: yes Sep 18 23:38:24 sharing codebase is... interesting Sep 18 23:38:36 possible, but definitely not for faint of the heart Sep 18 23:38:48 at the very least, do different UI Sep 18 23:39:17 even if you're going with HTML5 (as long as you don't go "fuck all" and do unique UI mostly independent from platform) Sep 18 23:41:03 I had a project that could share significant pieces of code between Windows, Linux, Mac OS, iOS and Android (funnily enough, android part of sharing code was probably most annoying) Sep 18 23:42:19 mesuutt: if you use HTML for any part of UI, hell, if you develop anything, please test it on some shitty slow-ass device as well :) Sep 18 23:42:35 (unless you can reasonably cut those off, including market filters) Sep 18 23:42:47 p_l|backup: thanks for suggestions :) Sep 18 23:46:54 yo Sep 18 23:47:17 How's everyone doing? Sep 18 23:49:25 getting so frustrated with android dev :( Sep 18 23:50:02 Jojomofoman: well.. you might have to use phonegap, *that* is frustrating :P Sep 18 23:50:18 nnooo way Sep 18 23:50:19 LOL Sep 18 23:50:26 I've tried phonegap before, it was terrible. Sep 18 23:50:29 I do java Sep 18 23:50:31 haha Sep 18 23:50:52 Having all sorts of troubles with my view pager on my app Sep 18 23:51:11 Jojomofoman: same here Sep 18 23:51:20 finally i decided to try ActionBarSherlock Sep 18 23:51:31 Jojomofoman: curious -- what sorts of problems? I've been using (v4.support) viewpager and been reasonably happy Sep 18 23:51:36 what kind of troubles by the way? Sep 18 23:51:45 I'm trying to customize list selector of my preference activity; I set a custom theme and overrode selectableItemBackground and that works for normal Preferences but not for CheckBoxPreference; any ideas why? Sep 18 23:52:08 kbs: v4 support only supports android 3+ Sep 18 23:52:10 right? Sep 18 23:52:20 I've got a viewpager filled with quotations, and outside of the viewpager in its parent view is a favourite button Sep 18 23:52:50 KBZoiD: i'm using minsdkversion=7 -- not sure about how far back support goes Sep 18 23:52:55 trying to make that favourite button light up as the user is scrolling through their quotations is a nightmare Sep 18 23:53:15 f**k.. i need to try it out again Sep 18 23:53:17 :D Sep 18 23:54:08 Jojomofoman: ah, so you're trying to detect when the page of interest is in the "main" paging area Sep 18 23:54:18 yes Sep 18 23:54:48 haven't had to do that myself, but good to know that this isn't straightforward... Sep 18 23:54:50 Each quotation in the database has a simple column which is either a 1 or a 0 for whether it's already been added to favourites Sep 18 23:55:32 at first thought I thought it would be easy, but it's a pain in the arse. Sep 18 23:55:50 what did you end up doing? Sep 18 23:55:58 cry :*( Sep 18 23:56:15 heh Sep 18 23:56:17 Now I'm considering just putting the favourite button inside of the view pager and be done with it. Sep 18 23:56:36 but then it looks naff as it will scroll with the views Sep 18 23:58:54 What kind of apps have you made kbs? Sep 19 00:00:51 KBZoiD: ABS rocks, so nice to use Sep 19 00:00:56 You'll have fun with it Sep 19 00:02:02 I dont have fun with it, but at least we dont have to implement all that crap ourselves Sep 19 00:02:47 It's a nightmare trying to implement it all yourself isn't it lol. Sep 19 00:05:21 Jojomofoman: nice, its good to know im in the right path :D Sep 19 00:06:20 and supporting 1.6 android users is awesome indeed Sep 19 00:06:48 yeah, definitely. Trying to create the actionbars for earlier versions of android is a complete nightmare. Sep 19 00:06:56 What app are you making? Sep 19 00:07:14 nah.. just a simple app loading json data from a wordpress Sep 19 00:07:22 nothing fancy :P Sep 19 00:07:28 A blog of yours? Sep 19 00:07:38 no, a partner Sep 19 00:08:00 if i do it well enough we might end up selling it to customers :P Sep 19 00:08:09 oh, that's cool. Sep 19 00:08:28 What library are you using to parse the json? Sep 19 00:08:46 im just reading about it Sep 19 00:08:49 :D Sep 19 00:08:57 and making some tests Sep 19 00:09:04 Google have a good library to do it Sep 19 00:09:29 really? Sep 19 00:09:32 which one? :) Sep 19 00:09:40 Yeah, I think that's the one I'm currently using http://code.google.com/p/google-gson/ Sep 19 00:10:13 hi, does anyone know how to only ddisable + hide one of the setprevlisteners in media player? Sep 19 00:10:23 btw, regarding sharing code between different platforms - NDK let's you share impressive amounts... Sep 19 00:10:29 nice! Sep 19 00:10:34 thank you Jojomofoman Sep 19 00:10:41 ill give it a try tomorrow Sep 19 00:10:48 (2:10am in Spain) Sep 19 00:10:49 I have some videos to play in the app and if I am at the first video, I want to hide the previous button and if I am at the last video I want to hide the next button Sep 19 00:10:50 :D Sep 19 00:11:07 I'll pastebin how easy it is to call it, 2 seconds Sep 19 00:11:22 now? Sep 19 00:11:26 sure Sep 19 00:11:34 thanks dude! Sep 19 00:11:36 :D Sep 19 00:12:41 no worries, give me a mo Sep 19 00:12:43 in the android doc it sats I can just don't call setprevlistener to disable the previous next buttons Sep 19 00:12:46 k Sep 19 00:13:26 calvinchan: never tried that, sorry :) Sep 19 00:13:41 but if I don't call setprevlistener at all then I disable both ..... Sep 19 00:14:16 so right now I just wanna disable either one button, but then it seems like I either enable both or disable both together Sep 19 00:14:29 gson has an extensive documentations. looks great! Sep 19 00:15:35 KBZoiD: thanks anyway Sep 19 00:16:48 There you go, it's as simple as that: http://pastebin.com/H368Za3B Sep 19 00:17:48 :O Sep 19 00:17:51 thats it? Sep 19 00:17:53 the Alert object gets populated with the data Sep 19 00:18:07 looks simple even for me! Sep 19 00:18:15 im using this! Sep 19 00:18:15 i know; i'm no pro either lol. Sep 19 00:18:17 :D Sep 19 00:18:29 thanks so much! Sep 19 00:18:39 no worries, it saved me a load of time. Sep 19 00:18:44 its gonna be fast Sep 19 00:18:48 yeah Sep 19 00:18:57 and documentation is quite extensive Sep 19 00:19:06 so i dont think ill have many problems :P Sep 19 00:19:14 yay! Sep 19 00:19:19 fingers crossed you won't! Sep 19 00:19:49 :D Sep 19 00:20:01 I'm using version 2.1 and that's exactly the code I'm using Sep 19 00:20:48 about that… i dont think i need to support versions pior to 2.1 Sep 19 00:20:50 right? Sep 19 00:21:02 Sorry, I meant gson version 2.1 Sep 19 00:21:08 ah Sep 19 00:21:47 There's a breakdown of the version marketshare though: http://developer.android.com/about/dashboards/index.html Sep 19 00:22:17 With 2.1 only being 3.7% you should be alright not supporting it. Sep 19 00:22:18 so 1.5 and 1.6 is pointless Sep 19 00:22:24 yeah Sep 19 00:22:32 nice then Sep 19 00:22:33 :D Sep 19 00:22:41 less headaches Sep 19 00:22:44 haha Sep 19 00:23:22 If you can support 2.2 then great, but if not most go for 2.3.3 (API level 10) and up as far as I'm aware. Sep 19 00:23:25 actually, i didnt expect 4.0.3/4 had that much marketshare Sep 19 00:23:50 KBZoiD: recent cheap phones with it Sep 19 00:23:57 Anyone by chance have the issue where NDK-STACK gives the error "Unable to locate routine information for address XXXXX in module", but addr2line functions properly? Sep 19 00:24:07 p_l|backup: yeah, now i realize :D Sep 19 00:24:23 so 2.2 or 2.3.3 Sep 19 00:24:33 i bet 2.3.3 is enough Sep 19 00:24:41 ^___^ Sep 19 00:24:42 Jojomofoman: also, the statistics show only global distribution... if you're doing a local-specific app, you might find yourself dependant on supporting 1.6 or even 1.5 Sep 19 00:24:44 im so lazy Sep 19 00:25:16 i dont think spaniards have 1.5 o 1.6 Sep 19 00:25:16 This is true p_l|backup Sep 19 00:25:26 our technology is always late Sep 19 00:25:49 1.6 is htc magic i think Sep 19 00:26:02 and we barely had it in our country Sep 19 00:26:09 and various first-gen LGs with resistive screens Sep 19 00:26:27 a phone that I had seen in use quite recently Sep 19 00:27:16 I wish I saw more Androids in the wild! Everyone I know uses iPhones :S Sep 19 00:27:50 ive read recently (few days ago) in spain android has 83% marketshare Sep 19 00:28:06 so im quite happy about that :D Sep 19 00:28:18 Jojomofoman: don't go to Starbucks? :P Sep 19 00:28:37 also, I think Starbucks was actually quite influential in spread of iphones Sep 19 00:28:51 lol, 'those' kind of people. Sep 19 00:29:24 I'm a web developer so most of the people I work with have Android phones; though the designers like their iPhones. Sep 19 00:29:53 no, seriously. AFAIK, Starbucks USA has been popular hotspot place (whereas Starbucks outside USA often was quite expensive with WiFi), which helped the pitiful EDGE in iPhone 2G Sep 19 00:30:27 lol, there's certainly a stigma about Starbucks and Apple products isn't there Sep 19 00:30:41 i have an iphone 3GS which i use as a paperweight Sep 19 00:30:52 and it does the job quite nicely Sep 19 00:31:11 lol Sep 19 00:31:35 now im using an old galaxy s Sep 19 00:31:42 and a brand new nexus 7 Sep 19 00:31:43 :D Sep 19 00:31:46 I liked my old galaxy s Sep 19 00:31:50 screen was like nothing before it Sep 19 00:31:57 Similar to me. I'm using an old nexus s and nexus 7 Sep 19 00:31:59 i still like it Sep 19 00:32:05 its running cyano9 Sep 19 00:32:12 so im happy with it Sep 19 00:32:15 Nexus 7 is quality isn't it. I love it. Sep 19 00:32:28 is QUALITY you said? Sep 19 00:32:30 :D:D Sep 19 00:32:37 amazing device Sep 19 00:32:50 i love it so much my gf is jealous Sep 19 00:32:54 lol Sep 19 00:33:06 lol Sep 19 00:33:19 well guys Sep 19 00:33:27 off to bed Sep 19 00:33:40 its getting late :) Sep 19 00:33:44 it is :S Sep 19 00:33:58 see ya all tomorrow Sep 19 00:34:01 nite! Sep 19 00:34:05 cya tomorrow Sep 19 00:34:06 nn Sep 19 00:34:07 and thanks Jojo! Sep 19 00:34:09 cya Sep 19 00:34:16 No worries, hope it all works! :) Sep 19 00:34:19 cya tomorrow Sep 19 00:37:18 I'm off now too, nn all! Sep 19 00:57:38 anyone know why my endlessadapter isn't picking up on gridview scrolling? Sep 19 00:57:52 all I have to do is set my GridView's adapter to use my endless adapter, right? Sep 19 01:04:49 Anyone here installed the android.jar documentation file like the javadocs.jar file or ofline reference? Sep 19 01:05:35 how can I customize the title and summary texts of my Preference activity? Sep 19 01:09:52 anyone here ever put an app through the samsung app store? Sep 19 01:17:14 in terms of performance, a LinkedHashMap is typically better than an ArrayList right? Sep 19 01:18:09 i'm creating a view like this: "getLayoutInflater().inflate(R.layout.main, null); setContentView(layout);". however, when i try this, layout is still null after i run inflate, and so setContentView(null) creates an error. how can i make sure that layout is instantiated by the time i call setContentView(layout)? Sep 19 01:18:11 Depends on your usage. Sep 19 01:18:26 HorizonXP: Algorithms is all about using the right one for the task Sep 19 01:18:33 anybody know the name the drawable thats the clipboard icon? i tried using @android:drawable/ic_menu_paste_holo_light and @android:drawable/ic_menu_paste but both seem inaccessible (got the names from here - http://androiddrawables.com/menu.html) Sep 19 01:18:59 * @android: drawable/ic_menu_paste_holo_light and @android:drawable/ic_menu_paste Sep 19 01:19:11 * @android:drawable/ic_menu_paste_holo_light and @android: drawable/ic_menu_paste Sep 19 01:19:24 oh you probably get it by now Sep 19 01:22:02 HorizonXP: One is a Map, the other is a List. They have different uses. Sep 19 01:23:47 linked hash map? Sep 19 01:24:07 sounds... weird. Are they talking about using linked lists inside buckets? Sep 19 01:24:55 anyone with a solution, a quickfix, whatever preventing me to hit zillions of time per day: java.io.IOException: Unable to open sync connection! Sep 19 01:25:02 which is the adb plugin for eclipse Sep 19 01:25:16 i already tried everything on stackoverflow without success Sep 19 01:25:39 and it's impossible for me to reproduce this trouble each time i want Sep 19 01:25:48 so hard to fix, cause unknown Sep 19 01:25:50 p_l|backup: insertion order is maintained Sep 19 01:26:31 g00s: so... if you iterate on the whole map, it will return them in insertion order? Sep 19 01:26:38 yes Sep 19 01:26:41 * p_l|backup doesn't remember *ever* using a linked hash-map Sep 19 01:26:53 doesn't sound that useful, most of the time Sep 19 01:27:23 and probably slower due to keeping extra list Sep 19 01:27:47 i'm creating a view like this: "getLayoutInflater().inflate(R.layout.main, null); LinearLayout layout = (LinearLayout)findViewById(R.id.main); setContentView();". however, when i try this, layout is still null after i run inflate, and so setContentView(null) creates an error. how can i make sure that layout is instantiated by the time i call setContentView(layout)? Sep 19 01:28:03 *setContentView(layout) Sep 19 01:30:10 HorizonXP - a well-implemented array and a well-implemented hash are *exactly* the same, asymptotically, in the average case (which is most of the time). speed should not guide your decision on which to use Sep 19 01:31:19 except that addressing works differently Sep 19 01:31:20 hmm Sep 19 01:31:28 which is pretty big thing in *semantics* of code Sep 19 01:31:35 not sure the complexity (O(something)) is really the same with array and hash Sep 19 01:31:43 but anyway :p not my topic Sep 19 01:32:09 adq: access complexity for array is O(1), for hash its practically the same (unless you have a degenerate implementation) Sep 19 01:32:14 i think hashmap has O(1) for anything to resolve Sep 19 01:32:19 for sure for hashmap Sep 19 01:32:28 not sure for array due to inner thingies Sep 19 01:33:00 the difference is that an array is addressed by offset, and you need to get the offset from somewhere, whereas hashmap basically indexes the data for you Sep 19 01:33:07 if whomp__ does not need subtil perf, he should just go to what he knows best :) Sep 19 01:33:12 (though sometimes trees are better) Sep 19 01:33:25 adq: it was HorizonXP's question :) Sep 19 01:33:27 p_l|backup, thx for the info about the offset :) Sep 19 01:33:38 oops s/whomp__/Horizon :p Sep 19 01:34:06 adq: a hashtable abstracts away the "which id do I need to get the object" Sep 19 01:34:25 by generating offset in the array of buckets by hashing the key Sep 19 01:34:39 O(1) insertion, O(1) deletion, O(1) lookup in the average case, except when the list/hash needs to grow/shrink. sometimes deletion is O(n) in arrays, but it's generally equivalent Sep 19 01:34:53 awesome \o/ Sep 19 01:35:19 whomp__: the issue is usually semantics of code, not performance, between arrays and hashtables (as hashtables are, technically, arrays underneath) Sep 19 01:35:23 assuming you are OK pushing to the back of the list? that's why we have linkedlists? for insertion into the middle Sep 19 01:35:45 (single-linked lists are optimized for pushing in the front, btw) Sep 19 01:35:56 yes, that's what i wrote. but i'm elaborating on the specifics Sep 19 01:38:19 if you don't need ordering, but your data doesn't fit semantics of arrays nicely (i.e. you need to query by something other than "position in array"), hashtable is best. If you have small collections, or you have explicit "streaming" pass in one direction, linked lists will be okay. If you need random access but id's aren't that much of an issue, an array might be okay Sep 19 01:38:47 and if you need ordering and good bounds on retrieval, addition and deletion, you might want to use a balanced tree Sep 19 01:42:14 HorizonXP: did that answer your questions? :) Sep 19 01:43:24 hopefully someone at google (like m.d.) read this http://www.androidpolice.com/2012/09/18/ux-things-i-hate-about-android/ Sep 19 01:47:47 that landscape launcher thing is the weirdest Sep 19 01:47:49 I can see why Sep 19 01:48:00 but plug a galaxy nexus into MHL, and the launcher will *only* do landscape Sep 19 01:48:39 in fact the galaxy nexus seems to only do landscape in mhl full stop Sep 19 01:49:26 so if oyu have an app that only does portrait, it's sideways Sep 19 01:49:51 mhl on a galaxy note doesn't do that (the tv/projector shows rotated views) Sep 19 01:50:23 by launcher, I mean home screen as well Sep 19 01:50:45 oh heh, matias responded at the end :) Sep 19 01:51:13 g00s: we use Android too you know :)) Sep 19 01:51:52 I found "disable rotation" button indispensable... remember it being one of the first things I grabbed from market :) Sep 19 01:52:22 that "weird sideways look"? I call that "bed mode Sep 19 01:52:24 " :) Sep 19 01:52:35 romainguy: :D Sep 19 01:58:24 romainguy: can you make sure google doesn't mess up Nik's plugins like SilverEfex ? ok, thx :) Sep 19 01:58:37 aren't you busy reading books? Sep 19 01:58:42 also, I use their plugins :p Sep 19 01:59:05 romainguy: hopefully, we can /all/ keep using their plugins :/ Sep 19 02:02:45 romainguy: yes still reading :) my next book http://www.peachpit.com/store/product.aspx?isbn=0321794028 Sep 19 02:03:54 anyone know of a way to create a listener for a listview that is in a dialogfragment. I am trying to pass back the information of the item clicked while in the dialogfragment without having to call a function from the calling activity?? Sep 19 02:04:17 do any cameras / phones have that sony RGBW sensor they announced back in january ? Sep 19 02:07:29 anyone have any ideas on the listener method Sep 19 02:08:35 get the inflate method automatically instantiate the layout the layout that it inflates? even after running inflate, it seems that the layout i'm working with is null Sep 19 02:09:19 g00s: A... RGBW sensor? You mean a "camera"? Sep 19 02:09:22 whomp__: it's the whole point of inflation Sep 19 02:10:00 then why, when i run findViewById for the view, does it return null? Sep 19 02:10:13 whomp__: Your view wasn't found. Sep 19 02:10:24 but i just inflated it Sep 19 02:10:46 whomp__: Show your code. Probably isn't the same constant at all, since layouts aren't views. Sep 19 02:11:14 freeone3000: "since layouts aren't views." <<< errr? Sep 19 02:11:20 https://gist.github.com/83c3edeefdef3c6bd856 Sep 19 02:11:51 you're not doing anything with the inflated view Sep 19 02:11:52 whomp__, inflate returns the vuew you just inflated Sep 19 02:12:00 freeone3000: sony's exmor RS sensor Sep 19 02:12:07 just use setContentView(R.layout.home) Sep 19 02:15:47 ok that worked for inflating the outer view? but all of the views within it are still not inflated. is there some recursive way to do this? Sep 19 02:17:22 whomp__: it inflates everything in the XML file Sep 19 02:18:49 can anybody recommend the best way to do this? https://lh5.ggpht.com/94ca5Pk0GMwZ-aeYluAfr4utYNVIG8lia4IQ7AiO8vtZZ94cWjrQxXIi2tBcJx_Ft3s Sep 19 02:19:13 i'm thinking gridview, but the height and width of each item differ Sep 19 02:19:24 write a custom layout Sep 19 02:20:04 ./sob Sep 19 02:20:12 it's not hard Sep 19 02:24:31 kk thx Sep 19 02:26:48 Do Paused & Stopped activities still use CPU and I/O resources or just memory? Sep 19 02:26:51 romainguy, linearlayouts with varying weights? xD Sep 19 02:27:24 mfisch: They *shouldn't* use CPU and IO resources. onPause() should disable those. Sep 19 02:29:15 I didn't find any mention in the API, I know Win8 calls it out directly, no CPU, Network, or I/O when suspended Sep 19 02:31:53 Is anyone familiar with using onDismissedListener with DialogFragments Sep 19 02:33:43 mfisch: Paused applications may still be used and switched to, so they still may consume CPU and IO resources. It's up to the application to limit itself on its paused state. Sep 19 02:34:52 freeone3000: but it would be unwise to continue lots of processing while paused since you may get killed under resource pressure, right? Sep 19 02:35:07 mfisch: Right, which is why you should implement onPause() appropriately. Sep 19 02:35:26 mfisch: Also note that the OS can skip straight from "paused" to "killed". Sep 19 02:37:45 freeone3000: yep, I did catch that in the API Sep 19 02:39:06 freeone3000: is stopped any different than paused? are they really stopped as in no CPU usage? Sep 19 02:40:02 mfisch: For an application, there's no difference. ("paused" is "incompletely visible", while "stopped" is "completely invisible", but the effective difference is nil on one-app-full-screen devices) Sep 19 02:40:45 mfisch: For Activities in an application, the slight difference is that "paused" means that the application has been taken out of view, while paused only implies that the current activity has... But again, not much of a difference because of the paused -> killed thing. Sep 19 02:41:14 freeone3000: got it, thanks Sep 19 02:50:31 hello..I have a question regarding fragments Sep 19 02:50:53 can someone help me here? Sep 19 02:51:00 if you ask the question, probably Sep 19 02:52:23 bankai_: It is about when I am going to change my screen orientation...my current fragment was changed to the fragment that was first called Sep 19 02:52:50 e.g fragmentB was changed to fragmentA Sep 19 02:53:26 i want to have fragmentB, then after changing orientation will just stay to fragmentB Sep 19 02:53:37 not with fragmentA Sep 19 02:54:13 junnel1001: Is your activity being destroyed and recreated? If it is, and it is unless you told it not to be, then you need to save the currently viewed fragment in your onPause() and restore it in onResume(). **** ENDING LOGGING AT Wed Sep 19 02:59:58 2012