[android-developers] Re: Strategies for alerting users about new versions of your app in the appstore?

2009-06-14 Thread TjerkW

This is al implemented in the Android market and it comes for free
when publishing your app in the market.
And any is evert body staking about an app store, ita called the
Android market
On 14 jun, 05:30, pawpaw17 georgefraz...@yahoo.com wrote:
 Guys,

 Is there a methodology for pushing out new versions of appstore apps
 to customers in Android/or via the appstore? Or is this something each
 app needs to cook up for itself?

 Thanks!

 pawpaw17
--~--~-~--~~~---~--~~
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] About EditText's default text

2009-06-14 Thread stonestrange

Hi,guys.

I want set the default text in EditText,and when the user focus on the
EditText,the default text would disappear. Who knows how to set it?

And i also want to have the same effect in Spinner.That means i want
to add the tip into Spinner.Is it technically feasible?

Thank you all.


--~--~-~--~~~---~--~~
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] Question about long pressed

2009-06-14 Thread patpat

nomrally press a key  will cause a  keydown event

however, when i long pressed a key, it keep causeing keydown events
every few sec..

how can i fix this?

I only want one keydown event no matter how long it is pressed

is there anyway to do 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] ExpandableListView with ResourceCursorAdapter problem

2009-06-14 Thread sebster

Hi everyone,

I'm trying to get an ExpandableListView with a ResourceCursorAdapter
to work and it's driving me crazy.

The problem: When I let the activity manage the cursors the expanded
state of the tree is not saved between orientation changes nor when I
start an other activity over the top and go back. When I don't let the
activity manage the cursosr it works fine between screen orientation
changes, but it crashes with a java.lang.IllegalStateException: this
should only be called when the cursor is valid exception in the
getGroupView() method of CursorTreeAdapter when I start another
activity and return with the back button.

The relevant activity (which extends ExpandableListActivity) code
looks like this:

@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
dbAdapter = new DbAdapter(this);
dbAdapter.open();
final Cursor groupCursor = dbAdapter.findAllGroups();
startManagingCursor(groupCursor);
setListAdapter(new MyExpandableListAdapter(this, groupCursor,
R.layout.group_list_item, R.layout.child_list_item));
registerForContextMenu(getExpandableListView());
}

and MyExpandableListAdapter just extends ResourceCursorTreeAdapter and
overrides the bindView/Group methods to return the views, and the
getChildrenCursor method as follows:

@Override
protected Cursor getChildrenCursor(final Cursor groupCursor) {
final long groupId = 
groupCursor.getLong(groupCursor.getColumnIndex
(_id));
final Cursor childCursor = 
dbAdapter.findChildrenForGroup(groupId);
startManagingCursor(childCursor);
return childCursor;
}

When I debug to see what happens, I notice that the onSaveInstanceState
() actually saves the proper expanded state of the tree first, but
then my activity deactivates the (managed) cursors in onStop(),
causing the data set of the ExpandableListAdapter to be flagged as
invalid, which causes the expanded list state to be updated (and now
all the group positions are invalid, so all expanded groups are
removed from the list of expanded groups). However, this list is
contained via a reference in the saved state bundle,  so even though
this list is never explicitly added to this bundle again, in the
onRestoreInstanceState() method the list is empty in the bundle
because the reference was modified.

It kind of looks like a bug to me, but maybe I'm just doing stuff all
wrong. Did anybody get this to work properly? Any suggested
workarounds?

Regards,
Sebastiaan

--~--~-~--~~~---~--~~
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] Application Resources on SDCARD on install!! MUST HAVE, GOOGLE DO SOMETHING!!

2009-06-14 Thread TjerkW

A lot of developers and this problem:
All resources in an APK are stored in the memory of the phone,
it is impossible to force some resources to be saved on the sdcard.

For example, check this use-case:
I am creating a game with multiple levels a lot of sounds, menumusic
and sprites.
The size unpacked is now 6MB and the game is not even finished
Users are already complaining:
http://www.cyrket.com/package/com.tjerk.spacewars


The only current solution is to download the data after installation
on the sdcard and load the data from the sd card (requires your own
data handling code, the convenience R class cannot be used).
This solution is a no-go for a lot of developers because they simply
donot have a server. The users may also find it weird that they have
to install stuff after they installed the app.

Another solution is to have a linux partition on your sdcard, but this
requires a rooted phone and is only for advanced users.

I know they are a lot of issues with installing part of the app on the
sdcard (piracy etc). However if you only install application data on
the sdcard, then there would be no problem. I suggest to create a
.appname directory for each application that requires to save
resources on the sdcard. Window users will not see that directory. If
they delete the directory and restart the app they should get an
alertbox that forces them to reinstall (or remove) the app.

Seriouzly google, you have to add a feature that solves this problem,
the android platform is a no-go for big games. And users can install a
limited number of apps.

What i want to now: Is this going to be implemented in the future?
Or should i implemented the download-from-server solution. If you
are going to implemented it in the next release than i will not waste
time on implementing the download-from-server solution.

Links to other posts of developers that have the same problem:
http://groups.google.com/group/android-developers/browse_thread/thread/9ab3c62274aff2a1/e79c251bdf60ed97?lnk=gstq=application+size#e79c251bdf60ed97
http://groups.google.com/group/android-developers/browse_thread/thread/ca9e824d8451871a/8ffc708d4d87a9a2?lnk=gstq=application+size#8ffc708d4d87a9a2
http://groups.google.com/group/android-developers/browse_thread/thread/8251f0d6ca7f7ecb/311b4ff59bf8dab7?lnk=gstq=resources+on+sdcard#311b4ff59bf8dab7
http://groups.google.com/group/android-developers/browse_thread/thread/381e652ae1b3693a/2f9ffd68ad98ae57?lnk=gstq=resources+on+sdcard#2f9ffd68ad98ae57
--~--~-~--~~~---~--~~
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: Application Resources on SDCARD on install!! MUST HAVE, GOOGLE DO SOMETHING!!

2009-06-14 Thread TjerkW

B.t.w:
Dianne Hackborn already gave some usefull comments in this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/9ab3c62274aff2a1/e79c251bdf60ed97?lnk=gstq=application+size#e79c251bdf60ed97

However i need more info. Is this going to be implemented in the
future or not? If so.. when?
I would also like to know the googles opinion about this issue.

For people that want to implemented the download-after-install
solution, look here for code examples:
http://code.google.com/p/apps-for-android/source/browse/#svn/trunk/Samples/Downloader/src

On 14 jun, 12:26, TjerkW tje...@gmail.com wrote:
 A lot of developers and this problem:
 All resources in an APK are stored in the memory of the phone,
 it is impossible to force some resources to be saved on the sdcard.

 For example, check this use-case:
 I am creating a game with multiple levels a lot of sounds, menumusic
 and sprites.
 The size unpacked is now 6MB and the game is not even finished
 Users are already 
 complaining:http://www.cyrket.com/package/com.tjerk.spacewars

 The only current solution is to download the data after installation
 on the sdcard and load the data from the sd card (requires your own
 data handling code, the convenience R class cannot be used).
 This solution is a no-go for a lot of developers because they simply
 donot have a server. The users may also find it weird that they have
 to install stuff after they installed the app.

 Another solution is to have a linux partition on your sdcard, but this
 requires a rooted phone and is only for advanced users.

 I know they are a lot of issues with installing part of the app on the
 sdcard (piracy etc). However if you only install application data on
 the sdcard, then there would be no problem. I suggest to create a
 .appname directory for each application that requires to save
 resources on the sdcard. Window users will not see that directory. If
 they delete the directory and restart the app they should get an
 alertbox that forces them to reinstall (or remove) the app.

 Seriouzly google, you have to add a feature that solves this problem,
 the android platform is a no-go for big games. And users can install a
 limited number of apps.

 What i want to now: Is this going to be implemented in the future?
 Or should i implemented the download-from-server solution. If you
 are going to implemented it in the next release than i will not waste
 time on implementing the download-from-server solution.

 Links to other posts of developers that have the same 
 problem:http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa...
--~--~-~--~~~---~--~~
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] Hiding and showing titlebar at runtime?

2009-06-14 Thread gsmd

The option I see so far is calling requestWindowFeature
(Window.FEATURE_NO_TITLE). Is there a way to bring it back
programmatically?
TIA.
--~--~-~--~~~---~--~~
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: Scrollview and GestureDetector

2009-06-14 Thread SurtaX

I figured out how to do it for any1 interested

@Override
public boolean dispatchTouchEvent(MotionEvent ev){
super.dispatchTouchEvent(ev);
return gestureScanner.onTouchEvent(ev);
}

On Jun 14, 2:43 pm, SurtaX garylo@gmail.com wrote:
 bump

 On Jun 13, 8:18 pm, SurtaX garylo@gmail.com wrote:



  I'm making sort of a book app. I have the text displayed as a textview
  in a scrollview:

  XML:
  ScrollView
            android:id=@+id/chatview
            android:orientation=vertical
            android:layout_width=fill_parent
            android:layout_height=fill_parent
                TextView
                    android:id=@+id/webview
                    android:layout_width=wrap_content
                    android:layout_height=fill_parent
                    android:layout_weight=1
                    android:textSize = 16sp   /
            /ScrollView

  I then have

  Java:
     private GestureDetector gestureScanner;
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);

          gestureScanner = new GestureDetector(this);
     }

  And implemented the required following to catch a left fling or right
  fling. And

  Java:
    �...@override
      public boolean onTouchEvent(MotionEvent me)
      {
       return gestureScanner.onTouchEvent(me);
      }

      public boolean onDown(MotionEvent e)
      {
       return true;
      }

      public boolean onFling(MotionEvent e1, MotionEvent e2, float
  velocityX, float velocityY)
      {
       if(velocityX = 1500){
            nextChapter();
       }
       if(velocityX = -1500){
                  previousChapter();
       }
       return true;
      }

      public void onLongPress(MotionEvent e)
      {
      }

      public boolean onScroll(MotionEvent e1, MotionEvent e2, float
  distanceX, float distanceY)
      {
       return true;
      }

      public void onShowPress(MotionEvent e)
      {
      }

      public boolean onSingleTapUp(MotionEvent e)
      {
       return true;
      }

  This works fine if the text inside the textview is small (ie. there is
  no scroll bar as it all fits within the view). But as soon as the text
  requires scrolling, the gesture is no longer picked up by the
  detector. onFling is never called.

  I have read that it is because scrollview handles its own gestueres?
  If so what is the easiest way to maintain the ability to scroll up and
  down the text, and also be able to detect flinging left or right and
  invoking nextChapter() and previousChapter() respectively?

  THanks alot for your time.

  Cheers,
  SurtaX
--~--~-~--~~~---~--~~
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] Popup Blocker software

2009-06-14 Thread whatn...@gmail.com

Popup Blocker is an acknowledged popup killer to block popup ads in
Internet Explorer ( IE ), Netscape, AOL Explorer and is a tested
software that helps the user to block popup ads in an efficient
manner. It maximizes your surfing speed by guarding your system
against annoying unwanted popup windows.


http://softwaresoftware99.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] Intel announces new Pentium III brand for next generation processors.

2009-06-14 Thread whatn...@gmail.com

M2 PRESSWIRE-12 January 1999-INTEL: Intel announces new Pentium III
brand for next generation processors (C)1994-99 M2 COMMUNICATIONS LTD
RDATE:110199 SANTA CLARA, Calif. -- Intel Corporation today announced
the Intel Pentium III processor brand name for its next generation
microprocessor code-named Katmai.


for more info http://www.intel-intel99.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 to specify frames at runtime for AnimationDarawable?

2009-06-14 Thread javaumesh-android
Hi all 

I have a an activity which has an image view to display animation. and I'm 
reading resources from res/anim which is working absolutely fine.  But what I'm 
trying is to specify the frames at run time instead of hard coding at the 
res/anim/file.xml  any idea. ?

Following works fine. 

   public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.main);
mImageView = (ImageView)this.findViewById(R.id.AdImageView);
mImageView.setImageResource(R.anim.adlist);
adDisplay = (AnimationDrawable)mImageView.getDrawable();
  }

@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if(hasFocus== true){
adDisplay.start();
 }


and the  adlist.xml is :

?xml version=1.0 encoding=UTF-8?

item android:drawable=@drawable/ad_01 android:duration=500 /
item android:drawable=@drawable/ad_02 android:duration=500 /
/animation-list


But what I wan't is I wan't to create the AnimationDrawable object at runtime 
not from the xml source,as my requirement is no of frames and *.png files may 
change at the runtime. 


I tried the following it I'm unable to get the expected result.

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mImageView = (ImageView)this.findViewById(R.id.AdImageView);
adDisplay = new AnimationDrawable();

adDisplay.addFrame(Drawable.createFromPath(/data/data/com.example.ad/files/ad_01.png),500
 );

adDisplay.addFrame(Drawable.createFromPath(/data/data/com.example.ad/files/ad_02.png),500
 );
mImageView.setImageDrawable(adDisplay);
 
  }



Any thing I'm missing in the implementation ?


  Own a website.Get an unlimited package.Pay next to nothing.*Go to 
http://in.business.yahoo.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] Scroller on LinearLayout

2009-06-14 Thread arnouf

Hi all,

I create a LinearLayout (orientation horizontal) which contains some
TextView. The LinearLayout has a size of 1200px.
When user move on, the screen, I would like to do like the Launcher
application.

I tried to use startScroll function. even if I set a distance, the
layout doesn't move alone. Only distance did by user is slided.

Does startScroll move alone all content? If yes, why my code doesn't
work?

mScroller.startScroll(0, 0, 1200, 0);
invalidate()
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: Scroller on LinearLayout

2009-06-14 Thread arnouf

scrollTo(newPositionX, newPositionY) is working correctly...

I have to use startScroll...

Please, thanks for your help

On 14 juin, 15:10, arnouf arnaud.far...@gmail.com wrote:
 Hi all,

 I create a LinearLayout (orientation horizontal) which contains some
 TextView. The LinearLayout has a size of 1200px.
 When user move on, the screen, I would like to do like the Launcher
 application.

 I tried to use startScroll function. even if I set a distance, the
 layout doesn't move alone. Only distance did by user is slided.

 Does startScroll move alone all content? If yes, why my code doesn't
 work?

 mScroller.startScroll(0, 0, 1200, 0);
 invalidate()
 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: Strategies for alerting users about new versions of your app in the appstore?

2009-06-14 Thread nEx.Software

Unfortunately, it is implemented in a haphazard way by the Market.
When you open the app, it does not trigger something on the Market to
look for an update. Unless you specifically open the Market, go to My
Downloads, and look if any apps have updates, you don't really know if
there is an update. The notifications put forth by the Market are a
joke. If anyone has seen any sort of consistency as to when it checks
for updates, I would be very surprised. I will often open the Market
and see 4 or 5 apps with updates, and think to myself... Hmm, I wonder
why I wasn't notified.That being said, there are a number of apps out
there that phone home and look for an update. I assume this is done
by housing a version file or something on a server and having the
application check this on start up, if the version of the installed
app is lower than the latest version, it notifies you and allows you
to go to the Market for the update.

On Jun 13, 11:42 pm, TjerkW tje...@gmail.com wrote:
 This is al implemented in the Android market and it comes for free
 when publishing your app in the market.
 And any is evert body staking about an app store, ita called the
 Android market
 On 14 jun, 05:30, pawpaw17 georgefraz...@yahoo.com wrote:

  Guys,

  Is there a methodology for pushing out new versions of appstore apps
  to customers in Android/or via the appstore? Or is this something each
  app needs to cook up for itself?

  Thanks!

  pawpaw17
--~--~-~--~~~---~--~~
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: Dialogs don't fill width in landscape mode

2009-06-14 Thread Keith Wiley

bump

On Jun 13, 11:33 am, Keith Wiley kbwi...@gmail.com wrote:
 Does anyone know how to make a dialog fill the screen width in
 landscape mode?  Setting the layout's width to fill_parent doesn't do
 it.  It always comes up portrait width, or something suspiciously
 similar.
--~--~-~--~~~---~--~~
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: expandlistview user selection detection?

2009-06-14 Thread Bob

Figured it out, use setOnChildClickListener

On Jun 13, 2:27 pm, Bob bshumsk...@yahoo.com wrote:
 Hi,
 How do I handle the selection in an expandablelistview?  I have tried
 using both the setOnItemClickListener  and the
 setOnItemSelectedListener and neither seems to fire when I click
 either the parent or child level elements.

 Thanks,
 Bob

 SimpleExpandableListAdapter  mAdapter = new SimpleExpandableListAdapter
 ( ...

   lvE.setAdapter(mAdapter);

        lvE.setOnItemSelectedListener(new OnItemSelectedListener() {
             public void onItemSelected(AdapterView parentView, View
 childView, int position, long id) {

                 }
                 public void onNothingSelected(AdapterView parentView) {

                 }
        });
--~--~-~--~~~---~--~~
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: Strategies for alerting users about new versions of your app in the appstore?

2009-06-14 Thread Mark Murphy

 Unless you specifically open the Market, go to My
 Downloads, and look if any apps have updates, you don't really know if
 there is an update.

Actually, specifically opening the Market seems to be sufficient. I have
often times gone into the Market looking for something else, then get hit
with a notification of updates some minutes later, without examining My
Downloads at all.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
You received this message because 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: Strategies for alerting users about new versions of your app in the appstore?

2009-06-14 Thread nEx.Software

Hmm... I suppose that might be the case. I've always just made a a
habit of going to My Downloads and performing the updates everytime I
open the Market, since I have found such inconsistency with the
notifications. I'd think something like this would not require opening
the Market to trigger an update notification scan. Maybe with the next
Market upgrade they can beef up the customization and allow the user
some control... maybe let me set an update scan interval, or allow it
to get notified when apps open and check for a new version at that
time, among other things...

On Jun 14, 8:31 am, Mark Murphy mmur...@commonsware.com wrote:
  Unless you specifically open the Market, go to My
  Downloads, and look if any apps have updates, you don't really know if
  there is an update.

 Actually, specifically opening the Market seems to be sufficient. I have
 often times gone into the Market looking for something else, then get hit
 with a notification of updates some minutes later, without examining My
 Downloads at all.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because 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: AbsoluteLayout deprecated Drag and Drop

2009-06-14 Thread Romain Guy

Drag and drop can be implemented without AbsoluteLayout. You can see
how in Launcher's source code at source.android.com
(packages/apps/Launcher.)

On Sat, Jun 13, 2009 at 7:59 PM, Mooretisgregory.mo...@lifeaware.net wrote:

 I noticed that AbsoluteLayout is deprecated in the latest SDK.
 AbsoluteLayout is an important piece to implementing drag and drop.
 If it disappears in a later release, what will be the solution to
 implement drag and drop?


 




-- 
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] multiple WebViews in activity

2009-06-14 Thread skink

hi,

does anyone know whether multiple instances of WebViews share
underlying native rendering webkit engine?

in other words: may i assume that if i create couple of WebViews the
overall memory allocated to my process doesn't grow in linear way?

thanks,
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: Scroller on LinearLayout

2009-06-14 Thread skink



On 14 Cze, 11:10, arnouf arnaud.far...@gmail.com wrote:


 mScroller.startScroll(0, 0, 1200, 0);
 invalidate()
 Regards

Scroller is just motion measurement tool, it doesn't touch any View,
you have to do it by yourself using for example Handler.
--~--~-~--~~~---~--~~
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: Missing application icon in All Application drawer

2009-06-14 Thread Doug

I think Lucius may be referring to something I have seen since 1.5
came out.  Namely that the 'all appliications' list under settings-
applications will often show the app name with a generic icon in the
list (it even does it for built in apps). If you drill into the app
the icon is there, and when you hit the back key the previous list has
miraculously got some more icons to display.

Alternatively, he might just want to know how to launch his app,
(assuming all intents are correct)...

Lucius. You don't launch your app from 'Settings-Applications'. When
installed it will appear automatically on the normal app tab down the
bottom of your screen.

Doug

On Jun 13, 2:23 pm, Mark Murphy mmur...@commonsware.com wrote:
 Lucius Fox wrote:
  Can someone please help me understanding why in my emulator, i can
  * in my settings- manage application, see an entry for an application there
  * but i cant' find the icon for launching that in All Application.

  Can you please tell me how can I make my application launches on the 
  emulator?

 You need one or more activities with the following intent-filter in
 their manifest:

 intent-filter
         action android:name=android.intent.action.MAIN /
         category android:name=android.intent.category.LAUNCHER /
 /intent-filter

 If you on Android 1.5, and you already have that intent filter, and you
 still do not see your icon, and you may already have an application
 installed that shares the same Java package (e.g.,
 package=com.commonsware.android.foo in your manifest element), try
 removing the earlier application and re-installing the new one. You
 cannot have two applications installed with the same package. In Android
 1.1 and earlier, the new one would overwrite the old one -- not anymore.

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

 Need Android talent? Ask on HADO!http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
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: Missing application icon in All Application drawer

2009-06-14 Thread Doug

Just ignore me... I read the original question yet again and agree
with Mark... although my note about icons not showing up is still
valid

On Jun 14, 10:44 am, Doug dougforp...@gmail.com wrote:
 I think Lucius may be referring to something I have seen since 1.5
 came out.  Namely that the 'all appliications' list under 
 settings-applications will often show the app name with a generic icon in the

 list (it even does it for built in apps). If you drill into the app
 the icon is there, and when you hit the back key the previous list has
 miraculously got some more icons to display.

 Alternatively, he might just want to know how to launch his app,
 (assuming all intents are correct)...

 Lucius. You don't launch your app from 'Settings-Applications'. When
 installed it will appear automatically on the normal app tab down the
 bottom of your screen.

 Doug

 On Jun 13, 2:23 pm, Mark Murphy mmur...@commonsware.com wrote:



  Lucius Fox wrote:
   Can someone please help me understanding why in my emulator, i can
   * in my settings- manage application, see an entry for an application 
   there
   * but i cant' find the icon for launching that in All Application.

   Can you please tell me how can I make my application launches on the 
   emulator?

  You need one or more activities with the following intent-filter in
  their manifest:

  intent-filter
          action android:name=android.intent.action.MAIN /
          category android:name=android.intent.category.LAUNCHER /
  /intent-filter

  If you on Android 1.5, and you already have that intent filter, and you
  still do not see your icon, and you may already have an application
  installed that shares the same Java package (e.g.,
  package=com.commonsware.android.foo in your manifest element), try
  removing the earlier application and re-installing the new one. You
  cannot have two applications installed with the same package. In Android
  1.1 and earlier, the new one would overwrite the old one -- not anymore.

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

  Need Android talent? Ask on HADO!http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
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: About EditText's default text

2009-06-14 Thread Doug

Check out the 'hint' property of the edittext view. It allows you yo
specify the text that will appear when the control is empty,

Sorry, I don't know about the Spinner side of things...

Doug

On Jun 14, 12:56 am, stonestrange stonestra...@gmail.com wrote:
 Hi,guys.

 I want set the default text in EditText,and when the user focus on the
 EditText,the default text would disappear. Who knows how to set it?

 And i also want to have the same effect in Spinner.That means i want
 to add the tip into Spinner.Is it technically feasible?

 Thank you all.
--~--~-~--~~~---~--~~
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] animation for growing listview

2009-06-14 Thread daniel.benedykt

Hi

I want to do an animation so when a user presses a button a listview
changes its height (grows).
I know how to change the height of the listview to make it bigger, but
that its not 'animated'.

How can I make an animation that makes the listview grows?

Thanks

Daniel

--~--~-~--~~~---~--~~
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] AppWidget: help with setOnClickPendingIntent()

2009-06-14 Thread BoD

Hi!

I'm making a little AppWidget that should be configured when you first
add it and also when you click on it.

I figured, since clicking on it should do the same as the creation
event, why not try to use the same code?

My configuration Activity should not know or care, whether it was
called for a creation event or an already exists, wants to be
configured event.

So I extend AppWidgetProvider, create a RemoteViews for my AppWidget
and do this in onUpdate():

Intent intent = new Intent(context,
ConfigureActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
appWidgetId);

PendingIntent pendingIntent = PendingIntent.getActivity
(context, 0, intent, 0);

views.setOnClickPendingIntent(R.id.buttonImage,
pendingIntent);


For some reason it's not working as I'd like:
in my ConfigureActivity when I look at getIntent().getExtras
().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID), it returns
always the same id: the first one that was configured.

Now the strange part:
if in the code above I add this line:

intent.setData(ContentUris.withAppendedId(Uri.EMPTY,
appWidgetId));

then it works correctly and in my ConfigureActivity getIntent
().getExtras().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID)
returns the correct id, the id of the widget I clicked on.

Surely there is an explanation but I don't see it.
Please help! :)

Thanks a lot!

BoD
--~--~-~--~~~---~--~~
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] Relative layout and include tag

2009-06-14 Thread Alexey

Hi, I'm reworking some of my layouts to use Relative layout. I have
some building blocks which i'd like to reuse.
The problem i seems to have with the include of the layout and
position other layouts out of this include. Example:

RelativeLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content

include
layout=@layout/gradient_separater
android:layout_alignParentTop=true
android:layout_below=@id/story_position_container /
com.my.ContentLayout
android:layout_below=@id/gradient_separater
android:id=@+id/story_layout
android:layout_width=fill_parent
android:layout_height=fill_parent /

/RelativeLayout

doesnt work in terms that ContentLayout is not getting positioned
below first layout. However if i move my include code to the layout
itself like this

RelativeLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content

   ImageView
android:id=@+id/gradient_separater
   android:layout_alignParentTop=true
android:layout_width=fill_parent
android:layout_height=wrap_content
android:gravity=center_horizontal
android:src=@android:drawable/divider_horizontal_bright /
com.my.ContentLayout
android:layout_below=@id/gradient_separater
android:id=@+id/story_layout
android:layout_width=fill_parent
android:layout_height=fill_parent /

/RelativeLayout
Everything seems to work. I've tried to overwrite the id attribute on
include - didn't really help. Also it seems putting attributes like
android:layout_marginTop doesnt affect layouts that added via include.
--~--~-~--~~~---~--~~
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] Soft Keyboard

2009-06-14 Thread Brad Gies
 

Does anyone know how to set the soft keyboard to be as large as possible?

 

I have a situation where my screen is totally filled with one edit text and
some buttons, and when the soft keyboard pops up, the keys are too small to
used effectively. 

 

I have thought of possibly creating an activity that I could put an edit
text on and nothing else, and pass in parameters for the caption and hints,
or maybe an alert dialog that does the same thing. Obviously, I would call
these when the edit text is entered, but is there an easier way?

 

 

 

 

 

Sincerely,

 

Brad Gies

 

 

-

Brad Gies

27415 Greenfield Rd, # 2,

Southfield, MI, USA

48076

www.bgies.com  www.truckerphone.com 

www.EDI-Easy.com  www.EDI-Simple.com

-

 

Moderation in everything, including abstinence

 


--~--~-~--~~~---~--~~
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] MIDI / JETCreator: How to create .jet-file?

2009-06-14 Thread Ulrich Althöfer

Hi,
I want to create a JET-file, a prerequisite to develop a JetPlayer-
Application.
In the Dev Guide I found the SONiVOX JETCreator User Manual and I
installed the JET Creator-Application. I tried the two JETCreator menu
items:

- File -- Save As... creates files with the '.jtc'-Extension
- File -- Export Project... creates files with the '.zip'-Extension

But I don't find the point where to create the '.jet'-Extension,
please help me.

By the way,
do you know a program which is able to create the MIDI-DLS format
(Downloadable Sounds) that runs on Windows and Linux and is free (the
LinuxMultiMediaStudio doesn't?)?
Which MIDI-Creation-Software do you prefer?

Please, help the user by installing the Jet Creator software with more
precise details, e.g. concrete default-pathnames for the console-
commands.

Thanks for developing the Android-Environment!

Greetings from Germany

Ulrich Althöfer

--~--~-~--~~~---~--~~
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 list the task's activeitys?

2009-06-14 Thread iam...@gmail.com

hi guys,
I can get android's taks list by

 ActivityManager.getRunningTasks();

but ,how to travel through   ActivityManager.RunningTaskInfo ?

i mean ,in the ActivityManager.RunningTaskInfo , there are only
baseActivity and topActivity fields .

how can i get all the activeitys of the task?

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: Installing the USB driver for HTC Magic on Vista

2009-06-14 Thread Theo K

Hey Petrus, I had the same issue with Windows Vista 64bit, where Vista
would simply not let me update the driver to the debuggable version.
Your USBDeview solution worked perfectly.  Cheers fella!

--~--~-~--~~~---~--~~
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] Wake Locks and Services

2009-06-14 Thread Thomas Riley

I need to use a wakelock to hold the screen active while its required.
I was recommended to use a service which I have been trying but on the
onDestroy I am getting wl cannot be resolved. Code below:

public class WakeLockService extends Service {

@Override
public IBinder onBind(Intent arg0) {
// TODO Auto-generated method stub
return null;
}

public void onCreate() {
PowerManager pm = (PowerManager) getSystemService
(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock
(PowerManager.FULL_WAKE_LOCK, My Tag);
wl.acquire();
}

public void onDestroy() {
wl.release();
}

}

--~--~-~--~~~---~--~~
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 drop the AppWidget to Home Screen?

2009-06-14 Thread tng.z...@googlemail.com

I checked out the SimpleWikitionary, the demo project mentioned in
the Blog http://android-developers.blogspot.com/2009/04/introducing-
home-screen-widgets-and.html.
I tried to start the application in the emulator. The application was
installed successfully on the emulator, but I could not see the wiki-
widget on the home screen. I added also some logging code in the
WordWidget::onUpdate(), however, the code seems never to be called.

Does the emulator delivered in SDK 1.5 support the AppWidgets
Framework? Or I did forget to do some configuration?

Thx in advance for help!

Ting

--~--~-~--~~~---~--~~
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] Maybe dumb but need rom img

2009-06-14 Thread Gir Mongoose Dog

Hello all. I had attended the conferance and got the google ion phone
and was messing arround trying to reflash to os with a custom theme
and setup but didn't go like I had hoped like with my g1. Does anyone
know where I can download the .nbh image file. Used to have the
dreaming.nbh to revert the g1 but that obviously won't work. Any help
would be greatly apprciated. Btw master reset don't work since my
update flashed over that too :-(

--~--~-~--~~~---~--~~
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] GSM Handshake/ Registration

2009-06-14 Thread Junior Oyebadejo

Hello everyone,
I'm in the process of taking the low level areas of Android apart in
order to do some research into GSM. I have been looking extensively at
the Radio Interface Layer of the Android platform and I see all the
Hayes AT commands being called in the reference-ril.c file as well as
the atchannel.c file. However, I can't seem to find where the device
registers/authenticates itself on a particular service provider's
(i.e. T-mobile, ATT) network.

Is this handshake handled by software or is does the baseband chip
itself (i.e. QCT MSM7201) handle of these processes?

Anyhelp is greatly appreciated!
Thanks in advance
-Junior

--~--~-~--~~~---~--~~
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] Two page form question - saving data from first page

2009-06-14 Thread doubleminus

This is a general architectural question.

I want to offer a user a simple two page form. The first page will
have a few Spinners for the user to select options from. The second
page will have a series of EditTexts for the user to fill in. After
the second page, the user clicks a button to generate a text file
based on the values they have input.

My question is: What is the best way to handle preserving the data
from the spinners on the first page of the form, in order to place
them into the text file?

I feel like the architecture should be something like this:
1. User selects Spinner values on first page and clicks button to move
to next page of form..
2. Spinner values are placed in database
3. User fills in EditTexts on second page. Clicks button to generate
text file.
4. Database is queried for Spinner values, which are added to newly
created text file, then EditText values are added

Does this strategy make sense? Does anyone have advice on a better way
of handling the gathering of two pages of form input then using it to
create a text file?

The user would need to be able to flip back and forth between the form
pages as needed.

--~--~-~--~~~---~--~~
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] Not receiving onDismiss() callback

2009-06-14 Thread Stephen Yu

Hi,
  Here is some sample code that I use the SearchManager to show the
search UI in my activity.  My issue is that the onDismiss() below is
not called.

protected void onCreate(Bundle savedInstanceState)
{
...
mSearchManager = (SearchManager) getSystemService
(Context.SEARCH_SERVICE);
mSearchManager.setOnDismissListener(new
SearchManager.OnDismissListener() {
   public void onDismiss() {
  // Do something
   }
});
mSearchManager.setOnCancelListener(new
SearchManager.OnCancelListener() {
   public void onCancel() {
  // Do something
   }
});
startSearch(null, false, null, true);
}

When the user enter a text in the search UI and start the search, my
onDismiss() method in the SearchManager.OnDismissListener is not
called.
Here is what I found in the SearchManager/SearchDialog/Dialog code
that may be the root cause of the issue.

1) SearchDialog:launchQuerySearch calls
2) Dialog:dismiss() calls
3) mDismissAction.run() (Thread.currentThread() should still be equal
to mUiThread in the if statement in the dismiss())
4) Dialog:dismissDialog() calls  (note SearchDialog:onStop() is called
before Dialog:sendDismissMessage() in the dismissDialog() method)
5) SearchDialog:onStop() calls
6) Dialog:setOnDismissListener(null) which reset the mDismissMessage =
null So, by the time the Dialog:sendDismissMessage() is called in
Dialog:dismissDialog() on step 4, the Message.obtain
(mDismissMessage).sendToTarget() is not called since mDismissMessage
is null and my activity's onDismiss() is not called.

Probably the SearchDialog should have reset the listeners in its
onDestroy() instead of onStop().
Would you please verify if it is the root cause of the issue and if a
proper fix can be implemented?

Thanks,
Stephen

--~--~-~--~~~---~--~~
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] AsyncTask: onPostExecute always after onProgressUpdate?

2009-06-14 Thread Sven Bendel

Hi all!

I'm messing around with the AsyncTask class for a few hours now and
got a little question:

Is onPostExecute() guaranteed to be executed *after* onProgressUpdate
() in any case?

It should be because both are located in the main thread, at least
that's how i understood the reference, and onPostExecute() is always
run after doInBackground() which executes onProgressUpdate() by
invoking publishProgress(), but nevertheless i'm not completely sure
about the above question.

Thanks in advance,
Sven

--~--~-~--~~~---~--~~
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: unable to complete installation of ADT plugin with eclipse

2009-06-14 Thread jimshowalter

Figured it out. I had to throw away my previous eclipse install and
workspace--it was picking up something stale.

On Jun 1, 12:16 pm, Xavier Ducrohet x...@android.com wrote:
 It looks like the Eclipse version you have does not include JDT (Java
 Dev Tools). Make sure you install one of the following distrib:
 Eclipse IDE for Java EE Developers, Eclipse IDE for Java Developers,
 or Eclipse for RCP/Plug-in Developers.

 Xav

 On Mon, Jun 1, 2009 at 8:50 AM, wahib.t...@gmail.com





 wahib.t...@gmail.com wrote:

  hi. As i click 'finish' after selecting the required components of
  android plugin in eclipse the next button remains disabled and the
  error details show this ..

  Current configuration contains errors that are not corrected by the
  requested operation and more errors would be introduced. See details
  for more information.
   - Current configuration problems -
     Resulting configuration does not contain the platform.
   - Configuration problems after the operation -
     Resulting configuration does not contain the platform.
     Android Development Tools (0.9.1.v200905011822-1621) requires plug-
  in org.eclipse.jdt.

  I am unable to solve the problem. Kindly help ... i need to get
  started with android !! :(

  regards,

  wahib

 --
 Xavier Ducrohet
 Android Developer Tools Engineer
 Google Inc.- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
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: connecting internet through Android Emulator

2009-06-14 Thread Giri

How can I ping from emulator..
Is there any console to ping..

I can open internet from my browser but not able to from my emulator.
I tried to change the proxy also...
by adb shell command..
But it still didn't worked...

Can you tell me things in more detail...

On Jun 12, 9:59 pm, Roman roman.baumgaert...@t-mobile.com wrote:
 When your development system is connected to the internet the browser
 in the emulator should be able to access the internet without any
 problems.

 You might want to check whether the data interfaces are correctly set
 up on your emulator (use netstat, ifconfig and ping). For example try
 to ping from the emulator your PC.

 I hope I understood your question correctly ...

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Jun 12, 5:02 am, Shrinivas sinu.go...@gmail.com wrote:



  Hi,

  Does anybody know how to connect internet from Android Emulator
  browser?

  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] Creating new projects in eclipse

2009-06-14 Thread Lordsaibat

When I make a new project the .java file is not generated.
I can run the project, but it does not run in the emulator or
anything.
It did use to work before then it stop working. I tried deleting the
folder and all project files.
After that I reinstalled everything but I am still having problems.
Please help.

--~--~-~--~~~---~--~~
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] Reusing code, multiple external namespaces

2009-06-14 Thread xamar

Hello.

 * In short:

 What's the proper way to share code and layouts between Android
projects?  (I work with Eclipse)

 * Explanation and my problem:

   I'm working in multiple projects that share the same base (an
activity-less Android project). This project have some graphical
classes with its layouts in xml and require both to work properly.
Normally I copy this code and change the R.id definitions on the
project to match the current 'sub-project' but, obviously, this is not
the proper way of reusing code.

  Now I have two Eclipse projects, one of them has the 'base' code
and the other is the current application. I defined a dependency but
it seems that I can refer to the classes from Java, but I can't in
this other project's layouts. I tried declaring its namespace in XML
files, but it doesn't work.

  I can't believe the way is copy+paste and search+replace...


Kind regards,
  Pablo

--~--~-~--~~~---~--~~
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] Clickable Map Markers

2009-06-14 Thread pat

Hi there,

I am developing a map application for Android.

My idea is to have a map with several markers. Whenever the user
clicks on a marker i would like to change to a different activity and
pass certain information.

My question: how can i attach something like onClick event to the
markers on the map?

I would really appreciate your replies.

regards

Patrick

--~--~-~--~~~---~--~~
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: Keyboard Backlight (G1) unavailable in Cupcake 1.5

2009-06-14 Thread George K

Milind's comment x1000

The keyboard backlight issue is so bad that I personally use the
virtual keyboard (even for longer emails) because I can at least see
the keys.

--~--~-~--~~~---~--~~
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 Developer-- San Francisco, CA

2009-06-14 Thread TLASH

 Android Developer

Our client, a leader in sport applications development has an urgent
need for a Android developer.  The ideal candidate will have the
ability to work independently as well as be a part of a dynamic team.
This is a great opportunity for someone with a passion for sports as
you will be responsible for developing Social Networking applications
that will link with the current Java based internet application.  You
will work with designers, sales department staff, and other groups to
drive the full-life cycle development. The ideal individual will have
prior experience developing social networking applications with
Android and have prior experience with Java web based applications.

Responsibilities will include working with designers, sales
department, and other groups to drive project to completion.

*  Minimum of 5 years of Java development experience
*  Minimum 1 year (in industry) experience developing wireless
application using Android
*  Minimum 2 years (in industry) experience developing wireless
applications using Java
*  Internet technologies (JavaScript, JSP, Servlets, IMAP, HTML/XML)
*  Proven ability to turn ideas and concepts into carefully designed
and well-authored code
*  Stellar problem solving skills
*  Strong Communication skills: verbal and written
*  Solid understanding of performance analysis and software
optimization
*  Strong team player, good work ethics, commitment to quality and
team work


--~--~-~--~~~---~--~~
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: Conversion to Davik failed with error 1

2009-06-14 Thread jimshowalter

That's what I had to do as well.

The sequence of steps to reproduce the error is File - New - Project
- Android Project, check 1.5 or 1.5 with google apps - fill in the
rest of the fields - build.

For whatever reason, it doesn't like the R.java file.

Deleting the R.java file and rebuilding works, and ends with
[2009-06-14 13:31:34 - Foo] R.java was removed! Recreating R.java!.
When it recreates the R.java file, it's happy.

I think the Android Eclipse plug-in is initializing projects with
defective R.java files.

On May 30, 1:19 pm, Luis Alberto Pérez García lui...@gmail.com
wrote:
 I know nothing about 1.1, I've started on 1.5 but I've had that problem
 every time I make a clean on my project (generated on 1.5 from
 eclipse) to solve it I just delete (from eclipse itself) the R.java file
 (on gen/blabla/blabla...) and then build the project.

 After doing that everything works fine, give it a try and tell us ;)

 Luis.

 El sáb, 30-05-2009 a las 10:08 -0700, Francois escribió:

  Hello,

  I have searched the forums, but none of the solutions proposed cured
  my problem.

  Since I have upgraded to version 1.5 of the dev kit (and updated my
  Eclipse plugin), I cannot compile my project.
  I get this error, followed by :

  Project 'RuntimeAndroid' is missing required source folder 'gen'
  The project cannot be built until build errors are resolved

  This is very strange, as after the build (which had errors) I HAVE a
  gen folder in my project! And the subdirectories of this gen folder
  have been created (com\clickteam\runtime) and a R.java file is present
  in the folder with a correct content!

  Something is definitively going wrong here.

  Can you help me? I am stuck...

  Francois
--~--~-~--~~~---~--~~
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] missing standard features

2009-06-14 Thread sonisoe

like to have these which are standard on other devices i believe
many of us use these more often than not
- phone as modem (iphone's finally catching up)
- send + receive vCard via sms
- group contacts
- video call
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] Upgrading to sdk 1.5

2009-06-14 Thread jared

I am having an issue when upgrading to 1.5.I am good on all steps
listed here:

http://developer.android.com/sdk/1.5_r2/upgrading.html


but I run into problems when creating the AVD. It says do this:
Open a command-line (e.g.,Command Prompt application on Windows, or
Terminal on Mac/Linux) and navigate to your SDK package's tools/
directory. First, you need to select a Deployment Target. To view
available targets, execute:
android list targets

From the terminal, I navigate into the directory of the SDK on a Mac
and I call the command listed above:
myMac:Mobile jaredfurgal$ cd android-sdk-mac_x86-1.5_r2
myMac:android-sdk-mac_x86-1.5_r2 jaredfurgal$ cd tools
myMac:tools jaredfurgal$ android list targets
-bash: android: command not found

when I list the files in the directory, I see this:
Jet android dmtracedump hierarchyviewer mksdcard
NOTICE.txt  apkbuilder  draw9patch  hprof-conv  sqlite3
adb ddmsemulatorlib traceview


clearly andoid is in the list, so why would I not be able to execute
it? Is there something else I am missing?

--~--~-~--~~~---~--~~
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 a fast way to check intersections of Path?

2009-06-14 Thread 93-interactive

Hello,

i have two android.graphics.Path objects and i want to check if they
intersect.

The only way i found out so far, is to build regions from them and
then go through every pixel with

if ((region1.contains(x,y))  (region2.contains(x,y))) {
 // intersection
}

but it is unbelievable slow.

is there a faster way to do 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] How to get intent results?

2009-06-14 Thread fabbx

i'm trying to allow user to select an picture to upload to my website
but i don't understand how i can get the choice of the user

i'm here :

public void uploadPhoto() {
setContentView(R.layout.index);
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType(image/*);
startActivity(Intent.createChooser(intent, Select picture));
}

I suppose that i have to override a method but i don't find anything
if documentation..


thx 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: why there's no boot.img in Android-1.5

2009-06-14 Thread abranzyck


Sorry if this is an stupid question, this is actually my first post
here ...
Why does this need to be moved to porting, because it is a G1?
I have the Google Developer Phone 1 and I have exactly the same
problem,
don't I need this boot.img to load the Android 1.5 I have built into
the phone?

On Apr 23, 6:43 pm, Dianne Hackborn hack...@android.com wrote:
 Please move this to android-porting.





 On Thu, Apr 23, 2009 at 2:17 AM, david 1 david...@gmail.com wrote:
  The kernel is lost. I traced the making log, and found boot image is
  generated based on ramdisk image  kernel. So, boot image is not created
  successfully. Then I 'make ARCH=arm CROSS_COMPILE=arm-eabi-
  goldfish_defconfig  make'  and got a zImage. Then I used it as 'kernel' to
  generate a boot.img and flashed it to G1. Finally, the G1 can not boot up at
  all. I miss something else? Or zImage can't be used as a kernel for G1 at
  all?  Any hint is appreciated.

  david

  2009/4/23 david 1 david...@gmail.com

  Hi All,

  I've built all android-1.5. But except for ramdisk.img, userdata.img 
  system.img, I did not find boot.img. Why? Ramdisk.img includes or replaces
  it? Thx.

  David

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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] How to catch a touch event outside my view?

2009-06-14 Thread matteoli

Hi,

I created my own view, which shows a box in front of the current
activity. This box disappers after a few seconds. Now I'd like to hide
it, if the user touches outside of the box. This should work like the
implemented in the options menu. I tried a bit with the focus, but
this doesn't work well, if I have list items behind the box.

Has anybody an idea, how this can be solved?

Thanks,
oliver

--~--~-~--~~~---~--~~
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] New Projects

2009-06-14 Thread Lordsaibat

When I make a new project the .java file is not generated.
I can run the project, but it does not run in the emulator or
anything.
It did use to work before then it stop working. I tried deleting the
folder and all project files.
After that I reinstalled everything but I am still having problems.
Please help.

--~--~-~--~~~---~--~~
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] Photos listing upload

2009-06-14 Thread fabbx

Hi,
I need to upload a photo to my website from android application. In my
application i have a form but i don't understand how i can choose
photo from the filesystem to upload it after by a http post request.
I think that i can MediaStore but how...

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] Applying effects to sounds

2009-06-14 Thread Reuben Sutton
Hi,
I want to add effects to the sound output from my phone, such as adding a
flange effect or similar.
Any suggestions on how to do this?
Thanks,
Reuben

--~--~-~--~~~---~--~~
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] Can't get my hello world application to run on the emulater!

2009-06-14 Thread Fahd

Hi All,

I followed all the instructions to install the android SDK and
configured the Eclipse
environment.

I was then doing the Hello World example. The problem is that when I
run the following code:

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   TextView tv = new TextView(this);
   tv.setText(Hello, Android);
   setContentView(tv);
   }
}


the emulator starts and after some time, when it fully loads, it
takes
me to the android desktop in the mobile. However my helloword
application never appears! I waited quite a bit after it was fully
loaded but still nothing. I don't get the blackscreen with Hello,
Android text on it.

I do recall the following errors that occurred when I created the
HelloAndroid project as per example's instructions:

[2009-06-14 01:49:17 - HelloAndroid] no classfiles specified
[2009-06-14 01:49:17 - HelloAndroid] Conversion to Dalvik format
failed with error 1


Can anyone help me out please?
Fahd
--~--~-~--~~~---~--~~
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] Open new window by pressing button.

2009-06-14 Thread Dan Lee

Hi

Now I faced opening new window problem.
I've learned how to make custom window from below link
http://developer.android.com/guide/topics/ui/dialogs.html#ShowingADialog

But I open it by press button from main window.
Also that window can store some information to DB too.


Thanks in advance
Dan

--~--~-~--~~~---~--~~
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] A2DP bluetooth e riproduzione a scatti (music cut)

2009-06-14 Thread azanutta

 an A2DP bug of managing the bluetooth by android!
i've got the jabra bluetooth headset to listen  the music wirelessly
but i've got the same problem, a mute jump of the song that in worste
cases are one every 2 seconds!!
it maybe depends on how much  other android processes drain the phone
resources, because i've seen that if i use simultaneoussly also the
GPS with maps or mytracks, and the browser over 3g... the music
becomes... well ... imbarassing...
hope that the bug will fixed soon =(

--~--~-~--~~~---~--~~
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: AsyncTask: onPostExecute always after onProgressUpdate?

2009-06-14 Thread Sven Bendel

Okay, I found out, that it is like I thought - onPostExecute() is
always run after the last execution of onProgressUpdate().

On 12 Jun., 20:54, Sven Bendel ben...@cs.uni-bonn.de wrote:
 Hi all!

 I'm messing around with the AsyncTask class for a few hours now and
 got a little question:

 Is onPostExecute() guaranteed to be executed *after* onProgressUpdate
 () in any case?

 It should be because both are located in the main thread, at least
 that's how i understood the reference, and onPostExecute() is always
 run after doInBackground() which executes onProgressUpdate() by
 invoking publishProgress(), but nevertheless i'm not completely sure
 about the above question.

 Thanks in advance,
 Sven
--~--~-~--~~~---~--~~
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: Debugging sample app Snake

2009-06-14 Thread grndvl1

Actually I found the answer, so anyone with the same issues may find
this useful. My error was caused by the localhost not being defined
in:

C:\WINDOWS\system32\drivers\etc

And should contain this line :
127.0.0.1 localhost

not what was there which was wierd, never saw this before;
::1localhost

Putting this line back allow me to debug.

Hope this helps.

Cheers,

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



[android-developers] Re: How to get intent results?

2009-06-14 Thread Brad Gies


Look up startActivityForResult





Sincerely,
 
Brad Gies
 
 
-
Brad Gies
27415 Greenfield Rd, # 2,
Southfield, MI, USA
48076
www.bgies.com  www.truckerphone.com 
www.EDI-Easy.com  www.EDI-Simple.com
-
 
Moderation in everything, including abstinence
-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of fabbx
Sent: Sunday, June 14, 2009 1:08 PM
To: Android Developers
Subject: [android-developers] How to get intent results?


i'm trying to allow user to select an picture to upload to my website
but i don't understand how i can get the choice of the user

i'm here :

public void uploadPhoto() {
setContentView(R.layout.index);
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType(image/*);
startActivity(Intent.createChooser(intent, Select
picture));
}

I suppose that i have to override a method but i don't find anything
if documentation..


thx 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: Wake Locks and Services

2009-06-14 Thread Brad Gies

W1 is not defined in onDestroy. 

Try this:

public class WakeLockService extends Service {

PowerManager.WakeLock wl;  // NOTE CHANGE HERE

@Override
public IBinder onBind(Intent arg0) {
// TODO Auto-generated method stub
return null;
}

public void onCreate() {
PowerManager pm = (PowerManager) getSystemService
(Context.POWER_SERVICE);
wl = pm.newWakeLock (PowerManager.FULL_WAKE_LOCK, My Tag);
//NOTE CHANGE HERE
wl.acquire();
}

public void onDestroy() {
wl.release();
}



Sincerely,
 
Brad Gies
 
 
-
Brad Gies
27415 Greenfield Rd, # 2,
Southfield, MI, USA
48076
www.bgies.com  www.truckerphone.com 
www.EDI-Easy.com  www.EDI-Simple.com
-
 
Moderation in everything, including abstinence

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Thomas Riley
Sent: Saturday, June 13, 2009 6:05 PM
To: Android Developers
Subject: [android-developers] Wake Locks and Services


I need to use a wakelock to hold the screen active while its required.
I was recommended to use a service which I have been trying but on the
onDestroy I am getting wl cannot be resolved. Code below:

public class WakeLockService extends Service {

@Override
public IBinder onBind(Intent arg0) {
// TODO Auto-generated method stub
return null;
}

public void onCreate() {
PowerManager pm = (PowerManager) getSystemService
(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock
(PowerManager.FULL_WAKE_LOCK, My Tag);
wl.acquire();
}

public void onDestroy() {
wl.release();
}

}



--~--~-~--~~~---~--~~
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 get intent results?

2009-06-14 Thread Marco Nelissen

On Sun, Jun 14, 2009 at 10:08 AM, fabbxfab.creatix...@gmail.com wrote:

 i'm trying to allow user to select an picture to upload to my website
 but i don't understand how i can get the choice of the user

 i'm here :

        public void uploadPhoto() {
                setContentView(R.layout.index);
                Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
                intent.setType(image/*);
                startActivity(Intent.createChooser(intent, Select picture));

Use this instead:
http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent,%20int)

--~--~-~--~~~---~--~~
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: A2DP bluetooth e riproduzione a scatti (music cut)

2009-06-14 Thread Marco Nelissen

On Sat, Jun 13, 2009 at 6:35 AM, azanuttaazanu...@gmail.com wrote:

  an A2DP bug of managing the bluetooth by android!
 i've got the jabra bluetooth headset to listen  the music wirelessly
 but i've got the same problem, a mute jump of the song that in worste
 cases are one every 2 seconds!!
 it maybe depends on how much  other android processes drain the phone
 resources, because i've seen that if i use simultaneoussly also the
 GPS with maps or mytracks, and the browser over 3g... the music
 becomes... well ... imbarassing...
 hope that the bug will fixed soon =(

http://b.android.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] @ Android-Dev-Team: Request for AsyncTask.getThread() method

2009-06-14 Thread Sven Bendel

Hi dear Android-Dev-Team!

As I'm working with AsyncTasks for a few days now and enjoyed how easy
you can make use of them, I missed something:

Would it be possible to give us access to the Background-Thread being
created by AsyncTask objects so we can join it, let it sleep etc.?

Regards,
Sven
--~--~-~--~~~---~--~~
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: @ Android-Dev-Team: Request for AsyncTask.getThread() method

2009-06-14 Thread Streets Of Boston

You could call setAsyncThread(Thread.currentThread()) inside/during
the AsyncTask's doInBackground method, likely at the start of the
doInBackground.

You'd create the public and synchronized methods setAsyncThread and
getAsyncThread yourself as part of the AsyncTask's subcllass.

On Jun 14, 7:14 pm, Sven Bendel ben...@cs.uni-bonn.de wrote:
 Hi dear Android-Dev-Team!

 As I'm working with AsyncTasks for a few days now and enjoyed how easy
 you can make use of them, I missed something:

 Would it be possible to give us access to the Background-Thread being
 created by AsyncTask objects so we can join it, let it sleep etc.?

 Regards,
 Sven
--~--~-~--~~~---~--~~
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: Video Capturing

2009-06-14 Thread Ahsanul Karim
can you please help to capture video... below is my code



public class PhotoActivity extends Activity {
   private Preview mPreview;
   MediaRecorder recorder;

   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);

   mPreview = new Preview(this);
   setContentView(mPreview);
   }

   @Override
   public boolean onCreateOptionsMenu(Menu menu) {
   MenuItem capture = menu.add(Capture);
   MenuItem save = menu.add(Save);
   MenuItem cont = menu.add(Continue to Mail);
   MenuItem exit = menu.add(Exit);

   return super.onCreateOptionsMenu(menu);
   }

   public boolean onOptionsItemSelected(MenuItem item) {
   if (item.getTitle().equals(Capture)) {
   recorder = new MediaRecorder();

   // recorder.setCamera(Camera.open());

   //
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);

 recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);

 recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
   //
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
   //
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);


 recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
   recorder.setOutputFile(/sdcard/test.3gp);
   recorder.setVideoSize(100, 100);
   recorder.setVideoFrameRate(15);
   try{
   SurfaceView sv = (SurfaceView)
findViewById(R.id.SurfaceView01);
   SurfaceHolder holder = sv.getHolder();


 recorder.setPreviewDisplay((Surface)holder.getSurface());
   }catch(Exception e)
   {
   e.printStackTrace();
   }
   // new Thread() {
   // public void run() {
   Log.d(Has Entered here:, Starting video);
   if (recorder != null) {
   try {
   recorder.prepare();
   } catch (IllegalStateException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (IOException e) {
   // TODO Auto-generated catch block




 Sent at 5:56 AM on Monday



On Wed, Mar 11, 2009 at 11:10 PM, Mark Murphy mmur...@commonsware.comwrote:


 mobilek...@googlemail.com wrote:
  Is video capturing currently supported in the latest SDK?

 Not yet. An upcoming Android release and SDK (code named cupcake)
 should have video recording, as I understand it.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Published!

 



-- 
Ahsanul Karim Romel
phone:+8801731541394

--~--~-~--~~~---~--~~
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: Set the theme from the application: the background doesn't change

2009-06-14 Thread mathias axelsson
Thank you!! moving super.onCreate did the trick! super.onCreate seems to
call getTheme which initiates it(?).




On Thu, May 21, 2009 at 9:01 PM, quanghuytruongd...@gmail.com 
quanghuytruongd...@gmail.com wrote:


 You can try to put setTheme() before super.onCreate() -- your
 background will change.

 If you want to change your background by pressing a button, get the
 root layout object (LinearLayout, TableLayout...), and call set
 Background from Drawable, res.

 But I still don't know how to change the text color by pressing a
 button.


 On May 21, 2:53 pm, quanghuytruongd...@gmail.com
 quanghuytruongd...@gmail.com wrote:
  Hi all,
 
  I am trying to change my application theme from java code (For ex:
  press a button, and the whole application will apply a new Theme: new
  background, new text color).
 
  But I don't know why setTheme(myCustomTheme) only apply my
  android:textColor item, it doesn't apply the item
  android:windowBackground. (I call setTheme() before line setContentView
  () like many tutorials)
 
  Everything is fine if I do change in AndroidManifest application
  android:theme=@style/myCustomTheme.
 
  Please help me if you have any solution for my problem.
 
  Look forward to hearing from you!!!
 
  PS: myCustomTheme:
 
  style name=Theme.App parent=android:Theme
  item name=android:windowBackground@drawable/bgbb/item
  item name=android:textColor#ff00/item
  /style
 


--~--~-~--~~~---~--~~
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] no classfiles specified and Conversion to Dalvik format failed with error 1

2009-06-14 Thread xerberus

Hi Guys,

I have a working(Released) project that needs some updating. The
Project was created with SDK 1.1 on Windows and Ecplise 3.4.
A couple months ago i moved away from Windows to Mac and installed all
tools on the mac including Android SDK 1.1. Everything was working
fine at that time.

I never bothered compiling the project against SDK 1.5 as the program
was running fine on a 1.5 Device.
But now i need to do some changes and installed SDK 1.5, following the
installation guideline (http://developer.android.com/sdk/1.5_r1/
upgrading.html#UpdateYourProjects).

So I build my project against  SDK 1.1 (as suggested) and failed with
the following error messages :
- no classfiles specified
- Conversion to Dalvik format failed with error 1

I receive the same error if I compile with SDK 1.5 (clean + build).

First i thought there is something wrong with my code but could not
find anything.
After that I tried the example JetBoy and received the same error.
Using Fix Project Properties was without effect for booth projects.

I am kind of clueless right know and happy for any suggestion





--~--~-~--~~~---~--~~
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 often are download stats updated for apps in Android Market

2009-06-14 Thread pawpaw17

Guys,

Does anyone know how often google updates your download count
for your app in your developer section of the Android Market site? It
doesn't
appear to be continuous. Maybe just a few times (one time) per day?
I'm refering to the section that shows total downloads and active
downloads

Thanks and best to all!

pawpaw17
--~--~-~--~~~---~--~~
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: connecting internet through Android Emulator

2009-06-14 Thread Roman

http://groups.google.com/group/android-beginners/browse_thread/thread/0ababd5e40398e49/fbdd321643bf48e1

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Jun 14, 5:17 am, Giri sesha_giri_n...@yahoo.co.in wrote:
 How can I ping from emulator..
 Is there any console to ping..

 I can open internet from my browser but not able to from my emulator.
 I tried to change the proxy also...
 by adb shell command..
 But it still didn't worked...

 Can you tell me things in more detail...

 On Jun 12, 9:59 pm, Roman roman.baumgaert...@t-mobile.com wrote:

  When your development system is connected to the internet the browser
  in the emulator should be able to access the internet without any
  problems.

  You might want to check whether the data interfaces are correctly set
  up on your emulator (use netstat, ifconfig and ping). For example try
  to ping from the emulator your PC.

  I hope I understood your question correctly ...

  --
  Roman Baumgaertner
  Sr. SW Engineer-OSDC
  ·T· · ·Mobile· stick together
  The views, opinions and statements in this email are those of the
  author solely in their individual capacity, and do not necessarily
  represent those of T-Mobile USA, Inc.

  On Jun 12, 5:02 am, Shrinivas sinu.go...@gmail.com wrote:

   Hi,

   Does anybody know how to connect internet from Android Emulator
   browser?

   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] why my getCheckedRadioButtonId() always return a wrong value.

2009-06-14 Thread hencechen...@gmail.com

btnok.setOnClickListener(new View.OnClickListener(){

public void onClick(View v) {
// TODO Auto-generated method stub
int checkedId=group.getCheckedRadioButtonId();
scencechange(checkedId);
}

});


}

//情景切换
private void scencechange(int checkId){
Intent intent=new Intent(Ring.this,AlarmReceiver.class);
PendingIntent pi=PendingIntent.getBroadcast(Ring.this,0,intent,
0);
intent.putExtra(checkedId, checkId);
PendingIntent alarmIntent = PendingIntent.getBroadcast(this,
0,
intent,
0);
alarms.set(AlarmManager.RTC_WAKEUP, getTime(), alarmIntent);
}

public class AlarmReceiver extends BroadcastReceiver{

@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
AudioManager audio = (AudioManager) context.getSystemService
(Context.AUDIO_SERVICE);

//通过Intent传递的附加信息checkedId来判断需要改变的情景
int checkedId=intent.getIntExtra(checkedId,0);

switch(checkedId){
case R.id.ring:ring(audio);break;
case R.id.ring_vibrate:ring_vibrate(audio);break;
case R.id.silence:silence(audio);break;
default:vibrate(audio);break;
}

}


--~--~-~--~~~---~--~~
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 who started(bind) service?

2009-06-14 Thread ryuk...@gmail.com

Hi All~!

How can I know who started(bind) service?

I already check 'RunningServiceInfo()' but I couldn't find.

Could you help 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: Movie.decodeStream(is) is returning NULL after updating to 1.5 SDK

2009-06-14 Thread Daz

I'm having the same problem, trying to follow the information to get
animated gifs working, and now this!

Any idea on a fix? I can't see where the difference to the source was
made.

Movie.Decodestream is a native method, written in C++, but I can't see
in any notable differences in the code versions available on GIT.

On May 28, 4:49 pm, Marco Nelissen marc...@android.com wrote:
 On Thu, May 28, 2009 at 8:17 AM, Streets Of Boston
 flyingdutc...@gmail.comwrote:



  Judging from your resource name (gif_animation), it looks like you try
  to open an image (gif image) as a movie... If it's not a movie/video,
  i'm not entirely surprised that opening it as a movie fails.

  (an animated gif is not a movie)

 It is as far as android.graphics.Movie is concerned. Or at least it used to
 be. Not sure why it's not working anymore.
--~--~-~--~~~---~--~~
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 I know who started(bind) service?

2009-06-14 Thread Mark Murphy



 Hi All~!

 How can I know who started(bind) service?

 I already check 'RunningServiceInfo()' but I couldn't find.

Option #1: pass an extra in the Intent that identifies who started it

Option #2: define a callback/listener mechanism in the service, and have
clients of the service register themselves

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
You received this message because 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 draw text on a bitmap

2009-06-14 Thread 楊健

Hi,everybody!
Can i draw text on a bitmap?
I cannot find any API support 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] Huge quert and sorting update of content provider

2009-06-14 Thread aby

Hi,
I implement ProviderTestCase2 to test my content provider functions.
And when I insert huge number  (about 1) of data,  the insert,
delete and update functions are fine. But the query function will have
SQLiteDiskIOOException: disk I/O error. And the data number limit of
causing the exception is about 5000. Is it bug of content provider?

And there is another problem. Each of my data has different priority.
When I sort my data by priority, its no problem. But when I change
priority of some data and then sorting again. Sometimes I will get
incorrect result  and I'm sure its not logical problem of test
program. Does anyone meet the same problem?

Any suggestion is appreciative.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: How to draw text on a bitmap

2009-06-14 Thread Balwinder Kaur (T-Mobile)

Here is one way to do this.

Canvas c = new Canvas (yourbitmap);
c.drawText(String text,...); // There are more than one to choose
from.

http://developer.android.com/reference/android/graphics/Canvas.html

Hope this helps,
Balwinder Kaur
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Jun 14, 6:40 pm, 楊健 y...@cycomtech.co.jp wrote:
 Hi,everybody!
 Can i draw text on a bitmap?
 I cannot find any API support 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] Keeping track of database row ID's

2009-06-14 Thread Hamy

Hi all,

I am still having some trouble understanding how I am supposed to
remove rows from my database. Most of the examples I have found use
ContentProviders, which I do not want to publish for my application.

For the other examples, they typically have something like this :

// Remove a task based on its index
public boolean removeTask(long _rowIndex) {
  return db.delete(DATABASE_TABLE, KEY_ID + “=” + _rowIndex, null) 
0;
}

which works well, but it means that I would need a Task object to have
an id associated with it. Is this the standard for working with a
database intended for a private application only? To make your objects
store the row ids?

Thanks,
Hamy
--~--~-~--~~~---~--~~
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 cancle an AlarmManager?

2009-06-14 Thread hencechen...@gmail.com

alarms.set(AlarmManager.RTC_WAKEUP, getTime(), alarmIntent);

i have set a alarm,but now i want to delete it?
how can i make it.

Thank you for your helping.
 hence
--~--~-~--~~~---~--~~
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 draw text on a bitmap

2009-06-14 Thread youken

Thanks a lot!

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Balwinder Kaur
(T-Mobile)
Sent: Monday, June 15, 2009 10:56 AM
To: Android Developers
Subject: [android-developers] Re: How to draw text on a bitmap


Here is one way to do this.

Canvas c = new Canvas (yourbitmap);
c.drawText(String text,...); // There are more than one to choose
from.

http://developer.android.com/reference/android/graphics/Canvas.html

Hope this helps,
Balwinder Kaur
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Jun 14, 6:40 pm, 楊健 y...@cycomtech.co.jp wrote:
 Hi,everybody!
 Can i draw text on a bitmap?
 I cannot find any API support 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] Geocoder.getFromLocation seem to be blocking the UI thread

2009-06-14 Thread Agus
Hello,

The Geocoder.getFromLocation(double,double) method seems to be blocking the
UI thread even though I created the instance in another thread and then call
the method getFromLocation from a different thread.

any help is appreciated.

Agus.

--~--~-~--~~~---~--~~
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 Mute/UnMute Only my Application's Sound.

2009-06-14 Thread Freshman

Hi guys,

In my application i need to mute and unmute sound playing by my
application only.
currently i am using AudioManager.setStreamMute
(AudioManager.STREAM_MUSIC, false) for UnMute
and AudioManager.setStreamMute(AudioManager.STREAM_MUSIC, true) for
Mute.
but it mutes whole device's sound (music player playing in background
also)
i need to mute my applications sound only.

any help/info would be greatly appriciated.

thanks in advance.
Freshman
--~--~-~--~~~---~--~~
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: Keeping track of database row ID's

2009-06-14 Thread nEx.Software

Content Providers don't have to be publicly accessible. That being
said, I've used Content Providers, Cursors, and Cached Data Objects to
accomplish this. Really just depends how you want to do it, I think.

I personally like cached data objects because I make a lot of changes
before I want/need to update the database. I also store data to the
SD, so I try to limit my data access for that reason.

On Jun 14, 7:16 pm, Hamy hamilt...@gmail.com wrote:
 Hi all,

 I am still having some trouble understanding how I am supposed to
 remove rows from my database. Most of the examples I have found use
 ContentProviders, which I do not want to publish for my application.

 For the other examples, they typically have something like this :

 // Remove a task based on its index
 public boolean removeTask(long _rowIndex) {
   return db.delete(DATABASE_TABLE, KEY_ID + “=” + _rowIndex, null) 
 0;

 }

 which works well, but it means that I would need a Task object to have
 an id associated with it. Is this the standard for working with a
 database intended for a private application only? To make your objects
 store the row ids?

 Thanks,
 Hamy
--~--~-~--~~~---~--~~
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] Feature request / Defect report declined with no comment

2009-06-14 Thread Kerry

I just posted a defect / feature request and it was declined without
comment. Can anybody explain to me why this was declined without an
explanation?

http://code.google.com/p/android/issues/detail?id=2991

I took the time to provide feedback as a user of the android api,
based on some discussion in the developer group. I am not the only
developer who has encountered this deficiency in the api. I think I
explained the deficiency clearly. And I think it is a professional
courtesy to provide an explanation. If it is a duplicate, please say
so. If I am in error and this is not a problem because of an oversight
on my part, I think that would be helpful to know.

If the attitude of the project owners is that the api is good enough.
Maybe we could have a short conversation about that.

As it stands now, I have no insight into this issue or why my defect
was declined. Was it rejected for good reason or an arrogant developer
who like to hit the reject button?

-Kerry
--~--~-~--~~~---~--~~
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: Feature request / Defect report declined with no comment

2009-06-14 Thread Romain Guy

It is very easy to handle this from the application side and a
selection event is a selection event. There should be no distinction
between the first one and other events.

On Sun, Jun 14, 2009 at 9:10 PM, Kerrykerry.todyr...@gmail.com wrote:

 I just posted a defect / feature request and it was declined without
 comment. Can anybody explain to me why this was declined without an
 explanation?

 http://code.google.com/p/android/issues/detail?id=2991

 I took the time to provide feedback as a user of the android api,
 based on some discussion in the developer group. I am not the only
 developer who has encountered this deficiency in the api. I think I
 explained the deficiency clearly. And I think it is a professional
 courtesy to provide an explanation. If it is a duplicate, please say
 so. If I am in error and this is not a problem because of an oversight
 on my part, I think that would be helpful to know.

 If the attitude of the project owners is that the api is good enough.
 Maybe we could have a short conversation about that.

 As it stands now, I have no insight into this issue or why my defect
 was declined. Was it rejected for good reason or an arrogant developer
 who like to hit the reject button?

 -Kerry
 




-- 
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] handling errors in onCreateDialog(..)

2009-06-14 Thread Spencer Riddering

I've implemented the onCreateDialog(..) method in my Activity and I'm
working on the error handling.

I wrap all my code in a try-catch so I can handle any errors. This
works great except that after handling an error I must still return a
value from onCreateDialog(..), either a Dialog instance or null. Since
an error has occurred I have no Dialog instance to return so I return
null.

public Dialog onCreateDialog(int id){
Dialog dialog = null;
try{
// Exception thrown here.
dialog = 
}catch(Exception e){
// Error handled here.
dialog = null;  // - What do I do here? -
}
}

The problem is that returning null always results in Android popping
up a Sorry dialog error message. Like I said before, I already
handle my own errors so this additional Android Sorry dialog pops up
at the same time as my dialog. It's unnecessary and confusing to the
user. There appears to be no way to gracefully return from
onCreateDialog(..) after an error occurs.

I submitted the issue here: 
http://code.google.com/p/android/issues/detail?id=2985
but Romainguy just declined it. He didn't leave a comment so I don't
know why.

My question:
  Why must returning an null result in an error?
  Why can't nulls just be ignored?



Here is my sample code demonstrating how returning null causes an
error both when the dialog is first created and immediately after a
configuration change.
http://android.googlecode.com/issues/attachment?aid=-2284006177336845437name=CreateDialogHandleNull.java


--~--~-~--~~~---~--~~
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 receive call and play media file

2009-06-14 Thread Honest

Hi,

I want to develop application in which i want to listen call and play
medial file so caller can listen it. Can some one tell me how can i do
it ? any code snippt or link of resource.




--~--~-~--~~~---~--~~
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] Marquee

2009-06-14 Thread Android Users
Hi All,

I know that there is marquee built in to 1.5 . But that is only on focus of
the widget.
Is there a way we can implement it otherwise? ie.. even without focus for a
text view?

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: Can i set a different Browser Homepage through code?

2009-06-14 Thread Android Users
Thank you.

On Sat, Jun 13, 2009 at 7:15 AM, Dianne Hackborn hack...@android.comwrote:

 I am almost positive you can't.  I sure hope you can't. :)


 On Fri, Jun 12, 2009 at 5:15 AM, Android Users androidmai...@gmail.comwrote:

 Hi all,
 Can i set a different Browser Homepage through code? If so then how? Need
 info about this urgently.

 Thanks in advance.





 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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] Re: handling errors in onCreateDialog(..)

2009-06-14 Thread Romain Guy

Hi,

Oops, sorry. I closed this bug by mistake, I reopened it, thanks for
letting me know!

As for what you want to do, why exactly are you getting an exception
in onCreateDialog()? All this method should be doing is instanciate a
Dialog and its Views, nothing more. Populating the dialog should
happen in onPrepareDialog().

On Sun, Jun 14, 2009 at 9:57 PM, Spencer
Ridderingponderyon...@gmail.com wrote:

 I've implemented the onCreateDialog(..) method in my Activity and I'm
 working on the error handling.

 I wrap all my code in a try-catch so I can handle any errors. This
 works great except that after handling an error I must still return a
 value from onCreateDialog(..), either a Dialog instance or null. Since
 an error has occurred I have no Dialog instance to return so I return
 null.

 public Dialog onCreateDialog(int id){
    Dialog dialog = null;
    try{
        // Exception thrown here.
        dialog = 
    }catch(Exception e){
        // Error handled here.
        dialog = null;  // - What do I do here? -
    }
 }

 The problem is that returning null always results in Android popping
 up a Sorry dialog error message. Like I said before, I already
 handle my own errors so this additional Android Sorry dialog pops up
 at the same time as my dialog. It's unnecessary and confusing to the
 user. There appears to be no way to gracefully return from
 onCreateDialog(..) after an error occurs.

 I submitted the issue here: 
 http://code.google.com/p/android/issues/detail?id=2985
 but Romainguy just declined it. He didn't leave a comment so I don't
 know why.

 My question:
  Why must returning an null result in an error?
  Why can't nulls just be ignored?



 Here is my sample code demonstrating how returning null causes an
 error both when the dialog is first created and immediately after a
 configuration change.
 http://android.googlecode.com/issues/attachment?aid=-2284006177336845437name=CreateDialogHandleNull.java


 




-- 
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] Re: Marquee

2009-06-14 Thread Romain Guy

TextView.setSelected(true).

On Sun, Jun 14, 2009 at 10:16 PM, Android Usersandroidmai...@gmail.com wrote:
 Hi All,

 I know that there is marquee built in to 1.5 . But that is only on focus of
 the widget.
 Is there a way we can implement it otherwise? ie.. even without focus for a
 text view?

 Thanks.

 




-- 
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] Re: Missing application icon in All Application drawer

2009-06-14 Thread Lucius Fox

On Sat, Jun 13, 2009 at 2:23 PM, Mark Murphymmur...@commonsware.com wrote:

 Lucius Fox wrote:
 Can someone please help me understanding why in my emulator, i can
 * in my settings- manage application, see an entry for an application there
 * but i cant' find the icon for launching that in All Application.

 Can you please tell me how can I make my application launches on the 
 emulator?

 You need one or more activities with the following intent-filter in
 their manifest:

 intent-filter
        action android:name=android.intent.action.MAIN /
        category android:name=android.intent.category.LAUNCHER /
 /intent-filter


I am asking this because I am trying to get IM application for
'cupcake' branch emulator.
I did a 'make -j4' and then 'make IM' but the IM is not in All app,
but i see that in Settings-manage application.

Here is the AndroidManifest.xml, It has action.MAIN:

manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.android.im android:sharedUserId=android.uid.im
android:sharedUserLabel=@string/perm_label

uses-permission
android:name=com.android.providers.im.permission.READ_ONLY /
uses-permission
android:name=com.android.providers.im.permission.WRITE_ONLY /
uses-permission android:name=android.permission.WAKE_LOCK /
uses-permission android:name=android.permission.VIBRATE /
uses-permission android:name=android.permission.INTERNET /
uses-permission android:name=android.permission.SEND_SMS /
uses-permission android:name=android.permission.RECEIVE_SMS /
uses-permission android:name=android.permission.READ_CONTACTS /
uses-permission android:name=android.permission.READ_PHONE_STATE /
uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED /
uses-permission android:name=com.android.im.permission.IM_SERVICE /

permission android:name=com.android.im.permission.IM_SERVICE
android:permissionGroup=android.permission-group.MESSAGES
android:protectionLevel=dangerous
android:label=@string/perm_label
android:description=@string/perm_desc /

application android:name=.app.ImApp
 android:label=@string/im_label
 android:icon=@drawable/ic_launcher_im
 android:taskAffinity=android.task.im
uses-library android:name=com.android.im.plugin /
!-- TODO: Remove dependency of application on the test runner
 (android.test) library. --
uses-library android:name=android.test.runner /

service android:name=.app.FrontDoorPlugin
intent-filter
action android:name=android.im.plugin /
/intent-filter
/service

service android:name=.service.RemoteImService
android:process=android.process.im
android:exported=true
android:permission=com.android.im.permission.IM_SERVICE
intent-filter
action android:name=com.android.im.IRemoteImService /
action android:name=com.android.im.SERVICE /
/intent-filter
/service

activity android:name=.app.ChooseAccountActivity
android:theme=@android:style/Theme.NoDisplay
intent-filter
action android:name=android.intent.action.MAIN /
action android:name=android.intent.action.VIEW /
category android:name=android.intent.category.DEFAULT /
/intent-filter
/activity

activity android:name=.app.ImUrlActivity 
intent-filter
action android:name=android.intent.action.SENDTO /
category android:name=android.intent.category.DEFAULT /
category android:name=com.android.im.category.AIM /
category android:name=com.android.im.category.MSN /
category android:name=com.android.im.category.YAHOO /
data android:scheme=im /
/intent-filter

intent-filter
action android:name=android.intent.action.SENDTO /
category android:name=android.intent.category.DEFAULT /
data android:scheme=imto android:host=aim/
data android:scheme=imto android:host=yahoo/
data android:scheme=imto android:host=msn/
/intent-filter
/activity

activity android:name=.app.AccountActivity
intent-filter
action android:name=android.intent.action.EDIT /
category android:name=android.intent.category.DEFAULT /
category android:name=com.android.im.IMPS_CATEGORY /
data android:mimeType=vnd.android.cursor.item/im-accounts /
/intent-filter
intent-filter
action android:name=android.intent.action.INSERT /
category android:name=android.intent.category.DEFAULT /
category 

[android-developers] Re: How to draw text on a bitmap

2009-06-14 Thread Saurav Mukherjee
implement a view, draw the bitmap in the view and draw ur text, both in the
onDraw method.

On Mon, Jun 15, 2009 at 7:10 AM, 楊健 y...@cycomtech.co.jp wrote:


 Hi,everybody!
 Can i draw text on a bitmap?
 I cannot find any API support 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: npapi plugin failed to load in android webview

2009-06-14 Thread Grace Kloba
The problem is your plugin path.
The path , /android_asset/web/, is not a valid file system path.

One thing you can try is to copy the plugin to your data dir in the
onCreate() and set the plugin path to your data dir.

thanks,
Grace


On Wed, Jun 10, 2009 at 9:30 PM, MIND GAME lovekhanna04...@gmail.comwrote:


 i am trying to load a npapi plugin using android api - webview.
 code is
webview.getSettings().setJavaScriptEnabled(true);
webview .getSettings().setPluginsEnabled(true);
webview.getSettings().setPluginsPath(/android_asset/web/);
System.out.println(Default plugin path
 is :+webview .getSettings().getPluginsPath());
webview.loadUrl(file:///android_asset/web/test.html);

 i m using   simple example  npapi plugin.

 code for plugin is given below and i place this plugin inside my
 application's asset folder. and set pulgin path like this --
 webview.getSettings().setPluginsPath
 (/android_asset/web/);

 but plugin is failing to load...

 #include stdio.h
 #include string.h
 #if defined(OS_Darwin)
 #include Webkit/npapi.h
 #include WebKit/npfunctions.h
 #include WebKit/npruntime.h
 #define OSCALL
 #endif
 #if XULRUNNER_SDK
 #include npapi.h
 #include npupp.h
 #include npruntime.h
 #elif _WINDOWS /* WebKit SDK on Windows */
 #ifndef PLATFORM
 #define PLATFORM(x) defined(x)
 #endif
 #include npfunctions.h
 #ifndef OSCALL
 #define OSCALL WINAPI
 #endif
 #endif
 char** charArray = NULL;
 static NPObject *so  = NULL;
 static NPNetscapeFuncs *npnfuncs = NULL;
 /* NPN */
 static void logmsg(const char *msg) {
 #ifndef _WINDOWS
fputs(msg, stderr);
 #else
static FILE *out = fopen(\\npsimple.log, a);
fputs(msg, out);
fclose(out);
 #endif
 }

 static bool
 hasMethod(NPObject* obj, NPIdentifier methodName) {
logmsg(npsimple: hasMethod\n);
return true;
 }

 static bool
 invokeDefault(NPObject *obj, const NPVariant *args, uint32_t
 argCount,
 NPVariant *result) {
logmsg(npsimple: invokeDefault\n);
result-type = NPVariantType_Int32;
result-value.intValue = 42;
return true;
 }

 static bool
 invoke(NPObject* obj, NPIdentifier methodName, const NPVariant *args,
 uint32_t argCount, NPVariant *result) {
logmsg(npsimple: invoke\n);
invokeDefault(obj,args,argCount,result);
return true;
 }

 static bool
 hasProperty(NPObject *obj, NPIdentifier propertyName) {
logmsg(npsimple: hasProperty\n);
return false;
 }

 static bool
 getProperty(NPObject *obj, NPIdentifier propertyName, NPVariant
 *result) {
logmsg(npsimple: getProperty\n);
return false;
 }

 static bool enumerate(NPObject *npobj, NPIdentifier **value,
 uint32_t *count){
 }

 static NPObject* allocate(NPP npp,NPClass* theClass){
logmsg(IN ALLOCATE\n);
NPObject* npObj = (NPObject*)malloc(sizeof(NPObject));
return npObj;
 }

 static void deallocate(NPObject* obj){
logmsg(IN DEALLOCATE\n);
free(obj);
 }

 static NPClass npcRefObject = {
NP_CLASS_STRUCT_VERSION,
allocate,
deallocate,
NULL,
hasMethod,
invoke,
invokeDefault,
hasProperty,
getProperty,
NULL,
NULL,enumerate,
 };

 /* NPP */
 static NPError
 nevv(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
 char *argn[], char *argv[], NPSavedData *saved) {
logmsg(npsimple: new\n);
return NPERR_NO_ERROR;
 }

 static NPError
 destroy(NPP instance, NPSavedData **save) {
if(so)
npnfuncs-releaseobject(so);
so = NULL;
logmsg(npsimple: destroy\n);
return NPERR_NO_ERROR;
 }

 static NPError
 getValue(NPP instance, NPPVariable variable, void *value) {
switch(variable) {
default:
logmsg(npsimple: getvalue - default\n);
return NPERR_GENERIC_ERROR;
case NPPVpluginNameString:
logmsg(npsimple: getvalue - name string\n);
*((char **)value) = AplixFooPlugin;
break;
case NPPVpluginDescriptionString:
logmsg(npsimple: getvalue - description string\n);
*((char **)value) = a href=\http://
 www.aplix.co.jp/
 \AplixFooPlugin/a plugin.;
break;
case NPPVpluginScriptableNPObject:
logmsg(npsimple: getvalue - scriptable object\n);
if(!so)
so = npnfuncs-createobject(instance,
 npcRefObject);
npnfuncs-retainobject(so);
*(NPObject **)value = so;
break;
 #ifdef XULRUNNER_SDK
case NPPVpluginNeedsXEmbed:
logmsg(npsimple: getvalue - xembed\n);
/* *((PRBool *)value) = PR_FALSE; */
*((NPBool *)value) = FALSE;
break;
 #endif
}
return NPERR_NO_ERROR;
 }

 static NPError /* expected by Safari on Darwin */