[android-developers] How to create world readable file

2009-06-02 Thread Mattaku Betsujin
I am trying to launch package installer to install an APK file that I have already installed: private void installApk(String file) { Uri pkgUri = Uri.parse("file://" + file); Intent intent = new Intent(); intent.setData(pkgUri); intent.setClassName("com.android.

[android-developers] problem in installing adnroid plugin in eclipse

2009-06-02 Thread Honest
I read the docs for installing android plugin for eclipse. I did it according to it and i have downloaded and installed the plugin but after that when i cliced on Windows-prefrences i could not find Android in left panel. What could be wrong in it ? --~--~-~--~~~---~--~

[android-developers] Clarification on static variables

2009-06-02 Thread Peter Carpenter
Hi all, We are currently porting some java code to work inside a service within the Android framework. However one thing I am still puzzling over is the life cycle of an android application, activity, & service. What I am currently thinking is this: 1. An android "application" proces

[android-developers] Re: Getting Current Location on my Device works on emulator but not on my device

2009-06-02 Thread iDeveloper
I removed the code from onProviderDisabled. Had some other code there initially (was getting location from network - but thats very inaccurate) Also tried changing the 2000 to 2 but it doesn;t make a difference. I still can't get a fix. Any help please? On 02-Jun-09, at 4:03 PM, Mark Mur

[android-developers] Re: Writing widgets *without* persistent services

2009-06-02 Thread beekeeper
Marc -- Excellent. I was indeed missing something obvious, and the solution was much simpler than anything I was contemplating. Many thanks for pointing it out. (I was somewhat familiar with the layout-land mechanism from my readings, but hadn't realized that it was so automagic and all- perva

[android-developers] Re: Is there any way to lauhc Google Maps application with direction

2009-06-02 Thread Android Users
Hi, This will help you.Pass in the source and destination points and you'll get the directions. Intent mapIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?f=d&saddr= "+sourceLat+","+sourceLongt+"&daddr="+destLat+","+destLongt+""));

[android-developers] Re: shut off shutter sound

2009-06-02 Thread Sheado
bump =) still stuck.. i even tried: ((AudioManager)context.getSystemService (Context.AUDIO_SERVICE)).unloadSoundEffects(); but no luck =( On Jun 2, 9:57 am, "admin.androidsl...@googlemail.com" wrote: > Curious about this I tried the free spy camera app on the market. I > have Cupcake and it

[android-developers] Re: How to start other activity by code

2009-06-02 Thread Augustin.CL
Thanks for your help. I also find I could use the other method provided by Intent to achieve my goal. Here is the method. intent.setClassName(String packageName,String className); We could replace the orginal one with the following. i.setClassName ("com.android.phone","com.andr

[android-developers] Re: how to run android source code in linux eclipse??

2009-06-02 Thread Akash Gupta
Correction: *I m not talking about running android project in eclipse... On Jun 3, 9:27 am, Akash Gupta wrote: > My friend... > I m not about running android project in eclipse... > I m talking about running google android source code and debugging it > using eclipse in Ubuntu... > I m using Ecl

[android-developers] Re: Problem with getChildCount method???

2009-06-02 Thread Akash Gupta
Thankyou my friend for helping but Aaron i m not able to uderstand your tiplet me provide the complete scenario... MainActivity class is extending ListActivity class and i making use of adapter which is subclass to BaseAdapter class...the data source is String Array... So i m not able to g

[android-developers] Re: Writing widgets *without* persistent services

2009-06-02 Thread Marc Lester Tan
Hi, You can add res/layout-land and put your landscape layout there. So basically you have res/layout for portrait and res/layout-land for landscape layouts. Marc On Wed, Jun 3, 2009 at 12:57 PM, beekeeper wrote: > > I'm trying to write a set of widgets and, in contrast to too many of > the

[android-developers] Writing widgets *without* persistent services

2009-06-02 Thread beekeeper
I'm trying to write a set of widgets and, in contrast to too many of the widgets being put on the market, I'm trying to actually conform to the widget design guidelines (http://developer.android.com/guide/ practices/ui_guidelines/widget_design.html). Unfortunately, in order to do this properly an

[android-developers] How to run the android application on G1

2009-06-02 Thread cindy
After I upgrade to 1.5, how can I run my application on gphone from eclipse? Thanks! Cindy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-deve

[android-developers] Re: how to run android source code in linux eclipse??

2009-06-02 Thread Akash Gupta
My friend... I m not about running android project in eclipse... I m talking about running google android source code and debugging it using eclipse in Ubuntu... I m using Eclipse Ganymede 3.4 and os is Ubuntu 7.10 Limo... On Jun 2, 10:31 pm, Mike Garcia wrote: > It depends entirely on what ve

[android-developers] Re: Why can "Maps" find a location on demand but not my app

2009-06-02 Thread Numan Ahmed
--- On wed, 6/3/09, numan <> wrote: hello my friend how are u latest summer fashion hot fashion videos visit my website http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: Android Market Data

2009-06-02 Thread Numan Ahmed
--- On wed, 6/3/09, numan <> wrote: hello my friend how are u latest summer fashion hot fashion videos visit my website http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: Handling volume controls

2009-06-02 Thread Numan Ahmed
--- On wed, 6/3/09, numan <> wrote: hello my friend how are u latest summer fashion hot fashion videos visit my website http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: setText for EditText is not working in 1.5

2009-06-02 Thread cindy
After I switch the sequence of 2 lines, it is working. mEditText = (EditText)findViewById(R.id.text_edit); mEditText.setText("123456"); mEditText.addTextChangedListener(new TextContentWatcher()); On Jun 2, 12:11 pm, "Mark Murphy" wrote: > > There is no problem with addTextChangedListener. As

[android-developers] ADC 2 Partners

2009-06-02 Thread Muthu Ramadoss
Hiya folks, Looking for people to work as a team, for ADC2. I have a Social Networking idea and would need expert server developers to build the social network. Drop me a line if you are looking for working as a team for ADC2. NOTE: We work towards a share on the winnings, so don't expect to get

[android-developers] Re: Is there a way for us to show ProgressBarIndeterminate in Theme.Dialog activity?

2009-06-02 Thread Numan Ahmed
--- On wed, 6/3/09, numan <> wrote: hello my friend how are u latest summer fashion hot fashion videos visit my website http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: My good god, bugs in Android brick phone, and it's not difficult to reproduce...

2009-06-02 Thread Numan Ahmed
--- On wed, 6/3/09, numan <> wrote: hello my friend how are u latest summer fashion hot fashion videos visit my website http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: Detect Physical Keyboard Layout (ex: QWERTY vs QWERTZ)

2009-06-02 Thread Numan Ahmed
--- On wed, 6/3/09, numan <> wrote: hello my friend how are u latest summer fashion hot fashion videos visit my website http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: Enhanced Sensor API

2009-06-02 Thread Numan Ahmed
--- On wed, 6/3/09, numan <> wrote: hello my friend how are u latest summer fashion hot fashion videos visit my website http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: Database Pattern - What's your method?

2009-06-02 Thread Numan Ahmed
--- On wed, 6/3/09, numan <> wrote: hello my friend how are u latest summer fashion hot fashion videos visit my website http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: How to get just updated screen data instead of reading all data from framebuffer?

2009-06-02 Thread Numan Ahmed
--- On wed, 6/3/09, numan <> wrote: hello my friend how are u latest summer fashion hot fashion videos visit my website http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] How to get just updated screen data instead of reading all data from framebuffer?

2009-06-02 Thread Ruiming Li
any help? On Wed, Jun 3, 2009 at 10:33 AM, Ruiming Li wrote: > Hi experts, > > I just want to capture the updated screen data instead of reading all > data from framebuffer. > Can I get this data by what method? > > Thanks! > > Robert. > > --~--~-~--~~~---~--~-

[android-developers] Detect Physical Keyboard Layout (ex: QWERTY vs QWERTZ)

2009-06-02 Thread csvy
Is there any way to determine the layout of a physical keyboard (if there is one)? I would like to map commands to keyboard keys if there is a hardware keyboard available, but the layout is very important. I have had users from Germany complaining that layout is not optimized for their phones (si

[android-developers] Re: Database Pattern - What's your method?

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Key down events on answer and end call not working anymore in cupcake

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Radio's Colorthon Tutorial Now Available on YouTube

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Enhanced Sensor API

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: My good god, bugs in Android brick phone, and it's not difficult to reproduce...

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Is there a way for us to show ProgressBarIndeterminate in Theme.Dialog activity?

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Handling volume controls

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Why can "Maps" find a location on demand but not my app

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: How to get just updated screen data instead of reading all data from framebuffer?

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] How to get just updated screen data instead of reading all data from framebuffer?

2009-06-02 Thread Ruiming Li
Hi experts, I just want to capture the updated screen data instead of reading all data from framebuffer. Can I get this data by what method? Thanks! Robert. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "And

[android-developers] Re: EditText linkfy?

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Why can "Maps" find a location on demand but not my app

2009-06-02 Thread pawpaw17
Mark, Thanks for the reply. I need to serach harder for blog posts with "working" code, I've been reading posts that complain about problems :) Here's what I do: // Favor the network location source String bestProvider = null; if (locationManager.isProviderEnabled("network")){ bestProvider

[android-developers] EditText linkfy?

2009-06-02 Thread quill
Hi all, I put "http://www.google.com\";>link to google " in my edittext, When I click "link to google", it works well. But I can't edit my text. If I click other place of the text, the application crushed. Why? How to correct this? Thank you. --~--~-~--~~~---~--~~

[android-developers] Re: Handling volume controls

2009-06-02 Thread Josh Dobbs
let me also add that for some reason even when the sound is playing and you press the hardware volume keys nothing happens. the volume does not change and the volume indidcator does not appear on the screen. On Sun, May 24, 2009 at 4:19 PM, Josh wrote: > > Im using a mediaPlayer to play sounds

[android-developers] Re: Handling volume controls

2009-06-02 Thread Josh Dobbs
can anyone help me with this? On Sun, May 24, 2009 at 4:19 PM, Josh wrote: > > Im using a mediaPlayer to play sounds in my application. I want the > user to be able to adjust the volume by using the hardware buttons on > the device. I tried putting this in my oncreate (setVolumeControlStream > (

[android-developers] Re: Light theme doen't work properly in 1.5 SDK

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Don't understand how to use SurfaceView for my game, have it working with nomrla View.

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Is there a way for us to show ProgressBarIndeterminate in Theme.Dialog activity?

2009-06-02 Thread Mark Murphy
Billy Cui wrote: > Anybody here? No, we're not here. ;-) > On 6月2日, 下午5时21分, Billy Cui wrote: >> I make android:theme="@android:style/Theme.Dialog" for an Activity. >> >> And then add these 2 lines in onCreate: >> requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); >>

[android-developers] Re: How to add Google Maps library, Maps to the Android 1.5 version device?

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Why can "Maps" find a location on demand but not my app

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://

[android-developers] Re: Is there a way for us to show ProgressBarIndeterminate in Theme.Dialog activity?

2009-06-02 Thread Billy Cui
Anybody here? On 6月2日, 下午5时21分, Billy Cui wrote: > I make android:theme="@android:style/Theme.Dialog" for an Activity. > > And then add these 2 lines in onCreate: > requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); > setProgressBarIndeterminateVisibility(true); > > B

[android-developers] Re: no way to scroll through AutoCompleteTextView in landscape with onscreen keyboard

2009-06-02 Thread hina naz
*visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://latestt

[android-developers] no way to scroll through AutoCompleteTextView in landscape with onscreen keyboard

2009-06-02 Thread Ty
Is this possible? Lets say I have an ACTV that shows you a list of contacts. If I place a T in the ACTV then it may generate a result of 10 contacts. In landscape mode (physical keyboard not open but phone turned sideways), the dropdown list gets covered by the onscreen keyboard. This will gene

[android-developers] Re: Why can "Maps" find a location on demand but not my app

2009-06-02 Thread Mark Murphy
pawpaw17 wrote: > In my activities onCreate method I start listening for location > updates as follows: > > locationManager.requestLocationUpdates(bestProvider, 5000, 0, > myLocationListener); > > Previously I used 60,000 ms instead of 5,000 ms. > > The problem is that I have trouble getting th

[android-developers] Re: My good god, bugs in Android brick phone, and it's not difficult to reproduce...

2009-06-02 Thread Blake B.
I have not installed any system builds other than those pushed by T- Mobile OTA. So, 1.5 was the first update since 1.1. The OS is completely stock, non-rooted. I have both aHome and dxTop desktops installed, and have developed widgets that support both of those desktops, pre-Cupcake. However,

[android-developers] Don't understand how to use SurfaceView for my game, have it working with nomrla View.

2009-06-02 Thread klirr
Problems with using SurfaceView, I don't understand how to draw to it. It has to be done manually? How? package com.android.WWS; import android.app.Activity; import android.content.Context; import android.graphics.*; import android.os.Bundle; import android.view.SurfaceView; import android.vie

[android-developers] Enhanced Sensor API

2009-06-02 Thread RickB
I had a discussion with a few of the Android team member at Google IO, and I'd like to throw the idea out here for general brainstorming with the community. My view is that it is not a good approach to create "sensor-specific" APIs with iterative releases of the Android platform and SDK's. By th

[android-developers] Radio's Colorthon Tutorial Now Available on YouTube

2009-06-02 Thread radiolistener
Hi All, I just finished my fourth video, of the Colorthon Video Tutorial. It's a basic tutorial that explains how you can set shared preferences and layout manipulation. This will enable you to allow the users of your application to customize the look and feel of the application. In this instan

[android-developers] Re: Database Pattern - What's your method?

2009-06-02 Thread Mark Murphy
Gavin Aiken wrote: > Do you close a database after each query? No, I close the database when the component holding the connection closes (e.g., onDestroy()). AFAIK, SQLite database connections are cheap, in terms of the RAM they consume. > Do you close the cursor inside > a method 'close()' of

[android-developers] Re: SoftHashMap implementation - For use as a Cache of thumbnails

2009-06-02 Thread Mark Murphy
Gavin Aiken wrote: > Just in case you thought I was being cheeky and passing this off as my > own, his name with a link is right at the top of the source :). Oh, no, no, no. It was more that I was doing some Google searching and stumbled across the newer edition. -- Mark Murphy (a Commons Guy)

[android-developers] Why can "Maps" find a location on demand but not my app

2009-06-02 Thread pawpaw17
In my activities onCreate method I start listening for location updates as follows: locationManager.requestLocationUpdates(bestProvider, 5000, 0, myLocationListener); Previously I used 60,000 ms instead of 5,000 ms. The problem is that I have trouble getting the first update. public void onLoc

[android-developers] Re: How to add Google Maps library, Maps to the Android 1.5 version device?

2009-06-02 Thread Subba
Thanks. I was able to install Maps library and Maps application in my device. On Jun 1, 6:27 pm, XC He wrote: > Try adb remount > > XC He > 2009/6/2 Subba > > > > > I extracted com.google.android.map.jar and com.google.android.map.xml > > and Map.apk files from the another development device

[android-developers] Re: SoftHashMap implementation - For use as a Cache of thumbnails

2009-06-02 Thread Gavin Aiken
Hi Mark, Thanks so much for the pointer. It is indeed from the newsletter you mentioned, I shall be signing up too I think. Just in case you thought I was being cheeky and passing this off as my own, his name with a link is right at the top of the source :). Thanks again, Gavin On Tue, Jun 2,

[android-developers] Database Pattern - What's your method?

2009-06-02 Thread Gavin Aiken
Hi All, I was wondering if you could shed any light on the pattern you use for your database connections. I have a class; public class FilterDBHelper extends SQLiteOpenHelper{...} With a method; public Cursor getFilterNodes(int _id) {...} That returns a cursor. The activity then takes care

[android-developers] Android Market Data

2009-06-02 Thread SizzlingSkizzorsProgrammer
Hi! I was wondering if there is a way that I could access the market data from Google's (android's) servers, in a similar fashion to Cyrket.com (such as an open web service, etc) This would definitely increase the market's potential and usability, and I was wondering how I could go about getting

[android-developers] Re: Light theme doen't work properly in 1.5 SDK

2009-06-02 Thread jacek
So what EXACTLY did you do as the working workaround? PS. I am surprised that the Googlers (Romain, Jeff) did not close this topic with a workaround before the bug gets fixed in trunk. On May 5, 11:41 pm, havexz wrote: > Got a workaround by explicitly setting the background forscrollview. > But

[android-developers] Re: Whole lotta garbage collecting going on.... How do I find out what is being collected?

2009-06-02 Thread David Turner
On Tue, Jun 2, 2009 at 11:27 PM, Robert Green wrote: > > David, > > That's not my code - that was a package method ripped from > java.lang.Integer. I had to copy/post it because it's needed to make > write an int's String's char[] directly without instantiating > anything. > no problem :-) I wa

[android-developers] Re: Hide the virtual keyboard

2009-06-02 Thread Alex B
I'm still trying to figure out how to suppress the soft keyboard from showing because I have my own custom buttons for input. I have several EditText input fields, and all of them get filled by the custom on- screen buttons. I don't want the soft keyboard to show up at all. Could someone please he

[android-developers] Re: SoftHashMap implementation - For use as a Cache of thumbnails

2009-06-02 Thread Mark Murphy
> Can you let me know if there is a better way of doint this, any errors in > my > design (Essentially lifted from > DevX), > especially with respect to any differences in Dalvik or bonus classes in > the > SDK which render it use

[android-developers] Translucent GLSurfaceView issues: emulator white screen and G1 flicker

2009-06-02 Thread George
I ran the Translucent GLSurfaceView sample in the APIDemos that ships with the 1.5 SDK and found the following issues: (1) On the emulator, only a white blank screen turns up. It shows up on the G1 though. Any workarounds for this to work on the emulator? Other openGL apps work fine on the emulat

[android-developers] SoftHashMap implementation - For use as a Cache of thumbnails

2009-06-02 Thread Gavin Aiken
Hi All, I have adapted a SoftHashMap that I found online for use in my Android application. I generate many thumbnails which use a lot of memory and are easily traversed, I want to use an ADT like this so that I don't run out of memory but do make use of the memory available. The cache is meant to

[android-developers] Html.fromHtml in 1.5 strips out line Separator's

2009-06-02 Thread mathiastck
This looks like a bug to me. Under SDK 1.5 this code: String lineSeparator = System.getProperty ( "line.separator" ); String testString = "first line"+lineSeparator+"second line"; Log.i("helloworld15","testString.indexOf(lineSeparator)) "+testString.indexOf(lineSeparator)

[android-developers] Key down events on answer and end call not working anymore in cupcake

2009-06-02 Thread Jay-andro
On the 1.1 platform, we were successfully getting callbacks for the overridden method ‘onKeyDown(int keyCode, KeyEvent event)’ of an Activity particularly in an In-Call situation. And we were able to handle the ‘keyCode == KeyEvent.KEYCODE_CALL’ case when the call is accepted or ‘keyCode == KeyEve

[android-developers] Re: Whole lotta garbage collecting going on.... How do I find out what is being collected?

2009-06-02 Thread Robert Green
David, That's not my code - that was a package method ripped from java.lang.Integer. I had to copy/post it because it's needed to make write an int's String's char[] directly without instantiating anything. On Jun 2, 7:27 am, David Turner wrote: > On Tue, May 26, 2009 at 12:47 AM, Robert Green

[android-developers] Re: Passing pointer to AsyncTask that changes GUI to onRetainNonConfigurationInstance?

2009-06-02 Thread Streets Of Boston
This is how i solved these type of issues. I'm not sure if it's the most correct way to do this, but it works for me :-), at least for a task that takes place in one process. In the onCreate() of my activity, i save 'this' (reference to this activity) into a static variable: public static MyActiv

[android-developers] Re: What is the android equvilant of scale(-1, 1), I want to flip an image

2009-06-02 Thread z
got it working, you were right :-) thanks for sharing On Jun 2, 5:01 pm, skink wrote: > z wrote: > > Can you post full codes, I couldnt get your snippet to work. > > sure, it has also nice alpha blending effect > > Bitmap reflectedBitmap = Bitmap.createBitmap(originalBitmap.getWidth > (), origin

[android-developers] Re: how to create a pop up window?

2009-06-02 Thread Mark Murphy
> I was wondering how we would attach a pop up window to a button so > that when the button is clicked the pop up window will appear showing > a message and still until the user closes it. How should I go about > this and what classes should I use? Also if there are any examples for > this it woul

[android-developers] Re: ACTION_PACKAGE_INSTALL intent does not work

2009-06-02 Thread patrick
u need permission to use PACKAGE_INSTALL... but to set PACKAGE_INSTALL permission, u need system right. If u set Intent.VIEW instead of PACKAGE_INSTALL, it will launch the ui to ask user if he want to install the apk. On 2 juin, 19:13, "bestpriv...@googlemail.com" wrote: > I try to install a pac

[android-developers] how to create a pop up window?

2009-06-02 Thread automerc
I was wondering how we would attach a pop up window to a button so that when the button is clicked the pop up window will appear showing a message and still until the user closes it. How should I go about this and what classes should I use? Also if there are any examples for this it would really h

[android-developers] Re: What is the android equvilant of scale(-1, 1), I want to flip an image

2009-06-02 Thread skink
z wrote: > Can you post full codes, I couldnt get your snippet to work. > sure, it has also nice alpha blending effect Bitmap reflectedBitmap = Bitmap.createBitmap(originalBitmap.getWidth (), originalBitmap.getHeight(), Config.ARGB_); Canvas c = new Canvas(reflectedBitmap); c.save(); c.sca

[android-developers] How to us Cursor::registerContentObserver() and Cursor::registerDataSetObserver()?

2009-06-02 Thread Mark Wyszomierski
Hi, I'm wondering if anyone can point me to an example of using Cursor::registerContentObserver() or Cursor:: registerDataSetObserver (). I'm not sure which one to use. I'll be fetching all the rows in a particular sqlite database table, the result of which is a Cursor. I'd like to be notified i

[android-developers] Re: What is the android equvilant of scale(-1, 1), I want to flip an image

2009-06-02 Thread z
Can you post full codes, I couldnt get your snippet to work. On Jun 2, 4:29 pm, skink wrote: > z wrote: > > Nope, didnt work > > hmm, it makes vertically reflected bitmap. > > isn't it what you wanted to do? --~--~-~--~~~---~--~~ You received this message because

[android-developers] EditText Auto Focused in Tab

2009-06-02 Thread Tim H.
I can't seem to find the answer to this. Most questions were about the tab stealing focus. I have a layout in a Tab which is longer than the screen size. When clicking the tab, it jumps towards the bottom of the page, which is where the first EditText is located. I assume this is because EditText

[android-developers] Re: What is the android equvilant of scale(-1, 1), I want to flip an image

2009-06-02 Thread skink
z wrote: > Nope, didnt work > hmm, it makes vertically reflected bitmap. isn't it what you wanted to do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] Passing pointer to AsyncTask that changes GUI to onRetainNonConfigurationInstance?

2009-06-02 Thread twan
Good morning, I'm a little confused how to correctly handle tasks (AsyncTask) when the screen orientates. The documentation states that the object passed to onRetainNonConfigurationInstance should have no refererence to the destroyed activity/context. When i pass a pointer to a AsyncTask it shou

[android-developers] Re: My good god, bugs in Android brick phone, and it's not difficult to reproduce...

2009-06-02 Thread Jeff Sharkey
When you saw this error, was it a direct upgrade from the last-OTA'ed release, or had you installed other builds in the meantime without wiping data? I think there was an obscure bug if you somehow had allocated, but unmanaged, appWidgetIds. j On Tue, Jun 2, 2009 at 5:19 AM, Blake B. wrote: >

[android-developers] Re: What is the android equvilant of scale(-1, 1), I want to flip an image

2009-06-02 Thread z
Nope, didnt work On Jun 2, 3:42 pm, skink wrote: > On 2 Cze, 15:45, z wrote: > > > That did the trick, thanks > > > for those who are looking to do the same, here are the codes > > >     Matrix matrix = canvas.getMatrix(); > > matrix.postRotate(180, icon.getWidth()/2, icon.getHeight()/2); > >  

[android-developers] Re: What is the android equvilant of scale(-1, 1), I want to flip an image

2009-06-02 Thread skink
On 2 Cze, 15:45, z wrote: > That did the trick, thanks > > for those who are looking to do the same, here are the codes > >     Matrix matrix = canvas.getMatrix(); > matrix.postRotate(180, icon.getWidth()/2, icon.getHeight()/2); >     matrix.postScale(-1, 1); >     matrix.postTranslate(icon.get

[android-developers] Re: Where do i put 45 MB Audio Files.

2009-06-02 Thread Ed Burnette
For voice, try the AMR format. You can get reasonable quality speech at between 4 and 12 kilobits per second. So in 45MB you could store as much as 3 hours of audio. Android 1.5 can record in AMR-NB format and play back in either AMR-NB or AMR-WB. For more information see: http://blogs.zdnet.co

[android-developers] Re: which junit to use when creating reusable library for Android apps?

2009-06-02 Thread Peter
I agree that running tests OOC would be very nice...of course, a VM is a container. I'm kind of surprised Google didn't build a Valtik unit testing container. On May 28, 5:06 pm, Anton Slutsky wrote: > For more sophisticated apps with a large number of team members and > contributors, running un

[android-developers] Re: setText for EditText is not working in 1.5

2009-06-02 Thread Mark Murphy
> There is no problem with addTextChangedListener. As long as I > commented out mEditText.setText("123456"), it is working. What does your stack trace tell you? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~

[android-developers] Re: setText for EditText is not working in 1.5

2009-06-02 Thread cindy
There is no problem with addTextChangedListener. As long as I commented out mEditText.setText("123456"), it is working. On Jun 2, 11:14 am, "Mark Murphy" wrote: > > I upgraded my project from 1.0 to 1.5. > > > I found the function setText is no longer working in 1.5. Does any one > > knows why?

[android-developers] Re: 30 Days of Android Applications

2009-06-02 Thread Luis Alberto Pérez García
I have another idea for a simple widget and/or sqlite example: a counter widget. I mean: A widget that stays on your desktop and, every time you tap it it increases hte previous value. For example, for counting coffes or cigarretes :D lucky4me escribió: > Day 02: Flashlight > http://bakhtiyor

[android-developers] Re: AndCooper Build Tool Release

2009-06-02 Thread Mark Murphy
> I think he meant: > > http://mobilebytes.wordpress.com > > with an "r". Hah! Didn't catch that. That link definitely works. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~

[android-developers] Re: AndCooper Build Tool Release

2009-06-02 Thread Ed Burnette
I think he meant: http://mobilebytes.wordpress.com with an "r". On Jun 1, 9:13 pm, Mark Murphy wrote: > Fred Grott(shareme) wrote: > > The link to the project pages can be found at the MobileBytes blog > > under the FOSS page: > > >http://mobilebytes.wordpess.com > > Um... > > I get a "Wel

[android-developers] Re: Whole lotta garbage collecting going on.... How do I find out what is being collected?

2009-06-02 Thread Dan Bornstein
On Mon, Jun 1, 2009 at 9:20 PM, Robert Green wrote: > Dan, thanks for clearing that up. Glad to be of service. > It's always nice to have *the* guy who wrote the VM (emphasis mine) I definitely can't take all that credit, not being surrounded[*] as I am by the *many* fine folks who also worked

[android-developers] Re: Internal JVM memory questions

2009-06-02 Thread Fred Grott(shareme)
A question any word on if the conversion tool in sdk 1.5 for use in the Eclipse MAT via heap dumps wiil be able to read the process stuff in sdk 2.0. I have only played with heap dumps in sdk 1.1. not sdk 1.5 as of yet but read that in sdk 1.5 the process stuff in heap dumps is not converted for E

[android-developers] PMD Android ruleset

2009-06-02 Thread Fred Grott(shareme)
I am extending the PMD ruleset used in AndCooper to cover more: -Services leaks -Changes on non UI threads it already has the rule about non hard writing the sdcard location Any more issues you see that should be a PMD rule? Fred Grott http://mobilebytes.wordpress.com --~--~-~--~~

[android-developers] Re: Internal JVM memory questions

2009-06-02 Thread Mark Murphy
> But may Android kill an Activity and leave the service running? AFAIK, yes. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because y

[android-developers] Re: Internal JVM memory questions

2009-06-02 Thread Matt
> > 1.       In the event that the Android system is running low on > > memory, Android starts shutting down activities and/or processes.  Can > > Android shut down individual components, as opposed to the whole > > process?  In other words, can Android close down an activity but leave > > the ser

[android-developers] Re: 30 Days of Android Applications

2009-06-02 Thread Luis Alberto Pérez García
Talking about the market... what i said this morning in another thread... "UpdateWithOneClick" for... just what says, update all apps with only one click ;) Rob Franz escribió: > How about an app to remove other spam apps from the Market? (hint: the > Top Sexy Ladies apps ;) > > On Tue, Jun 2

[android-developers] Re: 30 Days of Android Applications

2009-06-02 Thread Rob Franz
How about an app to remove other spam apps from the Market? (hint: the Top Sexy Ladies apps ;) On Tue, Jun 2, 2009 at 12:58 PM, Peli wrote: > > I would like to see an extension to OI Notepad that can transform > selected text in a special way. > > For example, the ROT13 extension shifts all lett

[android-developers] Re: setText for EditText is not working in 1.5

2009-06-02 Thread Mark Murphy
> I upgraded my project from 1.0 to 1.5. > > I found the function setText is no longer working in 1.5. Does any one > knows why? > > Following is my code: > mEditText = (EditText)findViewById(R.id.text_edit); > mEditText.addTextChangedListener(new TextContentWatcher()); > // mEditT

  1   2   >