Re: [android-developers] why metaData in providerInfo is always null?

2011-01-13 Thread jesse
hmm, so I need to make explicit call to get ProviderInfo in the MyProvider: context.getPackageManager(). resolveContentProvider(MyProvider.class.getName(), PackageManager.GET_META_DATA); even though Override function public void attachInfo(Context

[android-developers] Putting Multiple custom ListViews and scrolling

2011-01-13 Thread Amit
Hi All, I have few custom ListViews which I am using to create a user screen. If i put these list views inside a ScrollView, All ListViews shrinks i.e. only 1.5 items are geting displayed per ListView. If I remove the scroll view and put them in a LinearLayout then I am not able to see the

[android-developers] Re: image background - how to repeat an image rather than strech it

2011-01-13 Thread Muhammad Ali
You can create a bitmap in memory, using your own file and draw it in background. It will help you like the repeat image. On Jan 12, 1:57 pm, liordav lior...@gmail.com wrote: Hi, I have an image I want to use as a background to some layout. the problem is the image contains a texture of

[android-developers] is there a native (NDK/C++) way to check if a library is on the phone?

2011-01-13 Thread Aaron L.
Hi all, In the .apk manifest you can add lines such as uses-library android:name=com.dev.mylibrary/ And then if the library is not present on the device, the application won't start. My question is: is there some sort of call or check I can make from *within my JNI or native C++ code* to see

[android-developers] Re: import! global roaming

2011-01-13 Thread herry
no body knows... On Jan 13, 11:00 am, herry xinwei...@gmail.com wrote: hi, all, i got a problem: when i want to figure out if the device is in global roaming or just national roaming , i found that : android only give a confused answer in TelephonyManager(isNetworkRoaming()),but i need more

Re: [android-developers] there is any view like select of html in android SDK?

2011-01-13 Thread Kostya Vasilyev
Yes there is, and it's called Spinner, but it doesn't have optgroup-like grouping: http://developer.android.com/reference/android/widget/Spinner.html If you need group headers, you can create them quite easily with your own Adapter (you typically subclass BaseAdapter so there are fewer

Re: [android-developers] Re: sqllite

2011-01-13 Thread Kostya Vasilyev
You could also use query parameters to avoid any quoting issues, including counting backslash-quotes (seems it's always a problem: did you close the quotes around the literal? are there too many? too few?): database.query(TABLE_NAME, projection, COLUMN_NAME = ?, new String[] { mySearchString

[android-developers] Re: Strange NoClassDefFoundError from Bitmap.compress()

2011-01-13 Thread String
On Wednesday, January 12, 2011 4:18:08 PM UTC, Bob Kerns wrote: ClassNotFoundError can mean it got an error while loading the class. Perhaps it ran out of memory, just as it was loading this class? Hmm, that is a possibility. The app in question does have some memory issues, mostly due to

Re: [android-developers] Can't find Activity error

2011-01-13 Thread Kostya Vasilyev
It should be like this: In the manifest: activity android:label=Life Wallpaper Settings android:theme=@android:style/Theme.Light.WallpaperSettings android:exported=true android:enabled=true android:name=LifeSettings You'd only need

Re: [android-developers] import! global roaming

2011-01-13 Thread Marcin Orlowski
On 13 January 2011 04:00, herry xinwei...@gmail.com wrote: all, i got a problem: when i want to figure out if the device is in global roaming or just national roaming , i found that : android only give a confused answer in TelephonyManager(isNetworkRoaming()),but i need more information.

Re: [android-developers] Re: Strange NoClassDefFoundError from Bitmap.compress()

2011-01-13 Thread Romain Guy
String, there are no leaks around bitmaps in the platform. It is just that, unfortunately, the current GC takes a few passes to reclaim the native memory because of the use of finalizers. Android 2.3 attempts to reclaim bitmaps faster, and in Android 3.0 we moved the bitmap storage to the Dalvik

Re: [android-developers] there is any view like select of html in android SDK?

2011-01-13 Thread goodwin
Thanks.Kostya Surely i dont find optgroup-like. I will try to make an adapter. -- 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

[android-developers] Re: Strange NoClassDefFoundError from Bitmap.compress()

2011-01-13 Thread Romain Guy (Google)
Looking at the error message I noticed something strange: java.lang.NoClassDefFoundError: android.graphic3.Bitmap $CompressFormat It is trying to load the class from the package android.graphic3 instead of android.graphics. If that is truly the case, it looks like a corruption in your compiled

[android-developers] change permission to /data/data/package name/databases

2011-01-13 Thread stanly
hi all, I want to change permission for /data/data/package/databases folder, is it possible to do this action in my application? 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-developers] Re: Strange NoClassDefFoundError from Bitmap.compress()

2011-01-13 Thread String
Interesting. If it's code corruption, uninstall/reinstall should fix, correct? A user who contacted me with this issue reported - or at least implied - that reinstallation didn't help, but I can't be sure from here. I'll follow up with the user to try to get confirmation. String -- You

[android-developers] Re: How to differentiate market download app and non-market application

2011-01-13 Thread Hugo Visser
In the case that you distribute your app through different channels, you could produce two builds which of your app and add some metadata to the AndroidManifest.xml to indicate it's a non-market version. You can check that attribute from code. This won't help defeat any piracy, and won't prevent

Re: [android-developers] Re: Strange NoClassDefFoundError from Bitmap.compress()

2011-01-13 Thread String
I respectfully disagree, though part of the issue could be terminology, what you consider a leak. I understand your explanation about the GC requiring multiple passes, but to my mind, if calling system.gc() doesn't reclaim unused memory, that's a leak. According to the docs, I shouldn't need to

[android-developers] problem with listview

2011-01-13 Thread gonzobrains
Hi, I tried to make a post about this before but I don't see it in the group for some reason. :/ I am trying to make a list of books, with each book containing two lines of text and a delete button. For some reason when I add books to the adapter they show up in the list twice. What am I doing

[android-developers] Re: Performance issue with mapview when using large number of items

2011-01-13 Thread MrChaz
You could try and merge over-lapping icons or detect when people are scrolling and add/remove icons appropriately. -- 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

[android-developers] How to add new locale and it's associated font in android source

2011-01-13 Thread kariyachan
Hi all, I've been trying to add new locale ml_IN(malayalam -India) and it's font to android source.Some how I added font to android emulator by replacing DroidSansFallback.ttf with my fonts it worked for me ,I know that is not the right way, when I added it as DroidsansMalayalam.ttf

[android-developers] making white pixels transparent

2011-01-13 Thread crem
Hello, I need to make white points of a png image transparent at runtime. Java awt isn't supported by android. So... any suggestions? greets -- 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] Cookies reseted

2011-01-13 Thread lou
Hi ! I have an application using HttpClient, who saves automatically the cookies received from the login request. The matter : when an activity is killed, my httpClient is reseted, consequently all next request are refused by the server cause the cookies aren't sent. What can I do ? My suggestion

[android-developers] Inflating views in a ListAdapter

2011-01-13 Thread Mattias Svala
Hello! I'm trying to write my own custom ListAdapter. In getView() I want to inflate the views from an XML file. To do this I have the following code: public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = LayoutInflater.from(ctx);

[android-developers] webview inside the dialogbox.

2011-01-13 Thread yogi
Hi all, I m launching the dialog with webview inside it. Now on that webview I have a textbox (like google sign in page).When I tap on the field the Softkeyboard is not showing. Its not even working in emulator.. Thanks in Advance. Regards Yogi -- You received this message because you are

Re: [android-developers] Inflating views in a ListAdapter

2011-01-13 Thread Kostya Vasilyev
13.01.2011 13:54, Mattias Svala пишет: TextView view = (TextView)inflater.inflate(R.layout.notes_row, null); Basically, what is the correct way to inflate views in a ListAdapter? Yes. You also should support recycling views to get better performance and memory usage: if (convertView ==

[android-developers] ImageButton drawable size

2011-01-13 Thread Schoel
Hello, I have created a 9patch image which I would like to use as border on ImageButtons and ImageViews. However, when I set the drawable (with setImageResource) to a drawable that's larger than the ImageButton size, the border (which is set with android:background) the border gets hidden behind

[android-developers] WebView not taking external css styles?

2011-01-13 Thread Leif
I am trying to make an about screen for my app as a html file with external styles in a css file. In the css file I specify a particular style for a tags. The thing is that this particular style seems to be ignored by the WebView. Works fine when browsing the exact same location with the built-in

[android-developers] Re: ImageButton drawable size

2011-01-13 Thread Schoel
Setting the scaleType to centerInside did the trick. Sorry if I wasted your time! On 13 Jan, 12:27, Schoel samuelsson.j...@gmail.com wrote: Hello, I have created a 9patch image which I would like to use as border on ImageButtons and ImageViews. However, when I set the drawable (with

[android-developers] How to align SurfaceView on Bottom ?

2011-01-13 Thread mac-systems
Hello, i cant figure out whats wrong, and slowly this turnes into an showstopper for me... if i use a simple ImageView like this everything works fine (ImageView is centered on bottom) ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] How to display....?

2011-01-13 Thread Abhilash baddam
Hi friends, I can be able to display one location in map. Now how can we display multiple locations in Google maps..? Regards, Abhilash.B -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: C++ exception support confusion

2011-01-13 Thread Phil Endecott
support for C++ exceptions and RTTI is not available with Android 1.5 system images. Do you care about devices running Android 1.5 and older? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] How to display....?

2011-01-13 Thread Mark Murphy
Use an ItemizedOverlay and publish multiple OverlayItems: https://github.com/commonsguy/cw-android/tree/master/Maps/NooYawk On Thu, Jan 13, 2011 at 8:10 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi friends,                I can be able to display one location in map. Now

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-13 Thread Jake Basile
It does appear that I am getting a version of the old behavior, but I do return START_STICKY from onStartCommand, and my minSdkVersion is 6. -- 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] Httpclient with Nexus S

2011-01-13 Thread André Charles Legendre
Hi I avec a connection problem with httpClient specificaly in Nexus one I have this line of coe working on any Android devices but in NexusS it works only in 3G String res = getHttpClient().execute(mHttpPost, new BasicResponseHandler()); Any idea welcome Andre -- You received this message

[android-developers] Changing price in the Market

2011-01-13 Thread Brill Pappin
I'm thinking of releasing an app with an intro price and then increasing it later. This is to promote early adoption which builds up a user base that will help find any problems in the code. However I will want to bump the price up after a while. Based on the issues of people making an app

[android-developers] Re: Cookies reseted

2011-01-13 Thread Federico Paolinelli
I am afraid you have to implement a recovery mechanism in any case, because of cookies expiration. If the server gives you an authentication error you should restart the authentication process before performing any other action. In any case you can serialize and store the cookie in the shared

[android-developers] two list selectors or new state for the current selector

2011-01-13 Thread poohtbear
I have a list view with relativeLayout with all sorts of widgets (TextViews, RatingBars, ImageViews etc...). I use my own adapter to populate the ListView. The items in the adapter, besides being selected \ pressed \not focused have an extra state: 'viewed'. Baiscally i want that items that have

[android-developers] Re: Changing price in the Market

2011-01-13 Thread Federico Paolinelli
Just not set the price to 0. On 13 Gen, 15:27, Brill Pappin br...@pappin.ca wrote: I'm thinking of releasing an app with an intro price and then increasing it later. This is to promote early adoption which builds up a user base that will help find any problems in the code. However I will

[android-developers] Re: C++ exception support confusion

2011-01-13 Thread SImplyG2010
Hey Allen, 1.5 takes up 5% of the devices on market http://developer.android.com/resources/dashboard/platform-versions.html however that was not your question. Did you see this in the docs? Similarly, the NDK toolchain supports C++ RTTI (RunTime Type Information) since NDK r5, but all C++

Re: [android-developers] two list selectors or new state for the current selector

2011-01-13 Thread Kostya Vasilyev
You can probably do this by: - Creating your own styleable to declare the new attribute; - Creating your own state-list drawable to use the new atribute; - Setting it as the listSelector for the list view; - Subclassing ListView to propagate the new attribute value into the selector. On the

[android-developers] Problems simulating screen oddities (density issue?)

2011-01-13 Thread Marcin Orlowski
I got some reports from users of hi-res devices (240dpi) complaining on broken layout of our app. This could be and I guess I found the culprit in the app, but my problem is I am unable to reporo this issue locally. I just created freshly new ADV, with screen specs matching faulty device and it

Re: [android-developers] Changing price in the Market

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 8:27 AM, Brill Pappin br...@pappin.ca wrote: Based on the issues of people making an app free and not being able to make it a paid app again, are there any problem changing a price up or down in the market once deployed? AFAIK, the free-paid and the minimum and

Re: [android-developers] Performance issue with mapview when using large number of items

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 1:10 AM, Stephan Wiesner testexpe...@googlemail.com wrote: Any hints? Don't show 7,000 items. Seriously, what user needs to see or interact with 7,000 items, particularly at a zoomed out level where most probably overlap anyway?

Re: [android-developers] Re: I ask for power off but get reboot instead sometimes

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 1:39 AM, Zsolt Vasvari zvasv...@gmail.com wrote: A lot of times when I have it connected in debug mode, it loses calibration and I have to put it to sleep and back on to get it fixed. That was my original issue, got it replaced and worked fine ... until the power

Re: [android-developers] C++ exception support confusion

2011-01-13 Thread David Turner
Yes, there is nothing that supports exceptions within the system. However, using the latest NDK, you can generate exception-managed machine code. Everything is inside your application's machine code. This should work on 1.5+ devices. I may have to rephrase this document to make this clearer. On

[android-developers] WallpaperManager.sendWallpaperCommand() doesn't work?

2011-01-13 Thread John Lussmyer
I just noticed this method, and since I have a Live Wallpaper I've written, I decided it might be fun to use this. So in one of my apps, it checks to see if my Live Wallpaper is the current wallpaper, and sends a command if it is. I get no errors in the log, but the wallpaper never receives the

[android-developers] A simple CAD app

2011-01-13 Thread kahken
Hi guys, I want to create a simple CAD app for android and need some guidance on how to start. I know there is one CAD app available for android currently and it is called andcad http://mobile.talon-designs.net/andcad.htm I would like to create my own CAD app that is for lines and text only as I

Re: [android-developers] Re: Sharing data between apps

2011-01-13 Thread John Lussmyer
Limiting ourselves to actual real-world scenarios (nobody is going to use an Android phone for a Safety Critical control system like your cars brakes.), none of those data variations have anything to do with how the data is delivered. On Wed, Jan 12, 2011 at 10:47 PM, Bob Kerns r...@acm.org

[android-developers] Re: Getting phone to work with debugger

2011-01-13 Thread John Lussmyer
I eventually got it to work - mostly. I had to download the HTC Sync app from HTC and install it. (don't try to run the Sync program, it just locks up using most of the system CPU.) After that, DDMS would usually find the phone. On Tue, Jan 11, 2011 at 7:12 PM, John Lussmyer

[android-developers] Re: Cookies reseted

2011-01-13 Thread lou
First of all, thanks a lot for your answer Federico! My server seems to always accept the same cookie, I'm not sure, but for now, we can guess it ! So I think I'll try to serialize store the cookie before the activity is killed, and restore it when restart. I'll send a message after this work is

[android-developers] Get a View resource ID within a view

2011-01-13 Thread Brill Pappin
Does anyone know if its possible to get a View's resource id (the id of the XML it was inflated from) within a View? In my case I have a single view class I use for several XML resources and I want to switch the stylesheet that is used depending on which XML I'm loading. - Brill Pappin --

[android-developers] Re: Performance issue with mapview when using large number of items

2011-01-13 Thread Stephan Wiesner
Thanks for your reply. I have thought about that, but can't find a good solution for that either. Sure, nobody needs them all at zoomed out level. But the user needs to see that there are at least some at a location (like I said, whole country). So I would have to, don't know, show only one in ten

[android-developers] Re: ThreadSafeConnectionManager timeout...

2011-01-13 Thread lou
In fact, it already happens when not in wifi, but really less often... I'm hopeless :( On Jan 11, 11:40 am, lou louis.coq...@wopata.com wrote: New info, I think the timeout is only when I'm connected with Wifi, not in 3G or edge ! Is it possible ? What can I do ? Thanks. On Jan 7, 6:33 pm,

Re: [android-developers] Re: Performance issue with mapview when using large number of items

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 10:38 AM, Stephan Wiesner testexpe...@googlemail.com wrote: Thanks for your reply. I have thought about that, but can't find a good solution for that either. Sure, nobody needs them all at zoomed out level. But the user needs to see that there are at least some at a

Re: [android-developers] A simple CAD app

2011-01-13 Thread Marcin Orlowski
On 13 January 2011 17:16, kahken kah...@gmail.com wrote: Hi guys, I want to create a simple CAD app for android and need some guidance on how to start. I know there is one CAD app available for android currently and it is called andcad http://mobile.talon-designs.net/andcad.htm I would like

Re: [android-developers] A simple CAD app

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 10:16 AM, kahken kah...@gmail.com wrote: I want to create a simple CAD app for android and need some guidance on how to start. http://developer.android.com http://developer.android.com/guide/topics/fundamentals.htmlGood luck.

Re: [android-developers] GestureActivity

2011-01-13 Thread TreKing
On Wed, Jan 12, 2011 at 10:56 PM, naveen kumar kumarnaveen.si...@gmail.comwrote: How to save gesture in sd card as a image.please help me . i want to save gesture nonmutable file format. Help you with what? What have you done so far and where are you stuck?

Re: [android-developers] Re: Strange NoClassDefFoundError from Bitmap.compress()

2011-01-13 Thread Romain Guy
Calling System.gc() is not guaranteed to run the GC at all (see the documentation of http://developer.android.com/reference/java/lang/System.html#gc()), let alone reclaim all unused objects. Like I mentioned before, objects with a finalizer, when collected, are enqueued in a reference queue which

Re: [android-developers] SQLite database is puffed every time I run my app.

2011-01-13 Thread Tobiah
On 01/12/2011 07:53 PM, Kumar Bibek wrote: You should change your Version of database to let it call the onUpgrade method. Really, it should. And, the onCreate should not be called everytime. I have tried incrementing the version. What's odd is that the onUpgrade method never gets called.

Re: [android-developers] Minor ListView UI Issue

2011-01-13 Thread TreKing
On Wed, Jan 12, 2011 at 11:35 PM, Paul pmmen...@gmail.com wrote: I have an app based on Notepad example app, and one thing that 'bugs' me is that on insertion of a new note, the user can see the new untitled item at the top of the ListView for a split second before being taken to the

[android-developers] Re: C++ exception support confusion

2011-01-13 Thread A Curtis
support for C++ exceptions and RTTI is not available with Android 1.5 system images. Do you care about devices running Android 1.5 and older? It was not clear this was an Android 1.5 and older issue. Thanks -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Changing price in the Market

2011-01-13 Thread Seni Sangrujee
I haven't tried this before, so I wanted to see if there are any issues I need to be aware of before I try it. I do this and haven't run into any problems. For the paid versions of my apps I'll start out at $0.99 to get as much feedback from users as I can. By the time it hits 500 downloads,

Re: [android-developers] Putting Multiple custom ListViews and scrolling

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 2:06 AM, Amit amitmishr...@gmail.com wrote: Kindly help in this regard. Use one listview with smart enough adapter that it emulates 3 lists. - TreKing

Re: [android-developers] change permission to /data/data/package name/databases

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 2:53 AM, stanly tsai.sta...@gmail.com wrote: I want to change permission for /data/data/package/databases folder, is it possible to do this action in my application? Why do you want to do this?

Re: [android-developers] Re: Changing price in the Market

2011-01-13 Thread Brill Pappin
Thanks, thats some helpful info. and yes, I know about the setting to free problem :) - Brill Pappin On 2011-01-13, at 1:02 PM, Seni Sangrujee wrote: I haven't tried this before, so I wanted to see if there are any issues I need to be aware of before I try it. I do this and haven't run

[android-developers] Re: How to get raw data from audio decoded buffer

2011-01-13 Thread niko20
You'll have to create a native library and use the NDK. See http://www.badlogicgames.com/wordpress/?p=446 -nik On Jan 13, 12:41 am, npak243 npak...@gmail.com wrote: Hi everyone, Does anyone know how to decode an audio file (i.e *.mp3) to raw data by using a certain class on Android?

[android-developers] Howto? identify the inflated resource

2011-01-13 Thread Brill Pappin
Ok, this is the same problem as my last post, but i'm not getting any traction with it, so i'm looking for another method solve the problem. All i need to do is identify the xml resource a view was inflated from, in the views constructor. I've tried android:tag which does not seem to be able

Re: [android-developers] problem with listview

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 3:41 AM, gonzobrains gonzobra...@gmail.com wrote: What am I doing wrong? Possible adding the items twice. How can I correct it? Only add them once. Post the code where you're adding to the adapter and where you getView(), if you overrode it.

[android-developers] Development cycle without losing database?

2011-01-13 Thread Tobiah
I use this script to test my app after making changes: if ant debug; then adb uninstall com.rcsreg.exposmart adb -d install bin/ExpoSmart-debug.apk adb shell am start -n com.rcsreg.exposmart/com.rcsreg.exposmart.ExpoSmart adb -d logcat fi I appears that when I

Re: [android-developers] Development cycle without losing database?

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 12:37 PM, Tobiah t...@tobiah.org wrote: Is there another way to keep upgrading my app without losing the database? Use the -r flag to simulate an re-install (i.e., update from the Market).

Re: [android-developers] Re: Changing price in the Market

2011-01-13 Thread Greg Donald
On Thu, Jan 13, 2011 at 12:20 PM, Brill Pappin br...@pappin.ca wrote: Thanks, thats some helpful info. and yes, I know about the setting to free problem :) Not to mention the unable to delete problem that often appears due to the setting to free problem. -- Greg Donald destiney.com |

Re: [android-developers] How to add new locale and it's associated font in android source

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 4:24 AM, kariyachan sintotp.foresi...@gmail.comwrote: I've been trying to add new locale ml_IN(malayalam -India) and it's font to android source This groups is for the SDK. Try the platform group for questions regarding modifying the source.

Re: [android-developers] making white pixels transparent

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 4:47 AM, crem bernd.warm...@gmail.com wrote: So... any suggestions? Read the documentation for images and bitmaps. - TreKing

Re: [android-developers] Howto? identify the inflated resource

2011-01-13 Thread Brad Gies
Can't you just set the tag when you inflate it? Or set the tag in the .xml file? Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.comhttp://nocrappyapps.com http://bistroblurb.com

Re: [android-developers] Development cycle without losing database?

2011-01-13 Thread Kostya Vasilyev
adb install -r apk file Note the -r - reinstall, keeping the data. -- Kostya 13.01.2011 21:37, Tobiah пишет: I use this script to test my app after making changes: if ant debug; then adb uninstall com.rcsreg.exposmart adb -d install bin/ExpoSmart-debug.apk adb shell am start -n

[android-developers] Why does the SharedLibrary for maps sometimes fail?

2011-01-13 Thread Greg Giacovelli
Hi, I have an application with a manifest that clearly states it requires the android maps. I know this works because if the phone doesn't have the shared lib it fails on install (that's great I am glad). But sometimes I am seeing reports as follows: Exception Ljava/lang/NoClassDefFoundError;

[android-developers] Re: making white pixels transparent

2011-01-13 Thread Greg Giacovelli
You could try using AvoidXferMode but I believe it doesn't support transparency. Otherwise the fastest alternative in java land would be to generate a byte buffer the size of the pixels in the image and then read them from the bitmap and then set them again. You will pay the cost of read and

[android-developers] Getting the calling application's context

2011-01-13 Thread androiddevelopers
Hi, i have a service , which application binds to it. i need to check the permissions of the calling application. can i retrieve the calling applications context without the calling apllication passing it to my service . Newbie -- You received this message because you are

Re: [android-developers] Getting the calling application's context

2011-01-13 Thread Kumar Bibek
If your service is a part of a different application, then you can't. If it's the same application, then the service itself would have your application's context. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 14, 2011 at 12:29 AM, androiddevelopers

[android-developers] Re: problem with listview

2011-01-13 Thread gonzobrains
Yeah, I kind of get the fact that I need to only add them once, but I don't see how it is that I'm adding them twice right now. Anyway, here is the code: package com.sellbackyourbook.sellback; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import

[android-developers] Re: WebView not taking external css styles?

2011-01-13 Thread Kumar Bibek
Are you using inline styles? Or separate files? If you are using separate files, then there's probably a problem of reference to your CSS files On Jan 13, 4:28 pm, Leif l...@leifrilbe.com wrote: I am trying to make an about screen for my app as a html file with external styles in a css file.

Re: [android-developers] Howto? identify the inflated resource

2011-01-13 Thread Brill Pappin
I can't set it after inflate because I'm trying to access it in the constructor. I did try setting it in xml, but I only get null back (may be a bug, but I haven't investigated that). - Brill Pappin Sent from my Android device Brad Gies rbg...@gmail.com wrote: Can't you just set the tag

[android-developers] Re: webview inside the dialogbox.

2011-01-13 Thread Kumar Bibek
Any specific reason of using WebView in a dialog? On Jan 13, 4:12 pm, yogi yogi.ru...@gmail.com wrote: Hi all, I m launching the dialog with webview inside it. Now on that webview I have a textbox (like google sign in page).When I tap on the field the Softkeyboard is not showing. Its not

Re: [android-developers] Re: problem with listview

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 1:01 PM, gonzobrains gonzobra...@gmail.com wrote: Yeah, I kind of get the fact that I need to only add them once, but I don't see how it is that I'm adding them twice right now. That's a lot of random code to look through. Step through your debugger and break at each

[android-developers] AudioManager, requestAudioFocus and video playback...

2011-01-13 Thread sdphil
Hi, On Android 2.2.1, I am seeing a behavior I don't understand. I am making a call to requestAudioFocus() mAudioManager.requestAudioFocus(mAudioFocusChangeListener, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); So that when another media player takes over the audio, I can pause my

Re: [android-developers] Development cycle without losing database?

2011-01-13 Thread Tobiah
On 01/13/2011 10:49 AM, Kostya Vasilyev wrote: adb install -r apk file Note the -r - reinstall, keeping the data. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: problem with listview

2011-01-13 Thread Kostya Vasilyev
First you do: new BookAdapter(this, R.layout.cartitem, shoppingCart.m_books); which stores the array of books from shoppingCart.m_books in the adapter's books variable. Then you run a for loop, calling m_adapter.add(shoppingCart.m_books.get(i)); adding books to the adapter

[android-developers] Re: HttpURLConnection gives UnknownHostException

2011-01-13 Thread Dan
After testing on an emulator and at the same time the host computer is able to resolve the domain name this issue cannot be isolated to wifi problems. -Dan On Jan 12, 11:00 pm, Bob Kerns r...@acm.org wrote: UnknownHostException means your device was unable to get a positive response to the

Re: [android-developers] Problems simulating screen oddities (density issue?)

2011-01-13 Thread TreKing
On Thu, Jan 13, 2011 at 9:23 AM, Marcin Orlowski webnet.andr...@gmail.comwrote: Maybe I miss something fundamental here, but how shall Iit all be configured to getResources().getDisplayMetrics().density always returns something different than 1 as it seems to do on my setups? Come again?

Re: [android-developers] Re: HttpURLConnection gives UnknownHostException

2011-01-13 Thread Kostya Vasilyev
Perhaps the emulator has trouble mirroring your computer's DNS setup. http://developer.android.com/guide/developing/tools/emulator.html#dns You could try starting the emulator with -dns-server serverList option to manually specify the addresses of your computer's DNS servers, to see if it

Re: [android-developers] Getting the calling application's context

2011-01-13 Thread Dianne Hackborn
You can check permissions, you just can't get its own Context because it is in another process. The permission check functions on Context are for *you* to check whether *someone else* has a permission. The checkCalling and enforceCalling versions of these assume you are in the dispatching of an

[android-developers] Re: Loop Mount system.img file of Android emulator

2011-01-13 Thread markwhitney
On Nov 22 2010, 2:00 pm, ale ale.noval...@googlemail.com wrote: Hi, is there a way to mount the system.img file included in the Android emulator from the SDK. I tried to loop mount the file but mount keeps telling me that I need to specify the FS-Type. I think they are YAFFS type but I am

[android-developers] Re: HttpURLConnection gives UnknownHostException

2011-01-13 Thread Dan
To add to the body of information, this is a stack trace when using HttpURLConnection 01-13 12:27:22.251: WARN/System.err(601): at java.net.Socket.connect(Socket.java:1038) 01-13 12:27:22.260: WARN/System.err(601): at

[android-developers] Re: Performance issue with mapview when using large number of items

2011-01-13 Thread Stephan Wiesner
seems to be a versatilbe body part you have there :-) Thanks for the input. Stephan On 13 Jan., 18:10, TreKing treking...@gmail.com wrote: On Thu, Jan 13, 2011 at 10:38 AM, Stephan Wiesner testexpe...@googlemail.com wrote: Thanks for your reply. I have thought about that, but can't find a

Re: [android-developers] why metaData in providerInfo is always null?

2011-01-13 Thread Dianne Hackborn
Actually it's there because the platform doesn't need the meta-data, so it doesn't make sense to retrieve all of the meta-data for every content provider it instantiates. If you want the meta data, it is one line of code to call into the package manager to get it, as you've shown. Just do that.

Re: [android-developers] is there a native (NDK/C++) way to check if a library is on the phone?

2011-01-13 Thread Dianne Hackborn
Could you please explain more explicitly what you are trying to do? It is very confusing to me, since uses-library is a purely Java language thing, but you are talking a lot about .so and JNI neither of which is really related. For what its worth, if you don't require a library, use

Re: [android-developers] WallpaperManager.sendWallpaperCommand() doesn't work?

2011-01-13 Thread Dianne Hackborn
You must be the current foreground activity sitting on top of the wallpaper to use the command. On Thu, Jan 13, 2011 at 7:56 AM, John Lussmyer johnlussm...@gmail.comwrote: I just noticed this method, and since I have a Live Wallpaper I've written, I decided it might be fun to use this. So in

Re: [android-developers] Re: What is the name of this widget?

2011-01-13 Thread Dianne Hackborn
On Wed, Jan 12, 2011 at 11:33 PM, mort m...@sto-helit.de wrote: On 12 Jan., 09:12, Dianne Hackborn hack...@android.com wrote: Many classes that are public make use of private classes for implementation. That isn't a reason to make those other classes public. Of course. I just meant in

[android-developers] Text to speech on Tablet

2011-01-13 Thread dsurround
Are there any known problems for text to speech on a tab (galaxy tab) versus a phone? I have a customer that is using the newest samsung tab 2.3 OS release and reported a problem where the text to speech engine keeps repeating something over and over that should only be spoken once. The

[android-developers] ListView onItemClick - I need something more than just the position of the click

2011-01-13 Thread Tobiah
I'm getting a call to my AdapterView.OnItemClickListener() when I touch an item in my ListView. The ListView (subclass of) is populated from a String[] data like this: this.setAdapter(new ArrayAdapter(this.context, android.R.layout.simple_list_item_1, data)); Each row in the data holds an

  1   2   >