[android-developers] How to control the width of scrollbars for DatePick?

2009-01-25 Thread Developer
Is there a way to control the width of the three scrollbars for DatePick? I wanted to make the following layout, but the default setup can't fit into the screen. I think there might be a way to control the width of the scrollbar so that the two DatePick can fit into the screen.

[android-developers] Theme.Dialog for PreferenceScreen child does not work

2009-01-25 Thread android_soft
Hi All, I have a PreferenceActivity defined in the manifest with android:theme=@android:style/Theme.Dialog. The theme works well with the first settings screen, but not with the child PreferenceScreen elements (if I have several screens in my preferences). The child screens have the default Theme

[android-developers] Re: Sporadic SharedPreferences reset

2009-01-25 Thread android_soft
I have noticed this behavior couple of times. But I have not been able to reproduce, also I do not have or any other special character, except some Double values encoded as Strings. Chander On Jan 25, 12:39 am, Christoph Studer chstu...@gmail.com wrote: Okay, so my current suspicion is that I

[android-developers] Re: Updated app not showing up in Market's by date sorting?

2009-01-25 Thread Chister Nordvik
There's been multiple posts of this and no answers from Google, so is this a hack that someone has found? It might seem like it since nobody is willing to post examples of how to get their app to the top of the list when releasing an upgrade. I've released multiple upgrades but the by-date

[android-developers] Re: Theme.Dialog for PreferenceScreen child does not work

2009-01-25 Thread Stoyan Damov
+1 - I'm experiencing the same thing here. The PreferenceScreen is drawn with the black theme. BTW, preferences with the dialog theme act weird when scrolled (parts of the preferences are drawn on black background black while scrolling) but I think I can fix that - someone mentioned about

[android-developers] Re: Please help! My game lags too much!

2009-01-25 Thread Stoyan Damov
First of all, you should profile your game - take a look at android.os.Debug.start/stopMethodTracing and identify the bottleneck(s). Then, if you've never written a game, chances are your game loop will suck (that is, if you *had* a game loop, you're merely invalidating and redrawing the screen)

[android-developers] Re: License text to use for display in Android App under ASL 2.0

2009-01-25 Thread Fred Grott(shareme)
A better solution for the end user is to set up some display indicating wher ethe library licenses are to read, for example my Xspot app : http://www.youtube.com/watch?v=wiPDOrkPCxQ ...it displays the name of libraries used and than points users to wards the license for that library On Jan

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2009-01-25 Thread ad
YES YES YES!!! I've found solution for that. It's tricky but it works. Place that on the begining of your code. try{ while (true){ Bitmap tmpBitmap = Bitmap.createBitmap(320, 4800, Config.ARGB_);

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2009-01-25 Thread ad
YES YES YES!!! I've found solution for that bug. It's tricky but it works. Place that on the begining of your code. try{ Bitmap tmpBitmap = Bitmap.createBitmap (3200, 4800, Config.ARGB_); }catch(Throwable e){

[android-developers] Re: Updated app not showing up in Market's by date sorting?

2009-01-25 Thread James Patillo
Maybe those who figured it out don't want others knowing. It may be the case, however, that somehow a new app with the same name was added to the Market to make it appear at the top. -Original Message- From: Chister Nordvik [mailto:cnord...@gmail.com] Sent: Sunday, January 25, 2009 6:07

[android-developers] Re: Emulator crashs when accessing sd card settings

2009-01-25 Thread Mariano Kamp
Nope, at least not in my case. I specify one using the sdcard option, but it also fails for the built-in one. Anyway accessing the emulated sdcard works for me. On Sat, Jan 24, 2009 at 10:37 PM, Mark Murphy mmur...@commonsware.comwrote: Jeremy Leibs wrote: Any progress on this? I am having

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2009-01-25 Thread blindfold
How can this possibly help you? You are trying to allocate 61 MB (3200*4800*4 bytes), which lies well above the 16 MB heap limit. I tried once to allocate, say, 12 MB at program startup to keep Android from all the time bumping into the heap limit and possibly crashing as a result in case its

[android-developers] Re: Theme.Dialog for PreferenceScreen child does not work

2009-01-25 Thread android_soft
It gets even more weird if you have the landscape mode (i guess thats what you are talking above) --~--~-~--~~~---~--~~ 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: License text to use for display in Android App under ASL 2.0

2009-01-25 Thread android_soft
Fred's idea looks good, though lot of code bytes to it. How many users read a license any way ? Each application adding license asset files can eat up space :-) On Jan 25, 6:10 pm, Fred Grott(shareme) fred.gr...@gmail.com wrote: A better solution for the end user is to set up some display

[android-developers] Re: onProviderEnabled() not being called dynamically enabling GPS

2009-01-25 Thread Ken Adair
To be more specific... is this the correct way to broadcast a GPS setting change since I can't access the updateProviders() method directly? Intent intent = new Intent(Intent.ACTION_PROVIDER_CHANGED); sendBroadcast(intent); Thanks again, Ken

[android-developers] Re: onProviderEnabled() not being called dynamically enabling GPS

2009-01-25 Thread Ken Adair
To be more specific... is this the correct way to broadcast a GPS setting change since I can't access the updateProviders() method directly? Intent intent = new Intent(Intent.ACTION_PROVIDER_CHANGED); sendBroadcast(intent); Thanks again, Ken

[android-developers] Re: onProviderEnabled() not being called dynamically enabling GPS

2009-01-25 Thread Ken Adair
To be more specific... is this the correct way to broadcast a GPS setting change since I can't access the updateProviders() method in the LocationManager directly? Intent intent = new Intent(Intent.ACTION_PROVIDER_CHANGED); sendBroadcast(intent); Thanks again, Ken

[android-developers] How to start an activity in another package

2009-01-25 Thread info.sktechnol...@gmail.com
My application has 2 packages because one is shared with my other applications. I want to start an activity of the shared package. I tried the following: Intent intent = new Intent(); intent.setClassName(shardedPackageName,sharedActivityName); startActivity(intent); It throws an

[android-developers] Re: Parsing RSS feeds, encoding problems

2009-01-25 Thread Chister Nordvik
The issue has still new status so either Google is just ignoring it or they think it's a bug in my code. I tried a little more and I experienced similar problems when fetching XML that has encoded html inside the tags (typically RSS feeds). This code works perfectly when running on the desktop

[android-developers] Re: Parsing RSS feeds, encoding problems

2009-01-25 Thread Mark Murphy
Chister Nordvik wrote: The issue has still new status so either Google is just ignoring it or they think it's a bug in my code. I tried a little more and I experienced similar problems when fetching XML that has encoded html inside the tags (typically RSS feeds). This code works perfectly

[android-developers] Re: Parsing RSS feeds, encoding problems

2009-01-25 Thread Chister Nordvik
I don't know if I am to be happy (since it works) or sad (because I wasted 8+ hours) but thanks! Now the html encoding problems works :-) Guess I have to retry the international RSS feeds and see if it was related to this. I've never used a XML library that behaves this way.. -Christer On 25

[android-developers] Re: loading html file from SDCARD in web browser

2009-01-25 Thread Grace Kloba
HTMLViewer should be under packages/apps/HtmlViewer. On Mon, Jan 19, 2009 at 7:33 PM, vinay vinc...@gmail.com wrote: hi grace, I could do it by copying the index.html file in Browser/assets directory and modified private String homeUrl = file:///android_asset/index.html; in

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2009-01-25 Thread ad
Check first, and think a bit. On Jan 25, 2:49 pm, blindfold seeingwithso...@gmail.com wrote: How can this possibly help you? You are trying to allocate 61 MB (3200*4800*4 bytes), which lies well above the 16 MB heap limit. I tried once to allocate, say, 12 MB at program startup to keep

[android-developers] Re: WebKit/WebView and Focus Highlighting

2009-01-25 Thread Grace Kloba
The trick is to use -webkit-tap-highlight-color. If the alpha of the color is 0, the orange ring won't be drawn. On Thu, Jan 22, 2009 at 4:33 PM, Andrew Hedges segd...@gmail.com wrote: I'm one of the design guys Mark was talking about. I found scant documentation on Apple's site about

[android-developers] Map Server

2009-01-25 Thread nknize
All, Anyone know of a way to change the server that a MapActivity looks at for maps and images? By default the MapActivity it is pointed to http://www.google.com:80. If you are operating on a self contained network (disconnected from the open internet) google cannot be resolved. But if you

[android-developers] Re: How to start an activity in another package

2009-01-25 Thread Dianne Hackborn
If the activity does not define any intent filters in its manifest, make sure it is accessible to other packages through android:exported=true. On Sun, Jan 25, 2009 at 9:47 AM, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: My application has 2 packages because one is shared

[android-developers] Re: Theme.Dialog for PreferenceScreen child does not work

2009-01-25 Thread Dianne Hackborn
I can't help you off-hand with the problem, but for what it's worth preferences really aren't intended to be used with a dialog theme. Actually I would stay away from the dialog theme for all but very simple things (like alerts), since the border takes so much space away from your UI. Of course

[android-developers] Re: embed external activities using LocalActivityManager

2009-01-25 Thread Mark Murphy
skink wrote: is it possible to embed some external activities, lets say, com.android.calculator2.Calculator in my activity? i always get exception saying that my activity's uid != Calculator's uid. should i use some permission? or from security reasons its not possible at all? For

[android-developers] Re: embed external activities using LocalActivityManager

2009-01-25 Thread skink
Mark Murphy wrote: For security reasons, it is not possible. You can only embed activities that you own. Mark, thank you for your quick response! btw i saw you managed to get rid/costomize WebView's focus ring. since i'm not expert in css at all what is that magic line (or two)? i tried

[android-developers] NetworkInterface.getNetworkInterfaces()

2009-01-25 Thread adrians
I am getting a unknown error SocketException when calling NetworkInterface.getNetworkInterfaces(). I notice from an old post that this method may not have been implemented. Does anyone know the status of this method - has it been implemented and has anyone got it to work? Thanks Adrian

[android-developers] Bitmap from webview

2009-01-25 Thread Bob
Hi, I would like to get a bitmap of a webview control that I can then clip and manipulate. How do I use the getpicture method or another means to do this? Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] There is a problem communicating with Google servers

2009-01-25 Thread qwerty
I just got the Dev. phone today and trying to get it up and running'. I am trying to create a google account but I keep getting an error message There is a problem communicating with Google servers This could be a temporary problem or your SIM card may not be provisioned for data services.

[android-developers] Mac OsX 10.5 Installing repo (repo command not found)

2009-01-25 Thread Vishal Shah
Hi, I'm new to Mac and android. I went through all the steps mentioned to prepare to get android source on Mac. However after getting repo and changing it to executable I can't execute repo init -u I keep getting -bash: repo: command not found my $PATH is

[android-developers] Utah APN MMS settings

2009-01-25 Thread vincentmatthews...@gmail.com
Name:CBW MMS APN:wap.gocbw.com Proxy:none Port:none username:none Password:none mmsc:http://mms.gocbw.com:8088/mms mms proxy:216.68.79.202 mms port:80 MCC:310 MNC:420 APN type:none some settings will time out just go back to the apn settings and resave the settings to refresh the connection.

[android-developers] getting bitmap from webview

2009-01-25 Thread Bob
Hi, How do I get a bitmap of a webview? I think I can use the capturePicture but how do I then convert that picture object to a bitmap that I can clip and manipulate? Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-01-25 Thread sienna
I had same problem on ubuntu 8.04 as virtualbox guest os. In my case, curl has no problem, but it just was resolved after successful installation of librealine5-dev as Bismark advised. Thanks Bismark. On Jan 22, 10:55 am, Bismark bismark@gmail.com wrote: Try sudo apt-get install

[android-developers] Re: How to use proxy server on the g1?

2009-01-25 Thread DJMoran
I also need the exact same help, my school uses a proxy server to access the web. Also my home wireless doesn't need a proxy to access the web. I know the iPhone and iPod touch can use multiple proxy settings depending on the network it is connected to but what about the G1 On Jan 10, 1:52 pm,

[android-developers] Re: Sporadic SharedPreferences reset

2009-01-25 Thread Daniel
This has been a recurring problem with K-9: http://code.google.com/p/k9mail/issues/detail?id=143 and apparently the core Email as well: http://www.androidforums.com/showthread.php?p=16842 and possibly other apps, too:

[android-developers] unzip

2009-01-25 Thread Bob
Hi, I am trying to unzip a standard zip file. I have copied a couple standard java unzip classes from web searches but each time it creates a JRE parsing error. Does anyone have ideas on what is wrong or how I can do differently? Thanks, Bob Error: # An unexpected error has been detected by

[android-developers] Re: embed external activities using LocalActivityManager

2009-01-25 Thread Mark Murphy
skink wrote: btw i saw you managed to get rid/costomize WebView's focus ring. Actually, that was a colleague (Andrew Hedges), based on a solution provided by another community member (Grace Kloba). since i'm not expert in css at all what is that magic line (or two)? i tried in my css:

[android-developers] Re: WebKit/WebView and Focus Highlighting

2009-01-25 Thread Mark Murphy
Grace Kloba wrote: The trick is to use -webkit-tap-highlight-color. If the alpha of the color is 0, the orange ring won't be drawn. Many thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available!

[android-developers] Re: NetworkInterface.getNetworkInterfaces()

2009-01-25 Thread Mark Murphy
adrians wrote: I am getting a unknown error SocketException when calling NetworkInterface.getNetworkInterfaces(). I notice from an old post that this method may not have been implemented. Does anyone know the status of this method - has it been implemented and has anyone got it to work? Do

[android-developers] Re: unzip

2009-01-25 Thread Mark Murphy
Bob wrote: Hi, I am trying to unzip a standard zip file. I have copied a couple standard java unzip classes from web searches but each time it creates a JRE parsing error. Does anyone have ideas on what is wrong or how I can do differently? Thanks, Bob Error: # An unexpected

[android-developers] Re: embed external activities using LocalActivityManager

2009-01-25 Thread skink
Apparently, it is: * { -webkit-tap-highlight-color: rgba(0,0,0,0.0); } My CSS-fu is weak, but I suspect that means make -webkit-tap-highlight-color be transparent for all styles or some such. thank you! yes, orange ring dissapeared. but when i change it to rgba(0,0,255,0.5); it's not

[android-developers] Re: WebKit/WebView and Focus Highlighting

2009-01-25 Thread Fred Grott(shareme)
Thanks Grace...we owe you one On Jan 25, 1:44 pm, Grace Kloba klo...@gmail.com wrote: The trick is to use -webkit-tap-highlight-color. If the alpha of the color is 0, the orange ring won't be drawn. On Thu, Jan 22, 2009 at 4:33 PM, Andrew Hedges segd...@gmail.com wrote: I'm one of the

[android-developers] Re: How to start an activity in another package

2009-01-25 Thread info.sktechnol...@gmail.com
OK, I tried that but it did not help. Any other suggestions? On Jan 25, 2:16 pm, Dianne Hackborn hack...@android.com wrote: If the activity does not define any intent filters in its manifest, make sure it is accessible to other packages through android:exported=true. On Sun, Jan 25, 2009 at

[android-developers] Re: getting bitmap from webview

2009-01-25 Thread Fred Grott(shareme)
Look at what object is returned in this case its a canvas object called Picture which means to convert you needed to stream it.. you might also need setPictureListener On Jan 25, 10:12 am, Bob bshumsk...@yahoo.com wrote: Hi, How do I get a bitmap of a webview?  I think I can use the

[android-developers] Re: Activity Issue on G1 phone

2009-01-25 Thread Brad Gies
Dianne, I can't quite figure out what you mean by setting a static variable in the current activity, and how it would work. If I set a static variable in my activity and then pass that static variable to my thread, then the activity is destroyed, and a new one is created.. Then what happens?

[android-developers] Re: Activity Issue on G1 phone

2009-01-25 Thread Dianne Hackborn
I meant that the static variable would -hold- the current activity. Everything in your .apk runs in one process. When you declare a static variable, that is creating a global to all code in that process. You can make a static variable pointing to an Activity: static Activity mCurActivity =

[android-developers] Sleep on END_CALL keycode, but terminate on HOME?

2009-01-25 Thread g1bb
Hello, I have an activity that I would like the user to be able to put to sleep once the end call button is pressed, but terminate once the back or home buttons are pressed. Since it seems that end call and home both call OnPause(), is there a good way to do this? Thanks!

[android-developers] Re: unzip

2009-01-25 Thread Bob
Thanks. I am running the android emulator on a windows bug. I think the error might have been due to having two main() entry points and have it resolved. On Jan 25, 3:56 pm, Mark Murphy mmur...@commonsware.com wrote: Bob wrote: Hi, I am trying to unzip a standard zip file.  I have copied

[android-developers] Re: 3G network response different from Wifi

2009-01-25 Thread Rich
Thanks for the reply! There is apparently a port scanner for Windows Mobile, but it isn't open source so I can't take a look at it, and it doesn't mention anything about 3G or different providers anyway. This is pale in comparison to nmap, which as a bunch of low level tricks. This is just

[android-developers] Is it possible to associate text from an editText to a EditTextPreference?

2009-01-25 Thread Juan David Trujillo C.
Hi guys! I would like to know if it's possible to associate text from a regular editText to a EditTextPreference? My problem is I would like to get the text from a regular EditText and then associate it to an EditTextPreference, so when the user visits the settings section, this text is shown

[android-developers] Marketplace Sponsorship

2009-01-25 Thread Peter
I have been working on an Application that displays in-game time information for a popular MMO Final Fantasy XI. Its finally complete and I wanted to release it to the market but I noticed you have to spend 25$ to activate your account. I don't really want to spend any money right now on it and

[android-developers] Re: Extending a tablelayout

2009-01-25 Thread for android
public class BorderedTableLayout extends TableLayout { private Rect mRect; private Paint mPaint; public BorderedTableLayout(Context context, AttributeSet attrs) { super(context, attrs); mRect = new Rect(); mPaint = new Paint(); mPaint.setStyle(Paint.Style.STROKE);

[android-developers] Re: Dynamically changing the language at runtime

2009-01-25 Thread Raja Nagendra Kumar
On Jan 25, 2:28 am, Dianne Hackborn hack...@android.com wrote: This isn't really supported, though you can change the language of the Configuration used by your Resources object. Could you pl. let me know the API to make this change.. Regards, Nagendra

[android-developers] Re: Different package name than the one in AndroidManifest.xml to the generated resource class

2009-01-25 Thread Raja Nagendra Kumar
Not sure, if what we think would be possible or not in andorid.. However.. based on JavaME application framework, we do have different libaries and different modules to use in any application. i.e Foundation libraries, Application Modules, Application Assembly Code. In all, there are certain

[android-developers] Re: After the ADT 0.9 update, Eclipse can not create R.java automatically

2009-01-25 Thread MayFirst
I am facing the same issue On Jan 24, 6:55 am, Oxygen oxygen.jian.w...@gmail.com wrote: I build the SDK and ADT under linux. And I met this issue too. On 1月23日, 下午10时08分, moontain chen.worksp...@gmail.com wrote: Does anybody have any clues on how to fix this issue? 2009/1/21 moontain

[android-developers] Re: Theme.Dialog for PreferenceScreen child does not work

2009-01-25 Thread android_soft
Hi Dianne, Thanks for your response. I don't like Dialogs either. :) still a bug...:-) ; even if rendering is not proper, I expect at least the child PreferenceScreen to have the same Theme. Regards, Chander --~--~-~--~~~---~--~~ You received this message

[android-developers] SAXParser getting stuck on certain characters

2009-01-25 Thread 3D
I'm using a SAXParser to parse an XML document and its getting stuck on certain symbols like the 'trademark' symbol and I think even double- quotes . I really don't need these characters so it would be fine if the parser just skips over these. Instead it throws an exception and quits parsing