[android-developers] onScrollChanged

2010-03-01 Thread sdphil
i am getting a listview from xml -- i can get the view using findViewById() - how do I override onScrollChanged so I can do something when the scroll position changes? tia. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

[android-developers] Re: Regarding intents

2010-03-01 Thread NewDev
Hi, Thanks for the reply. I have already added the new activity or secocnd activity in the AndroidManifest.xml file. I tried adding getApplicationContext() in the intent. But still its not working. I am herewith adding my code and also the AndroidManifest.xml file for currency convertor. Could yo

[android-developers] how i can fix the orientation of application on the screen

2010-03-01 Thread Manoj
Please tell me how i can stop the change in orientation of application when device rotate. How i can control the accelerometer. Manoj -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@

[android-developers] Re: email multi attachments

2010-03-01 Thread sleith
still dont find any solution for this.. please help >.< On Feb 21, 9:16 pm, sleith wrote: > anyone can help? >.< > > On Feb 21, 9:35 am, sleith wrote: > > > Hi, is it possible to send email with multi attachments? > > Because what i see is only Intent.EXTRA_STREAM to attach the file, and > > it'

[android-developers] Re: Force RecognizerIntent Activity to stay cached/in memory

2010-03-01 Thread Vikas1976
Nothing? On Feb 16, 5:41 pm, Vikas1976 wrote: > Hi, > > I was wondering if it is possible to force the RecognizerIntent > Activity (or any other Activity) to stay cached so that the launch > time would be faster. > > Thanks, > > Vikas -- You received this message because you are subscribed to t

Re: [android-developers] Disabling/Hiding the Application ?

2010-03-01 Thread Dianne Hackborn
You can do this to your own app with these: http://developer.android.com/reference/android/content/pm/PackageManager.html#setApplicationEnabledSetting(java.lang.String, int, int) http://developer.android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.conte

[android-developers] Problem in sqlite

2010-03-01 Thread rajesh chandrasekaran
Hi ALL, I am getting few problem in sqlite. This is my schema for the userScoreTable CREATE TABLE userScoreTable (sno integer primary key AUTOINCREMENT,userName VARCHAR, setID INT(5), score INT(5), totalTimeTaken DOUBLE); this is my data in the userScoreTable 1|Rock|1|20|11214.0 2|Rock|2|4

[android-developers] Re: Which Android firmware versions should a developer try to support?

2010-03-01 Thread Lance Nanek
There's a percentage, at least: http://developer.android.com/intl/zh-CN/resources/dashboard/platform-versions.html On Mar 1, 12:50 pm, Richard wrote: > I am working on an Android application that I would like to work on a > reasonable number of devices.  Currently my application works on 1.6 > an

[android-developers] Re: How to use setBounds in android.

2010-03-01 Thread NoraBora
Button class does not have setBounds(). setBounds() is for Drawable. http://developer.android.com/reference/android/graphics/drawable/Drawable.html#setBounds%28int,%20int,%20int,%20int%29 What are you trying to achieve with setBounds? On Feb 24, 10:39 pm, rajesh chandrasekaran wrote: > hi All,

[android-developers] Re: Using with multiple ImageViews

2010-03-01 Thread jotobjects
Maybe this article will be helpful - Looks like it confirms your information. http://developer.android.com/resources/articles/layout-tricks-merge.html On Feb 28, 10:20 pm, "paul zazzarino" wrote: > Anyone know if  works with multiple images:  header.xml = > > http://schemas.android.com/apk/res/

[android-developers] Weather info on map view

2010-03-01 Thread aswani kumar tholeti
Hi all In my application i want to display weather reports on map view.for this any one have solution please send me Regards Aswan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers

Re: [android-developers] List fils on SD card

2010-03-01 Thread TreKing
On Mon, Mar 1, 2010 at 7:44 AM, Dennis wrote: > i have tried with some permission settings without any luck. > i have check files that is not on the list, and they have both read > write bit set. > Have you tried adding an "else" clause to your if statements that dumps a message about the file t

[android-developers] Re: Scrollbar Thumb Color

2010-03-01 Thread NoraBora
AFAIK, you cannot change the scroll bar colors. On Feb 25, 3:20 am, sriram wrote: > Hi All, > > Can the application customize the scroll bar colors like the thumb > color/image or the background color image. > > For example I am using a ListView on a device. Now the scrollbar seems > to appear in

[android-developers] Re: Disabling/Hiding the Application ?

2010-03-01 Thread jotobjects
If the application does NOT have an "android.intent.action.MAIN" intent filter it will NOT have an icon on the home screen. On Mar 1, 4:53 pm, GPU wrote: > Hi , > >  How to  disable a application which already installed in the > device ?. > So that it wont display icon to the user & user cant inv

Re: [android-developers] Disabling/Hiding the Application ?

2010-03-01 Thread TreKing
On Mon, Mar 1, 2010 at 6:53 PM, GPU wrote: > Is their any way to do that ? I certainly hope not. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rez

Re: [android-developers] New to Android...how does android handle application versions/updates...

2010-03-01 Thread TreKing
On Mon, Mar 1, 2010 at 10:08 AM, MaTT wrote: > Specifically, does an update blow away my database? > No, all data stored locally by the app is preserved. > Is there a way to preserve the users' settings as well? > All settings saved in SharedPreferences are also preserved. --

Re: [android-developers] Which Android firmware versions should a developer try to support?

2010-03-01 Thread TreKing
On Mon, Mar 1, 2010 at 11:50 AM, Richard wrote: > How many devices on the market are restricted to 1.5? According to this [ http://developer.android.com/resources/dashboard/platform-versions.html] it's about 30%, so a good chunk. Note though that this chart is has not been updated since January

[android-developers] Re: Point of Contact

2010-03-01 Thread ian
Yeah it's sorry isn't it. In Canada if we want an Android phone it requires a 3-year contract at $55+/mo plus $200 down. To buy a Nexus here has huge shipping charges and costs over $600 even to developers!\ Developers should be offered dev phones cheap, maybe with limited day- to-day functionali

[android-developers] Re: Passing a LinearLayout from one Activity to another

2010-03-01 Thread Zigurd
When I wrote "I'm sure you are starting to see that what you thought of doing was made intentionally difficult" I was referring the fact that when you create an instance of LinearLayout, or any other class in the View hierarchy, you have to specify a Context (an abstract class) in the constructor o

[android-developers] How to Custom Tab style

2010-03-01 Thread Jammy
The built-in 'Phone' app have a good looking 'tab bar', and I get the source from git://android.git.kernel.org/platform/packages/apps/Contacts.git , and found the main Activity, 'DialtactsActivity' just using the common way to build the tab, and in the 'res' folder ,there are some specially files

[android-developers] Re: ActivityNotFoundException

2010-03-01 Thread Sasikumar S
you need to add the activity in androidmanifest.xml On Feb 28, 9:54 pm, frak wrote: > Hi there, > > I am trying to start a new activity from a menu action, as follows: > >    public boolean onOptionsItemSelected(MenuItem item) { >         switch (item.getItemId()) { >                 case MENU_P

[android-developers] Re: OpenGL - From 60 fps to 8 fps just rotating a textured square by 90 degrees

2010-03-01 Thread Robert Green
The MSM7200 contains many optimizations to make certain types of filling fast. I never run full screen, 512 textures with linear min and mag on like you have in your code. Try it with nearest neighbor on both and see how it goes. On Mar 1, 3:10 am, Michele Scorcia wrote: > Hi, > > I've found th

[android-developers] Re: Soft Keyboard Shrinks Dialog Buttons

2010-03-01 Thread Todd S.
If you want to keep certain buttons on the screen at all times, set the android:layout_alignParentBottom="true" attribute to a layout of your buttons. This will force the buttons to move to the top of the soft keyboard when it is displayed. On Feb 22, 10:58 pm, wakeup sid wrote: > Hi Todd.. > Im

[android-developers] Re: android tablet emulator creation

2010-03-01 Thread Bob Kerns
But I wasn't able to launch an emulator at a mere 1336x678, either, not even with allocating 1GB RAM for the device an 128MB for the app heaps. The system_server dies in the SurfaceFlinger in libEGL.so. I suspect the thing to do is to capture the error with adb -e logcat (which is how I observed w

[android-developers] Re: Problem with Embedded Widgets in Preferences

2010-03-01 Thread mjk
So... turns out I was lying horribly. ;P The line that instantiates prefView reads as such: RadioGroup prefView = (RadioGroup) sharingPrefs.getView(new RadioGroup(this), null); So it looks like I was getting a new, completely unrelated RadioGroup. Does anyone know how I can get access to the ac

[android-developers] Android Development project - onsite in Kansas City area

2010-03-01 Thread jnichols
3 month proejct located in the Kansas City area. Client wants candidate to work on-site. Developer III performs complex analysis, design, development and unit testing of software applications from user requirements and design documents. The candidate also resolves defects encountered during variou

[android-developers] Re: Tiny URL

2010-03-01 Thread Bob Kerns
Hmm, I don't track these things; I didn't realize he's a repeat poster. I've got nothing against pointing out to people they should do their own googling, etc -- just rhetorical questions in response don't really accomplish anything. I'm not griping about pskink's response, which I understand. I'

[android-developers] Camera Snapshot

2010-03-01 Thread Renjith
Hi, I am trying do a snapshot application on my Android Phone. Hope it can improve the speed. Currently I got an issue with the camera snapshot...it is always getting takePicture function error: getPicture failed! Pls see the below log, I am trying to capture snapshot 10 times with

[android-developers] OpenGL - From 60 fps to 8 fps just rotating a textured square by 90 degrees

2010-03-01 Thread Michele Scorcia
Hi, I've found that if I rotate a square textured with a 512x512 texture by 90 degrees, the frame rate goes from 60 fps in the case of the 0 degrees rotation to 8 fps in case of the 90 degrees rotation. Just to be clear the difference between the two cases is just a value of 0 or 90 for angle in t

[android-developers] How do I create a contact locally??? (no account needed)

2010-03-01 Thread AuxOne
When I create a contact on the emulator manually it says "Phone-only" in the top because it's creating it locally. When I check the contacts via my application, I see it there. When I create a contact via my application, the only method I've found is via a RawContact which requires an Account name

[android-developers] Programmatic sdcard mounting/unmounting

2010-03-01 Thread Oleg Leikin
Hi all, I'm wondering how programmatic sdcard mounting/unmounting can be achieved while the handset is connected to a pc via USB. I cannot find any managed api for that and also my jni attempts failed with "errno: 1, [Operation not permitted]" error. Thanks -- You received this message because

[android-developers] SMS ringtone

2010-03-01 Thread abdelmonim abetti
Hi, I want to change SMS ringtone programatically from a raw resource but I don't find any example to do it. Thanks Regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegr

[android-developers] how to use multitouch zoom

2010-03-01 Thread euromark
@Override public boolean onTouchEvent(MotionEvent event) { int numevents = event.getPointerCount(); int action = event.getAction(); // 1 = normal action (scroll); 2 = multitouch (zoom in/out)

[android-developers] Problem with Embedded Widgets in Preferences

2010-03-01 Thread mjk
Hello all, I'm trying to make a somewhat advanced settings Activity (one that has a RadioGroup in one of the cells). The layout xml file contains the following: http://schemas.android.com/apk/res/android"; > ...

[android-developers] to be certified Android in Tunisia

2010-03-01 Thread Tunisian Engineer
Hi, are there certification organism for android in Tunisia -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-devel

[android-developers] Change Data format to dd.MM.yyyy?

2010-03-01 Thread BTJ
I have a program I used on my Hero (Android 1.5) that worked great.. All it did, was the following: Settings.System.putString(getContentResolver(), Settings.System.DATE_FORMAT, "dd.MM."); This does not work on my Nexus One, why? If I call Settings.System.getString(getContentResolver(), Setti

[android-developers] Displaying an application inside a layout

2010-03-01 Thread BugSystem
Hello, I would like to know if it's possible to display an activity inside a layout of my activity. For example I would like to display the Phone application inside a layout of my activity. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" gr

[android-developers] List fils on SD card

2010-03-01 Thread Dennis
Hi all har have a problem with listing files on the sd card. i created a method for traverse the sdcard and add files to a list. On the emulator it works like a charm, but on the real device it only adds a few files to the list. i have tried with some permission settings without any luck. i have c

[android-developers] how to achieve multiple screen sizes in android 1.5

2010-03-01 Thread kiran kumar
hai, i am new to game development in android. i am developing a game and i need to use android1.5 only. i wrote sample application using 1.6 and kept drawable-hdpi,-ldpi ... and application is working fine in emulator of 1.6. i made apk and opened an emulator (android 1.5) from command prompt ap

[android-developers] New to Android...how does android handle application versions/updates...

2010-03-01 Thread MaTT
Hello everyone, I'm struggling with this one. I'm pretty new to Android, and I had some questions that I've had trouble getting answered via the web. I have done a few searches, but I'm not sure how to word my question, either. So I apologize if this has already been covered somewhere...but her

[android-developers] Disabling/Hiding the Application ?

2010-03-01 Thread GPU
Hi , How to disable a application which already installed in the device ?. So that it wont display icon to the user & user cant invoke the app by "pm start -n /." . Is their any way to do that ?. -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Which Android firmware versions should a developer try to support?

2010-03-01 Thread Richard
I am working on an Android application that I would like to work on a reasonable number of devices. Currently my application works on 1.6 and greater, but uses some API function calls not supported in 1.5. How many devices on the market are restricted to 1.5? Is there a list of the latest firmwar

[android-developers] getNetworkOperator() in airplane mode always crashes

2010-03-01 Thread Inquisitor
Hello World, I'm writing an app, that should get network info on startup. I've written the following code, however if the phone is in airplane mode, it keeps crashing allthough I use a try/catch-statement: public class HelloAndroid extends Activity { @Override public void onCreate(Bundl

[android-developers] How to translate the accelerometer values from the device coordinates to the world coordinates?

2010-03-01 Thread Lotuz
I'm trying to translate the accelerometer values from the device coordinates to the world coordinates. It's not clear how to do this. I guess getRotationMatrix method can do sth about this,but I am not sure how to use. Any help would be appreciated. -- You received this message because you are su

[android-developers] GpsNetInitiatedHandler?

2010-03-01 Thread Antoni Jakubiak
Hi all, What is a responsibility of a java class GpsNetInitiatedHandler? http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=location/java/com/android/internal/location/GpsNetInitiatedHandler.java; Especially, the code near line 158. I found also NetInitiatedActivity - a java c

[android-developers] Samsung launches the new Samsung phone Samsung Wave S8500 Wave

2010-03-01 Thread kokosos...@yahoo.com
Samsung launches the new Samsung phone Samsung Wave S8500 Wave http://i-mobile2.blogspot.com/2010/03/samsung-launches-new-samsung-phone.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] Http transfer-encoding chunked with gzip

2010-03-01 Thread SN
Hi, I ran into a problem that doesn't know it should be classified as a bug. I am using Android 1.6. When I make a post: POST /OBN/OBNServlet HTTP/1.1 user-agent: Java0 connection: Keep-Alive content-type: application/x-www-form-urlencoded accept-encoding: gzip host: xxx (intentionally remove

[android-developers] SMS Ringtone

2010-03-01 Thread abdelmonim abetti
Hi, I want to change SMS ringtone programatically from a raw resource but I don't find any example to do it. Thanks Regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegr

[android-developers] Latitude crashes Google maps, Android 1.5

2010-03-01 Thread Sinister
Hi, Few days ago my HTC Magic (Android 1.5) started to behave strange. Google Maps application crashes when I am trying to enter Latitude. Hard reset \ cleaning cache of the Maps application helps to start it (applications starts and works flawless), but when I am trying "to join Latitude" it show

[android-developers] Flushing Toast/TextView buffer in While loop

2010-03-01 Thread #iNjection-
I have a mini app i use to connect to a TCP listener script. The problem i am having is taht when a message is received by the listener script, it will send it to all open sockets currently connected. Within the Android app, i have a line where i am doing the following: while((responseLine = is.

[android-developers] Using with multiple ImageViews

2010-03-01 Thread paul zazzarino
Anyone know if works with multiple images: header.xml = http://schemas.android.com/apk/res/android";> A constraint of is that it must be in the XML root tag, so we place the above in one file and then use to import. Another constraint is that it does not work with some Layouts like Line

[android-developers] Point of Contact

2010-03-01 Thread Sean Lin
Hi all, Not all the developers are backed by rich funding. So for developers with limited or no funding, is there anyway to loan a unit for development from Google directly? Is there any direct contact at Google such developers can reach? -- You received this message because you are subscribed t

[android-developers] Re: TextToSpeech.synthesizeToFile, save wav to internal memory?

2010-03-01 Thread Piotr Wieczorek
The only way to achieve this I now is to create a world writable directory in the internal memory like this: context.getDir("soundfiles", Context.MODE_WORLD_WRITEABLE); And then write to this dir. Best, Piotr On Feb 28, 5:29 pm, Dimitry Hristov wrote: > I'm looking for a way of making TextToSpee

[android-developers] Launch application from homescreen with a button

2010-03-01 Thread ferdy182
Hi all, my name is Fernando and i'm new here :) I have a question to the group. I need to bind the click event of the dpad to an application to launch it from the home screen. I mean, use the dpad button to open a concrete application from home screen. I don't know if a widget could handle the dp

[android-developers] bitmap size exceeds VM budget

2010-03-01 Thread wei yan
Hi: some of you may met the same problem, I was using BitmapFactory.decodeStream, and got this exception: 03-01 23:28:17.663: ERROR/dalvikvm-heap(940): 1572864-byte external allocation too large for this process. 03-01 23:28:17.663: ERROR/(940): VM won't let us allocate 1572864 bytes 03-01 23:28:1

[android-developers] Android Camera Issue

2010-03-01 Thread Renjith
Hi, I was trying to write a snapshot application on android and I got stuck at this error 02-28 19:11:10.851: ERROR/QualcommCameraHardware(51): native_get_picture: MSM_CAM_IOCTL_GET_PICTURE fd 12 error Connection timed out 02-28 19:11:10.851: ERROR/QualcommCameraHardware(51): getPicture failed! 0

[android-developers] How can I efficiently get all contacts that have a contact photo (and avoid joint facebook account results which are invalid)

2010-03-01 Thread Tom W
I see from this post (http://www.mail-archive.com/android- develop...@googlegroups.com/msg68933.html) that due to a facebook policy decision that facebook account data such as contact photo can't be accessed via the api. For my app's purposes, that's fine, but it seems to be causing me pains gettin

[android-developers] Using with multiple ImageView s

2010-03-01 Thread paul zazzarino
Anyone know if works with multiple images: header.xml = http://schemas.android.com/apk/res/android";> A constraint of is that it must be in the XML root tag, so we place the above in one file and then use to import. Another constraint is that it does not work with some Layouts like Line

[android-developers] ActivityNotFoundException

2010-03-01 Thread frak
Hi there, I am trying to start a new activity from a menu action, as follows: public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case MENU_PREF: showDialog(MENU_PREF); return true;

[android-developers] Re: Uploading a File with HttpClient and HttpPost

2010-03-01 Thread Luke Chi
http://stackoverflow.com/questions/1067655/how-to-upload-a-file-using-java-httpclient-library-working-with-php-strange-pro On 1月24日, 上午6時06分, Hubert Behaghel wrote: > Have you tried without the header "Expect: 100-Continue" ? > HttpProtocolParams.setUseExpectContinue(client.getParams(), false)

[android-developers] My first iPhone vs Nexus One review

2010-03-01 Thread Urban ArtFX
http://www.youtube.com/watch?v=4zmCgrYe90Q Please give me advise and suggestions. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] error while compiling droid pdf...

2010-03-01 Thread Hans-Werner Hilse
Hi, I would suggest discussing this matter further in the relevant mailing list here: http://groups.google.com/group/droidreader-developer-list Please re-post there, here's just a short hint: Try rectifiing the jpeg/ subdirectory by unpacking a fresh, *new* version of libjpeg, i.e. jpegsr8.zip. T

[android-developers] Accelerometer results translation from phone to word orientation

2010-03-01 Thread Ofer.H.G
Hi, I have a problem with the translation of the accelerometer results from the phone to the world orientation. The Z results seem OK but the X and Y get wrong values. It was tested in horizontal phone move. Attached is the code. public void onSensorChanged(SensorEvent event) {

[android-developers] How do you do dim an image view?

2010-03-01 Thread bouncyman
I have a GridView on top of an ImageView (which has a background image) and want to dim the Image View so that the GridView will be more prominent. What is the best way to do this? Is there a simple xml attribute I can use? I tried using the FLAG_DIM_BEHIND from WindowManager.LayoutParams but it's

[android-developers] Re: Uploading a File with HttpClient and HttpPost

2010-03-01 Thread Luke Chi
Hello, has anybody tried this? http://stackoverflow.com/questions/1067655/how-to-upload-a-file-using-java-httpclient-library-working-with-php-strange-pro On 1月24日, 上午6時06分, Hubert Behaghel wrote: > Have you tried without the header "Expect: 100-Continue" ? > HttpProtocolParams.setUseExpectConti

[android-developers] Re: how to crop an image in android 2.x

2010-03-01 Thread Damian
I have encountered this problem also. Did you find a solution? On Feb 16, 11:50 am, Vaibhav Goel wrote: > By removing class-name and private restrictions, it works for the > images picked from gallery but when i pass Uri ofimageafter > capturing it from camera, it gives Activity not found excepti

[android-developers] How to get camera specs.

2010-03-01 Thread kumar
Hi, Can someone tell me whether it is possible to get camera specs such as focal length, sensor size, crop factor etc using android api. Thank you. kumar -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] Wheel Gesture

2010-03-01 Thread Abhishek
Hi I am developing a list application on 1.6 with a wheel gesture(Like in iPod) on the screen Now I was able to make a circle and trigger the gesture but that is not really what I want. Here a gesture event is triggered only when the finger is lifted from the screen which is very much unlike that

[android-developers] developing for differant sizes

2010-03-01 Thread Gagan
Hello all, I am currently at the end of devoping a simple program with a radio group, two buttons and a text view. When I test it on my g1 and the 1.6 emulator it looks great, but when my friend tries it on his droid many elements are displaced and cut off. I am using absolutelayout, does this la

[android-developers] Universal web services suite for Android apps development

2010-03-01 Thread Injoit
Hi there! We are a group of iPhone / Android developers who have developed a suite of web services to assist us and other developers in building great apps. After numerous projects we have become tired of having to set up the server scripts to do all the same things for different clients. Most of

[android-developers] Learn the latest device from htc prices, and potential

2010-03-01 Thread kokosos...@yahoo.com
Learn the latest device from htc prices, and potential http://i-mobile2.blogspot.com/2010/02/htc-hero-htc-hero-price-4650-l.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googleg

[android-developers] How to color code individual rows of a list view?

2010-03-01 Thread JRock
How can I color code individual rows in a ListView exactly like it is done in the native MESSAGING app? I do NOT want to simply do alternating rows, but I want to copy the format used in the MESSAGING app, where message rows have a different background color based on the username of the message. F

[android-developers] Re: Problems when using GridView in Gallery

2010-03-01 Thread Molee
Below is my code fragment CustomGallery is a class extending class Gallery to modify the fling event.. onCreate()/ setContentView(R.layout.grid_gallery); gal = (CustomGallery) findViewById(R.id.appsgallery); gal.setAdapter(new

[android-developers] Re: Problems when using GridView in Gallery

2010-03-01 Thread Molee
to be more specific http://stackoverflow.com/questions/1986763/gridviews-inside-a-gallery I got the same problem with him about touchscreen, not able to fling the items(gridview) of the gallery. In general cases, when u use the tracakball in gallery, u can see orange rectangle rounding the item

Re: [android-developers] sd card access

2010-03-01 Thread Mark Murphy
Dan wrote: > Is there a right associated with write/read access to the sd card that > needs to be set in the manifest.xml file? > > I'm currently trying to write to the sd card using a standard > FileOutputStream here: > > FileOutputStream out = new FileOutputStream("/ > sdcar

[android-developers] sd card access

2010-03-01 Thread Dan
Is there a right associated with write/read access to the sd card that needs to be set in the manifest.xml file? I'm currently trying to write to the sd card using a standard FileOutputStream here: FileOutputStream out = new FileOutputStream("/ sdcard/images/"+imageName);

Re: [android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread Mark Murphy
sdphil wrote: > hm... what about three ListView's side by side hide the scrollbar on > all but the right most one You can try it. Personally, I doubt it will work well. For starters, you will have to take great pains to make sure each row is the same height. And, the user will still be able t

[android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread sdphil
hm... what about three ListView's side by side hide the scrollbar on all but the right most one On Mar 1, 1:52 pm, Mark Murphy wrote: > sdphil wrote: > > okay - thanks.  how do I make the columns have a different width? > > i.e. the first column is wider than the second two. > > With luck, w

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread mscwd01
Thanks for your help pskink, this was the solution in the end: float[] verts = {nwTranslation[0], nwTranslation[1], neTranslation[0], neTranslation[1], swTranslation[0], swTranslation[1], seTranslation[0], seTranslation[1]} ; canvas.drawBitmapMesh(b

Re: [android-developers] Re: Why is HTC Hero using drawable-ldpi?

2010-03-01 Thread Mike Novak
I've seen this before. Where the 1.5 devices are pulling the -ldpi drawable folder even though it really shouldn't know about them. The only way I was able to get around this was removing the -ldpi resources. Mike On 03/01/2010 04:45 PM, westmeadboy wrote: To recap, I have an app that targets

Re: [android-developers] Re: Passing a LinearLayout from one Activity to another

2010-03-01 Thread Aniruddh Bajirao
@Zigurd: Using Intents is fine and I'm using that as well. But my question was more about creating a LinearLayout and adding child views to it outside an Activity (like in a regular Java class) and then spawning an Android Activity based on certain parameters (say some parameters derived from a ser

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-01 Thread Rob Irondad
Hello everybody. I've posted a couple of messages to the other list but I am subject to moderation as well right now. I just wanted to say that if anyone wants to edit the current draft, I'll be happy to 'invite' them through Google docs' collaboration features. Just send me your email (has to be

Re: [android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread Mark Murphy
sdphil wrote: > okay - thanks. how do I make the columns have a different width? > i.e. the first column is wider than the second two. With luck, width will be driven by the contents. Make the contents of your first column be wide to take up the desired space. You'll note, though, that in my rep

[android-developers] _data column in audio_meta table

2010-03-01 Thread A R
Hi, Does anyone know how is _data column used by RingtonePickerActivity? I checked the tabled using sqlite browser and it has path to the ringtone file. Is it possible to make RingtonePicker ask my app's content provider for ringtones? For eg if I enter content://myprovider/ringtones/1 I want

[android-developers] Re: Why is HTC Hero using drawable-ldpi?

2010-03-01 Thread westmeadboy
To recap, I have an app that targets v4, with min v3. I ended up with three drawable folders: drawable-hdpi-v4 drawable-mdpi drawable-ldpi-v4 Is this the correct approach in this situation? On Jan 29, 11:40 am, Dianne Hackborn wrote: > Correct, it doesn't do anything with it.  (Though technica

[android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread sdphil
okay - thanks. how do I make the columns have a different width? i.e. the first column is wider than the second two. i see android:columnWidth and setColumnWidth(), but those assume a uniform column width. On Mar 1, 12:01 pm, Mark Murphy wrote: > sdphil wrote: > > I want to create a list view t

[android-developers] Re: porting native C library to android

2010-03-01 Thread Abhi
Roger, Thanks a ton. This is good stuff! Abhi On Mar 1, 4:09 pm, Rogério de Souza Moraes wrote: > Hi Abhi, > > there is some incomplete instructions inhttp://android.serverbox.ch/?p=151 > A little more complete is this > pdf:http://www.google.com.br/url?sa=t&source=web&ct=res&cd=1&ved=0CAYQFjA

Re: [android-developers] porting native C library to android

2010-03-01 Thread Rogério de Souza Moraes
Hi Abhi, there is some incomplete instructions in http://android.serverbox.ch/?p=151 A little more complete is this pdf: http://www.google.com.br/url?sa=t&source=web&ct=res&cd=1&ved=0CAYQFjAA&url=http%3A%2F%2Fandroid.serverbox.ch%2Fwp-content%2Fuploads%2F2010%2F01%2Fandroid_industrial_automation.p

[android-developers] Re: read phone state and "identity"?

2010-03-01 Thread skyhigh
I have been contacted by a few users that are concerned that my application uses the "read phone state and identity" permission. They are asking why I need to read their identity. In my case my application just checks the phone state to automatically pause audio playback when the user gets a phon

[android-developers] Preferences for input method

2010-03-01 Thread Andriy Tsykholyas
Hi, I'm working on input method. While creating the settings for it I've stuck with the following problem: settings view (which extends PreferenceActivity) fails to show if its package differs from the application's package. So, application package is "my.ime", and full name of settings view is "m

[android-developers] porting native C library to android

2010-03-01 Thread Abhi
Could someone guide me to an online tutorial that explains this really well? Thanks, Abhi -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this gr

Re: [android-developers] ListView vs. GridView vs. TableLayout

2010-03-01 Thread Mark Murphy
sdphil wrote: > I want to create a list view that looks like this: > > +--+--+--+ > | | | | > +--+--+--+ > | | | | > +--+--+--+ > > It looks like a grid in terms of the selection can go to any row and > column, but I want the left most column to be si

[android-developers] ListView vs. GridView vs. TableLayout

2010-03-01 Thread sdphil
I want to create a list view that looks like this: +--+--+--+ | | | | +--+--+--+ | | | | +--+--+--+ It looks like a grid in terms of the selection can go to any row and column, but I want the left most column to be significantly wider than the columns

Re: [android-developers] Re: Tiny URL

2010-03-01 Thread TreKing
On Mon, Mar 1, 2010 at 12:17 PM, Bob Kerns wrote: > My take on it is that he wants to create one from inside an Android > app > My take on it, based on the OP's posting history, is that he wants people to do his work for him. My response to one of his previous posts applies here as well: http://

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread skink
On Mar 1, 5:54 pm, mscwd01 wrote: > I realise the verts array is what manipulates the Bitmap, however I am > unsure how I construct the verts array. > > Basically I have calculated where the four corners of the Bitmap > should be drawn on the screen (I have four x,y pairs), I just need to > work

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread mscwd01
I realise the verts array is what manipulates the Bitmap, however I am unsure how I construct the verts array. Basically I have calculated where the four corners of the Bitmap should be drawn on the screen (I have four x,y pairs), I just need to work out how to construct a verts array which enable

Re: [android-developers] Video overlays and PIP

2010-03-01 Thread Mark Murphy
Sandy wrote: > One of the things I'm trying to design is a Picture in Picture, or > PiP, effect which displays one video playing on the "full screen" > while another plays as an insert. This is the same type of effect you > see when watching a news program on TV in which the commentator is > shown

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread skink
On Mar 1, 5:21 pm, mscwd01 wrote: > I found this in the > Demos:http://developer.android.com/resources/samples/ApiDemos/src/com/examp... > > However, I cant see how this will help me draw a Bitmap by specifying > the x,y coordinates of each corner though. > > If only Android had a drawBitmap(Bi

[android-developers] Video overlays and PIP

2010-03-01 Thread Sandy
One of the things I'm trying to design is a Picture in Picture, or PiP, effect which displays one video playing on the "full screen" while another plays as an insert. This is the same type of effect you see when watching a news program on TV in which the commentator is shown sitting at a desk and r

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread mscwd01
I found this in the Demos: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/BitmapMesh.html However, I cant see how this will help me draw a Bitmap by specifying the x,y coordinates of each corner though. If only Android had a drawBitmap(Bitmap, x1,y1,

  1   2   >