[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-12-03 Thread Matt Kanninen
My app involves taking a picture with the camera, or recording voice
using the microphone, and sending the results to the server.  It's a
search tool.  The UI isn't very complicated, as much as possible it is
done in XML.   For the droid we added some layouts in res/long that
differ only in layout margins.

I, like a great many Android developers, had to re create the look and
feel that was established with our iPhone application.  On the droid
we had gradient banding so we pre dithered a png, but that was the art
guy.  The layouts could be simpler, but I have already repeatedly
simplified them from the first version that had the right look and
feel.

I have some FrameLayouts, containing RelativeLayouts, containing
single Views.  It seems like RelativeLayout has been redone and is
less brittle then I remember it,  so I probably can start skipping the
FrameLayouts.  Framelayouts just seem like the simple easy way to
control over lap of views, and I often have 4 over lapping views.  I
also have some linear layouts in side other linear layouts, but all
with different weights.

The 1 or 2 pixel differences between 1.5,1.6 and 2.0 make our
application look worse on the Hero.  I use ListViews, that sometimes
are populated by CursorAdapters.  I have gone back and forth between
letting the activity manage the cursors, and managing them myself.

(I'm referencing AdMob and other's numbers to try and figure out what
Android versions I need to support, and what handsets I need to test
on
http://daringfireball.net/linked/2009/11/23/admob  )

Much of the code for my app was written for Android 1.0, 1.1 etc.
and it has been maintained by different developers over the years.

Now I guess my task is to go over every line of code and reduce how
much memory is used.  I've tried to check every static reference that
wasn't a private static final constant primitive, to make sure we
weren't hindering garbage collection.  I don't think I ever store a
context, but we pass them around everywhere as arguments.  I can't
really recycle my drawables because I'm not managing them, I just call
setContentView.

My activities have some member variables, views, etc.  I create some
handlers, but more often just call runOnUiThread.  I guess I can
explicitly set these to null in onStop...  when I hear improve memory
management my first response is to set things null, my problem is the
unusual lifecycle of an Android application, it's activities, and it's
static variables.  I'm already prepared for my major static variables,
strings, to unexpectedly become null, and write my strings to a
private preference, or save my camera or microphone content as a
private application file.

It's all pretty vanilla.  The networking is done using some included
apache jars, I guess I could redo all my networking to use something
else, that would make it even more vanilla.  But I will probably wait
until my application becomes less vanilla and we need a push solution.

SoftwareForMe, I have read your post a couple times now, I think it's
clear to me now.  Generating a new version of most or all of our PNGs,
especially our largest, sounds like a good idea.  Is there a good blog
post I can send to the art guy so he can understand what he needs to
do?  I'd like not to have to go 11 more revisions on each asset.

It'd be real cool if there was an easy way to just remove all my
unused PNGs from my project, before I double them.  I have not go
through and removed every PNG that is no longer being referenced yet.

My 2 cents,
Matt Kanninen
Android Developer

On Dec 2, 8:38 pm, SoftwareForMe.com SoftwareForMe.com
softwareforme@gmail.com wrote:
 The bitmap issue on the Droid is really about whether you want to show more
 graphics at smaller size, or the same graphics at larger size.

 I don't know what you app does, but imagine that it's a 2d game, where the
 graphics are re-used a lot (land tiles, character icons, etc.).

 If you let the higher resolution screen show more of the game map at a time,
 your program will consume NEARLY identical memory to what it would on other
 devices. Why? Because the tiles will be the same size in memory; the only
 thing that would be larger would be the screen surface, and any back buffers
 you use.

 On the other hand, if you want the graphics on the Droid to look the same
 (same game play area visible), then without work, your application will take
 more memory on the Droid. Why? Because unless you explicitly avoid it,
 Android will scale your image up to higher resolution when you load them, so
 they take more memory.

 The solutions are to:
 1) Create high-density images that are simply smaller, but occupy the same
 number of pixels. This way, loading resources on the denser devices won't
 take any memory, or
 2) Resize the images after you load them, understanding that loading the
 exact same resource on two different devices may result in two different
 sized bitmaps in memory

 Of course approach #1 is the standard 

[android-developers] Re: Call Webservice From Android

2009-12-03 Thread Dexter#39;s Brain
You cannot use rmi package in Android since they are not available.

You would perhaps try using kSoap or some other third party tools
which you should ensure that they are compatible with Android.

Or, may be a simple HTTP post or GET, but for this of course, you need
to change your server code. :)

Thanks,
Kumar Bibek

http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Accents in strings

2009-12-03 Thread Dexter#39;s Brain
To handle such things, I guess, the best thing is the common-io from
apache. They have a class called IOUtils, which is used to convert a
stream to a string and vice-versa, according the the encoding you
mention.

Try using it.

Thanks,
Kumar Bibek

http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is there any posibility to know the size of the video file?

2009-12-03 Thread Dexter#39;s Brain
If you are picking your video files, and creating File objects, then,
you would defintely get the size from the file object.

Thanks,
Kumar Bibek

http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain
Hi Archana,

This does work. Specify gravity as whatever, but If you don't specify
the width of the text-view as fill_parent instead of wrap_content, the
gravity property is meaningless.

So,  first set the width as fill_parent, for horizontal gravity props,
and height as fill_parent for vertical props.

Note: It doesn't necessarily have to be fill_parent, but is should
certainly not be wrap_content. Instead, you can specify a sp/dip value
so that we get space around the text view for the gravity to work.

Thanks,
Kumar Bibek

http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Accessing videos uploaded to YouTube

2009-12-03 Thread Hunter Peress
Hi, thanks for reading.

So, after a video is uploaded to youtube. I'm looking for a way to
access its uploaded youtube id. My best idea is that this information
might be stored in some content provider somewhere. Anyone have an
idea?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Advice for uploading my apps

2009-12-03 Thread Neilz
Hi all. Just need some help before I upload my apps.

The title I wanted to give my app is too long for the small icon.
However looking at the market, I notice that other people have got
around this by giving a longer name to the app that appears on the
market list, and a shorter name to the app itself once it is
installed.

For example, the is a calculator app called RealCalc Scientific
Calculator but when you install it it just appears as Calculator.

How do I go about this? Does the market ask you for an app name when
you upload, where you can put anything you like?

Also, what about the actual .apk filename - is that important, and
have any bearing on the name that appears when someone downloads the
app?

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Is there an explorer for all contentProviders?

2009-12-03 Thread Hunter Peress
Hi.

I want to search all the content providers. Is there a UI for doing
this?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Advice for uploading my apps

2009-12-03 Thread Dexter#39;s Brain

Well, when you upload it to the market, you get a field called Title
which will actually appear on the market. This need not be the same as
your app name. You can have separate names.


apk file name can be anything, it doesn't matter.

Thanks,

Kumar Bibek
http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Advice for uploading my apps

2009-12-03 Thread Neilz
Thank you Kumar.

On Dec 3, 9:58 am, Dexter#39;s Brain coomar@gmail.com wrote:
 Well, when you upload it to the market, you get a field called Title
 which will actually appear on the market. This need not be the same as
 your app name. You can have separate names.

 apk file name can be anything, it doesn't matter.

 Thanks,

 Kumar Bibekhttp://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Invalidate()?...

2009-12-03 Thread Sasikumar.S
Hi,

What is the use of Invalidate() in android?...

Any one know about these?...

Thanks in advance

-- 
Thanks  Regards
Sasikumar.S

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Advice for uploading my apps

2009-12-03 Thread Neilz
Ah, but is there a way to make the name that appears in the
application list different from that on the icon?

When the user tries to add a shortcut, and gets the list of
applications, I would like the full title to appear there, but keep
the abbreviated version on the icon. Can that be done?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] JNI Programming in Android Environment

2009-12-03 Thread RamaMohan
hi all Android developers,

I need to implement JNI Programming in android environment.
SO if anybody knows about JNI programming in android.please let me
know
or if you found any useful links or information about this concept
please send me .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is there any posibility to know the size of the video file?

2009-12-03 Thread manoj
Hi Kumar,

thanks for your reply. But what I wanted to know is to get the video
resolution (width * height).

On Dec 3, 2:08 pm, Dexter#39;s Brain coomar@gmail.com wrote:
 If you are picking your video files, and creating File objects, then,
 you would defintely get the size from the file object.

 Thanks,
 Kumar Bibek

 http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ExpandableListView indicator over my text

2009-12-03 Thread jef
Ok works fine ! thanks

On 2 déc, 18:38, Romain Guy romain...@android.com wrote:
 You are setting the padding to be 36 pixels, which is going to be too
 small on a high density display. On high density displays, Android
 scales assets/dimensions/etc. up by 1.5, meaning a 20x20 image becomes
 30x30. You should NEVER use hard coded pixel values precisely for that
 reason. The easiest solution for you is to define your generic view
 inside an XML layout file and inflate it at runtime. And make sure to
 use the dip unit when specifying the padding or the height of the
 generic view (your height of 64 will also be an issue on a high
 density display.)





 On Wed, Dec 2, 2009 at 8:44 AM, jef jean.francois.garr...@gmail.com wrote:
  I'm using anExpandableListViewin one of my activity in a
  RelativeLayout

  ?xml version=1.0 encoding=utf-8?
  RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
  android
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     
         ...
         Button
                 android:id=@+id/searchNearBtnSearch
                 android:layout_width=wrap_content
                 android:layout_height=wrap_content
                 android:text=@string/search
                 android:layout_centerHorizontal=true
             android:layout_below=@id/searchNearSpinner
             android:background=@drawable/btn_and_showtime
                 /
         ExpandableListView
        android:id=@+id/searchNearListResult
        android:layout_width=fill_parent
        android:layout_height=fill_parent
             android:layout_below=@id/searchNearBtnSearch
        /
  /RelativeLayout

  and I'm using a custom expandableListAdaptaer which group view is :

  public TextView getGenericView() {
                 // Layout parameters for theExpandableListView
                 AbsListView.LayoutParams lp = new AbsListView.LayoutParams( 
  //
                                 ViewGroup.LayoutParams.FILL_PARENT, 64);

                 TextView textView = new TextView(mainContext);
                 textView.setLayoutParams(lp);
                 // Center the text vertically
                 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);
                 // Set the text starting position
                 textView.setPadding(36, 0, 0, 0);
                 return textView;
         }

  (Found on examples of API_Demos, ExpandableList1)

  A user of my application report me this photo
 http://binomed-android-project.googlecode.com/issues/attachment?aid=-...
  As you can see, the indicator of group items is over the text of group
  item despite the padding of 36...

  And if I'm running emulator WVGA800 or an emulator with abstracted
  LCD density to 240 I have the same problem, but with my phone (HTC
  G1), I don't have any problem.

  What is strange is that I try the application API_Demo with an
  emulator WVGA800 or an emulator with abstracted LCD density to 240
  and I go to ExpandableList1 activity and all is alright !

  I also try to copy the inner class available in ExpandableList1 for
  adapter and I launch it into my activity and I also have the problem
  see on photo

  What I am doing wrong... ? I am forced to manage density into my
  adapters in order to adjust the padding ?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Content Management Application in android

2009-12-03 Thread RamaMohan
HI all,
I need to an application with following .
The application should be Generic one.ie.,
By supplying data,layout,images and all resources in a single XML
file,then, the application should dynamically change its layout and
functionality and it should display according to the layout specified
in the xml file.

It should generate the application to the supplied xml 's data
dynamically even its layout also ie.,header,footer,data everything.

Typically i need to develop a  GENERIC/ COMMON SKELETON for all
android applications.
ie.,as we see Blogging in GOOGLE or IGOOGLE where User customizes his
site and layout and content as he likes.I need to develop an
application ,similar to the  kind of application in android.
i want to know ,
How to start the application and What to do intially for this
application.
can anybody knows about this concept,please let me know your ideas.




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Archana
I tried by giving both fill parent and and some value..But  right side
of the text is not
justified.Can you pleas give some example if you have.

On Dec 3, 2:11 pm, Dexter#39;s Brain coomar@gmail.com wrote:
 Hi Archana,

 This does work. Specify gravity as whatever, but If you don't specify
 the width of the text-view as fill_parent instead of wrap_content, the
 gravity property is meaningless.

 So,  first set the width as fill_parent, for horizontal gravity props,
 and height as fill_parent for vertical props.

 Note: It doesn't necessarily have to be fill_parent, but is should
 certainly not be wrap_content. Instead, you can specify a sp/dip value
 so that we get space around the text view for the gravity to work.

 Thanks,
 Kumar Bibek

 http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Invalidate()?...

2009-12-03 Thread sathya subbiah
Invalidate is used for updating the View display. Its like refreshing the
view.

Rgs,
Sathya

On Thu, Dec 3, 2009 at 5:32 AM, Sasikumar.S sasikumar.it1...@gmail.comwrote:

 Hi,

 What is the use of Invalidate() in android?...

 Any one know about these?...

 Thanks in advance

 --
 Thanks  Regards
 Sasikumar.S

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Invalidate()?...

2009-12-03 Thread Sasikumar.S
Hi,

Thanks for reply...

It will refresh onDraw()?

On Thu, Dec 3, 2009 at 4:28 PM, sathya subbiah
sathya.subbia...@gmail.comwrote:

 Invalidate is used for updating the View display. Its like refreshing the
 view.

 Rgs,
 Sathya

 On Thu, Dec 3, 2009 at 5:32 AM, Sasikumar.S sasikumar.it1...@gmail.comwrote:

 Hi,

 What is the use of Invalidate() in android?...

 Any one know about these?...

 Thanks in advance

 --
 Thanks  Regards
 Sasikumar.S

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Thanks  Regards
Sasikumar.S

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Questin about gmail intents

2009-12-03 Thread Flying Coder

Moneytoo:  How does one receive the intent?  I'd be happy if my app
could simply tell when a new gmail has arrived.

Thanks,
Steve


On Dec 2, 6:41 pm, moneytoo m...@seznam.cz wrote:
 You can receive the intent but you can not cancel the notification.

 On Dec 2, 7:48 pm, vendor.net vendor@gmail.com wrote:



  Hi!

  Is it possible to get an intent when the user recieves a mail and to
  cancel the gmail notification?

  I want to filter some messages and I do not want te get notifications
  from them.

  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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Advice for uploading my apps

2009-12-03 Thread Dexter#39;s Brain
I don't think so. I think they have to be same.

Thanks,
Kumar Bibek

http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how can i know if appIstallation Done or cacelled

2009-12-03 Thread george

Hi

here is my code to invoke the installer intent
how can i know if appIstallation Done or
cacelled ...??




Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(appApkFile), application/
vnd.android.package-archive);

 startActivityForResult(intent, 0);

any answer pls ..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain
If you can paste your code, I might be able to point out the error.

RelativeLayout android:id=@+id/RelativeLayout01
android:layout_width=fill_parent xmlns:android=http://
schemas.android.com/apk/res/android
android:layout_height=wrap_content
TextView android:layout_height=wrap_content
android:layout_width=fill_parent
android:layout_toRightOf=@id/imgIcon android:id=@+id/tvText
android:text= kh fdsjsad l
android:gravity=right/TextView
/RelativeLayout

Try this out. Try changing the gravity, and see the difference.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] JNI Programming in Android Environment

2009-12-03 Thread Mark Murphy

 hi all Android developers,

 I need to implement JNI Programming in android environment.
 SO if anybody knows about JNI programming in android.please let me
 know
 or if you found any useful links or information about this concept
 please send me .

You want the Android NDK:

http://developer.android.com/sdk/ndk/1.6_r1/index.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] PVPLayer:general question

2009-12-03 Thread Nilly
Hi All,

Is pvplayer is full fledge GUI player working on andoriod or its just
like gstremer and we need to integrate it with some other GUI based
player?

where can I get PVplayer source code?

Regards,
Nilly

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] files and updating

2009-12-03 Thread kabir
Hi,

Quick question: what happens to files stored locally when you update
your app through the market?
e.g. files that have been created using for example
'this.openFileOutput(page.txt, MODE_WORLD_READABLE);'?

Are they maintained or deleted by default? if deleted, how can i make
the system keep those files in place?

I hope this does not seem silly, but it would be a big problem to have
data lost.

Cheers
Kabir

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] files and updating

2009-12-03 Thread Mark Murphy
 Quick question: what happens to files stored locally when you update
 your app through the market?
 e.g. files that have been created using for example
 'this.openFileOutput(page.txt, MODE_WORLD_READABLE);'?

 Are they maintained or deleted by default?

Maintained. They will be deleted if the user uninstalls the app.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is there any posibility to know the size of the video file?

2009-12-03 Thread Dexter#39;s Brain
You have to query the MediaStore and get the value of the resolution
from it.

http://developer.android.com/reference/android/provider/MediaStore.Video.VideoColumns.html

Have you tried this? I don't know if it works, but i think this is the
right way.

Thanks,
Kumar Bibek.

http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Archana
Actually i am using java not xml

Like this i tried

LinearLayout Contentlayout = new LinearLayout(context);

Contentlayout.setLayoutParams(new LinearLayout.LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
Contentlayout.setOrientation(HORIZONTAL);

TextView text1 = new TextView(context);

text1.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));

text1.setText(txt) // here i am setting some huge content just like
paragraph

Contentlayout.addView(text1);

On Dec 3, 4:48 pm, Dexter#39;s Brain coomar@gmail.com wrote:
 If you can paste your code, I might be able to point out the error.

 RelativeLayout android:id=@+id/RelativeLayout01
         android:layout_width=fill_parent xmlns:android=http://
 schemas.android.com/apk/res/android
         android:layout_height=wrap_content
         TextView android:layout_height=wrap_content
                 android:layout_width=fill_parent
                 android:layout_toRightOf=@id/imgIcon 
 android:id=@+id/tvText
                 android:text= kh fdsjsad l
                 android:gravity=right/TextView
 /RelativeLayout

 Try this out. Try changing the gravity, and see the difference.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to layout 3 ImageButton evenly distributed on a row

2009-12-03 Thread Dexter#39;s Brain
Another solution that I can think of is with the same layout that you
have,

add some padding to the ImageViews.

ImageButton android:id=@+id/one
android:layout_width=wrap_content
android:layout_height=wrap_content android:padding=5sp /

This will give some space between your Image Views.

Thanks,
Kumar Bibek
http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: files and updating

2009-12-03 Thread kabir
thanks!

On Dec 3, 12:08 pm, Mark Murphy mmur...@commonsware.com wrote:
  Quick question: what happens to files stored locally when you update
  your app through the market?
  e.g. files that have been created using for example
  'this.openFileOutput(page.txt, MODE_WORLD_READABLE);'?

  Are they maintained or deleted by default?

 Maintained. They will be deleted if the user uninstalls the app.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Push technique in android

2009-12-03 Thread Marc Reichelt
Hi veradis,

of course, here you are:
http://www.google.com/custom?hl=enclient=pub-6001183370374757cof=FORID%3A1%3BGL%3A1%3BLBGC%3A336699%3BLC%3A%23ff%3BVLC%3A%23663399%3BGFNT%3A%23ff%3BGIMP%3A%23ff%3BDIV%3A%23336699%3Bdomains=exampledepot.comie=ISO-8859-1oe=ISO-8859-1q=http+connectionbtnG=Searchsitesearch=exampledepot.com


Regards

Marc Reichelt   ||   http://www.marcreichelt.de/

On 2 Dez., 13:01, veradis veradism...@gmail.com wrote:
 Thanks Marc Reichelt,

 can u provide me some examples for HTTP connection.

 On Dec 2, 4:07 pm, Marc Reichelt mcreich...@googlemail.com wrote:

  Hi Veradis,

  you may open a HTTP connection from your client. The server itself
  should not close the connection, but send data over it if available.
  Warning: This certainly will decrease battery power because the mobile
  phone will not activate power saving for WIFI etc. while the
  connection is still open.

  Regards

  Marc Reichelt   ||  http://www.marcreichelt.de/

  On 2 Dez., 07:59, veradis veradism...@gmail.com wrote:

   Hi,

    I want to implement push technology  from my tomcat server to my
   android app. Can this be implemented. I can contact server by using
   web service from app and retrieve data, but can data be send from
   server to all installed running apps without apps requesting it.

   Thanks in advance
   Veradis

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain

I guess, you haven't set the Gravity
text1.setGravity(Gravity.RIGHT)

This should work. Btw, any specific reason of not using xml? AFAIK
they are a lot better to manage, and after you get a hand, easier to
implement also. You can also get nice previews for your layout, before
even running your app.

Thanks,
Kumar Bibek
http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Timer

2009-12-03 Thread Sasikumar.S
Hi,

How to get whether timer is runnning or not?...

That means How to get whether timer is scheduled or not?...

-- 
Thanks  Regards
Sasikumar.S

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Error in developing videoplayer

2009-12-03 Thread abi
hi ..
 i had an error in video player while executing it
(Eclipse...galilio)
  the error is..R.id can not be resolved.
(i.e)
id class s not automatically generated in R.java file...

i get that code from the link...http://davanum.wordpress.com/
2007/12/29/android-videomusic-player-sample-from-local-disk-as-well-
as-
remote-urls/


Plz send ur suggestions or send the right code to my mail...


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Archana
No i set gravity to right but at that time everything is moving to
right side.
I want to align it from both left and right side.


On Dec 3, 5:20 pm, Dexter#39;s Brain coomar@gmail.com wrote:
 I guess, you haven't set the Gravity
 text1.setGravity(Gravity.RIGHT)

 This should work. Btw, any specific reason of not using xml? AFAIK
 they are a lot better to manage, and after you get a hand, easier to
 implement also. You can also get nice previews for your layout, before
 even running your app.

 Thanks,
 Kumar Bibekhttp://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] media player....

2009-12-03 Thread abi
can any one send me the right code for media player.
...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Archana
ya i want it to be in java,Becoz i am fetching some content from
server and itrating so if i use
xml it wont display content properly.But now everything coming fine
except justification.


On Dec 3, 5:26 pm, Archana archana.14n...@gmail.com wrote:
 No i set gravity to right but at that time everything is moving to
 right side.
 I want to align it from both left and right side.

 On Dec 3, 5:20 pm, Dexter#39;s Brain coomar@gmail.com wrote:

  I guess, you haven't set the Gravity
  text1.setGravity(Gravity.RIGHT)

  This should work. Btw, any specific reason of not using xml? AFAIK
  they are a lot better to manage, and after you get a hand, easier to
  implement also. You can also get nice previews for your layout, before
  even running your app.

  Thanks,
  Kumar Bibekhttp://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain
Sorry, but I don't get what you want to achieve
GRAVITY.CENTER ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Archana
Please see this link ..here they are aligning the text i want same
like this

Check Full Text Search

http://www.aldiko.com/blog/

On Dec 3, 5:32 pm, Dexter#39;s Brain coomar@gmail.com wrote:
 Sorry, but I don't get what you want to achieve
 GRAVITY.CENTER ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android 2.0 Installation

2009-12-03 Thread Ali Murtaza
Hi

I am trying to install the android 2.0. when i start the setup then it start
fatching...

i am using windows OS .. but when fetch it gives this error

Failed to fetch URL
http://dl-ssl.google.com/android/repository/repository.xml, reason:
dl-ssl.google.com

tell me how i resolved it... Please

-- 
Ali Murtaza

BCSF06M021
Research Assistant
Data Virtulization Ware House
PUCIT, Lahore, Pakistan
ali.murt...@pucit.edu.pk

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Question regarding Dev Phone 2

2009-12-03 Thread developm...@mobilaria.com
Also I just noticed that on the Magic description this sentence is
used :
- Ability to see forward locked apps in Android Market
Which isn't there on the G1 description page...
What does that mean ?

On 2 dec, 10:06, developm...@mobilaria.com
developm...@mobilaria.com wrote:
 Hi all,
 I was wondering which Dev Phone I should buy ? On the Android Market I
 see two phones, the Dev 1 (Dream) and the Dev 2 (Magic)... If I
 understood correctly all the new Factory System Images on the HTC site
 are specifically for the Dream (devices that meet the following
 requirements: HTC Dream hardware platform only)...
 So no word about the Dev Phone 2 (Magic) there... My question
 obviously is if this device is supported right now and if not when
 will it be supported ? Logically I'd say that before actually offering
 a Dev Phone based on a new device (Dev Phone 2) all this has been
 sorted out, it's just that this discrepancy makes me worry about
 possibly acquiring a Dev Phone 2 just to discover that it isn't
 flashable with new Factory System Images later on...
 So does anyone have any experience regarding this ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android 2.0 Installation

2009-12-03 Thread vishnu prasad
Did u select the checkbox force under the MISC section in the settings tab



On Thu, Dec 3, 2009 at 8:44 PM, Ali Murtaza mralimurt...@gmail.com wrote:

 Hi

 I am trying to install the android 2.0. when i start the setup then it
 start fatching...

 i am using windows OS .. but when fetch it gives this error

 Failed to fetch URL
 http://dl-ssl.google.com/android/repository/repository.xml, reason:
 dl-ssl.google.com

 tell me how i resolved it... Please

 --
 Ali Murtaza

 BCSF06M021
 Research Assistant
 Data Virtulization Ware House
 PUCIT, Lahore, Pakistan
 ali.murt...@pucit.edu.pk

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Thks and Regards
W.R.Vishnu Prasad
Mobile :+65-83060528

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to find Key Performance parameters of an Android application

2009-12-03 Thread Arun Tripathy
Hi Folks,

I am looking to find out the “launch latency” of an application by writing
an Android Java Application. For instance, when we launch a Browser, I want
to know how long it takes to the application to come to the ui and ready to
take an URL. The Logcat message prints the required information. But I am
looking to get this information programmatically.
01-06 22:11:24.059: INFO/ActivityManager(922): Displayed activity
com.android.browser/.BrowserActivity: 1678 ms

Also, is there a way to find the current LINUX and JAVA memory usage, CPU
usage of an application/task from Java layer?

I appreciate if you can provide some pointer on the same.

FYI, currently I am not looking to use “adb shell top” or “adb shell
cat/proc/meminfo” commands. I want the same information on the embedded
side, if possible from Java layer, at real time.

Regards,
-Arun

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Need help to find Key Performance parameters of an Android application

2009-12-03 Thread Arun
Hi Folks,

I am looking to find out the “launch latency” of an application by
writing an Android Java Application. For instance, when we launch a
Browser, I want to know how long it takes to the application to come
to the ui and ready to take an URL. The Logcat message prints the
required information. But I am looking to get this information
programmatically.
01-06 22:11:24.059: INFO/ActivityManager(922): Displayed activity
com.android.browser/.BrowserActivity: 1678 ms

Also, is there a way to find the current LINUX and JAVA memory usage,
CPU usage of an application/task from Java layer?

I appreciate if you can provide some pointer on the same.

FYI, currently I am not looking to use “adb shell top” or “adb shell
cat/proc/meminfo” commands. I want the same information on the
embedded side, if possible from Java layer, at real time.

Regards,
-Arun

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Advice for uploading my apps

2009-12-03 Thread Jeffrey Blattman
the short name that appears under the icon after installation is defined by
the android:label attr in your manifest. the longer name in the market is
entered during the upload process.

On Thu, Dec 3, 2009 at 1:35 AM, Neilz neilhorn...@googlemail.com wrote:

 Hi all. Just need some help before I upload my apps.

 The title I wanted to give my app is too long for the small icon.
 However looking at the market, I notice that other people have got
 around this by giving a longer name to the app that appears on the
 market list, and a shorter name to the app itself once it is
 installed.

 For example, the is a calculator app called RealCalc Scientific
 Calculator but when you install it it just appears as Calculator.

 How do I go about this? Does the market ask you for an app name when
 you upload, where you can put anything you like?

 Also, what about the actual .apk filename - is that important, and
 have any bearing on the name that appears when someone downloads the
 app?

 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@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to call onDraw() in Timer?..

2009-12-03 Thread Sasikumar.S
Hi,

I need,

I'm using a class extends with view.
I'm using timer in that class.
I'm using onTouchEvent() also.
I onTouchEvent() i'm using invalidate().
So it is calling onDraw().

When i use invalidate() in Timer.
It is not calling onDraw(). Why?

-- 
Thanks  Regards
Sasikumar.S

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to call onDraw() in Timer?..

2009-12-03 Thread skink


On Dec 3, 2:38 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote:
 Hi,

 I need,

 I'm using a class extends with view.
 I'm using timer in that class.
 I'm using onTouchEvent() also.
 I onTouchEvent() i'm using invalidate().
 So it is calling onDraw().

 When i use invalidate() in Timer.
 It is not calling onDraw(). Why?

 --
 Thanks  Regards
 Sasikumar.S

don't use Timers, use Handlers instead

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to call onDraw() in Timer?..

2009-12-03 Thread manoj
just call the invalidate()/ postInvalidate() in the timer class.

The invalidate()/postinvalidate() will call onDraw() implicitly. You
cant directly call onDraw().

On Dec 3, 6:38 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote:
 Hi,

 I need,

 I'm using a class extends with view.
 I'm using timer in that class.
 I'm using onTouchEvent() also.
 I onTouchEvent() i'm using invalidate().
 So it is calling onDraw().

 When i use invalidate() in Timer.
 It is not calling onDraw(). Why?

 --
 Thanks  Regards
 Sasikumar.S

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Execute method when background task exceeds timespan

2009-12-03 Thread Patrick Plaatje
Hi all,

i'm trying to do the following:
1. Fetching an external resource through a seperate thread;
2. When loaded this thread sends a message to the specified handler
3. This handler executes a method which sets a view to visible

All goes well, but now i want to include an extra time, so that when the
external resource is not loaded after 5 seconds, the view is going to be
displayed anyway. But here's the catch, my handler function goes well, but
when i excute the same method outside the handler, it sets the View.visible
just fine, but the view just isn;t displaying.

the code reads something like:


Timer timer = new Timer();
Calendar date = Calendar.getInstance();
date.add(Calendar.SECOND, 1);
timer.schedule(new TimerTask() {
public void run() {
displayArticleList();
}},
date.getTime()
);

// fetch the feed in a seperate thread
final Handler feedHandler = new Handler(){
@SuppressWarnings(unchecked)
public void handleMessage(Message message) {
 displayArticleList();
}
};

...

protected void displayArticleList(){
Log.d(Here, displayArticleList method:  +
ll_splash.getVisibility() +  ==  + View.GONE);
if(!(ll_splash.getVisibility()==View.GONE)){
ll_splash.setVisibility(View.GONE);
LinearLayout alc = (LinearLayout)
findViewById(R.id.article_list_container);
alc.setVisibility(View.VISIBLE);
}
}


-- 
Regards,


Patrick Plaatje

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to call onDraw() in Timer?..

2009-12-03 Thread Nithin
Hi,

try postInvalidate() from Timer.

Thanks

On Dec 3, 6:46 pm, skink psk...@gmail.com wrote:
 On Dec 3, 2:38 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote:



  Hi,

  I need,

  I'm using a class extends with view.
  I'm using timer in that class.
  I'm using onTouchEvent() also.
  I onTouchEvent() i'm using invalidate().
  So it is calling onDraw().

  When i use invalidate() in Timer.
  It is not calling onDraw(). Why?

  --
  Thanks  Regards
  Sasikumar.S

 don't use Timers, use Handlers instead

 pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to call onDraw() in Timer?..

2009-12-03 Thread sathya subbiah
invalidate does not work in timer class as it is a seperate thread. Post an
event to handler and invalidate.

On Thu, Dec 3, 2009 at 8:47 AM, manoj manojkumar.m...@gmail.com wrote:

 just call the invalidate()/ postInvalidate() in the timer class.

 The invalidate()/postinvalidate() will call onDraw() implicitly. You
 cant directly call onDraw().

 On Dec 3, 6:38 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote:
  Hi,
 
  I need,
 
  I'm using a class extends with view.
  I'm using timer in that class.
  I'm using onTouchEvent() also.
  I onTouchEvent() i'm using invalidate().
  So it is calling onDraw().
 
  When i use invalidate() in Timer.
  It is not calling onDraw(). Why?
 
  --
  Thanks  Regards
  Sasikumar.S

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-12-03 Thread rflexor
Hi again,

some more info concering the case of Milestones not showing protected
apps from one of our customers here in Germany ...

[SNIP]

Dear Justin,

I am one of the affected milestone users and I am far from alone.
At least all of the milestones sold by amazon, Germany are affected!

Milestones branded by Vodafone or O2, Germany are working perfectly.

I know it is unusual for the USA but in Europe it is quite common to
buy phones WITHOUT
an carrier-contract. Those phones are NOT branded by Vodafone or
others and they are
simlock-free! Exactly those phones have no access to copy protected
apps in the market.
Our guess at the moment is that google missed those configuration and
handles them as
illegal (rootet) phones... are we right with this assumption??? But
our phones are 110% legal
with plain Motorola configuration right from the factory!

It is not only that we can not buy or download any new copy protected
apps. User who bought
such an app on another Adnroid phone and now got themselves a new
Milestone can not access
their legally bought apps anymore!!! Google needs to react here really
quick. We are honest users and your loyal fanbase!

All of the affected phones have the following ORIGINAL Motorola setup:

Model: Milestone
Firmware-Version: 2.0
Firmware-Configuration-Version: GAS_EMEA_USASHLS00RTDACH_P001
Baseband-Version: 3GDMEPU91A_U_91.08.0DP
Baseband-Configuration-Version: UCASHLSEMEAB1B803F.0R
Kernel-Version: 2.6.29-omap1 a21...@ca25rhe53 #1
Build-Number: SHOLS_U2_01.03.1.125764182

PLEASE HELP US!

best regards

Christian

[/SNIP]


On 2 Dez., 05:40, rflexor rfle...@googlemail.com wrote:
 Hi,

 thanks for participating in this thread, Justin!

 I have gathered that here in Germany we have Milestones sold by
 Vodafone for their network and free Milestones usable in any network.
 Currently, from what I read in the forums, those from Vodafone are
 able to see copy protected apps, others are not. If you need more
 details from one of the phones not able to see protected apps, let me
 know.

 Ralf

 On 2 Dez., 00:20, blindfold seeingwithso...@gmail.com wrote:

  Argh, thanks! I now found the small print in the documentation that
  implies this, and have added uses-feature
  android:name=android.hardware.camera / to my manifest such that as
  of now my app should be visible to HTC Tattoo users (I have no Tattoo
  myself). My app sometimes uses autofocus but also works without, so
  autofocus support by the phone is not required by my app and was
  apparently inadvertently implied by the new Android defaults. It would
  be nice to have some sort of Market visibility test for a range of
  popular devices, because it is easy to overlook such details and hard
  to test for without buying tons of devices...

  On Dec 1, 10:32 pm, Justin (Google Employee) j...@google.com
  wrote:

   To return to the original topic of apps with the CAMERA permission not
   showing to Tattoo users, this is because you need to specify

   uses-feature android:name=android.hardware.camera /

   in your manifest as 
   perhttp://developer.android.com/guide/topics/manifest/uses-feature-eleme...
   . Tattoo does not include autofocus unlike all previous Android
   devices. For this reason, you need to opt-in to being shown to devices
   without autofocus. Likewise you can use uses-feature to specify that
   you require autofocus.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] ListActivity mandatory for listView ?

2009-12-03 Thread Jags
I am starting with ListActivity.

I saw apidemos and saw that it is based on ListActivity. My doubt is,
in my first screen I need a few labels and texts under that a list.
How to approach this ? I cant do a setContentlayut(R.id.main) if my
activity extends ListActivity, no ?

more over I found the tutorial posted in the forums for ListActivity a
bit outdated. Where is 1.5 / 1.6 based tutorials ? because I am new,
it is taking too much time to correct 1.1 codes.

lastly, if i have a todo type appfor adding deleting and deleting,
should i use 3 different layouts or activities ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Soft keypad doesn't appear if EditText.setOnClickListener() is set?

2009-12-03 Thread Mark Wyszomierski
 as a general rule you should not be doing anything from a click on an 
 EditText''

ok, is there a way to be notified that the user intends to start
entering input into an EditText then? I want to display a little image
when the user either:

  A) clicks on the EditText
  B) touches the EditText.

I don't want to display the image when the EditText simply gets focus,
because that occurs when the user scrolls over the EditText with the
trackball (for my users, different then explicitly tapping the field
or scrolling to it, then hitting DPAD_CENTER).

There must be some way to know when an EditText is ready for editing
by the user, without breaking other aspects of the system?

Thanks



On Dec 3, 12:07 am, Dianne Hackborn hack...@android.com wrote:
 isActive() asks about whether a local view is an active target, nothing
 about whether the IME is displayed:

 http://developer.android.com/reference/android/view/inputmethod/Input...()

 I can't say off-hand why setting a click listener would prevent the IME from
 being shown, but as a general rule you should not be doing anything from a
 click on an EditText, since this is dedicated to displaying the IME.





 On Wed, Dec 2, 2009 at 7:13 PM, Mark Wyszomierski mar...@gmail.com wrote:
  Ah phew ok at least I'm not the only one seeing that behavior! In my
  UI, when the user clicks on the EditText, I want to expand some other
  UI elements - something like a list pops up with suggested keywords -
  it works, but it has the side effect of blocking the IME keypad from
  coming up.

  However, if I try running a test to see if a keypad is active for the
  EditText that was clicked, like:

   InputMethodManager imm = (InputMethodManager)getContext
  ().getSystemService(Context.INPUT_METHOD_SERVICE);
    if (imm.isActive()) {
       Log.d(TAG, yes the keypad is active.);
   }

  it reports true. So maybe it does somehow display but gets hidden or
  something? I don't know.

  Thanks

  On Dec 2, 9:43 pm, Steve Oliver steveoliv...@gmail.com wrote:
   ahhh, ok, so maybe I was not totally understanding you, and now I see my
   text field does the same thing -- if you touch it, you get the IME, but
  if
   you click it with the trackball press, no keyboard.  Although I'm not
  sure
   why a user would need to do that?

   On Wed, Dec 2, 2009 at 6:35 PM, Mark Wyszomierski mar...@gmail.com
  wrote:
Hi Steve,

Thanks for taking a look - maybe I haven't set a parameter on my edit
text then? I'm doing:

 EditText et = new EditText(context);
 et.setInputType(InputType.TYPE_CLASS_TEXT);
 et.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
 et.setOnTouchListener(...); // touch listener works perfectly.
 et.setOnClickListener(new OnClickListener() {
     public void onClick(View arg0) {
         Log.d(TAG, We were clicked!);
     }
 });

so click always prints the message, it's just that the IME keyboard
doesn't come up for me when the handler is added. Take away the call
to setOnClickListener(), and the keyboard appears again. I'll try
writing another test for it,

Thanks

On Dec 2, 9:30 pm, Steve steveoliv...@gmail.com wrote:
 I just dug into an edit text I was working on a while back, and I see
 I used setOnKeyListener and setOnTouchListener in addition to
 setOnClickListener.  Not 100% that I remember why I had to do that :)
 but in any case the soft keyboard will open when you click or touch
 the edit text, and also you can track all of its keystrokes.  And I
 can track when the edit text is clicked.

 On Dec 2, 11:46 am, Mark Wyszomierski mar...@gmail.com wrote:

  Still stuck on this, if anyone has a suggested work around - I
  basically just want to know when an EditText is clicked, but also
  make
  sure the IME keypad is displayed when clicked (the OnClickListener
  seems to block that default behavior).

  I tried to check if the keypad is visible/active with the
  following,
  but it always reports true, however I can't see it on screen:

    InputMethodManager imm = (InputMethodManager)getContext
  ().getSystemService(Context.INPUT_METHOD_SERVICE);
    if (imm.isActive() == false) {
        Log.d(TAG, key pad is not active.);
    }

  is there another way to check if the keypad is really visible?

  Thanks

  On Nov 30, 1:35 am, Mark Wyszomierski mar...@gmail.com wrote:

   Hi,

   I have an EditText. If I set an OnClickListener for it,
  theimekeypad
   doesn't appear when I click it (using the trackball on the G1):

     EditText edit = new EditText(context);
     edit.setOnClickListener(new OnClickListener() {
         public void onClick(View v) {
             //imekeypad won't appear when this is set and clicked.
         }
     });

   if I don't set the click listener, the keypad will appear when
   clicked. Is this expected behavior, or am I doing something
  

Re: [android-developers] Re: getLastKnownLocation *again*

2009-12-03 Thread TreKing
To reiterate what's been said, you only want to use getLastKnownLocation()
*ONCE*, at start up, to give you *something* to work with - a starting
point. After that you should be relying only on the location provider
updates for the most accurate location information.

I would suggest you do what jotobjects suggests and log the different
location values. I wouldn't be surprised if getLastKnownLocation() is
different the whatever the location provider returns as the most current,
since it's entirely possible that the system only updates the last known
location once that last provider is unregistered.

It would be like the bank saying we can't tell you what your balance is
now, but we can tell you what it was last Tuesday

It's more like we can show your balance from Tuesday immediately, since we
have it already on hand, while we load up your most recent transactions.

It *must* be possible or the Google Nav and Maps wouldn't work either.

Those apps work the same way. At least as far as I can tell, when starting
up Google Maps it generally jumps to the last place I had used GPS at (ie,
getLastKnownLocation()) and then pans to my current location as soon as it
has a fix.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

On Wed, Dec 2, 2009 at 7:18 PM, stanlick stanl...@gmail.com wrote:

 When your app needs to show where *you are* -- where *you were* isn't
 going to cut it.  It would be like the bank saying we can't tell you
 what your balance is now, but we can tell you what it was last
 Tuesday.  It *must* be possible or the Google Nav and Maps wouldn't
 work either.  I have it working much better now, but my confidence is
 not real high.

 Peace,
 Scott

 On Dec 2, 6:39 pm, Ken H hunt1...@gmail.com wrote:
  My understanding is getLastKnownLocation is used to give your app an
  immediate location since getting a good GPS fix can sometimes take up
  to a minute. This way your app would show *something* until a better
  position can be determined by initializing a provider, setting up your
  time and distance update intervals, and giving that info to
  requestLocationUpdates for immediate updates.
 
  Ken
 
  On Dec 2, 2:19 pm, jotobjects jotobje...@gmail.com wrote:
 
   requestLocationUpdates() docs say -
 
   It may take a while to receive the most recent location. If an
   immediate location is required, applications may use the
   getLastKnownLocation(String) method.
 
   You could verify that getLastKnownLocation(providerName) returns the
   same Location as the argument to onLocationChanged() by logging
   getLatitude(), getLongitude(), and getProvider() for both Location
   values.  If these values are different AND they are different than
   what MyLocation shows then there are three different Location values.
   It would be interesting to know which one is right!
 
   On Dec 2, 1:30 pm, stanlick stanl...@gmail.com wrote:
 
Are you saying if the CB occurred, indicating a new location fix
that getLastKnownLocation would not also return this last know
location?  I think I tried using the the location local variable
during one of my permutations and the net effect was the same.  Funny
thing is, while the Android API location shows me several blocks from
where I am, the My Location button in Google Maps finds me perfectly!
I have checked all my criteria and it looks okay.  ACCURACY_FINE no
concern for cost, etc.  I just don't get it!  I wish there was a
criteria DO_IT_LIKE_GOOGLE_DOES!
 
Sleepless in St. Louis,
Scott
 
On Dec 2, 3:14 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:
 
 LocationManager. requestLocationUpdates()
 
 http://developer.android.com/reference/android/location/LocationManag...
 LocationListener. onLocationChanged
 
 http://developer.android.com/reference/android/location/LocationListe..
 .(Location
 
 http://developer.android.com/reference/android/location/Location.html
 location)
 
 you are passed the location in the CB. no need to call
 getLastKnown...
 
 On 12/2/09 1:10 PM, stanlick wrote:
 
  I *am* using the listener loop and using getLastKnownLocation
 from the
  locationManager inside the onLocationChanged() method.  Is this
 not
  the correct pattern?
 
  On Dec 2, 2:31 pm, Lance Naneklna...@gmail.com  wrote:
 
  Why are you using getLastKnownLocation if you want a fresh fix?
 The
  documentation says it won't even start the location provider.
 Use
  requestLocationUpdates.
 
  On Dec 2, 2:53 pm, stanlickstanl...@gmail.com  wrote:
 
  Didn't we put a man on the moon?  It can't be done seems a
 little lazy
  today!
 
  I have read all the posts about this topic and I understand the
  arguments being made.  However, I would like to know how Google
 Maps
  can return my 

Re: [android-developers] Re: Soft keypad doesn't appear if EditText.setOnClickListener() is set?

2009-12-03 Thread Steve Oliver
so do you mean, like when the cursor is placed into the edit text?  you can
do that, I do that to hide views to make room for the IME.

On Thu, Dec 3, 2009 at 6:54 AM, Mark Wyszomierski mar...@gmail.com wrote:

  as a general rule you should not be doing anything from a click on an
 EditText''

 ok, is there a way to be notified that the user intends to start
 entering input into an EditText then? I want to display a little image
 when the user either:

  A) clicks on the EditText
  B) touches the EditText.

 I don't want to display the image when the EditText simply gets focus,
 because that occurs when the user scrolls over the EditText with the
 trackball (for my users, different then explicitly tapping the field
 or scrolling to it, then hitting DPAD_CENTER).

 There must be some way to know when an EditText is ready for editing
 by the user, without breaking other aspects of the system?

 Thanks



 On Dec 3, 12:07 am, Dianne Hackborn hack...@android.com wrote:
  isActive() asks about whether a local view is an active target, nothing
  about whether the IME is displayed:
 
 
 http://developer.android.com/reference/android/view/inputmethod/Input...()
 
  I can't say off-hand why setting a click listener would prevent the IME
 from
  being shown, but as a general rule you should not be doing anything from
 a
  click on an EditText, since this is dedicated to displaying the IME.
 
 
 
 
 
  On Wed, Dec 2, 2009 at 7:13 PM, Mark Wyszomierski mar...@gmail.com
 wrote:
   Ah phew ok at least I'm not the only one seeing that behavior! In my
   UI, when the user clicks on the EditText, I want to expand some other
   UI elements - something like a list pops up with suggested keywords -
   it works, but it has the side effect of blocking the IME keypad from
   coming up.
 
   However, if I try running a test to see if a keypad is active for the
   EditText that was clicked, like:
 
InputMethodManager imm = (InputMethodManager)getContext
   ().getSystemService(Context.INPUT_METHOD_SERVICE);
 if (imm.isActive()) {
Log.d(TAG, yes the keypad is active.);
}
 
   it reports true. So maybe it does somehow display but gets hidden or
   something? I don't know.
 
   Thanks
 
   On Dec 2, 9:43 pm, Steve Oliver steveoliv...@gmail.com wrote:
ahhh, ok, so maybe I was not totally understanding you, and now I see
 my
text field does the same thing -- if you touch it, you get the IME,
 but
   if
you click it with the trackball press, no keyboard.  Although I'm not
   sure
why a user would need to do that?
 
On Wed, Dec 2, 2009 at 6:35 PM, Mark Wyszomierski mar...@gmail.com
   wrote:
 Hi Steve,
 
 Thanks for taking a look - maybe I haven't set a parameter on my
 edit
 text then? I'm doing:
 
  EditText et = new EditText(context);
  et.setInputType(InputType.TYPE_CLASS_TEXT);
  et.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
  et.setOnTouchListener(...); // touch listener works perfectly.
  et.setOnClickListener(new OnClickListener() {
  public void onClick(View arg0) {
  Log.d(TAG, We were clicked!);
  }
  });
 
 so click always prints the message, it's just that the IME keyboard
 doesn't come up for me when the handler is added. Take away the
 call
 to setOnClickListener(), and the keyboard appears again. I'll try
 writing another test for it,
 
 Thanks
 
 On Dec 2, 9:30 pm, Steve steveoliv...@gmail.com wrote:
  I just dug into an edit text I was working on a while back, and I
 see
  I used setOnKeyListener and setOnTouchListener in addition to
  setOnClickListener.  Not 100% that I remember why I had to do
 that :)
  but in any case the soft keyboard will open when you click or
 touch
  the edit text, and also you can track all of its keystrokes.  And
 I
  can track when the edit text is clicked.
 
  On Dec 2, 11:46 am, Mark Wyszomierski mar...@gmail.com wrote:
 
   Still stuck on this, if anyone has a suggested work around - I
   basically just want to know when an EditText is clicked, but
 also
   make
   sure the IME keypad is displayed when clicked (the
 OnClickListener
   seems to block that default behavior).
 
   I tried to check if the keypad is visible/active with the
   following,
   but it always reports true, however I can't see it on screen:
 
 InputMethodManager imm = (InputMethodManager)getContext
   ().getSystemService(Context.INPUT_METHOD_SERVICE);
 if (imm.isActive() == false) {
 Log.d(TAG, key pad is not active.);
 }
 
   is there another way to check if the keypad is really visible?
 
   Thanks
 
   On Nov 30, 1:35 am, Mark Wyszomierski mar...@gmail.com
 wrote:
 
Hi,
 
I have an EditText. If I set an OnClickListener for it,
   theimekeypad
doesn't appear when I click it (using the trackball on the
 G1):
 
  EditText edit = new EditText(context);
   

[android-developers] Re: Where to get a Samsung Moment for development

2009-12-03 Thread shaun
Only thing I can offer up is searching your local Craigslist.org
listings.

How did you acquire the others?



On Dec 3, 12:28 am, SoftwareForMe.com sa...@softwareforme.com
wrote:
 Hi,

 We have a G1, MyTouch, Hero and Droid. However, we've been getting odd
 reports from our Moment customers, and it's time we get one.

 Anybody know where to do this, and whether there are any issues getting the
 thing acitvated without a phone plan to go with it?

 SoftwareForMe.com
 Makers of PhoneMyPC
  Imagine Multi-touch

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Soft keypad doesn't appear if EditText.setOnClickListener() is set?

2009-12-03 Thread Mark Wyszomierski
Hi Steve,

What is the cursor-is-placed-into-the-edit-text event though? Is that
just when the EditText gets any kind of focus? (for example, when I
scroll over to an edit text, it gets the orange rect and the cursor
starts blinking inside of it).

Ideally i want to know when the user simply clicks or touches the edit
text - seems like there should be an easy way to do it!

Thanks

On Dec 3, 10:02 am, Steve Oliver steveoliv...@gmail.com wrote:
 so do you mean, like when the cursor is placed into the edit text?  you can
 do that, I do that to hide views to make room for the IME.



 On Thu, Dec 3, 2009 at 6:54 AM, Mark Wyszomierski mar...@gmail.com wrote:
   as a general rule you should not be doing anything from a click on an
  EditText''

  ok, is there a way to be notified that the user intends to start
  entering input into an EditText then? I want to display a little image
  when the user either:

   A) clicks on the EditText
   B) touches the EditText.

  I don't want to display the image when the EditText simply gets focus,
  because that occurs when the user scrolls over the EditText with the
  trackball (for my users, different then explicitly tapping the field
  or scrolling to it, then hitting DPAD_CENTER).

  There must be some way to know when an EditText is ready for editing
  by the user, without breaking other aspects of the system?

  Thanks

  On Dec 3, 12:07 am, Dianne Hackborn hack...@android.com wrote:
   isActive() asks about whether a local view is an active target, nothing
   about whether the IME is displayed:

 http://developer.android.com/reference/android/view/inputmethod/Input...()

   I can't say off-hand why setting a click listener would prevent the IME
  from
   being shown, but as a general rule you should not be doing anything from
  a
   click on an EditText, since this is dedicated to displaying the IME.

   On Wed, Dec 2, 2009 at 7:13 PM, Mark Wyszomierski mar...@gmail.com
  wrote:
Ah phew ok at least I'm not the only one seeing that behavior! In my
UI, when the user clicks on the EditText, I want to expand some other
UI elements - something like a list pops up with suggested keywords -
it works, but it has the side effect of blocking the IME keypad from
coming up.

However, if I try running a test to see if a keypad is active for the
EditText that was clicked, like:

 InputMethodManager imm = (InputMethodManager)getContext
().getSystemService(Context.INPUT_METHOD_SERVICE);
  if (imm.isActive()) {
     Log.d(TAG, yes the keypad is active.);
 }

it reports true. So maybe it does somehow display but gets hidden or
something? I don't know.

Thanks

On Dec 2, 9:43 pm, Steve Oliver steveoliv...@gmail.com wrote:
 ahhh, ok, so maybe I was not totally understanding you, and now I see
  my
 text field does the same thing -- if you touch it, you get the IME,
  but
if
 you click it with the trackball press, no keyboard.  Although I'm not
sure
 why a user would need to do that?

 On Wed, Dec 2, 2009 at 6:35 PM, Mark Wyszomierski mar...@gmail.com
wrote:
  Hi Steve,

  Thanks for taking a look - maybe I haven't set a parameter on my
  edit
  text then? I'm doing:

   EditText et = new EditText(context);
   et.setInputType(InputType.TYPE_CLASS_TEXT);
   et.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
   et.setOnTouchListener(...); // touch listener works perfectly.
   et.setOnClickListener(new OnClickListener() {
       public void onClick(View arg0) {
           Log.d(TAG, We were clicked!);
       }
   });

  so click always prints the message, it's just that the IME keyboard
  doesn't come up for me when the handler is added. Take away the
  call
  to setOnClickListener(), and the keyboard appears again. I'll try
  writing another test for it,

  Thanks

  On Dec 2, 9:30 pm, Steve steveoliv...@gmail.com wrote:
   I just dug into an edit text I was working on a while back, and I
  see
   I used setOnKeyListener and setOnTouchListener in addition to
   setOnClickListener.  Not 100% that I remember why I had to do
  that :)
   but in any case the soft keyboard will open when you click or
  touch
   the edit text, and also you can track all of its keystrokes.  And
  I
   can track when the edit text is clicked.

   On Dec 2, 11:46 am, Mark Wyszomierski mar...@gmail.com wrote:

Still stuck on this, if anyone has a suggested work around - I
basically just want to know when an EditText is clicked, but
  also
make
sure the IME keypad is displayed when clicked (the
  OnClickListener
seems to block that default behavior).

I tried to check if the keypad is visible/active with the
following,
but it always reports true, however I can't see it on screen:

  InputMethodManager imm = (InputMethodManager)getContext

[android-developers] how to know whether the network operator settings are set to 'select automatically' ?

2009-12-03 Thread manoj
Hi all,

how to know whether the network operator settings are set to 'select
automatically' ? through programming.

can any one please suggest me?

Thanks,
Manoj.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Translucent Activity not calling onStop() on exit

2009-12-03 Thread Craig Russell
I'm having this strange issue where upon exiting a subactivity that is
translucent (android:theme=@android:style/Theme.Translucent ) the
onStop() method doesn't appear to be called.

I have a TimerTask that runs and is supposed to be terminated when the
subactivity ends in the onStop() method, but I'm instead left with an
orphaned thread running in the background.  It go particularly bad
when I ran the subactivity several times.  When I revert to no theme,
the onStop() method is called and the activity behaves properly.

Is there something I missed about how Translucent activities'
lifecycles differ from standard activities?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Translucent Activity not calling onStop() on exit

2009-12-03 Thread Craig Russell
I suppose by putting it into onPause(), it might work, but why does it
behave differently?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] saving applications state

2009-12-03 Thread TreKing
Are you *sure* *onSaveInstanceState*() is actually being called?
This will only happen if your app is in danger of being killed off when you
don't want it to be.
Try opening a bunch of other apps (like the browser which is pretty heavy)
after yours is open and it will probably trigger onSaveInstanceState() once
your app gets kicked from memory. Go back to your app and it should trigger
onRestoreIntanceState() and the bundle in onCreate() should not be null.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Wed, Dec 2, 2009 at 10:52 PM, and.pradeep and.prad...@gmail.com wrote:

 Hi,
  I am working with the saving an applications state.

 I am using onSaveInstanceState(Bundle savedInstanceState) to save
 state.
 In onCreate(Bundle savedInstanceState), I always get
 savedInstanceState as null and

 onRestoreInstanceState(Bundle savedInstanceState)  is never called
 even.
 According to the reference this method is called between onStart() and
 onPostCreate(Bundle).

 I am working on emulator.


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Translucent Activity not calling onStop() on exit

2009-12-03 Thread Craig Russell
Well, that worked but I don't entirely understand why. So that
activity is being paused when I exit it, but it's still on the
activity stack?

On Dec 3, 9:22 am, Craig Russell csruss...@gmail.com wrote:
 I suppose by putting it into onPause(), it might work, but why does it
 behave differently?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Problem with Finding with Geo Coordinates

2009-12-03 Thread RS.Giridaran
Hi All,

I am developing an application which uses the current location of the
user to do some operations. i have used LocationManager and
LocationListener to receive the latitude and longitude values in
onLocationChanged() method. it is perfectly working when i am testing
using emulator control in eclipse. when its accessing from the real
device its not functioning properly. its will give 0, 0 for latitude
ad longitude.

Here is my code which used to get the current location.
/*Code*/
public GeoLocationManger(Activity activity) {
LocationManager locationManager = (LocationManager) activity
.getSystemService(Context.LOCATION_SERVICE);
Criteria criteria = new Criteria();
criteria.setAccuracy(Criteria.ACCURACY_FINE);
List providers = locationManager.getProviders(criteria,true);
if(providers != null  providers.size() 0){
LocationProvider pro 
=locationManager.getProvider(providers.get
(0).toString());
locationManager.requestLocationUpdates(pro.getName(), 
0, 0, this);
}
else
{
Messages.displayMessageOnUI(GasBuddyConstants.INFO,
GPS Not Enabled – Update your 
settings.,
activity);
}
}


public void onLocationChanged(Location location) {
this.latitude = location.getLatitude();
this.longitude = location.getLongitude();

}

/*Code*/


is there any settings need to do with phone?

Please help me to resolve this.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Global notification for user input?

2009-12-03 Thread TreKing
If you have a lengthy background process, I assume you're using a Service,
which already has a Context associated with it.
If you're not using a Service, you probably should be, then when you're done
post a notification to the user that their input is required to complete the
action, and when they click the notification, launch a new Activity (that
perhaps is styled to look like a popup dialog) that accepts the input you
need to complete the task.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Wed, Dec 2, 2009 at 11:12 PM, Mark Wyszomierski mar...@gmail.com wrote:

 Hi,

 I have some background task that is lengthy, long enough that it will
 see the passing of several activities. When finished, I need to prompt
 the user for some input. Is there a best-practice for keeping a
 'foreground' context so I can launch an alert dialog from whichever
 context is currently being shown? I can do something like this:

  public class ContextReference {
  private static ContextReference mInstance;
  private Context mContext;

  public void onActivityResume(Context context) {
  mContext = context;
  }

  public void onActivityPause() {
  mContext = null;
  }

  public Context getContext() {
  return mContext;
  }
  }

 then override every onResume()/onPause() pair in all activities in my
 application, have them each call the corresponding methods, this
 doesn't seem like a good idea though. Is there a specialized
 notification class for this sort of thing?  I also tried using a
 context stored at startup from getApplicationContext(), but when I try
 to use it with alert builder sometime into the life of my app, it
 appears to not work,

 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@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Soft keypad doesn't appear if EditText.setOnClickListener() is set?

2009-12-03 Thread Mark Wyszomierski
Ok instead I'm setting an OnKeyListener:

 // OnKeyListener
 if (event.getAction() == KeyEvent.ACTION_DOWN  keyCode ==
KeyEvent.KEYCODE_DPAD_CENTER) {
 // user 'clicked' in the EditText.
 }

This combined with the OnTouchListener seems to cover all my needs,

Thanks

On Dec 3, 10:10 am, Mark Wyszomierski mar...@gmail.com wrote:
 Hi Steve,

 What is the cursor-is-placed-into-the-edit-text event though? Is that
 just when the EditText gets any kind of focus? (for example, when I
 scroll over to an edit text, it gets the orange rect and the cursor
 starts blinking inside of it).

 Ideally i want to know when the user simply clicks or touches the edit
 text - seems like there should be an easy way to do it!

 Thanks

 On Dec 3, 10:02 am, Steve Oliver steveoliv...@gmail.com wrote:

  so do you mean, like when the cursor is placed into the edit text?  you can
  do that, I do that to hide views to make room for the IME.

  On Thu, Dec 3, 2009 at 6:54 AM, Mark Wyszomierski mar...@gmail.com wrote:
as a general rule you should not be doing anything from a click on an
   EditText''

   ok, is there a way to be notified that the user intends to start
   entering input into an EditText then? I want to display a little image
   when the user either:

    A) clicks on the EditText
    B) touches the EditText.

   I don't want to display the image when the EditText simply gets focus,
   because that occurs when the user scrolls over the EditText with the
   trackball (for my users, different then explicitly tapping the field
   or scrolling to it, then hitting DPAD_CENTER).

   There must be some way to know when an EditText is ready for editing
   by the user, without breaking other aspects of the system?

   Thanks

   On Dec 3, 12:07 am, Dianne Hackborn hack...@android.com wrote:
isActive() asks about whether a local view is an active target, nothing
about whether the IME is displayed:

  http://developer.android.com/reference/android/view/inputmethod/Input...()

I can't say off-hand why setting a click listener would prevent the IME
   from
being shown, but as a general rule you should not be doing anything from
   a
click on an EditText, since this is dedicated to displaying the IME.

On Wed, Dec 2, 2009 at 7:13 PM, Mark Wyszomierski mar...@gmail.com
   wrote:
 Ah phew ok at least I'm not the only one seeing that behavior! In my
 UI, when the user clicks on the EditText, I want to expand some other
 UI elements - something like a list pops up with suggested keywords -
 it works, but it has the side effect of blocking the IME keypad from
 coming up.

 However, if I try running a test to see if a keypad is active for the
 EditText that was clicked, like:

  InputMethodManager imm = (InputMethodManager)getContext
 ().getSystemService(Context.INPUT_METHOD_SERVICE);
   if (imm.isActive()) {
      Log.d(TAG, yes the keypad is active.);
  }

 it reports true. So maybe it does somehow display but gets hidden or
 something? I don't know.

 Thanks

 On Dec 2, 9:43 pm, Steve Oliver steveoliv...@gmail.com wrote:
  ahhh, ok, so maybe I was not totally understanding you, and now I 
  see
   my
  text field does the same thing -- if you touch it, you get the IME,
   but
 if
  you click it with the trackball press, no keyboard.  Although I'm 
  not
 sure
  why a user would need to do that?

  On Wed, Dec 2, 2009 at 6:35 PM, Mark Wyszomierski mar...@gmail.com
 wrote:
   Hi Steve,

   Thanks for taking a look - maybe I haven't set a parameter on my
   edit
   text then? I'm doing:

    EditText et = new EditText(context);
    et.setInputType(InputType.TYPE_CLASS_TEXT);
    et.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
    et.setOnTouchListener(...); // touch listener works perfectly.
    et.setOnClickListener(new OnClickListener() {
        public void onClick(View arg0) {
            Log.d(TAG, We were clicked!);
        }
    });

   so click always prints the message, it's just that the IME 
   keyboard
   doesn't come up for me when the handler is added. Take away the
   call
   to setOnClickListener(), and the keyboard appears again. I'll try
   writing another test for it,

   Thanks

   On Dec 2, 9:30 pm, Steve steveoliv...@gmail.com wrote:
I just dug into an edit text I was working on a while back, and 
I
   see
I used setOnKeyListener and setOnTouchListener in addition to
setOnClickListener.  Not 100% that I remember why I had to do
   that :)
but in any case the soft keyboard will open when you click or
   touch
the edit text, and also you can track all of its keystrokes.  
And
   I
can track when the edit text is clicked.

On Dec 2, 11:46 am, Mark Wyszomierski mar...@gmail.com wrote:

 Still stuck on this, if anyone has a suggested 

[android-developers] How to install my app and keep an icon from showing up in the application tray

2009-12-03 Thread Mike
Hi,

I've got an app that I would like to install without having an icon
show up in the application tray.  If I don't specify an icon in my
manifest, Android still plops a default icon in the tray.  How do I
prevent this?

Regards,

- Mike

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Earn money from web up to $1985

2009-12-03 Thread Abrahim
We have trawled the internet to find you the best places to earn and
save money online. Whatever your pleasure you should find something
here to interest you! We use many of the sites listed here ourselves
so are able to give you an honest appraisal of their usefulness and
worth in our opinion. Please feel free to browse around and see if
there's anything of interest to you. visit : http://www.atwozall.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Bangladesh classified site - all category here

2009-12-03 Thread Abrahim
Multiply traffic  increase Sales, 100% Free. No Sign-Up or posting
charge. Post Now!
http://www.adplacebd.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Free Classified site

2009-12-03 Thread Abrahim
Market place in the important think of merketing. So increase your
sales, be a great business man.place an ad. please visti 
http://www.adplacebd.com
- advance classified of bangladesh.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain
Hmm...I got it now. I am not sure if you can do it.

Sorry.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how do you specify the name of the .apk file....

2009-12-03 Thread sdphil
I could do that - but that's a manual step.  maybe this is an eclipse
question.  is there a post-build command or something I can do after
the final artifact is produced to rename it?  i'd prefer to build
directly to that file of course, but at this point, I'll take what I
can get...

On Dec 2, 8:53 pm, Dexter#39;s Brain coomar@gmail.com wrote:
 You can just rename the apk file as any other file. :)

 Kumar Bibek.

 On Dec 3, 4:23 am, sdphil phil.pellouch...@gmail.com wrote:

  well i want it to do it every time, not just on demand.

  I am generating my apk by right click on project, build -- which
  then generates a .apk file in my bin directory.

  On Dec 2, 3:12 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com
  wrote:

   from eclipse, when you do anroid tools  export [signed|unsigned] apk,
   it asks for the name. how are you generating your apk?

   On 12/2/09 3:09 PM, sdphil wrote:

by default it looks like it's the name of your project -- if you want
it to be something else, there must be a way to do that...

tia.

   --

    qr-gmail.png
1KViewDownload



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-12-03 Thread SoftwareForMe.com SoftwareForMe.com
Hi Matt,

I'm not aware of any other source. This we learned on our own on Friday,
November 6th (Droid release day :-)

To put it simply, say I have a 64x64 .png resource and use:

Bitmap b = BitmapFactory.decodeResource(...)

I will get a 64x64, 32-bit in-memory bitmap.

If I use the exact same code, and the exact same resource (in the 'drawable'
folder) on the Droid, I get a larger bitmap; I don't remember the exact
size, but I'll guess 86x86 pixels. It's the same image, stretched by Android
so that when rendered, it will take approximately the same real screen space
(not pixel space).

So, if I wanted to always get the raw 64x64 image, I'd need to do one of:
1) Load the image scaled, or
2) Place the 64x64 image in the drawable-hdpi folder

I hope that's clearer.

If you find a good resource for advice, please share :-)

SoftwareForMe.com
Makers of PhoneMyPC
 Imagine Multi-touch

On Thu, Dec 3, 2009 at 12:22 AM, Matt Kanninen mathias...@gmail.com wrote:

 My app involves taking a picture with the camera, or recording voice
 using the microphone, and sending the results to the server.  It's a
 search tool.  The UI isn't very complicated, as much as possible it is
 done in XML.   For the droid we added some layouts in res/long that
 differ only in layout margins.

 I, like a great many Android developers, had to re create the look and
 feel that was established with our iPhone application.  On the droid
 we had gradient banding so we pre dithered a png, but that was the art
 guy.  The layouts could be simpler, but I have already repeatedly
 simplified them from the first version that had the right look and
 feel.

 I have some FrameLayouts, containing RelativeLayouts, containing
 single Views.  It seems like RelativeLayout has been redone and is
 less brittle then I remember it,  so I probably can start skipping the
 FrameLayouts.  Framelayouts just seem like the simple easy way to
 control over lap of views, and I often have 4 over lapping views.  I
 also have some linear layouts in side other linear layouts, but all
 with different weights.

 The 1 or 2 pixel differences between 1.5,1.6 and 2.0 make our
 application look worse on the Hero.  I use ListViews, that sometimes
 are populated by CursorAdapters.  I have gone back and forth between
 letting the activity manage the cursors, and managing them myself.

 (I'm referencing AdMob and other's numbers to try and figure out what
 Android versions I need to support, and what handsets I need to test
 on
 http://daringfireball.net/linked/2009/11/23/admob  )

 Much of the code for my app was written for Android 1.0, 1.1 etc.
 and it has been maintained by different developers over the years.

 Now I guess my task is to go over every line of code and reduce how
 much memory is used.  I've tried to check every static reference that
 wasn't a private static final constant primitive, to make sure we
 weren't hindering garbage collection.  I don't think I ever store a
 context, but we pass them around everywhere as arguments.  I can't
 really recycle my drawables because I'm not managing them, I just call
 setContentView.

 My activities have some member variables, views, etc.  I create some
 handlers, but more often just call runOnUiThread.  I guess I can
 explicitly set these to null in onStop...  when I hear improve memory
 management my first response is to set things null, my problem is the
 unusual lifecycle of an Android application, it's activities, and it's
 static variables.  I'm already prepared for my major static variables,
 strings, to unexpectedly become null, and write my strings to a
 private preference, or save my camera or microphone content as a
 private application file.

 It's all pretty vanilla.  The networking is done using some included
 apache jars, I guess I could redo all my networking to use something
 else, that would make it even more vanilla.  But I will probably wait
 until my application becomes less vanilla and we need a push solution.

 SoftwareForMe, I have read your post a couple times now, I think it's
 clear to me now.  Generating a new version of most or all of our PNGs,
 especially our largest, sounds like a good idea.  Is there a good blog
 post I can send to the art guy so he can understand what he needs to
 do?  I'd like not to have to go 11 more revisions on each asset.

 It'd be real cool if there was an easy way to just remove all my
 unused PNGs from my project, before I double them.  I have not go
 through and removed every PNG that is no longer being referenced yet.

 My 2 cents,
 Matt Kanninen
 Android Developer

 On Dec 2, 8:38 pm, SoftwareForMe.com SoftwareForMe.com
 softwareforme@gmail.com wrote:
  The bitmap issue on the Droid is really about whether you want to show
 more
  graphics at smaller size, or the same graphics at larger size.
 
  I don't know what you app does, but imagine that it's a 2d game, where
 the
  graphics are re-used a lot (land tiles, character icons, etc.).
 
  If you let the 

[android-developers] Re: Problem with Finding with Geo Coordinates

2009-12-03 Thread justinh
What does location.getAccuracy() return?

I recall having an issue, although I think it might have just been
with the Network location provider, where it just flat out would not
return a location and IIRC getAccuracy returned -1.

On Dec 3, 10:35 am, RS.Giridaran rsgirida...@gmail.com wrote:
 Hi All,

 I am developing an application which uses the current location of the
 user to do some operations. i have used LocationManager and
 LocationListener to receive the latitude and longitude values in
 onLocationChanged() method. it is perfectly working when i am testing
 using emulator control in eclipse. when its accessing from the real
 device its not functioning properly. its will give 0, 0 for latitude
 ad longitude.

 Here is my code which used to get the current location.
 /*Code*/
 public GeoLocationManger(Activity activity) {
                 LocationManager locationManager = (LocationManager) activity
                 .getSystemService(Context.LOCATION_SERVICE);
                 Criteria criteria = new Criteria();
                 criteria.setAccuracy(Criteria.ACCURACY_FINE);
                 List providers = locationManager.getProviders(criteria,true);
                 if(providers != null  providers.size() 0){
                         LocationProvider pro 
 =locationManager.getProvider(providers.get
 (0).toString());
                         locationManager.requestLocationUpdates(pro.getName(), 
 0, 0, this);
                 }
                 else
                 {
                         Messages.displayMessageOnUI(GasBuddyConstants.INFO,
                                         GPS Not Enabled – Update your 
 settings.,
                                         activity);
                 }
         }

         public void onLocationChanged(Location location) {
                 this.latitude = location.getLatitude();
                 this.longitude = location.getLongitude();

         }

 /*Code*/

 is there any settings need to do with phone?

 Please help me to resolve this.

 Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Load Android App on HTC Smartphone?

2009-12-03 Thread VBMichi
Hi,

I've get a HTC Hero Touch G2 for testing my android apps.
How can I load the developed apps of my PC to the HTC?

I heard smth about root local?

Maybe anyone has a detailed instruction or a website?

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to install my app and keep an icon from showing up in the application tray

2009-12-03 Thread TreKing
Remove the LAUNCHER category from the activity's intent filter in the
manifest.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Thu, Dec 3, 2009 at 10:09 AM, Mike michaeldouglaskra...@gmail.comwrote:

 Hi,

 I've got an app that I would like to install without having an icon
 show up in the application tray.  If I don't specify an icon in my
 manifest, Android still plops a default icon in the tray.  How do I
 prevent this?

 Regards,

 - Mike

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Load Android App on HTC Smartphone?

2009-12-03 Thread Mark Murphy
 I've get a HTC Hero Touch G2 for testing my android apps.
 How can I load the developed apps of my PC to the HTC?

If you are developing using Eclipse, you can have Eclipse run your app on
the device the same way you have it run your app on the emulator:

http://developer.android.com/guide/developing/eclipse-adt.html

Or, you can do it outside of Eclipse:

http://developer.android.com/guide/developing/other-ide.html#Running

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] ListActivity mandatory for listView ?

2009-12-03 Thread Mark Murphy

 I am starting with ListActivity.

 I saw apidemos and saw that it is based on ListActivity. My doubt is,
 in my first screen I need a few labels and texts under that a list.
 How to approach this ? I cant do a setContentlayut(R.id.main) if my
 activity extends ListActivity, no ?

Yes, you can. Your ListView needs to have android:id=@android:id/list.
For an example, see:

http://github.com/commonsguy/cw-android/tree/master/Selection/List/

 more over I found the tutorial posted in the forums for ListActivity a
 bit outdated. Where is 1.5 / 1.6 based tutorials ? because I am new,
 it is taking too much time to correct 1.1 codes.

In your SDK. There is a set of ApiDemos for each version of the Android
SDK API that you have downloaded.

 lastly, if i have a todo type appfor adding deleting and deleting,
 should i use 3 different layouts or activities ?

That is difficult to answer without a lot more detail.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to call onDraw() in Timer?..

2009-12-03 Thread Mark Murphy
 I'm using a class extends with view.
 I'm using timer in that class.
 I'm using onTouchEvent() also.
 I onTouchEvent() i'm using invalidate().
 So it is calling onDraw().

 When i use invalidate() in Timer.
 It is not calling onDraw(). Why?

Timer uses a background thread. You cannot modify the UI from a background
thread.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android Emulator - MediaPlayer

2009-12-03 Thread skcratch
Hi there!

Can anyone tell me if the MediaPlayer actually works on the Android
emulator.

Thanks in advance,
Best regards!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: HTC Hero Stocks Widget Scrolling Ticker functionality

2009-12-03 Thread prashanth

i took ages for me to find a solution for this though it was hidden
somewhere in internet..
anyways the solution is to add the tag requestFocus/ in your
textview:)

Eg:

 TextView
 android:id=@+id/left_text_box_0
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:focusable=true
 android:singleLine=true
 android:ellipsize=marquee
 android:marqueeRepeatLimit=marquee_forever
requestFocus/
/TextView


On Dec 2, 9:52 pm, Jared jaredstock...@gmail.com wrote:
 I have this already in my xml layout:

 TextView
         android:id=@+id/left_text_box_0
         android:layout_width=wrap_content
         android:layout_height=wrap_content
         android:focusable=true
         android:singleLine=true
         android:ellipsize=marquee
         android:marqueeRepeatLimit=marquee_forever
 /

 This marquee works if I scroll up with the trackball on my widget to
 focus on the text. The only thing that I need to do now is find out
 how to set the focus programatically in the code. For an Activity or
 View, this can be done by using TextView.setSelected(true). For a
 RemoteView though, you can't use findViewById to get the TextView
 layout reference (For example: R.id.left_text_box0). Do you know a way
 to do this for a RemoteView?

 Here is another post describing the same thing I'm looking 
 for:http://groups.google.com/group/android-developers/browse_thread/threa...

 Thanks for help.

 On Nov 25, 11:14 am, Mark Murphy mmur...@commonsware.com wrote:

  Jared wrote:
   I have an HTC Hero from Sprint in the US and was curious about the how
   the Stocks HTC widget scrolls text like a ticker. It is only the 4x1
   sized widget that scrolls quotes. As far as I know, homescreen widgets
   can only use RemoteViews for the layout, which is limited to the
   following layouts and widgets (from
  http://developer.android.com/guide/topics/appwidgets/index.html#Creat...

       * AbsoluteLayout
       * FrameLayout
       * LinearLayout
       * RelativeLayout
       * AnalogClock
       * Button
       * Chronometer
       * ImageButton
       * ImageView
       * ProgressBar
       * TextView
         Descendants of these classes are not supported.

   I know that this could be done in an app with android.widget.scroller,
   but that can't be used in a homescreen widget. Would this
   functionality be specific to the Sense UI homescreen capabilities? I
   guess, my main question is if this can be replicated for a standard
   Android widget and if so how.

  Look at the android:marqueeattribute on TextView, and see if that fits
  your needs.

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://twitter.com/commonsguy

  Warescription: Three Android Books, Plus Updates, $35/Year



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: J2EE client on Android

2009-12-03 Thread Bruce Xia
What I was trying to do is really to have an app client who can talk to EJB
on server side. This is simply done by adding @EJB annotator in JEE but in
Anroid package the ejb package is not included. This can probably be done
thru RMI but if Android has native support it would be great.

IF you have any example code for this or JMS client it would be helpful.

On Wed, Dec 2, 2009 at 10:56 PM, Charlie Collins
charlie.coll...@gmail.comwrote:

 Depends what you mean by J2EE client. A client could be just a web
 browser (Servlets and JSP are part of the JEE spec). You might mean
 more along the lines of a SOAP or JMS client or such though (which
 also can be done, not that they *should* be done, but can be). You
 need to clarify this quite a bit before anybody can really try to help
 you.

 On Dec 2, 2:55 am, Bruce Xia bruce.xi...@gmail.com wrote:
  is there a way to port or implement a J2EE client on android? Does
  anybody have example code please?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] modify Contacts.apk for use with Softbank

2009-12-03 Thread dzul1983
Hi,

I currently living in Japan, and I own a HTC Magic. I'm currently
subscribed to Softbank and have no intention of moving to Docomo or
any other carriers.

I'd like to modify the Contacts.apk to allow me to send MMS to my
contact's email address instead of their phone number. The reason for
this is that in Japan, the only way to send a MMS to other carriers is
via email. However, the email addresses that the carriers provide
requires you to send the email through their gateway, and the only way
to do this is to send them as MMSes through the messaging app.

Currently, I am able to send/receive emails via the messaging app by
entering the email address manually. So I'm hoping to modify the
Contacts app to allow me to add a new action that will open up the
messaging app, convert the message to MMS automatically, and insert
the contact's email address as the recipient.

So I'm hoping someone can help me;
1. Add a new menu called Send S!Mail (that's what MMS is called
here) on the long-press menu and when viewing contact details
2. Start the messaging app when the user taps on the new menu
3. Automatically tell the messaging app that you want to send an MMS
and convert it accordingly (add a subject field, etc)
4. Add the contact's email address into the To field

I don't think it's too difficult to do this, but since I've very new
to Android development, I have no idea where to start. I'm currently
looking through the source for the Contacts app, and figuring out what
the variables mean.

By the way, my Magic is on Android 1.6 (Donut) and my devkit is on a
Linux (Ubuntu) platform, also compiled for 1.6 Donut and the HTC
Sapphire (Magic).

Thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Error to create an AVD - Ignoring add-on

2009-12-03 Thread Dj
Hi,

I too am getting similar error, and not able to start my work.
I am using Windows Vista.
The command prompt output is coming as:-
C:\Users\dj\Downloads\android-sdk_r3-windows\android-sdk-windows
\toolsand
roid list target
Error: Ignoring add-on 'google_apis-5_r01': Unable to find base
platform with AP
I level '5'
Available Android targets:



Kindly help me out.

Asif k wrote:
 Same command I had copied and pasted in my command prompt and one avd
 is created successfully. So please check the sdk that u had
 downloaded.

 Check with android list target in command prompt that what
 target_id : 2.

 Thanks,
 Asif

 On Nov 15, 7:20 pm, Onnlist onnl...@gmail.com wrote:
  Hello All,
 
  I am new to Android development. I have installed Eclipse 3.5, SDK and
  ADT plugin successfully.
  But I am receiving following error to create an AVD -
 
  C:\android-sdk-windows\toolsandroid create avd --target 2 --name
  my_avd
  Error: Ignoring add-on 'google_apis-3-r03': Unable to find base
  platform with API level '3'
  Error: Ignoring add-on 'google_apis-4-r01': Unable to find base
  platform with API level '4'
  Error: Ignoring add-on 'google_apis-5_r01': Unable to find base
  platform with API level '5'
  Error: Target id is not valid. Use 'android.bat list targets' to get
  the target ids.
 
  Please advise if i am missing any step - not sure why i am getting
  above error
 
  Thank you so much in advance.
 
  Jagdish

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] html5 and video tag working example

2009-12-03 Thread Abderrahim Baallal
video src='yourVideo.m4v' poster='yourImage.jpg'/video


i hope that will help you

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ListView not responding to Click or KeyPress

2009-12-03 Thread Brion Emde
You want to override the method onListItemClick(ListView l, View v,
int position, long id) instead.


On Dec 2, 2:37 pm, n179911 n179...@gmail.com wrote:
 Hi,

 I have a simple ListView in my layout.xml file.

     ListView android:id=@+id/action_list
             android:layout_width=fill_parent
             android:layout_height=wrap_content
         /

 And in my javacode, I add a setOnItemClickListener() to my listview:

 listView.setOnItemClickListener(new OnItemClickListener() {

                 public void onItemClick(AdapterView? parent, View view,
 int position, long id) {
                     System.out.println (get onItem Click position=
 +position);

                 }
             });

 But when I run on G1. I don't see any print out when I click an item on the
 ListView on the phone.
 Or when I select an item using track ball and press CENTER.

 Can you please tell me why to resolve my problem?

 Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] tab icon size problem

2009-12-03 Thread Imran Surti
Hi,
I am developing an application on Android 2.0 and I created 32px icons
for tabs
However when I run the app on the emulator, the icons come up as 22px
only.
Is it something to do with the emulator or am I doing something
wrong?
Anyone having this problem?...any solution...
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: access voice data

2009-12-03 Thread Khalid
Hi, Just wondering (since there is no response)
- is this a no brainer question (cus it might have been answered x
number of times already)
-Or it doesnt make any sense, I need to rephrase it
-Or this is something no body cares about and android is not going to
allow such functionality?

Hope I can have some one's attention on this topic

Thanks

On Dec 1, 12:11 pm, Khalid khalida...@gmail.com wrote:
 Hi All,
 Is it possible in android framework to encrypt/decrypt voice data?
 What I am thinking is when a call comes in, and before user picks it
 up another local application is activated, it then encrypts and
 decrypts outgoing/incoming voice 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] sending an intent from RuntimeInit crash handlers.

2009-12-03 Thread Ram
Hi,

I want to send an intent from a crash handler [ crash(String tag,
Throwable t) in RuntimeInit.java) ] to an activity (stand alone
appllication)

I tried to send it from above handler as follows..

Intent intent = new Intent
(com.sonyericsson.android.bugreport.action.START_MYAPP);
   intent.setFlags(Intent.MY_ACTIVITY_NEW_TASK);
   ActivityManagerNative.getDefault().startActivity
(intent);

but i failed to send an intent to my application..

Can i send an intent to my application fro RuntimeInit.java handlers?

Thanks in advance!

-Ram

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: sending an intent from RuntimeInit crash handlers.

2009-12-03 Thread roy basavaraju
Hi,

I want to send an intent from a crash handler

 [ crash(String tag,Throwable t) in RuntimeInit.java) ] to an activity
(stand alone appllication)

I tried to send it from above handler as follows..

Intent intent = new Intent

(com.myprog.android.myapp.action.START_MYAPP);

  intent.setFlags(Intent.MY_ACTIVITY_NEW_TASK);

  ActivityManagerNative.getDefault().startActivity(intent);


but i failed to send an intent to my application..

Can i send an intent to my application fro RuntimeInit.java handlers?

Thanks in advance!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Extremely slow Android SDK download (5 kB/sec)

2009-12-03 Thread speedplane
I have the same problem... but whats worse is that the downloader
stalls half way through and doesn't complete the download. Is there a
way to do this manually or some way to fix the problem?

On Nov 12, 8:28 pm, js6 jay.snide...@gmail.com wrote:
 I am getting 1 kB/sec.  I am able to download pdf's, etc... with no
 problems through the browser.  Just starting out withAndroid
 development, but kinda tough if I can't get the SDK.  Any chance you
 found a faster way to do this?  I'm stumped.

 On Nov 11, 1:14 am, Marco mopfa...@googlemail.com wrote:

  Does anyone else have problems with the download of packages in the
 AndroidSDK? I can download the SDK with around 300 kB/sec, but
  downloading the packages inside the SDK reaches only around 5 kB/sec
  and it tells me something like 215 minutes left. I tried it a couple
  of times the last days but it didn't get better.

  From the developer site (http://developer.android.com/sdk/adding-
  components.html): Adding and updating components in yourAndroidSDK
  is fast and easy.

  Yes, it's very easy, but I liked the old all-in-one SDKs which came to
  me in a couple of minutes...

  Marco



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] [CDMA] Fatal error occurs during creating CDMAPhone in 2.0 release

2009-12-03 Thread Henry Jeong
Fatal error occurs during creating CDMAPhone but not during creating
GSMPhone in 2.0 release
Here is log. ( logcat -b radio )
  :
D/STK ( 1853): StkService: StkService: is running
D/STK ( 1853): StkService: NEW sInstance
I/PHONE   ( 1853): Creating GSMPhone
  :
D/PHONE   ( 1853): [PhoneProxy] Switching phone from GSMPhone to
CDMAPhone
D/PHONE   ( 1853): [PhoneProxy] Setting Radio Power to Off
  :
D/PHONE   ( 1853): mDoesRilSendMultipleCallRing=true
D/PHONE   ( 1853): mCallRingDelay=3000
D/CDMA( 1853): [CdmaDataConnection] DataConnection.clearSettings()
D/CDMA( 1853): [CdmaDataConnection] CdmaDataConnection
constructor
 Fatal Error occurs  : Expect Creating CDMAPhone 

If change PREFERRED_NETWORK_MODE to NETWORK_MODE_CDMA from
NETWORK_MODE_WCDMA_PREF in RILConstants.java, Telephony should use
CDMAPhone as default , this error always occurs as below
   :
D/PHONE   ( 1853): mDoesRilSendMultipleCallRing=true
D/PHONE   ( 1853): mCallRingDelay=3000
D/CDMA( 1853): [CdmaDataConnection] DataConnection.clearSettings()
D/CDMA( 1853): [CdmaDataConnection] CdmaDataConnection
constructor
 Fatal Error occurs  : Expect Creating CDMAPhone

Let me know how to fix it.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Issues with Notepad tutorial v1 getting the AndroidManifest.xml to work

2009-12-03 Thread GSM
Hi,

Before I begin I should mention that I am new to the android platform.
I've been following the notepad exercise 1 tutorial, unfortunately I
can't seem to get it to work. In Eclipse once I create a new android
project with existing resources and point it to notepadv1 folder, I
get the following error: Notepadv1]AndroidManifest.xml file missing!
I've tried Android tools- fix project properties, and I've tried
cleaning the project (all that seems to do is double the error
messages). If anyone could let me know how to tackle this problem,
it'd be much appreciated. By the way, I'm using android 1.1 to build
currently.

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Extremely slow Android SDK download (5 kB/sec)

2009-12-03 Thread speedplane
I'm getting about 30KB/sec on a 10mbps pipe. Whats worse... it seems
to timeout half way through.  Whats up with that?

On Nov 12, 8:28 pm, js6 jay.snide...@gmail.com wrote:
 I am getting 1 kB/sec.  I am able to download pdf's, etc... with no
 problems through the browser.  Just starting out with Android
 development, but kinda tough if I can't get the SDK.  Any chance you
 found a faster way to do this?  I'm stumped.

 On Nov 11, 1:14 am, Marco mopfa...@googlemail.com wrote:

  Does anyone else have problems with the download of packages in the
  Android SDK? I can download the SDK with around 300 kB/sec, but
  downloading the packages inside the SDK reaches only around 5 kB/sec
  and it tells me something like 215 minutes left. I tried it a couple
  of times the last days but it didn't get better.

  From the developer site (http://developer.android.com/sdk/adding-
  components.html): Adding and updating components in your Android SDK
  is fast and easy.

  Yes, it's very easy, but I liked the old all-in-one SDKs which came to
  me in a couple of minutes...

  Marco

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to notify CursorAdapter changes in my own ContentProvider

2009-12-03 Thread Brion Emde
As described in the ContentResolver chapter of the Development Guide:
http://developer.android.com/guide/topics/providers/content-providers.html

As a courtesy, you might also want to call
ContentResolver.notifyChange() to notify listeners when there are
modifications to the data.



On Dec 2, 6:35 pm, silverburgh silverburgh.me...@gmail.com wrote:
 Hi,

 I am writing my own ContentProvider for my own application. And there
 is a ListView with a CursorAdapter pulling data from my Content
 Provider.  My question is when there is a data change in my
 ContentProvider, how can I notify my CursorAdatper to requery the data
 and  then have the ListView updated?

 Thank you.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Testing an Asynchronous Activity

2009-12-03 Thread Brion Emde
Apologies if this is a widely asked question. I did take a look.

I'm using a web service disguised as a ContentProvider and
AsyncQueryHandler to isolate my activity from the delays of transport.

My question is: during testing, how can I determine when my activity
has retrieved the data from the web service? That would be after
onQueryComplete() in the AsyncQueryHandler has come back with the
real data.

During manual testing, I just sit there and wait until the view
updates. How can I do that using ActivityUnitTestCase and
ActivityInstrumentationTestCase2?

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] @Justin: Which infos do you need?!

2009-12-03 Thread ChristianF
Hi Justin,

I am one of the affected Milestone owners and can provide you with
whatever information necessary about my phone.

It is carrier-free (!) and from amazon.de. I know this is unusual in
the USA but quite common in europe.
Therefore there is no carrier dedicated firmware with branding or
simlock aplied. Just plain Motorola firmware.
My guess at the moment is that this firmware type is not yet
integrated as legal in the market.
May that be???

Firmware: V2.0   GAS_EMEA_USASHLS00RTDACH_P001
Baseband: 3GSMEPU91A_U_91.08.0DPUCASHLSEMEAB1B803F.0R

I have contact (through a german forum) to many other affected
milestone users and love to give you any information you might need!

Please do not hesitate to contact me!!!
We would love to buy some apps ;-)

Christian



On 1 Dez., 22:32, Justin (Google Employee) j...@google.com wrote:

 The issue with Milestone not seeing copy protected apps is completely
 separate. There may be some Milestone configurations that Market
 doesn't know about yet and as they are foreign Market assumes they may
 be unsafe to show copy protected apps to. We'll look into this. If
 posters can respond with what carriers the users seeing issues are on,
 that would be helpful.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Timer

2009-12-03 Thread Beth
Sorry, Can't do it!

You need to track a timer when you set it.  There's no way to poll the
system.
You can also notice that a set timer does not persist through a phone
boot and would need to be reset in that case.

On Dec 3, 4:22 am, Sasikumar.S sasikumar.it1...@gmail.com wrote:
 Hi,

 How to get whether timer is runnning or not?...

 That means How to get whether timer is scheduled or not?...

 --
 Thanks  Regards
 Sasikumar.S

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to install my app and keep an icon from showing up in the application tray

2009-12-03 Thread Mike
Thanks.  That works.

BUT... I should have clarified myself a little bit.  Not only do I
want to prevent the icon from getting placed in the app tray, but I
still need the main activity to run and display a message to the
user.  I suppose I can write my own class that extends Application and
create an Intent that shows this Activity in onCreate?  I'll give that
a try, but if you've got a better idea, please let me know.  :)

- Mike

On Dec 3, 9:39 am, TreKing treking...@gmail.com wrote:
 Remove the LAUNCHER category from the activity's intent filter in the
 manifest.

 -
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

 On Thu, Dec 3, 2009 at 10:09 AM, Mike michaeldouglaskra...@gmail.comwrote:

  Hi,

  I've got an app that I would like to install without having an icon
  show up in the application tray.  If I don't specify an icon in my
  manifest, Android still plops a default icon in the tray.  How do I
  prevent this?

  Regards,

  - Mike

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


  1   2   3   >