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

2011-11-04 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 a

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

2011-11-04 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 gr

[android-developers] Sort order from content resolver

2011-11-04 Thread CMWiii
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 have them sort as "Able, agnostic, Apple" which is what is actually do

[android-developers] Re: Custom file viewer

2011-11-04 Thread chrisn
This is *incredibly frustrating. I have changed my intent-filter to look like: $ adb shell am start -a android.intent.action.VIEW -d file:///mnt/sdcard/UIComposer/basicredcube.bif -n com.nvidia.devtech.UICViewer/.UICViewer Starting: Intent { act=androi

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-04 Thread Ralph
Hi Michael, Thanks again. Are you saying there is no way to help the user subscribe to a public google calendar via the new calendar api? I am already subscribing using some example from Yaniv Inbar a while back: where ALERT_CALENDAR is "nyc.ale...@brooklynmarathon.com" Is there a better, more

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

2011-11-04 Thread RLScott
On Nov 4, 4:26 pm, Belvedere Computer Services wrote: > not to argue ~ I feel we need to establish a Compatibility Definition > for the issue - just recently I had jet another GUI designer try to > tell me nulls were handled by the code when we were looking at code > that had no null handler = in

Re: [android-developers] SDK and AVD Manager not showing API for earlier versions

2011-11-04 Thread Mark Murphy
You need to update to the new tools, at which point you will be able to download other SDKs. On Fri, Nov 4, 2011 at 4:36 PM, BikerBu wrote: > I am a new developer; i just create my first app targetted at Android > 3.2 API 13.  Now i want to make it compatible with earlier versions. > I ran my SDK

Re: [android-developers] Problem with google maps

2011-11-04 Thread Mark Murphy
Make sure you're not running Java 7. There's a workaround for the changes to keytool if you are, though I don't remember them off the top o' my head. On Fri, Nov 4, 2011 at 6:32 PM, Ofek wrote: > Hey > I tried to use google maps on my application but when I launched the > application all I saw is

Re: [android-developers] Re: There is some android component that distribute text as news paper column?

2011-11-04 Thread Kostya Vasilyev
I would recommend you take a look at this: http://developer.android.com/reference/android/text/Layout.html This class does the actual work of displaying text in a TextView. Or just start with Canvas methods that measure and draw text and take it from there. -- Kostya Vasilyev 04.11.2011 18:40 п

[android-developers] How to dump rom of Samsung 10.1 Tablet & run under virtual box

2011-11-04 Thread JavaSrvcs
I have a Samsung Galaxy Tab 10.1 32GB (Verizon with no service). I want to take an image of the ROM and run under emulation and also VirtualBox. Is this possible? Also I want to reinstall the original factory ROM on the device. Any/ All help would be appreciated. I already have downloaded the

[android-developers] No APK file or DEX files are created - with no warning or Error whatsoever

2011-11-04 Thread Asaf Koski
Hi, I've developed Android for a while now, using WIN7 64bit and Eclipse. Since I've tried to install the new ADT (1.5), I get a very weird phenomena. My build doesn't complete, and doesn't generate the APK file, nor the dex files. the class files are created, but nothing else. Also, there is no

[android-developers] How to create a EGLContext in new thread with a functional eglswap ?

2011-11-04 Thread Mickaël BERNARD
hello, I would like to create a multithreaded opengl es2 application (developped in JNI). To do this, I create my thread with the pthread library by using the function pthread_create(&thread_render, NULL, (void *(*)(void *)) renderLoop, NULL); Here is the code of the renderLoop() callback func

[android-developers] The following classes could not be instantiated

2011-11-04 Thread AppBoy
When I try add MobFox ads to my app, after I tryed AdMob and it didn't success, I get error on the grapichal layout: The following classes could not be instantiated: - (Open Class, Show Error Log) See the Error Log (Window > Show View) for more details. Tip: Use View.isInEditMode() in your custom

[android-developers] Laying imageViews in a Grid

2011-11-04 Thread quizit
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 easy enough but the problem arises when I try to use an imageView instead of a button. Is there an easy way to force android to fit the imageView in the exact same space a button

[android-developers] Re: TreeView

2011-11-04 Thread Jehutyno
It could be very usefull for me ! Did you put your code somewhere ? thanks On 6 sep, 08:56, MegaDroider wrote: > I wrote a TreeView component to show items in a tree hierarchy, > because I checked Android Forums and (hope I'm not wrong) there is no > component that allows an unlimited number of

[android-developers] FragmentAlertDialog Sample

2011-11-04 Thread opaQue
Hi, I've wanted to make this sample work, but 2 problems have occured. http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/FragmentAlertDialog.html I changed line "newFragment.show(getFragmentManager(), "dialog");" to "newFragment.show(getSupportFragmentManager

[android-developers] A quick hint as to where to start for a sliding box?

2011-11-04 Thread DismalSeas
Not new to the Android community, but new to designing games and anything related to it. I want to develop a sliding window that the user can slide over letters in a word. Then retrieve the letters within the slider for use in a word game that I would like to design. Perhaps someone could pr

[android-developers] Problem with google maps

2011-11-04 Thread Ofek
Hey I tried to use google maps on my application but when I launched the application all I saw is a blank grid. By the way google didn't accept the fingerprint which is : F2:06:12:30:88:2C:10:98:88:BF:AB:E2:F3:F7:44:15:2A:48:99:7E So I shortened it to :F2:06:12:30:88:2C:10:98:88:BF:AB:E2:F3:F7:44:

[android-developers] how to get the contacts of groups

2011-11-04 Thread Samar Simha reddy
Hi how to retrieve the contact list based on group -- 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-developers+u

[android-developers] SDK and AVD Manager not showing API for earlier versions

2011-11-04 Thread BikerBu
I am a new developer; i just create my first app targetted at Android 3.2 API 13. Now i want to make it compatible with earlier versions. I ran my SDK and AVD Manager in administrator mode. In the Available packages section, i unchecked the "update only" check box, and the settings is set to forc

[android-developers] Developing an email client app on android

2011-11-04 Thread Stelios
I am trying to develop a small application for sending and receiving emails on the Android plataform. Currently i have been using the Javamail api trying to send an email. However i thought that if i implement my app using javamail how am i going to receive an email and get a notification from my a

[android-developers] books for android app development

2011-11-04 Thread fosser_josh
Hello hackers, I am a beginner in android development. So which books is good for beginners to start developing applications for android. regards, Prathamesh. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: Google Maps

2011-11-04 Thread lbendlin
Can you please state your problem again, slowly, and in English? -- 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-

[android-developers] Re: There is some android component that distribute text as news paper column?

2011-11-04 Thread lbendlin
You have to be positively crazy to try this with a list view. I can already hear the next customer requirement "I want to be able to copy and paste text across lines". -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] contacts first and last name

2011-11-04 Thread Goutom
Hi I am trying to fetch contacts first and last name.But getting fail. I am using the following code. String id; String[] projection = new String[] {ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME,ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME}; String where = ContactsCon

[android-developers] Re: chmod 777 not working with init.rc

2011-11-04 Thread pharaoh
Have you tried to think that that file may have the imutable bit ativated? See "*man chattr*" -- 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

[android-developers] Nfc Foreground Dispatch

2011-11-04 Thread bjthe4th
I was wondering if anyone knew the format for a Foreground Dispatch for an External Type tag. I was using something like this: myIntentFilter.addDataType("mysite.com:a"); to try and add a Foreground Dispatch for TNF_EXTERNAL_TYPE. But I keep getting a "Source not found" error. I think that the

[android-developers] Custom file viewer

2011-11-04 Thread chrisn
I am having trouble getting my android system to launch my activity for all files with a given extension. I am using OI File Manager, and trying to get my activity launched for all files with a given suffix (bif). Here is the relevant section of my manifest:

[android-developers] Re: Android 3.2 - Webview and Password Fields

2011-11-04 Thread Michael
Thanks for the update! It's even worse with Android 3.1. And unfortunately Galaxy Tab 10.1 doesn't have a 3.2 release yet :( ~Michael On Oct 27, 3:27 am, Sam Hassan wrote: > Hi Michael, > > I've been having the same issue, found this bug > report:http://code.google.com/p/android/issues/detail?i

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

2011-11-04 Thread Kostya Vasilyev
"The bug" here is trying to modify something that is not intended to be modified by application code. -- Kostya Vasilyev 05.11.2011 2:47 пользователь "Alex K." написал: > Hi, I have exactly the same problem. Did you find a solution for this > random DisplayMetrics restet to defaults? Or even an

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

2011-11-04 Thread Alex K.
Hi, I have exactly the same problem. Did you find a solution for this random DisplayMetrics restet to defaults? Or even an alternative solution to get the same effect? On 27 Okt., 10:12, arberg wrote: > I just noticed that the effect of updateConfig() seems to stick if > applied from onCreateDial

Re: [android-developers] Re: how to deflate/hide(invisible) ViewStub from Menu (onOptionsItemSelected)?

2011-11-04 Thread Kostya Vasilyev
http://developer.android.com/resources/articles/layout-tricks-stubs.html 05.11.2011 2:26, Abhi пишет: Hi Kostya, I have a GalleryView in my ViewStub and I dynamically add images to the Gallery. I would like to control from a menu option, the visibility of the complete ViewStub view. So basicall

[android-developers] Re: how to deflate/hide(invisible) ViewStub from Menu (onOptionsItemSelected)?

2011-11-04 Thread Abhi
Hi Kostya, I have a GalleryView in my ViewStub and I dynamically add images to the Gallery. I would like to control from a menu option, the visibility of the complete ViewStub view. So basically, when the ViewStub is up displaying the gallery and I press the menu option, the whole view gets hidden

[android-developers] Re: chmod 777 not working with init.rc

2011-11-04 Thread Pratik Prajapati
Ok. Thanks. In fact I modified the driver which was exporting this sysfs entry. Not driver creates the the entry with 777 perm only. -- Regards, Pratik Prajapati On Wed, Nov 2, 2011 at 12:38 PM, Sylvain Huard wrote: > I had a very similar problem with a "chmod 0777 filename" not working in > m

Re: [android-developers] how to deflate/hide(invisible) ViewStub from Menu (onOptionsItemSelected)?

2011-11-04 Thread Kostya Vasilyev
Inflating a view stub has two important properties: 1) It's irreversible: once inflated, the stub's content is always there 2) The stub's content replaces the stub. Sounds like you need to replace the stub with and toggle its contents' visibility as needed. -- Kostya 05.11.2011 2:07, Abhi п

[android-developers] how to deflate/hide(invisible) ViewStub from Menu (onOptionsItemSelected)?

2011-11-04 Thread Abhi
I keep getting NullPointerException trying to deflate or make invisible the ViewStub from my UI. I just wanted to be sure I am doing it right. I am inflating my ViewStub in onItemLongClick method of GalleryView by doing the following: @Override public boolean onItemLongClick(AdapterVi

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

2011-11-04 Thread Belvedere Computer Services
not to argue ~ I feel we need to establish a Compatibility Definition for the issue - just recently I had jet another GUI designer try to tell me nulls were handled by the code when we were looking at code that had no null handler = in other works (my opinion) is default behavior for supplied GUI s

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

2011-11-04 Thread Kostya Vasilyev
Not sure what CP's have to do with REST... My recommendation still stands - implement your own data access classes that directly deal with a SQliteDatabase. Make them as simple or as complex as you wish - from calling SQLiteDatabase directly to an abstract object/database mapper. Then layer

[android-developers] How to force ViewGroup to draw (in onDraw callback) in regions occupied by its child views

2011-11-04 Thread Frank L
Hello, I have a ViewGroup and I manually draw certain things in its onDraw() callback. After I add a GLSurfaceView to it at runtime, ViewGroup's onDraw() is called. It seems that Android clips out the region occupied by the GLSurfaceView so that the onDraw() function cannot draw into that region.

[android-developers] Re: Transactions in a ContentProvider

2011-11-04 Thread Flávio Faria
Thanks Kostya, Actually, I don't need to expose my data. I'm using a ContentProvider because I'm trying to implement the REST architecture suggested by Virgil Dobjanschi on Google I/O: http://www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html Though, I have complex entit

[android-developers] Re: i need to send string (data) from one android device to another android device using " bluetooth "

2011-11-04 Thread Droid
Why not just send strings without json? Bluetooth chat example in the sdk does exactly that. On Nov 3, 12:08 pm, Perumss Naren wrote: > *Hi, > >     1.  i need to send string (data) from one android device to another > android device using " bluetooth " > > what i tried: >              SyncDataba

[android-developers] Re: i need to send string (data) from one android device to another android device using " bluetooth "

2011-11-04 Thread Droid
Why not just send strings without json? Bluetooth chat example in the sdk does exactly that. On Nov 3, 12:08 pm, Perumss Naren wrote: > *Hi, > >     1.  i need to send string (data) from one android device to another > android device using " bluetooth " > > what i tried: >              SyncDataba

[android-developers] Re: Transactions in a ContentProvider

2011-11-04 Thread Flávio Faria
Thanks Pepjin, Unfortunately, Im targeting Android 1.6, so it's not possible to use ContentProviderOperations... On Nov 4, 2:36 pm, Pepijn Van Eeckhoudt wrote: > Override ContentProvider#applyBatch, start a transaction on your > database, apply all the operations and then commit (or rollback) th

[android-developers] Re: can orientation sensor return values in minutes instead of degrees

2011-11-04 Thread RLScott
On Nov 4, 2:46 pm, redmapleleaf wrote: > Hi, > > I wonder if someone know how to get the orientation sensor accuracy > down to minutes instead of degrees. Is it even possible? The magnetometer in these devices is so noisy (both long term and short term noise) that any interpretation of angles l

[android-developers] Installing different Android versions on Nexus S

2011-11-04 Thread Steven Merel
Hi, I would like to be able to test my code on different Android versions on an actual device, rather than the emulator. I have a Nexus S which currently has Android 2.3.6 installed. My understanding is that I can boot into "recovery" mode on my phone and load an Android package from the SD c

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

2011-11-04 Thread Mark Murphy
On Fri, Nov 4, 2011 at 2:30 PM, ramya wrote: > For Content Provider ,do I have to mention the provider tag in > manifest.I have not worked on that before.Do you know of any examples > of how to access my internal files using content provider? https://github.com/commonsguy/cw-advandroid/tree/maste

[android-developers] Re: Is it possible to add a GLSurfaceView to ViewGroup without making screen go black

2011-11-04 Thread Droid
Have you tried using frames? I say this because stacking one frame on top of another worked well for me. On Nov 3, 9:15 pm, Frank L wrote: > Dear All, > > I have a ViewGroup (V) that is the Activity's content view and I draw > on the V's Canvas directly. At runtime, I create a GLSurfaceView (G)

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

2011-11-04 Thread ramya
Hi Mark, I just realised that openFileOutput works but I am trying to change the permission of already existing file.and It is not directly under files,its under files/folder/filename.ppt..Any Ideas on how I could change this permission under subdirectory? On Nov 4, 1:30 pm, ramya wrote: > I am

[android-developers] can orientation sensor return values in minutes instead of degrees

2011-11-04 Thread redmapleleaf
Hi, I wonder if someone know how to get the orientation sensor accuracy down to minutes instead of degrees. Is it even possible? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

Re: [android-developers] android market language listings

2011-11-04 Thread Kostya Vasilyev
Chinese used to be available - but these days, it seems that Google and China don't like each other much :) You can still include any locale you like in your application's resources. -- Kostya 04.11.2011 22:37, John Goche пишет: Hello, I wonder how come not all languages are supported for li

[android-developers] android market language listings

2011-11-04 Thread John Goche
Hello, I wonder how come not all languages are supported for listings in android market. For instance I can see Chinese (Taiwan) but not Chinese (PRC), and I cannot see many other languages despite the mobile phones support many. What's up with this? John Goche -- You received this message beca

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

2011-11-04 Thread ramya
I am so glad that I have reply from you.I tried the openFileOutPut option.Dunno why,It still said it dint have permission.Kind of weird . For Content Provider ,do I have to mention the provider tag in manifest.I have not worked on that before.Do you know of any examples of how to access my int

[android-developers] Re: How to find which drawable folder is being used??

2011-11-04 Thread Marcel Arts
OK naturally, but can you force which resource the phone/tablet is gonna use? Which is default for cellphone/tablet and is there a automatic fallback from hdpi to mdpi and to ldpi? thx, Marcel On Nov 4, 1:13 pm, Shashidhar wrote: > Hi, >  I found a weird ways of finding this. > We can place

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

2011-11-04 Thread Mark Murphy
Or, create a small ContentProvider to serve up the files, and use content:// Uri values in your Intents to open them up. On Fri, Nov 4, 2011 at 1:06 PM, Mark Murphy wrote: > The files need to be MODE_WORLD_READABLE for third-party applications > to access them. When you create the files, use open

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

2011-11-04 Thread Mark Murphy
The files need to be MODE_WORLD_READABLE for third-party applications to access them. When you create the files, use openFileOutput() and specify MODE_WORLD_READABLE. On Fri, Nov 4, 2011 at 1:02 PM, ramya wrote: > Hi > I need your help.Right now,I am struck in here. 1)My device does not > have an

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

2011-11-04 Thread ramya
Hi I need your help.Right now,I am struck in here. 1)My device does not have an sdcard. 2)In my app,I have MS files under my Internal Memory like ppt,xls and even pdf 3)I have quickoffice in my device. 4)When ever I launch a view intent using the appropriate Mime type ,I get the follwing error: ER

Re: [android-developers] Transactions in a ContentProvider

2011-11-04 Thread Kostya Vasilyev
My two cents: don't go through your own ContentProvider unless you need to. Use ContentProvider for exporting data to other apps, or, within the app, for very specific URIs that should trigger UI updates. For the rest of the data, that is, those db ops that don't need to trigger UI updates, g

Re: [android-developers] Re: No luck with new ICS CalenderContract

2011-11-04 Thread Michael Chan
Hi Ralph, I wish I have a solution for you. That's not supported right now. The only (not so good) way is to use the browser. I will file an internal feature request if we don't have one already. Thanks, Mike On Fri, Nov 4, 2011 at 7:24 AM, Ralph wrote: > Hi Michael and thank you. > > Can you

Re: [android-developers] Transactions in a ContentProvider

2011-11-04 Thread Pepijn Van Eeckhoudt
Override ContentProvider#applyBatch, start a transaction on your database, apply all the operations and then commit (or rollback) the transaction. The default implementation delegates each operation to the corresponding ContentProvider method so you can probably do this as: startTransaction tr

[android-developers] Re: Transactions in a ContentProvider

2011-11-04 Thread hoyski
On Nov 3, 3:59 pm, Flávio Faria wrote: > Hi guys, > > I have a ContentProvider in my app that wraps an SQLite database. I'm > wondering what is the best way to call insert(), update(), delete() > and query() inside a database transaction. Is it possible? Is there > any workaround? bulkInsert() doe

[android-developers] Re: Problem in facebook logout

2011-11-04 Thread Ali Chousein
Probably you need to clear your cookies: CookieSyncManager cookieSyncMngr = CookieSyncManager.createInstance(context); CookieManager cookieManager = CookieManager.getInstance(); cookieManager.removeAllCookie(); - Ali Chousein Weather-Buddy http://we

[android-developers] Re: Users cannot install my application because of incorrect signing

2011-11-04 Thread John Raftery
Ah, that is good to know. Thanks very much!! John -- 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-developers+uns

Re: [android-developers] Confused: which Android versions should we support, and how?

2011-11-04 Thread Kristopher Micinski
Awesome suggestions, thanks Mark! kris On Fri, Nov 4, 2011 at 10:33 AM, Mark Murphy wrote: > On Fri, Nov 4, 2011 at 10:14 AM, Zsombor wrote: >> And my code is currently full of conditional >> statements that check the current Droid version so I only use newer >> features (like drag-drop, etc.)

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

2011-11-04 Thread RLScott
My main activity has a RelativeLayout that includes some TextViews. The vertical position is determined by things like this in the XML: As you can see, the vertical positioning of id/frequency is to be directly below id/name. At various times the app sets different strings as the text o

Re: [android-developers] CTS for NON mobile devices

2011-11-04 Thread Mark Murphy
On Fri, Nov 4, 2011 at 11:19 AM, Tiago Maluta wrote: > Now about Market "validation" I don't know Google's policy to this kind of > device since you must complain to Compatibility Definition Document(CDD). > I'd like to know more. It's reasonably likely that the CDD for Android 4.0 will be releas

Re: [android-developers] to move an image view along a bezier curve

2011-11-04 Thread TreKing
On Tue, Nov 1, 2011 at 8:57 AM, ruchira wrote: > I have drawn a bezier curve and I want my imageview which is a picture of > a ball to follow the path traced by the curve and eventually fall to the > ground.How do I do that? > Write the code to do what you described. Your question is so broad an

Re: [android-developers] CTS for NON mobile devices

2011-11-04 Thread Tiago Maluta
On Fri, Nov 4, 2011 at 9:08 AM, MMS wrote: > I want to run CTS on NON mobile devices (STB). The STB do not have > BT,Wi-fi,3G,Gyrometry and Touch sensor. > I want to connect all these devices through USB dongle and run CTS for > the same. Will the CTS for these devices (connected through USB > do

[android-developers] Re: There is some android component that distribute text as news paper column?

2011-11-04 Thread Fabian Ricardo Rodrìgueza Avellaneda
On 4 nov, 08:29, John Davis wrote: > On Fri, Nov 4, 2011 at 6:57 AM, lbendlin wrote: > > I guess this is your lucky day - you will be the first one to develop this. > >  I would start with finding out how many columns to display on the current > > device and screen resolution ( don't be silly

Re: [android-developers] Confused: which Android versions should we support, and how?

2011-11-04 Thread Mark Murphy
On Fri, Nov 4, 2011 at 10:14 AM, Zsombor wrote: > And my code is currently full of conditional > statements that check the current Droid version so I only use newer > features (like drag-drop, etc.) if I'm able to. You may be able to clean that up by using interfaces: -- define an interface for

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-04 Thread Ralph
Hi Michael and thank you. Can you let us know the recommended way to subscribe a user to a public google calendar. For example, let's say you have a google calendar with public information. for example, some city alerts etc. data. We want to make it easy for the user to subscribe to the public

[android-developers] Confused: which Android versions should we support, and how?

2011-11-04 Thread Zsombor
I'm currently working on an application for quite a few months now that should target the largest audience possible, all the way down to 2.2. But I'm getting increasingly confused about how exactly I should deal with the newer Android versions. I want to be able to use the new features introduced

[android-developers] Re: ThreadPoolExecutor stop tasks onPause

2011-11-04 Thread Streets Of Boston
shutDownNow will cancel all the pending tasks and make the Executor unavailable for any future task submissions. Instead, you'd have to keep track to any Future you have scheduled (the value returned by an executor.submit(...) call). Call 'cancel(boolean)' on all the Futures that are still outst

[android-developers] Re: How to get this to wrap?

2011-11-04 Thread darrinps
That did it! I had it as Relative and had it working in the emulator at one time but it didn't on devices so I switched some things around and when I stripped those out I forgot to switch back the layout. Going back to relative then addind in the layout_toLeftOf="right view" did the trick along wi

[android-developers] Re: Change PPI (pixel per inches) of PNG file in Android

2011-11-04 Thread Streets Of Boston
I just changed the license for SanselanAndroid to MIT. You're basically free to use it any way you like (read up on MIT License details for more info). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

[android-developers] Re: Change PPI (pixel per inches) of PNG file in Android

2011-11-04 Thread Streets Of Boston
That is actually my project, one of my old projects :) I use it in one of my apps (before ExifInterface became available). You can use it. :) But you can use ExifInterface as well, i think: You can't use one of the predefined tags (ExifInterface.TAG_), but you can call 'setAttribute' and 'get

[android-developers] Re: When Android 4 SDK will be compatible with Java 7?

2011-11-04 Thread sblantipodi
I want to mean ETA, not OTA. I'm sorry. I'm asking for the possibility to build my sources with Java7 and not to use the Java7 language when programming. On Nov 4, 2:13 pm, David Turner wrote: > On Fri, Nov 4, 2011 at 1:39 PM, sblantipodi > wrote: > > > As title. > > is there an OTA for Java7 su

[android-developers] Re: Limiting cache size of an Adapter

2011-11-04 Thread Streets Of Boston
Say you show a ImageViewFragment (which is a subclass of a Fragment) for each page in your ViewPager. Your ViewPager uses a FragmentPagerAdapter to handle the in-and-out swiping of ImageViewFragments. Implement these methods for your ImageViewFragment class: * @Override* * public void onViewCrea

Re: [android-developers] Re: Hook event listeners for activity/application lifecycle events

2011-11-04 Thread John Davis
On Fri, Nov 4, 2011 at 3:30 AM, Doug wrote: > On Nov 2, 8:54 pm, Miles wrote: >> So is there a way to hook event listeners for lifecycle events? > > Not really. You can write your own subclass of Activity that accepts > a listener for events and hook it all up yourself. Then you can have > all

Re: [android-developers] There is some android component that distribute text as news paper column?

2011-11-04 Thread John Davis
On Fri, Nov 4, 2011 at 6:57 AM, lbendlin wrote: > I guess this is your lucky day - you will be the first one to develop this.   > I would start with finding out how many columns to display on the current > device and screen resolution ( don't be silly and try to cram more than one > column onto

Re: [android-developers] customized date picker

2011-11-04 Thread ramesh mandare
please give me code On Fri, Nov 4, 2011 at 4:15 PM, vani reddy wrote: > > Hi, > Check out the code I have attached. > > On Fri, Nov 4, 2011 at 3:52 PM, Ratheesh Valamchuzhy > wrote: > >> can u give me all the code to debug. >> >> -- >> You received this message because you are s

Re: [android-developers] When Android 4 SDK will be compatible with Java 7?

2011-11-04 Thread David Turner
On Fri, Nov 4, 2011 at 1:39 PM, sblantipodi wrote: > As title. > is there an OTA for Java7 support? > > There is strictly no ETA at the moment, so don't count on it for now (OTAs are a different thing I believe ;-)) Also there is a difference between being able to build with JDK 7, and being able

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

2011-11-04 Thread BoD
Hi! I am looking at how to implement nice animations in a ListView for an app targeting Android 3 and more. Specifically, I would like to implement the same behavior that can be seen in the Gmail app when an item is deleted or archived: the other elements of the list smoothly move to fill the

[android-developers] When Android 4 SDK will be compatible with Java 7?

2011-11-04 Thread sblantipodi
As title. is there an OTA for Java7 support? -- 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-developers+unsubscr.

Re: [android-developers] Programmatically installing APK question

2011-11-04 Thread Mark Murphy
On Fri, Nov 4, 2011 at 2:42 AM, Ash wrote: > We have developed an application for a rooted Android 2.2. The application > starts automatically after Android is booted and continues to run forever. > There is no way for the user to exit the application (unless the app crashes > for any reason). >  

Re: [android-developers] Hiding Android Home Screen

2011-11-04 Thread Mark Murphy
On Fri, Nov 4, 2011 at 2:45 AM, Ash wrote: > Is there a way to hide the Android home screen at boot up (e.g. put a black > canvas / remove all icons and the lock buttons). We have developed an > application for a rooted Android 2.2. The application starts automatically > after Android is booted. H

Re: [android-developers] Newly installed widgets are not runnable on Honeycomb

2011-11-04 Thread Mark Murphy
On Fri, Nov 4, 2011 at 2:32 AM, sincere6 wrote: > I developed the widget app that runs on honeycomb OS. (Actually the > hardware is Samsung Galaxy Tab.) > When I installed the developed widget, it should be in the list of > runnable widget list by pressing desktop screen for a few seconds. But > i

[android-developers] Sample ContactManager crashes again

2011-11-04 Thread wyo
After successful running the ContactManager on my phone, I tried to change it a little bit to show other information. I changed ContactsContract.Contacts.DISPLAY_NAME with ContactsContract.CommonDataKinds.Organization.COMPANY both when using SimpleCursorAdapter and managedQuery yet it crashes s

Re: [android-developers] Re: How to find which drawable folder is being used??

2011-11-04 Thread Shashidhar
Hi, I found a weird ways of finding this. We can place three completely different images(ex: cat, pig, elephant :-) ) with same name in each of the folder. In your app use this image on UI. When you run the app now, you will be able to find which drawable folder is being used based on the image s

[android-developers] Re: Android CustomizableTab with intent not working .

2011-11-04 Thread Ashish Tiwari
public class CustomTabActivity extends TabActivity { /* codes */ } -- 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 andro

[android-developers] Re: Android CustomizableTab with intent not working .

2011-11-04 Thread Ashish Tiwari
Hey sorry, Actually I was forget to extend TabActivity. Now problem is solved . :) public class CustomTabActivity extends Activity { /* codes */ } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] ThreadPoolExecutor stop tasks onPause

2011-11-04 Thread viktor
Hi, need the best advice how to manage ThreadPool. I want to stop the tasks when ListView is scrolling. If I do ThreadPoolExecutor.shutdownNow(). The pool is terminated and doesn't want execute the tasks again. How to correctly stopping the tasks? -- You received this message because you are s

[android-developers] re:Google Maps

2011-11-04 Thread jaggu
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 in my activity class how to get that please help urgent this.. Thanks Jagadeesh -- You received this message because you are subscribed to the Google Groups

[android-developers] Android CustomizableTab with intent not working .

2011-11-04 Thread Ashish Tiwari
Hi friends, I'm making Customizable android Tab's,and it works fine without adding " Intent " but when I set the intent it I didn't understand where I'm making mistake .. Here is codes , or check this pastebin link >>> http://pastebin.com/yeEP0rwH public class CustomTabActivity extends Act

Re: [android-developers] Unable to write the SD card from emulator

2011-11-04 Thread TreKing
On Fri, Nov 4, 2011 at 12:33 AM, sam wrote: > But i'm getting exception (File not found exception) > As the name implies, the system cannot find the file you specified. If you're looking to create a new file to write to, you must do exactly that: create it if it doesn't exist, just like you do f

[android-developers] dynamic gallery array

2011-11-04 Thread ANKUR GOEL
How to get dynamic array for gallery .. i am downloading images from server -- 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

[android-developers] Re: Application in memory card

2011-11-04 Thread kalandar
Thank you mark On Nov 2, 5:21 pm, Mark Murphy wrote: > http://developer.android.com/guide/appendix/install-location.html > > > > > > > > > > On Wed, Nov 2, 2011 at 8:11 AM, kalandar wrote: > > hi friends, > >      Is there a way to install app in android external memory? > >      or all appl

[android-developers] Re: Scenario where initLoader() does not call onLoadFinished()

2011-11-04 Thread kaciula
It turns out that the new revision fixed part of the problem but the bug still remains in some cases. If you take the code I posted and run it, press the button to launch the new activity, switch orientations only once and then press BACK, it shows the wrong value. The idea is to press BACK fro

[android-developers] Re: Parse JSON to Grid Layout

2011-11-04 Thread Ali Chousein
Parsing JSON and populating a grid layout are completely different things and you should approach them separately. Step-1: Parse your JSON object Step-2 Populate your grid layout with the data of step-1. You can find plenty of online examples for either of them.

[android-developers] CTS for NON mobile devices

2011-11-04 Thread MMS
I want to run CTS on NON mobile devices (STB). The STB do not have BT,Wi-fi,3G,Gyrometry and Touch sensor. I want to connect all these devices through USB dongle and run CTS for the same. Will the CTS for these devices (connected through USB dongle) will pass ? Do i need to do any additional set-up

[android-developers] Re: ContentProviderResult[] delete fail or success

2011-11-04 Thread Cel
there seems to be no documentation on this, any ideas please? -- 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-dev

  1   2   >