[android-developers] How can we get the 2^21 bytes from a video file in android

2011-11-05 Thread Sanat Pandey
I want to get first 2^21 bytes of a video file which is resided in sdcard, but I don't know how? Please suggest me the right solution regarding the same.\ Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] How can we get the 2^21 bytes from a video file in android

2011-11-05 Thread Christopher Van Kirk
Sounds like a homework assignment. On 11/5/2011 2:16 PM, Sanat Pandey wrote: I want to get first 2^21 bytes of a video file which is resided in sdcard, but I don't know how? Please suggest me the right solution regarding the same.\ Thanks in advance -- You received this message because you

[android-developers] selectable table

2011-11-05 Thread bob
I'm converting an app from iphone to Android, and I need some help. Here is the screen I'm working on now: http://i1190.photobucket.com/albums/z449/m75214/table_ques.png This is what is called a UITableView on iphone. Anyone know the most similar Android counterpart? Thanks. -- You received

[android-developers] Re: selectable table

2011-11-05 Thread Saket Agarwal
I think you can use Listviews on android and/or tablelayout. On Nov 5, 3:03 am, bob b...@coolgroups.com wrote: I'm converting an app from iphone to Android, and I need some help. Here is the screen I'm working on now: http://i1190.photobucket.com/albums/z449/m75214/table_ques.png This is

[android-developers] Lazy loading contact images to a ListView in Android

2011-11-05 Thread Chirag Raval
What is the easiest way of lazy loading contact images to a ListView in Android? (for SDK level =7) Is there a common approach or should I choose one of the different approaches discussed here on lazy loading web images into ListViews? I have come across the ContactPhotoLoader used inside the

[android-developers] Standard broadcast whenever a contact is added or changed

2011-11-05 Thread Chirag Raval
Is there any standard broadcast intent that I can register a BroadcastReceiver for that gets triggered whenever a contact is added or changed? -- 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] Menu formatting

2011-11-05 Thread dashman
Is there any way to tell the os how you'd like your menu to be displayed. I've got a menu with 5 entries. Android is displaying it in 3 rows of 2+2+1. I would like to display it 1+2+2. any way? -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Menu formatting

2011-11-05 Thread Mark Murphy
No, sorry. For example, it might be 6x1 on a tablet in landscape. You don't control this. On Sat, Nov 5, 2011 at 6:27 AM, dashman erjdri...@gmail.com wrote: Is there any way to tell the os how you'd like your menu to be displayed. I've got a menu with 5 entries. Android is displaying it in

Re: [android-developers] Standard broadcast whenever a contact is added or changed

2011-11-05 Thread Mark Murphy
Not that I am aware of, but you should be able to register a ContentObserver with the appropriate contacts ContentProvider(s). On Sat, Nov 5, 2011 at 6:20 AM, Chirag Raval chirag.android.develo...@gmail.com wrote: Is there any standard broadcast intent that I can register a BroadcastReceiver

Re: [android-developers] Sort order from content resolver

2011-11-05 Thread Mark Murphy
On Fri, Nov 4, 2011 at 10:29 PM, CMWiii kentka...@gmail.com wrote: Using content provider for contacts and can't seem to find a way to sort display_names without regard to case.  For example the names Able, Apple, agnostic will sort as agnostic, Able, Apple.  My desire is to ignore case and

Re: [android-developers] Re: Custom file viewer

2011-11-05 Thread Mark Murphy
Well, first, you want to drop the mimeType attribute, or possibly merge it into your other data element. Right now, you are saying that you support *both*: -- all files with any MIME type -- files with the particular scheme/host/pathPattern of any MIME type which seems unlikely to be what you

[android-developers] parse JSON image url to GalleryView

2011-11-05 Thread Muchamad Jeffri
hello i want to ask make galleryview look like on android market. this my code. gridadapter public class GridAdapter extends BaseAdapter { int resource; private ArrayListGridModel gm; private Activity activity; String response; Context context;

[android-developers] Re: Unable to install the .apk file on Samsung Galaxy SII mobile

2011-11-05 Thread Mani
Hi, Thanks for the reply. Let me clear my issue. I have created an hello world apk file using eclipse and copied the file in the mobile. When i tried to install the file in the samsung galaxy sII mobile i can see the message Application not installed. Regards, Manidhar On Nov 4, 8:19 am,

Re: [android-developers] Re: Unable to install the .apk file on Samsung Galaxy SII mobile

2011-11-05 Thread arun kumar
gotomanifest file and change min sdk 1 and max sdk 11 and then load apk file to device. its works:) On Sat, Nov 5, 2011 at 6:24 PM, Mani manidhar.karnata...@gmail.com wrote: Hi, Thanks for the reply. Let me clear my issue. I have created an hello world apk file using eclipse and copied

[android-developers] Framework Cloning of Referenced Objects?

2011-11-05 Thread Jay
I assume this is an Android question, though it may just betray my ignorance of Java memory management. I have an activity designed to randomly pick a person from a list, and to not repeat anyone until everyone has been chosen. The core logic of the pick method looks like this:

[android-developers] Re: Custom file viewer

2011-11-05 Thread Zsolt Vasvari
IIRC, I tried doing this unsuccessfully with OFX files. I don't remember the details, but, if my recollection is right, unless the file extension is defined in android.webkit.MimeTypeMap, it won't work. On Nov 5, 9:18 am, chrisn cnuern...@gmail.com wrote: This is *incredibly frustrating.  I

[android-developers] setCustomAnimations

2011-11-05 Thread iñaki
Hello, I´m creating a fragment with setCustomAnimations, which is the event that informs me that the animation of the fragment has ended? My intention is when the animation of the fragment ends, launching a process on the same fragment. Iñaki -- You received this message because you are

[android-developers] Re: Transactions in a ContentProvider

2011-11-05 Thread Flávio Faria
I prefer using ContentProviders for the following reasons: 1) I'll have my activities handling my cursors on their lifecycles themselves; 2) It's easier to implement an MVP pattern with the help of ContentObservers notifying the UI; 3) ContentProviders synchronize database accesses for me; 4)

[android-developers] Re: Laying imageViews in a Grid

2011-11-05 Thread Jeremy Dagorn
Hi, Have you tried to play with different values available for android:layout_width et layout_height? Jeremy On Nov 4, 2:15 pm, quizit jamesfrain2...@googlemail.com wrote: I want to have a grid type layout of image views so I wanted to see if I could get this using simple buttons. This is

[android-developers] Re: Laying imageViews in a Grid

2011-11-05 Thread quizit
I can get the image to fit the size i want by setting the height width explicitly but this would only look ok on certain sized screens. Instead i want to get an image view to fit on say , half the current screen width and 1/4 of the screens height, ie so it looks propotional to the screen size

Re: [android-developers] Re: Transactions in a ContentProvider

2011-11-05 Thread Kostya Vasilyev
1) Yes, that's exactly what I'm talking about 2) Serve data to the UI via a CP, to leverage Android's notificaitons. Nothing changes here, no need for broadcast receivers. Perform other operations bypassing the CP, dealing directly with the DB. 3) Not sure what you mean - if threading,

Re: [android-developers] Re: Laying imageViews in a Grid

2011-11-05 Thread Kostya Vasilyev
Try giving your ImageView's layout_width/height of 0, and some weight. Set android:scaleType as well so that the view scales the image, and not the other way around. http://developer.android.com/reference/android/widget/ImageView.html#attr_android:scaleType -- Kostya 05.11.2011 17:50,

Re: [android-developers] Re: Transactions in a ContentProvider

2011-11-05 Thread Mark Murphy
On Sat, Nov 5, 2011 at 10:13 AM, Kostya Vasilyev kmans...@gmail.com wrote: 2) Serve data to the UI via a CP, to leverage Android's notificaitons. Nothing changes here, no need for broadcast receivers. Perform other operations bypassing the CP, dealing directly with the DB. Um, I'm not sure how

Re: [android-developers] Re: Transactions in a ContentProvider

2011-11-05 Thread Kostya Vasilyev
The way it works is: getContentResolver().notifyChange(some uri, null); Same as when the above line of code is inside CP.insert/update/ -- Kostya 05.11.2011 18:21, Mark Murphy пишет: Um, I'm not sure how that works. If you insert a row in the DB directly, the CP will not be notified

[android-developers] Re: Change activity-wide density-configuration so that Resources decode from another res-folder.

2011-11-05 Thread Alex K.
Hi, ok that makes sense. My problem is I have a 10.1 inches tablet with a resulution of 1024x600. And it runs on low density of 120dpi. Since this low density causes bitmaps to be loaded from the drawable- ldpi folder with very low resolution, the game looks on such a big screen awful. That's why

[android-developers] Re: How can we get the 2^21 bytes from a video file in android

2011-11-05 Thread Tuan.B
Lol On Nov 5, 2:30 am, Christopher Van Kirk christopher.vank...@gmail.com wrote: Sounds like a homework assignment. On 11/5/2011 2:16 PM, Sanat Pandey wrote: I want to get first 2^21 bytes of a video file which is resided in sdcard, but I don't know how? Please suggest me the right

Re: [android-developers] Re: How can we get the 2^21 bytes from a video file in android

2011-11-05 Thread Kostya Vasilyev
Really. Android only supports even powers of two: 2^20 or 2^22 would be ok, but 2^21 is not. From what I can tell, it's to save power and extend battery life. :) -- Kostya 05.11.2011 18:56, Tuan.B пишет: Lol On Nov 5, 2:30 am, Christopher Van Kirk christopher.vank...@gmail.com wrote:

[android-developers] OutOfMemory exception when there should be enough memory left

2011-11-05 Thread sebastian_bugiu
So I am allocating a 4659200 bytes int[] that should be used as pixels in a bitmap (a background bitmap). The int[] should be collected since it's local to a method but somehow I get this stack trace: D/dalvikvm( 339): GC_EXTERNAL_ALLOC freed 18K, 76% free 2882K/11783K, external 7405K/7713K,

Re: [android-developers] Re: Transactions in a ContentProvider

2011-11-05 Thread Mark Murphy
On Sat, Nov 5, 2011 at 10:29 AM, Kostya Vasilyev kmans...@gmail.com wrote: The way it works is: getContentResolver().notifyChange(some uri, null); Same as when the above line of code is inside CP.insert/update/ :: smacks forehead :: Never thought of calling that outside the CP.

[android-developers] Compound Component not getting onKeyDown onKeyListener events for Droid Bionic or X2

2011-11-05 Thread Eric Carman
I have a compound component that I created for use in my application. This component consists of two textviews and is designed to take character input (not using the textviews) and deal with it one character at a time. Unfortunately, my customers are reporting that the component does not

[android-developers] Re: Sort order from content resolver

2011-11-05 Thread CMWiii
Yes, actually I have. Though I may have easily overlooked something they appear to be doing the same things as I am trying. Their sort string is collate localized asc which I have also tried to no avail. On Nov 5, 4:40 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Nov 4, 2011 at 10:29

[android-developers] How I can control the Caller ID from my app?

2011-11-05 Thread Zwiebel
How can I (if I can) control the Caller ID function from my own app? I want enable to the user, to block/unblock his/her caller ID from my app. Can I do this? If yes how? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] re:Google Maps

2011-11-05 Thread Todd Grigsby
For help with map views, try http://code.google.com/android/add-ons/google-apis/mapkey.html. On Nov 4, 2011 4:52 AM, jaggu mjagadeeshb...@gmail.com wrote: Hi How to get the map api key :because of my url is like ajax with javascripit combination : even when extends MapActvity also not coming

[android-developers] Re: OutOfMemory exception when there should be enough memory left

2011-11-05 Thread Streets Of Boston
I assume this is on pre honeycomb device. Do you have any bitmaps in your app or memory that is just in native (C/C++) code? Bitmaps take up process memory (that may contribute to OutOfMemory (OOM) errors) but the memory is native and isn't known to the DalvikVM. This means that it looks like

[android-developers] Re: I need to open my my files in /data/data/{package-name}/files using QuickOffice in Android

2011-11-05 Thread ramya
Thanks a lot Mark..Took your viewpoint and did a workaround for already created files .I copied them to new location with world readable permission .Thanks:) On Nov 4, 2:12 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Nov 4, 2011 at 2:30 PM, ramya ramya@gmail.com wrote: For

[android-developers] Re: OutOfMemory exception when there should be enough memory left

2011-11-05 Thread sebastian_bugiu
Yes it's version 2.2 and no nothing native in my code. This bitmap is a little large I do agree and I don't get this on the first run of the app. It happens if I restart the activity and that whole bitmap gets recreated. I think since it nullified before restarting the old one should be collected

Re: [android-developers] Re: OutOfMemory exception when there should be enough memory left

2011-11-05 Thread Kristopher Micinski
Nope, you need to do a .recycle() on the Bitmap, not just set it to null... kris On Sat, Nov 5, 2011 at 2:44 PM, sebastian_bugiu sebastian.bugiu.reloa...@gmail.com wrote: Yes it's version 2.2 and no nothing native in my code. This bitmap is a little large I do agree and I don't get this on the

[android-developers] Communicate between two Android Emulators via IP address

2011-11-05 Thread Weikang Wan
I use one emulator as a server and the other as a client sending request to the server. In emulator the IP address is allocated 10.0.2.15 However, every emulator is allocated as same IP address I am wondering if there is a way to communicate between two Android machines via IP address, i.e.,

Re: [android-developers] Communicate between two Android Emulators via IP address

2011-11-05 Thread Mark Murphy
http://developer.android.com/guide/developing/devices/emulator.html#emulatornetworking Please read the section named Interconnecting Emulator Instances. On Sat, Nov 5, 2011 at 3:34 PM, Weikang Wan weikang@gmail.com wrote: I use one emulator as a server and the other as a client sending

Re: [android-developers] Hiding Android Home Screen

2011-11-05 Thread Ash
Hi Mark, How do you make the app as the default home screen? Is there some setting in the Manifest file? Can you please guide me. Maybe I am not putting the correct keywords in Google. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Hiding Android Home Screen

2011-11-05 Thread Kristopher Micinski
You have to write a home app, you can find one in the SDK samples. Google write a home app android kris On Sat, Nov 5, 2011 at 4:49 PM, Ash anan...@gmail.com wrote: Hi Mark, How do you make the app as the default home screen? Is there some setting in the Manifest file? Can you please guide

Re: [android-developers] books for android app development

2011-11-05 Thread TreKing
On Fri, Nov 4, 2011 at 3:25 PM, fosser_josh prathamesh.musicgui...@gmail.com wrote: So which books is good for beginners to start developing applications for android. Go to Amazon. Search Android Books Read reviews. Decide. Or search this group - this question is asked like every other

Re: [android-developers] spinner on FragmentActivity

2011-11-05 Thread TreKing
On Thu, Nov 3, 2011 at 2:40 AM, sourabh sahu souruit...@gmail.com wrote: I have created a Spinner on FragmentActivity, but on a click of a spinner it crashes.Please suggest how to resolve it. http://tinyurl.com/5vkmu5e

Re: [android-developers] How to Show ProgressDialog during web service request

2011-11-05 Thread TreKing
On Wed, Nov 2, 2011 at 6:01 AM, DHAMODHARAN N dhams...@gmail.com wrote: I tried Async but i don't know how to make listview in onPostExecute method. I assume you meant AsyncTask - you don't have to make listview - you just have to update its data in its adapter and call notifydatasetchanged()

Re: [android-developers] phone orientation

2011-11-05 Thread TreKing
On Wed, Nov 2, 2011 at 2:02 PM, victoria mnesrin...@gmail.com wrote: I am using Eclipse with Phonegap and Sencha touch to develop an application for android, Neither of those have anything to do with the SDK. But in my application when i change the phone orientation, the screen of

[android-developers] Re: Does android 4.0 ice cream sandwich support arabic natively (properly) ?

2011-11-05 Thread AhmadOOka
Thanks. Ill try that On Nov 1, 2:36 am, Zsolt Vasvari zvasv...@gmail.com wrote: Why don't you download the SDK and run the Emulator.  You can see it for yourself. On Nov 1, 8:21 am, AhmadOOka ahmado...@gmail.com wrote: Any screenshots ? On Oct 21, 11:03 pm, AhmadOOka

[android-developers] more SMS questions

2011-11-05 Thread John Goche
Hello, As mentioned in an earlier post I am trying to send binary SMS from one phone to another. I use the emulator number as the phone number destination address in order to test things out. When the SMS is not binary (sendTextMessage below) things work fine, the message is received by the

Re: [android-developers] Application incompatible when trying to install on Galaxy 10.1

2011-11-05 Thread Christopher Van Kirk
There really aren't that many people using 1.6 anymore. The figure is 1.4% of the total population now. On 11/4/2011 6:32 PM, Jovish P wrote: In our application , we are showing details of customer such as phone number , email id , address. When he clicks on phone number we are initiating

[android-developers] Re: more SMS questions

2011-11-05 Thread Belvedere Computer Services
Base64 encoder on the send end / decode on remote On Nov 5, 7:28 pm, John Goche johngoch...@googlemail.com wrote: Hello, As mentioned in an earlier post I am trying to send binary SMS from one phone to another. I use the emulator number as the phone number destination address in order to

[android-developers] Re: Layout for zero-length strings in TextView

2011-11-05 Thread Doug
I remember noting this as a difference in Honeycomb compared to old Android versions. You might want to try in a Honeycomb (and even ICS) emulator as a reference. And I would love for a Google Android engineer to chime in as to why the behavior or TextView changed -- this is not an insignificant

[android-developers] Re: Animations in ListView (Android 3+)

2011-11-05 Thread Doug
The Gmail app may not be using a ListView, or may be using a customized derivative of ListView to achieve that effect. I imagine it's not as simple as setting a flag or writing a few lines of code to run an animation. Doug On Nov 4, 6:06 am, BoD bodlu...@gmail.com wrote: Hi! I am looking at

[android-developers] HTC SDK for windows XP - any advise ?

2011-11-05 Thread SL@maxis
I am planning to write an app on windows XP to access a smart phone's SMS/MMS messages (for my own use). I am thinking of buying a HTC. Any advise ? Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to

Re: [android-developers] HTC SDK for windows XP - any advise ?

2011-11-05 Thread Christopher Van Kirk
On 11/6/2011 10:49 AM, SL@maxis wrote: I am planning to write an app on windows XP to access a smart phone's SMS/MMS messages (for my own use). I am thinking of buying a HTC. Any advise ? Thanks. Pay cash? -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Application incompatible when trying to install on Galaxy 10.1

2011-11-05 Thread Dianne Hackborn
You don't need to set your minSdkVersion to anything specific just to declare in your manifest that you optionally require a feature. On Fri, Nov 4, 2011 at 3:32 AM, Jovish P android.f...@gmail.com wrote: In our application , we are showing details of customer such as phone number , email id

Re: [android-developers] Re: I need to open my my files in /data/data/{package-name}/files using QuickOffice in Android

2011-11-05 Thread Dianne Hackborn
I really, strongly, hugely recommend not making world readable files. Use a content provider. That is what they are for. On Sat, Nov 5, 2011 at 11:14 AM, ramya ramya@gmail.com wrote: Thanks a lot Mark..Took your viewpoint and did a workaround for already created files .I copied them to

Re: [android-developers] Framework Cloning of Referenced Objects?

2011-11-05 Thread Dianne Hackborn
None of the methods you are using will copy an object. Generally you must explicitly call clone() to do this. On Sat, Nov 5, 2011 at 6:25 AM, Jay johnabloodwor...@gmail.com wrote: I assume this is an Android question, though it may just betray my ignorance of Java memory management. I have

Re: [android-developers] Re: Change activity-wide density-configuration so that Resources decode from another res-folder.

2011-11-05 Thread Dianne Hackborn
You are going down the wrong path. At this point, what you have are not hdpi or ldpi or whatever bitmaps, because you don't actually want them to match the screen density. One thing you could do is put them in -nodpi and scale them yourself when loading to whatever size you actually want them to

Re: [android-developers] Re: Animations in ListView (Android 3+)

2011-11-05 Thread Romain Guy
Gmail uses a custom ListView. On Nov 5, 2011 7:20 PM, Doug beafd...@gmail.com wrote: The Gmail app may not be using a ListView, or may be using a customized derivative of ListView to achieve that effect. I imagine it's not as simple as setting a flag or writing a few lines of code to run an

[android-developers] ERROR/AndroidRuntime(631): FATAL EXCEPTION: main, ERROR/AndroidRuntime(631): java.lang.StackOverflowError

2011-11-05 Thread Bala Subrahmanyam Varanasi
Hi ! I'm developing a Baby Names app. I'm getting runtime exception while developiing the App. Here is some part of the log file. 11-06 01:37:00.970: WARN/dalvikvm(631): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 11-06 01:37:01.040: ERROR/AndroidRuntime(631): FATAL

[android-developers] Tabhost with Tabspec for all the screen

2011-11-05 Thread jaggu
Hi i my currentactivity i have 5 tabhost with tab spec. this i need to apply for all the screen ,its another screen its missing how to apply please hlep me in this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Framework Cloning of Referenced Objects?

2011-11-05 Thread Jay
Thank you for the reply. Is there some other mechanism by which the objects in my array might be replaced with objects with the same type and contents but different identities (i.e. don't compare as equal using the default implementation)? Because that seems to be what is happening

[android-developers] Re: Tabhost with Tabspec for all the screen

2011-11-05 Thread skink
On Nov 6, 6:16 am, jaggu mjagadeeshb...@gmail.com wrote: Hi  i my currentactivity i have 5 tabhost with tab spec.    this i need to apply for all the screen ,its another screen its missing how to apply please hlep me in this. all you need is to ask your question in at least understable