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

2009-06-13 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  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: how to get the first frame of a video file ?

2009-06-13 Thread Ty

If anyone has a clue let us know!

Thanks much!

On May 5, 9:34 pm, Ty  wrote:
> Apparently this was added with Cupcake.  I cannot find it.  Anyone
> know how to create a video thumbnail?
>
> Ty
>
> On Apr 5, 8:54 pm, Wei  wrote:
>
> > Hi Dave,
>
> > Are you meaning I can not use this class in my own application?
> > But in MediaPlayerPerformance.java(framework folder), it can import
> > MediaMetadataRetriever.
> > Is any lib I need to load or ?
> > Please give me some hint
>
> > - wei
>
>
--~--~-~--~~~---~--~~
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-13 Thread SurtaX

bump

On Jun 13, 8:18 pm, SurtaX  wrote:
> I'm making sort of a book app. I have the text displayed as a textview
> in a scrollview:
>
> XML:
>            android:id="@+id/chatview"
>           android:orientation="vertical"
>           android:layout_width="fill_parent"
>           android:layout_height="fill_parent">
>                                  android:id="@+id/webview"
>                   android:layout_width="wrap_content"
>                   android:layout_height="fill_parent"
>                   android:layout_weight="1"
>                   android:textSize = "16sp"   />
>           
>
> 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] Intel Drops an ‘Atom` Brand

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

The chip maker’s new Atom brand includes its Diamondville chip for low-
cost laptops and its Silverthorne processor for mobile Internet
devices.




for more info visit  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] Preference#setSummary does not properly repaint

2009-06-13 Thread bo

When I use runtime Preference#setSummary(CharSequence) I see new value
painted on the top of the old one. Looks very ugly. Is there any
settings I'm missing? Behaves the same way in both 1.1 and 1.5
--~--~-~--~~~---~--~~
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 set minimum value for SeekBar?

2009-06-13 Thread Keith Wiley

My solution in similar situations has been to set the seekbar max to
the required range, not the true max, then to perform a mapping
between seekbar values and underlying variables by adding/subtracting
the minimum during transformation.  Of course, one step further in
extrapolation would demonstrate that it isn't even a requirement that
the seekbar's range match the underlying variable.  You can map it
anyway you want by using a scalar coefficient in addition to the
aforementioned shift.

Good luck.

On Jun 13, 2:21 am, Makrand  wrote:
> Hello
>
> I am using SeekBar in my application, currently seek bar minimum value
> is zero, but as per application requirement seek bar value should not
> be zero.
>
> how to set minimum value for SeekBar.
--~--~-~--~~~---~--~~
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] Strategies for alerting users about new versions of your app in the appstore?

2009-06-13 Thread pawpaw17

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] AbsoluteLayout deprecated & Drag and Drop

2009-06-13 Thread Mooretis

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?


--~--~-~--~~~---~--~~
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] which width and height for a 2*1 cell widget? 160*100? Bug in Widget?

2009-06-13 Thread Hastala

I use 160*100 but it becomes 3*2 cells. Is this a bug?
--~--~-~--~~~---~--~~
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: incomingNumber -> contact name - What is the right way?

2009-06-13 Thread Doug

Reported as bug #2983

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


On Jun 13, 1:34 pm, Doug  wrote:
> Wow! Turns out the query code in ContactsProvider does pretty much
> what I thought... it uses the Sqlite 'glob' operator, which is like
> 'like' (but uses '*' as wild-card... which is strange, since phone
> numbers could conceivably have *'s and #'s in them).
> Both GLOB and LIKE in Sqlite don't let you start a string with the
> wildcard character - hence the reversal.
>
> * When a phone number is inserted the "NUMBER_KEY" column is inserted
> as a stripped and reversed copy of 'NUMBER'.
> * The query the phone does when you get an incoming call appears based
> on the "Contacts.Phones.CONTACT_FILTER_URI" - so...
> Cursor c = resolver.query(Uri.withAppendedPath
> (Contacts.Phones.CONTENT_FILTER_URL, number));
>
> should get you the same results as the phone gets on an incoming call.
>
> As for "so_is"'s comment - yeah, they seem to set the key when a
> record is created, but never seem to bother updating it.
> Should be easy enough to verify - create a contact with phone number
> "X", then edit the phone number to be "Y" - call the number (or have
> them call you) and see if the contact info appears... if it does - we
> have more digging to do.
>
> On Jun 13, 12:30 pm, Doug  wrote:
>
> > I did some experimentation yesterday on just this topic.
>
> > For a start, it was easy enough to just throw a non-specific query at
> > the People provider and get back the values for the columns I was
> > interested in.
> > I don't know why, but I found that the "NUMBER_KEY" column has the
> > original phone number, unformatted, but ***reversed***.
> > So, 800-123-4567 (which is what you'd find in NUMBER column) would be
> > present as "7654321008" in the NUMBER_KEY column.
>
> > My only guess is that someone did some research and found that using
> > "NUMBER_KEY like '7654321008%' "performed better than "NUMBER_KEY like
> > '%8001234567' "  (in cases where the phone number stored for the
> > contact has extra digits - i.e. "+1").  (I really don't know - just
> > trying to rationalize why it could be backwards)
>
> > On Jun 12, 3:28 am, so_is  wrote:
>
> > > I would like to add something.
>
> > > I have recognized that the column "NUMBER_KEY" doesn't get updated at
> > > all. So I'd like to ask if there is another way to get normalized
> > > phone numbers?
>
> > > On 12 Jun., 11:25, code_android_festival_way
>
> > >  wrote:
> > > > Hello.
>
> > > > I am using a PhoneStateListener to determine the incomingNumber for a
> > > > phone call. What is the right way to get the corresponding contact
> > > > name?
>
> > > > I have tried:
>
> > > >http://paste.pocoo.org/show/LuRcRJZImQvEgSpE1uzV/
>
> > > > ( I have also used People.NUMBER_KEY)
>
> > > > But I'm always getting a cursor with the count of zero. (the number is
> > > > in the phonebook)
>
> > > > Why doesn't that work?
>
> > > > I'm looking forward reading your responses. Thank you very much.
>
> > > > 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] NinePatchDrawable as ItemizedOverlay

2009-06-13 Thread skyman

Hello,

Is it possible to use "stretchable" graphic as pin in ItemizedOverlay?
If not how can I draw NinePatchDrawable on Canvas?

Regs,

Skyman

---
http://skyman.pl
--~--~-~--~~~---~--~~
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: ClassNotFoundException

2009-06-13 Thread Mike Lanin

Of course I included.
No problems earlier.

I've tried it on 1.0, 1.1 and 1.5 sdk and it never worked.

On 12 июн, 08:47, iDeveloper  wrote:
> Have you included the activity in your AndroidManifest file?
>
> On 11-Jun-09, at 10:01 PM, Mike Lanin wrote:
>
>
>
>
>
> > I have a problem and cant realize a reason. I have
> > ClassNotFoundException when starting
> > Intent i = new Intent(EventInfo.this, AndricoMap.class);
> > i.putExtra("address", address);
> > startActivity(i);
>
> > There are log and class below
>
> > 06-11 22:07:32.556: ERROR/AndroidRuntime(413): Uncaught handler:
> > thread main exiting due to uncaught exception
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):
> > java.lang.NoClassDefFoundError: org.andrico.andrico.AndricoMap
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > org.andrico.andrico.EventInfo$5.onClick(EventInfo.java:227)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.View.performClick(View.java:2109)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.View.onTouchEvent(View.java:3523)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.widget.TextView.onTouchEvent(TextView.java:4410)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.View.dispatchTouchEvent(View.java:3178)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > com.android.internal.policy.impl.PhoneWindow
> > $DecorView.superDispatchTouchEvent(PhoneWindow.java:1561)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
> > (PhoneWindow.java:1085)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.app.Activity.dispatchTouchEvent(Activity.java:1873)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > com.android.internal.policy.impl.PhoneWindow
> > $DecorView.dispatchTouchEvent(PhoneWindow.java:1545)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.view.ViewRoot.handleMessage(ViewRoot.java:1140)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.os.Handler.dispatchMessage(Handler.java:88)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.os.Looper.loop(Looper.java:123)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > android.app.ActivityThread.main(ActivityThread.java:3742)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > java.lang.reflect.Method.invoke(Method.java:515)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> > (ZygoteInit.java:739)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > dalvik.system.NativeStart.main(Native Method)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413): Caused by:
> > java.lang.ClassNotFoundException: org.andrico.andrico.AndricoMap in
> > loader dalvik.system.pathclassloa...@433e7108
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:215)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:453)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:421)
> > 06-11 22:07:32.596: ERROR/AndroidRuntime(413):     ... 24 more
>
> > package org.andrico.andrico;
>
> > import java.util.List;
>
> > import android.app.Activity;
> > import android.app.AlertDialog;
> > import android.app.Dialog;
> > import android.content.Intent;
> > import android.location.Address;
> > import android.location.Geocoder;
> > import android.os.Bundle;
> > import android.util.Log;
>
> > import com.google.android.maps.GeoPoint;
> > import com.google.android.maps.MapActivity;
> > import com.google.android.maps.MapController;
> > import com.google.android.maps.MapView;
>
> > public class AndricoMap extends MapActivity
> > {
> >    private MapView myMap;
> >    private Geocoder gc;
> >   

[android-developers] Re: How to force hierarchy change to PreferenceActivity?

2009-06-13 Thread yoshitaka tokusho

Thanks for helpful comment, Jason. I got an answer for this. I pasted
for those who want to do similar.

-
protected void onCreate(Bundle savedInstanceState) {

createPreferenceHierarchy();
setPreferenceScreen(mRoot);

}

private void createPreferenceHierarchy()
{
// Root
mRoot = getPreferenceManager().createPreferenceScreen(this);

// Orientation tracking smoothing method preference
mOrientationSmoothingPref = getPreferenceManager
().createPreferenceScreen(this);
mOrientationSmoothingPref.setKey( (String) getResources().getText
(R.string.key_screen_orientation_smoothing_method) );
mOrientationSmoothingPref.setTitle
(R.string.title_screen_orientation_smoothing_method);
mOrientationSmoothingPref.setSummary
(R.string.summary_screen_orientation_smoothing_method);
mRoot.addPreference(mOrientationSmoothingPref);

// List preference
mOrientationSmoothinglistPref = new ListPreference(this);
mOrientationSmoothinglistPref.setEntries
(R.array.entries_orientation_smoothing_method_preference);
mOrientationSmoothinglistPref.setEntryValues
(R.array.entryvalues_orientation_smoothing_method_preference);
mOrientationSmoothinglistPref.setKey( (String) getResources
().getText(R.string.key_preference_orientation_smoothing_method) );
mOrientationSmoothinglistPref.setTitle
(R.string.title_preference_orientation_smoothing_method);
mOrientationSmoothinglistPref.setDialogTitle
(R.string.title_preference_orientation_smoothing_method);
mOrientationSmoothinglistPref.setDefaultValue("No");
mOrientationSmoothingPref.addPreference
(mOrientationSmoothinglistPref);

// Create parameter preference category
createOrientationSmoothingParameterPreferenceCategory();

}

private void createOrientationSmoothingParameterPreferenceCategory()
{
mOriantationSmoothingParameterPrefCat = new PreferenceCategory(this);

if ( mOrientationSmoothinglistPref.getValue().equals("ma") )
{
// Set summary to list pref
mOrientationSmoothinglistPref.setSummary("Moving Averaging");

// Moving averaging parameters category
mOriantationSmoothingParameterPrefCat.setTitle
(R.string.title_category_orientation_ma_parameter);
mOrientationSmoothingPref.addPreference
(mOriantationSmoothingParameterPrefCat);

// Edit text preference
mMaNPref = new EditTextPreference(this);
mMaNPref.setKey( (String) getResources().getText
(R.string.key_preference_ma_n) );
mMaNPref.setDialogTitle(R.string.title_preference_ma_n);
mMaNPref.setTitle(R.string.title_preference_ma_n);
mMaNPref.setSummary(R.string.summary_preference_ma_n);
mMaNPref.setDefaultValue("10");
mOriantationSmoothingParameterPrefCat.addPreference(mMaNPref);

}
else if ( mOrientationSmoothinglistPref.getValue().equals("ses") )
{
// Set summary to list pref
mOrientationSmoothinglistPref.setSummary("Single exponential
smoothing");

// Single exponential smoothing parameters category
mOriantationSmoothingParameterPrefCat.setTitle
(R.string.title_category_orientation_ses_parameter);
mOrientationSmoothingPref.addPreference
(mOriantationSmoothingParameterPrefCat);

// Edit text preference
mSesalphaPref = new EditTextPreference(this);
mSesalphaPref.setKey( (String) getResources().getText
(R.string.key_preference_ses_alpha) );
mSesalphaPref.setTitle(R.string.title_preference_ses_alpha);
mSesalphaPref.setDialogTitle
(R.string.title_preference_ses_alpha);
mSesalphaPref.setSummary
(R.string.summary_preference_ses_alpha);
mSesalphaPref.setDefaultValue("0.3");
mOriantationSmoothingParameterPrefCat.addPreference
(mSesalphaPref);

}
else if ( mOrientationSmoothinglistPref.getValue().equals("des") )
{
// Set summary to list pref
mOrientationSmoothinglistPref.setSummary("Double exponential
smoothing");

// Double exponential smoothing parameters category
mOriantationSmoothingParameterPrefCat.setTitle
(R.string.title_category_orientation_des_parameter);
mOrientationSmoothingPref.addPreference
(mOriantationSmoothingParameterPrefCat);

// Edit text preference
mDesalphaPref = new EditTextPreference(this);
mDesalphaPref.setKey( (String) getResources().getText
(R.string.key_preference_des_alpha) );
mDesalphaPref.setTitle(R.string.title_preference_des_alpha);
mDesalphaPref.setDialogTitle
(R.string.title_preference_des_alpha);
mDesalphaPref.setSummary
(R.string.summary_preference_des_alpha);
mDesalphaPref.setDefaultValue("0.3");
mOriantationSmoothingParameterPrefCat.addPreference
(mDesalphaPref);

// Edit text preference
mDesgammaPref = new EditTextPreference(this);
mDesgammaPref.setKey( (String) getResources().getText
(R.string.key_preference_des_gamma) );
mDesgammaPref.setTitle(R.string.title_preference_des_gamma);
mDesgammaPref.setDialogTi

[android-developers] Re: Getting my app in the featured section

2009-06-13 Thread codethief



On Jun 13, 5:28 pm, intbt  wrote:
> As an aside - when I searched Apps with 'scan' your app did not
> appear, when I searched 'pdf' it was on the list. Good luck with your
> application and with Google.

But that's rather due to the Market's search function itself.


> On Jun 12, 12:39 pm, guruk  wrote:
>
> > just make your app so successfull that it reach 50.000 installations
> > than from my own experience google contacts you.
> > maybe you are not featured, but its already nice to see your app in
> > the
> > top app section ..
>
> > chris
> > "My Days"
--~--~-~--~~~---~--~~
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: Understanding MenuCallback code

2009-06-13 Thread Mark Murphy

Daniel Dreiberg wrote:
> Hi,
> 
> I see this example of MenuCallback code, but i don't understand where is
> the reference 'ImageManager.IImage image' comes from?
> How is that image get created and passed it to MemuCallback?
> 
>   MenuItem item1 = menu.add(IMAGE_SAVING_ITEM, MENU_IMAGE_SHARE, 10,
> 
> R.string.camera_share).setOnMenuItemClickListener(
> 
> new MenuItem.OnMenuItemClickListener() {
> 
> public boolean onMenuItemClick(MenuItem item) {
> 
> onInvoke.run(new MenuCallback() {
> 
> public void run(Uri u, ImageManager.IImage image) {
> 
>   // 
> 
> }
> 
> }
> 
> });
> 

ImageManager is not part of the SDK. It is a class within the Camera
application.

-- 
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] Understanding MenuCallback code

2009-06-13 Thread Daniel Dreiberg
Hi,
I see this example of MenuCallback code, but i don't understand where is the
reference 'ImageManager.IImage image' comes from?
How is that image get created and passed it to MemuCallback?

  MenuItem item1 = menu.add(IMAGE_SAVING_ITEM, MENU_IMAGE_SHARE, 10,

R.string.camera_share).setOnMenuItemClickListener(

new MenuItem.OnMenuItemClickListener() {

public boolean onMenuItemClick(MenuItem item) {

onInvoke.run(new MenuCallback() {

public void run(Uri u, ImageManager.IImage image) {

  //

}

}

});



Thank you.

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



[android-developers] Re: Missing application icon in All Application drawer

2009-06-13 Thread Mark Murphy

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  in
their manifest:






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

2009-06-13 Thread Lucius Fox

Hi,

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?

Thank you.

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



[android-developers] Re: Listening to Double Taps in MapView

2009-06-13 Thread Georgy

I was able to make it work but now the navigation on the  map is not
working.

any ideas?

thanks

On Jun 12, 3:11 pm, Georgy  wrote:
> Would please provide me a copy of your code? I don't know why I can't
> gget it to work.
>
> thanks
>
> On Jun 12, 2:58 pm, Keith Wiley  wrote:
>
> > Hmmm, I just added this functionality to my own project and it works
> > like a charm.
>
> > Let's see.  To get this going you need a few things.  The class that
> > will receive your callback must implement the
> > GestureDetector.OnDoubleTapListener interface, for which it must
> > include implementations of onSingleTapConfirmed(), onDoubleTap(), and
> > onDoubleTapEvent().  In addition, I generally include as a member of
> > that class a GestureDetector object (I frequently include and use
> > OnGestureListener as well but I don't think that's relevant to this
> > discussion).  Then, you must register your interest in the associated
> > callbacks, somewhere around the time of onCreate(), via some code like
> > this:
>
> >         mGestureDetector = new GestureDetector(this);
> >         mGestureDetector.setOnDoubleTapListener(this);
>
> > That should get it going.  One other thing I did was override
> > dispatchTouchEvent(), at the end of which I call:
>
> >         return mGestureDetector.onTouchEvent(event);
>
> > ...but I'm not at all sure you *need* to do this to get double taps
> > rolling.  I was using dispatchTouchEvent() for some other things.
>
> > On Jun 12, 9:59 am, Georgy  wrote:
>
> > > still it doesn't get the double taps...
>
> > > On Jun 12, 12:57 pm, Keith Wiley  wrote:
>
> > > > If I'm understanding you correctly, you *named* your handler method
> > > > "setOnDoubleTapListener()".  That's not right.  That's the callback
> > > > setup method you call, passing it the object that you want called back
> > > > to in the event of a double tap.  The callback method is then some
> > > > other name.  In your case, I found the following:
>
> > > >http://developer.android.com/reference/android/view/GestureDetector.O...
>
> > > > which suggests you need to write a method with the following
> > > > signature:
>
> > > > boolean onDoubleTap(MotionEvent e);
>
> > > > On Jun 12, 9:08 am, Georgy  wrote:
>
> > > > > Hello,
>
> > > > > I was able to listen to user touches or taps on the screen in a
> > > > > MapView and trigger a dialog giving the user some feedback.  I need to
> > > > > implement the same concept but with double tap to trigger another
> > > > > dialog.
>
> > > > > I looked around and couldn't find much...   I wrote this function:
>
> > > > > public void setOnDoubleTapListener(MotionEvent event, MapView
> > > > > mapView)
> > > > >                 {
> > > > >                     if (event.getAction() == MotionEvent.ACTION_UP) {
>
> > > > >                                 Dialog dialog1 = new 
> > > > > Dialog(HelloMapView2.this);
> > > > >                                 dialog1.setTitle("Current Location");
> > > > >                                 
> > > > > dialog1.setContentView(R.layout.custom);
> > > > >                                 TextView current_locode = (TextView) 
> > > > > dialog1.findViewById
> > > > > (R.id.text);
> > > > >                                 current_locode.setText("Current 
> > > > > LoCode:  ");
> > > > >                                 dialog1.show();
>
> > > > >                  }
>
> > > > > but the compiler never goes through it when I double tap.
>
> > > > > any ideas?
> > > > > 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: incomingNumber -> contact name - What is the right way?

2009-06-13 Thread Doug

Wow! Turns out the query code in ContactsProvider does pretty much
what I thought... it uses the Sqlite 'glob' operator, which is like
'like' (but uses '*' as wild-card... which is strange, since phone
numbers could conceivably have *'s and #'s in them).
Both GLOB and LIKE in Sqlite don't let you start a string with the
wildcard character - hence the reversal.

* When a phone number is inserted the "NUMBER_KEY" column is inserted
as a stripped and reversed copy of 'NUMBER'.
* The query the phone does when you get an incoming call appears based
on the "Contacts.Phones.CONTACT_FILTER_URI" - so...
Cursor c = resolver.query(Uri.withAppendedPath
(Contacts.Phones.CONTENT_FILTER_URL, number));

should get you the same results as the phone gets on an incoming call.

As for "so_is"'s comment - yeah, they seem to set the key when a
record is created, but never seem to bother updating it.
Should be easy enough to verify - create a contact with phone number
"X", then edit the phone number to be "Y" - call the number (or have
them call you) and see if the contact info appears... if it does - we
have more digging to do.


On Jun 13, 12:30 pm, Doug  wrote:
> I did some experimentation yesterday on just this topic.
>
> For a start, it was easy enough to just throw a non-specific query at
> the People provider and get back the values for the columns I was
> interested in.
> I don't know why, but I found that the "NUMBER_KEY" column has the
> original phone number, unformatted, but ***reversed***.
> So, 800-123-4567 (which is what you'd find in NUMBER column) would be
> present as "7654321008" in the NUMBER_KEY column.
>
> My only guess is that someone did some research and found that using
> "NUMBER_KEY like '7654321008%' "performed better than "NUMBER_KEY like
> '%8001234567' "  (in cases where the phone number stored for the
> contact has extra digits - i.e. "+1").  (I really don't know - just
> trying to rationalize why it could be backwards)
>
> On Jun 12, 3:28 am, so_is  wrote:
>
> > I would like to add something.
>
> > I have recognized that the column "NUMBER_KEY" doesn't get updated at
> > all. So I'd like to ask if there is another way to get normalized
> > phone numbers?
>
> > On 12 Jun., 11:25, code_android_festival_way
>
> >  wrote:
> > > Hello.
>
> > > I am using a PhoneStateListener to determine the incomingNumber for a
> > > phone call. What is the right way to get the corresponding contact
> > > name?
>
> > > I have tried:
>
> > >http://paste.pocoo.org/show/LuRcRJZImQvEgSpE1uzV/
>
> > > ( I have also used People.NUMBER_KEY)
>
> > > But I'm always getting a cursor with the count of zero. (the number is
> > > in the phonebook)
>
> > > Why doesn't that work?
>
> > > I'm looking forward reading your responses. Thank you very much.
>
> > > 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: Why did Google Groups not post my comments?

2009-06-13 Thread Urs Grob
Someone posting for the first time gets moderated, so if that was your first
post then it might have had to wait for someone letting it pass.

On Sat, Jun 13, 2009 at 12:31 AM, Sundog  wrote:

>
> Or, maybe you're a noob that needs to calm down a bit.
>
> On Jun 11, 10:14 pm, Dennis  wrote:
> > I posted a detailed comment about typos in Android documentation
> > several hours ago.  My post is nowhere to be seen.  Why did Google
> > Groups hose my post?  Maybe Google doesn't care that their Android
> > documentation contains typos.
> >
>

--~--~-~--~~~---~--~~
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: File System Root '/' name has extra characters?!

2009-06-13 Thread Urs Grob
The problem seems to be an error in porting the native code from harmony to
android. In harmony there's a method that should return a string where the
roots are null separated and a second null at the end.
http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/file.c?view=co
(method
Java_java_io_File_rootsImpl)

It
seems like the android implementation just creates such a string but fails
to process it correctly (which would get rid of the garbage at the end).
http://android.git.kernel.org/?p=platform/dalvik.git;a=blob;f=libcore/luni/src/main/native/java_io_File.c;hb=HEAD#l55

-- Urs

On Sat, Jun 13, 2009 at 9:23 PM, Urs Grob  wrote:

> This looks like a bug. To not forget it again, please file a bug at
> b.android.comBest would be if you could also attach some code that
> reproduces the problem.
>
> Thanks for finding this (again)
>
> (Maybe this has to do with some code from harmony where also windows drives
> could be returned ... "c:\" or something like that.)
>
> -- Urs
>
> On Sat, Jun 13, 2009 at 7:37 AM, Keith Wiley  wrote:
>
>>
>> First I found the problem, then I found this truly ancient post:
>>
>>
>> http://groups.google.com/group/android-developers/browse_thread/thread/a9f43a98632d5137/cd119afecd6fd403?lnk=gst&q=listroots#cd119afecd6fd403
>>
>> ...with no responses.  To browse the file system from the top down I
>> suppose I can simply hardcode the root as a single slash, but I would
>> rather "do it right".  Can anyone explain why listRoots returns a root
>> named "/XX" where X is a junk char?  It's problematic because that
>> file cannot subsequently be queried for further file system
>> exploration.
>>
>> Thoughts?
>> >>
>>
>

--~--~-~--~~~---~--~~
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: incomingNumber -> contact name - What is the right way?

2009-06-13 Thread Doug

I did some experimentation yesterday on just this topic.

For a start, it was easy enough to just throw a non-specific query at
the People provider and get back the values for the columns I was
interested in.
I don't know why, but I found that the "NUMBER_KEY" column has the
original phone number, unformatted, but ***reversed***.
So, 800-123-4567 (which is what you'd find in NUMBER column) would be
present as "7654321008" in the NUMBER_KEY column.

My only guess is that someone did some research and found that using
"NUMBER_KEY like '7654321008%' "performed better than "NUMBER_KEY like
'%8001234567' "  (in cases where the phone number stored for the
contact has extra digits - i.e. "+1").  (I really don't know - just
trying to rationalize why it could be backwards)

On Jun 12, 3:28 am, so_is  wrote:
> I would like to add something.
>
> I have recognized that the column "NUMBER_KEY" doesn't get updated at
> all. So I'd like to ask if there is another way to get normalized
> phone numbers?
>
> On 12 Jun., 11:25, code_android_festival_way
>
>  wrote:
> > Hello.
>
> > I am using a PhoneStateListener to determine the incomingNumber for a
> > phone call. What is the right way to get the corresponding contact
> > name?
>
> > I have tried:
>
> >http://paste.pocoo.org/show/LuRcRJZImQvEgSpE1uzV/
>
> > ( I have also used People.NUMBER_KEY)
>
> > But I'm always getting a cursor with the count of zero. (the number is
> > in the phonebook)
>
> > Why doesn't that work?
>
> > I'm looking forward reading your responses. Thank you very much.
>
> > 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] expandlistview user selection detection?

2009-06-13 Thread Bob

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: File System Root '/' name has extra characters?!

2009-06-13 Thread Urs Grob
This looks like a bug. To not forget it again, please file a bug at
b.android.comBest would be if you could also attach some code that
reproduces the problem.

Thanks for finding this (again)

(Maybe this has to do with some code from harmony where also windows drives
could be returned ... "c:\" or something like that.)

-- Urs

On Sat, Jun 13, 2009 at 7:37 AM, Keith Wiley  wrote:

>
> First I found the problem, then I found this truly ancient post:
>
>
> http://groups.google.com/group/android-developers/browse_thread/thread/a9f43a98632d5137/cd119afecd6fd403?lnk=gst&q=listroots#cd119afecd6fd403
>
> ...with no responses.  To browse the file system from the top down I
> suppose I can simply hardcode the root as a single slash, but I would
> rather "do it right".  Can anyone explain why listRoots returns a root
> named "/XX" where X is a junk char?  It's problematic because that
> file cannot subsequently be queried for further file system
> exploration.
>
> Thoughts?
> >
>

--~--~-~--~~~---~--~~
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 launch the intent to pick image from SD card?

2009-06-13 Thread Mark

I think you might want something like this:

// start the image picker activity - the 999 is just a unique request
code
startActivityForResult( new Intent(Intent.ACTION_PICK,
  android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI),
999);

at this point, the Gallery app will start and your app will pause

To get the results (the selected image):

// meanwhile, back in your activity...
protected final void onActivityResult(final int requestCode, final int
resultCode, final Intent i) {
super.onActivityResult(requestCode, resultCode, i);

  // this matches the request code in the above call
  if (requestCode == 999) {
Uri _uri = i.getData();

// this will be null if no image was selected...
if (_uri != null) {
  // now we get the path to the image file
  cursor = getContentResolver().query(_uri, new String[]
{ android.provider.MediaStore.Images.ImageColumns.DATA },
  null, null, null);
  cursor.moveToFirst();
  String imageFilePath = cursor.getString(0);
  cursor.close();
}
  }


this will give you the absolute path to the selected image file.

On Jun 13, 12:26 am, Meryl Silverburgh 
wrote:
> Hi,
>
> Can you please tell me how can i launch the intent to pick image from SD card?
> 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] Dialogs don't fill width in landscape mode

2009-06-13 Thread Keith Wiley

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: Bug? LocationMasfClient / GPS keeps sending updates even after locationmanager.removeupdates?

2009-06-13 Thread Brad Gies


Have you tried moving the lm.removeUpdates(locationListener); to Before the
super.onPause   ?



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 chrispix
Sent: Friday, June 12, 2009 11:39 AM
To: Android Developers
Subject: [android-developers] Bug? LocationMasfClient / GPS keeps sending
updates even after locationmanager.removeupdates?


Ok, I am using GPS on Google maps, and this is my onPause. Am I
missing something? GPS keeps sending

LocationMasfClient getNetworkLocation(): Returning cache location with
accuracy 1319.0

Then eventually it does :
GPSLocationProvider state: DISCONNECTED apnName: null reason: null.

Am I missing something?


@Override
public void onPause(){
  // Suspend UI updates, threads, or CPU intensive processes that
don't
  // need to be updated when the Activity isn't the active
foreground activity.

 super.onPause();
 lm.removeUpdates(locationListener);

}


--~--~-~--~~~---~--~~
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] js painfully slow on 1.5

2009-06-13 Thread skink

hi,

i heard somewhere that cupcake has brand new, very fast javascript
engine.

recently i tried to use jquery and in my opinion it's not fast: i
tried local (stored in assets folder) version of smallest possible i
could get (packed v1.1.2) and it seems that loading it takes ~5sec.
this is when i run it on the emulator.

maybe g1 works better, could anybody, please, check it out?

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: develop a simple game like tic toc

2009-06-13 Thread Gavin Aiken
http://bakhtiyor.com/category/30-days-of-android-apps/page/2/

If you're talking about tic-tac-toe you could look here :)

Good luck

On Sat, Jun 13, 2009 at 5:22 AM, jaimin  wrote:

>
> hi.
> i am new to android i have develop a some e book for android mobile
> but i never develop a game
> in android and i would like to develop a first simple  just like tic
> toc .
> so plz help me where can i start with.
>
> thanks
> jaimin.
> >
>

--~--~-~--~~~---~--~~
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 know how long the key is pressed?

2009-06-13 Thread Mark Murphy

patpat wrote:
> i am using system time here to get the differencebut it doesnt
> work like the way i want..
> i wonder is there method or concept to know how long the key is
> pressed??

You could try getDownTime() and getEventTime() on the KeyEvent.

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

Need help for your Android OSS project? 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] How to know how long the key is pressed?

2009-06-13 Thread patpat

here is my code

public boolean onKeyUp(int keyCode, KeyEvent event)
{ Message m = new Message();
m.what = theGamev2.REDRAW;

switch(keyCode)
{ case KeyEvent.KEYCODE_DPAD_CENTER:
releaseTime = System.currentTimeMillis();
this.mBall.createNewCircle(pointerCurrentXCoord, 30, ((int)
(releaseTime - pressTime))/10);
break;
default:
return super.onKeyDown(keyCode, event);
}


this.mBallUpdateHandler.sendMessage(m);
return true;
}

public boolean onKeyDown(int keyCode, KeyEvent event) {
Message m = new Message();
m.what = theGamev2.POINTER;

switch(keyCode){
case KeyEvent.KEYCODE_DPAD_CENTER:
pressTime = System.currentTimeMillis();
break;
default:
return super.onKeyDown(keyCode, event);
}

this.mBallUpdateHandler.sendMessage(m);
return true;
}




i am using system time here to get the differencebut it doesnt
work like the way i want..
i wonder is there method or concept to know how long the key is
pressed??
Please give me an example if u have a way to do it...Thanks a lot.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Email App and IM App on cupcake branch

2009-06-13 Thread Lucius Fox

Hi,

I download and compile cupcake branch. But the Email App and IM App
(not Gmail and GTalk) is not installed on the emulator.
Can you please tell me how to install Email App and IM app?

Thank you.

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



[android-developers] Re: Getting my app in the featured section

2009-06-13 Thread intbt

As an aside - when I searched Apps with 'scan' your app did not
appear, when I searched 'pdf' it was on the list. Good luck with your
application and with Google.

intbt

On Jun 12, 12:39 pm, guruk  wrote:
> just make your app so successfull that it reach 50.000 installations
> than from my own experience google contacts you.
> maybe you are not featured, but its already nice to see your app in
> the
> top app section ..
>
> chris
> "My Days"
--~--~-~--~~~---~--~~
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] Checking the Hardware (Phone model) programatically

2009-06-13 Thread Gavin Aiken
Hi All,

I was wondering if there is a way of finding the hardware on which the
Android software stack is currently running. Specifically I'd be interested
to get the processor on which the application is being run so that I can
adjust the intensity of calculations performed.

Thanks in advance!

Gavin

--~--~-~--~~~---~--~~
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 force hierarchy change to PreferenceActivity?

2009-06-13 Thread Jason Parekh
The preference framework will refresh the UI when a preference has a
UI-visible attribute changed, for example the summary.  So, you can just do
myPreference.setSummary(myPreference.getValue()) (assuming you want to show
the selected item as the summary of the preference).

On Fri, Jun 12, 2009 at 4:29 AM, yoshitaka tokusho wrote:

>
> I have a PreferenceActivity building screen hierarchy from code, and I
> need to force display hierarchy change dynamically when one of
> SharedPreference value changed. I know this might be a kind of easy
> quesiton, but I couldn't find answer anywhere in documentations or
> discussion.
>
> My PreferenceActivity is forming like this.
>
> -
> public class MyPreferenceActivity extends PreferenceActivity
> ...
>   setPreferenceScreen(createPreferenceHierarchy());
> }
>
> private PreferenceScreen createPreferenceHierarchy()
> {
>// Root
>PreferenceScreen root = getPreferenceManager
> ().createPreferenceScreen(this);
>
>// Orientation tracking smoothing method preference
>PreferenceScreen orientationsmoothingPref = getPreferenceManager
> ().createPreferenceScreen(this);
>orientationsmoothingPref.setKey( (String) getResources().getText
> (R.string.key_screen_orientation_smoothing_method) );
>orientationsmoothingPref.setTitle
> (R.string.title_screen_orientation_smoothing_method);
>orientationsmoothingPref.setSummary
> (R.string.summary_screen_orientation_smoothing_method);
>root.addPreference(orientationsmoothingPref);
>
>// List preference
>ListPreference orientationsmoothinglistPref = new ListPreference
> (this);
>orientationsmoothinglistPref.setEntries
> (R.array.entries_orientation_smoothing_method_preference);
>orientationsmoothinglistPref.setEntryValues
> (R.array.entryvalues_orientation_smoothing_method_preference);
>orientationsmoothinglistPref.setKey( (String) getResources().getText
> (R.string.key_preference_orientation_smoothing_method) );
>orientationsmoothinglistPref.setTitle
> (R.string.title_preference_orientation_smoothing_method);
>orientationsmoothinglistPref.setSummary
> (R.string.summary_preference_orientation_smoothing_method);
>orientationsmoothinglistPref.setDefaultValue("No");
>
>  orientationsmoothingPref.addPreference(orientationsmoothinglistPref);
>
>// Orientation smoothing parameters category
>PreferenceCategory orientationsmoothingparameterPrefCat = new
> PreferenceCategory(this);
>orientationsmoothingparameterPrefCat.setTitle
> (R.string.title_category_orientation_smoothing_method_parameter);
>orientationsmoothingPref.addPreference
> (orientationsmoothingparameterPrefCat);
>
>String orientationsmoothingmethodStr =
> orientationsmoothinglistPref.getValue();
>
>if ( orientationsmoothingmethodStr.compareTo("no") == 0 )
>{
>/* In case orientation smoothing method is "No" */
>// Nothing to do.
>}
>else if ( orientationsmoothingmethodStr.compareTo("ma") == 0 )
>{
>/* In case orientation smoothing method is "Moving
> Averaging" */
>
>// Edit text preference
>EditTextPreference maNPref = new EditTextPreference(this);
>maNPref.setKey( (String) getResources().getText
> (R.string.key_preference_ma_n) );
>maNPref.setDialogTitle(R.string.title_preference_ma_n);
>maNPref.setTitle(R.string.title_preference_ma_n);
>maNPref.setSummary(R.string.summary_preference_ma_n);
>maNPref.setDefaultValue("10");
>orientationsmoothingparameterPrefCat.addPreference(maNPref);
>
>}
>else if ( orientationsmoothingmethodStr.compareTo("ses") == 0 )
>{
>/* In case orientation smoothing method is "Single
> Exponential
> Smoothing" */
>
>// Edit text preference
>EditTextPreference sesalphaPref = new EditTextPreference(this);
>sesalphaPref.setKey( (String) getResources().getText
> (R.string.key_preference_ses_alpha) );
>sesalphaPref.setTitle(R.string.title_preference_ses_alpha);
>
>  sesalphaPref.setDialogTitle(R.string.title_preference_ses_alpha);
>sesalphaPref.setSummary(R.string.summary_preference_ses_alpha);
>sesalphaPref.setDefaultValue("0.3");
>
>  orientationsmoothingparameterPrefCat.addPreference(sesalphaPref);
>
>}
>else if ( orientationsmoothingmethodStr.compareTo("des") == 0 )
>{
>/* In case orientation smoothing method is "Single
> Exponential
> Smoothing" */
>
>// Edit text preference
>EditTextPreference desalphaPref = new EditTextPreference(this);
>desalphaPref.setKey( (String) getResources().getText
> (R.string.key_preference_des_alpha) );
>desalphaPref.setTitle(R.string.title_preference_des_alpha);
>
>  desalphaPref.setDial

[android-developers] Re: In need of a developer...

2009-06-13 Thread Maps.Huge.Info (Maps API Guru)

You might want to consider figuring this out for yourself. It's not
that difficult if you use the tutorial book ($35) written by Mark
Murphy at http://commonsware.com/ - tutorial 17 did it for me...

I wrote a similar program without much prior knowledge myself in about
three days of study. Your mileage may vary.

-John Coryat

http://maps.huge.info
--~--~-~--~~~---~--~~
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: Google Data APIs Client Libraries

2009-06-13 Thread peeyush varshney
Hi,
   Activity A is running and i start Activity B from A then start one
more new Activity C from B..
Now I want to launch Activity A from C..

What should be right procedure.

On Sat, Jun 13, 2009 at 12:33 PM, Sujay Krishna Suresh <
sujay.coold...@gmail.com> wrote:

> I also tried using it... But according to one of the developers its not
> usable in android (or any other mob platform)
> if u jus need a lil data from google then try this...
>
> This piece of code prints all methods in the class & invokes the static
> method getAccount...
> try {
>   for (Method ele :
> Class.forName("com.google.android.googlelogin.GoogleLoginServiceHelper").getMethods())
> {
>   System.out.println(ele.toString());
>   try {
>   if(ele.getName().equals("getAccount"))
>   ele.invoke(null, this, 123, true);
>   } catch (IllegalArgumentException e) {
>   e.printStackTrace();
>   } catch (IllegalAccessException e) {
>   e.printStackTrace();
>   } catch (InvocationTargetException e) {
>   e.printStackTrace();
>   }
>   }
>   } catch (ClassNotFoundException e) {
>   e.printStackTrace();
>   }
>
>   } catch (ClassNotFoundException e) {
>   e.printStackTrace();
>   }
>
> & jus place the foll code in ur onactivityresult
> if (requestCode == 123) {
>   System.out.println(resultCode);
>   String key = "accounts";
>   System.out.println(key + ":" +
> Arrays.toString(data.getExtras().getStringArray(key)));
>   String accounts[] = data.getExtras().getStringArray(key);
>   if (accounts[0] != null)
>   usernameText.setText("You are : " + accounts[0].replace("@gmail.com",
> ""));
>  }
> in the logcat/ddms o/p u'll be able to see that there are other useful
> methods...
> public static void com.google.android.
> googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,java.lang.String,java.lang.String,boolean)
> public static void
> com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,boolean,java.lang.String,boolean)
> public static void
> com.google.android.googlelogin.GoogleLoginServiceHelper.invalidateAuthToken(android.app.Activity,int,java.lang.String)
>
> N wats the service that u wanna use???
>
>
> On Sat, Jun 13, 2009 at 12:27 PM, Patrick  wrote:
>
>>
>> Has anyone had success using Google Data APIs Client Libraries. I
>> can’t seem to successfully use the GData Java client libraries in an
>> Android app. I notice that there used to be some GData access classes
>> in the Wireless packages that have been removed. Should I be using
>> some map data classes in the com.google.android.maps classes I’m not
>> seeing? I started to go down the path of accessing data through raw
>> http calls, but it’s a beating.
>>
>> Any advice would be much appreciated.
>>
>> Thanks,
>>
>> Patrick
>>
>>
>
>
> --
> Regards,
> Sujay
> Groucho Marx - 
> "I was married by a judge. I should have asked for a jury."
> >
>


-- 
Thank & Regards
Peeyush Varshney

--~--~-~--~~~---~--~~
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: Cursor for service component?

2009-06-13 Thread Mark Murphy

> In application there is Service running in background, and appl
> having private database, When appl runs in back ground with service. I
> want to retrieve Cursor for query on appl database.

Use SQLiteDatabase.

-- 
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: How to tell when application exits?

2009-06-13 Thread Mark Murphy

> Could I suggest an update to documentation then?
> Do you guys need a bug report to be lodged to do this kind of thing?

Either a bug report (http://b.android.com) or a patch would help increase
the odds that the change gets made.

> Does this also apply to services?

There is no onTerminate() in services. There is onDestroy(), which is
called using the same rules as onDestroy() with activities -- it probably
gets called, but it cannot be assured.

> I
> think things could go quite badly if the code were to just stop in the
> middle of (say) a database update.

The only time your process will be terminated forcefully, AFAIK, is if the
device needs RAM in a hurry to handle a phone call or similar system
events, or possibly if the user is powering down the phone.

Moreover, bear in mind:

-- SQLite is transactional, and so should survive process termination
mid-transaction...assuming you are using your transactions properly

-- There are other scenarios in which things can terminate mid-transaction
(e.g., battery dies)

-- 
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: Where is com.android.providers.googleapps??

2009-06-13 Thread Mark Murphy

> Ehm...So, how can I read received mail from db?

I am interpreting this to mean "how do I access emails saved on the device".

Option #1: Write your own email client and convince users to use it, as
then it is your own database.

Option #2: Work with the K9 team to integrate whatever you are looking to
do with their email client.

Option #3: Submit patches to the Android open source project to expose
email messages via a ContentProvider. In this case, be prepared to answer
a lot of questions regarding privacy and security.

-- 
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: Manipulating WebKit Form-Data

2009-06-13 Thread sdz

sadly... thank you

On 13 Jun., 13:05, "Mark Murphy"  wrote:
> > is there any way to manipulate form-data of a specific website (for
> > example fill in information in a login-field and hit the login-
> > button).
>
> Not that I am aware of.
>
> --
> 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: Where is com.android.providers.googleapps??

2009-06-13 Thread Francesco Pace
Ehm...So, how can I read received mail from db?

2009/6/13 Mark Murphy 

>
> > I don't find package com.android.providers.googleapps on my internal
> > memory.
>
> There is no such package in the SDK.
>
> --
> 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: Manipulating WebKit Form-Data

2009-06-13 Thread Mark Murphy

> is there any way to manipulate form-data of a specific website (for
> example fill in information in a login-field and hit the login-
> button).

Not that I am aware of.

-- 
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: Where is com.android.providers.googleapps??

2009-06-13 Thread Mark Murphy

> I don't find package com.android.providers.googleapps on my internal
> memory.

There is no such package in the SDK.

-- 
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] Manipulating WebKit Form-Data

2009-06-13 Thread sdz

Hi,

is there any way to manipulate form-data of a specific website (for
example fill in information in a login-field and hit the login-
button).

Thank you


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



[android-developers] Cannot get Log.isLoggable working as documented

2009-06-13 Thread westmeadboy

This is a very simple problem and I've searched to find that no one
else seems to be having it, anyway...

My code is something like:

if (Log.isLoggable("mytag", Log.DEBUG)) {
Log.d("mytag", "Logged at debug level");
}

The documentation says that by default logging is enabled at INFO
level. This appears to be correct, since the above IF condition
evaluates to false. Also, replacing Log.DEBUG with Log.INFO, means it
evaluates to true as expected.

However, if we remove the if statement then shouldnt the Log.d()
statement do nothing?

Next, when I follow either of the two documented methods for changing
the default logging level neither of them work:

1. I open up a terminal (through Dev Tools) and type "setprops
log.tag.mytag DEBUG". Then I debug my app (through eclipse) and the
isLoggable call above is still evaluating to false

Side question: What is the lifespan of that setprops call?

2. I placed a new file called "local.prop" in the /data folder. The
file contains one line: "log.tag.mytag=DEBUG".

Side question: The documentation says to place the "local.prop" file
in "/data/local.prop" which is not clear. I assume it does NOT mean
create a folder called "local.prop" and place a "local.prop" file in
that folder.

So neither of those work for me. What am I doing wrong? Is eclipse
somehow overriding my settings?
--~--~-~--~~~---~--~~
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] Scrollview and GestureDetector

2009-06-13 Thread SurtaX

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

XML:

  
  



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] Where is com.android.providers.googleapps??

2009-06-13 Thread Francesco Pace
Hi,
I don't find package com.android.providers.googleapps on my internal memory.
I use cupcake emulator.
Somebody help meplease

--~--~-~--~~~---~--~~
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: fullscreen doesn't hide Status Bar in Android SDK 1.5 R2

2009-06-13 Thread Shyam Dasgupta

i guess this group has grown too large to expect a response from the
Android team..
--~--~-~--~~~---~--~~
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 set minimum value for SeekBar?

2009-06-13 Thread Makrand

Hello

I am using SeekBar in my application, currently seek bar minimum value
is zero, but as per application requirement seek bar value should not
be zero.

how to set minimum value for SeekBar.
--~--~-~--~~~---~--~~
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 tell when application exits?

2009-06-13 Thread Saurav Mukherjee
i have a round about solution:

if u need the application to exit, call system.exit..
so now u know wen its gonna exits and hence now u can write the program
accordingly... (wat u wanna do wen the system exits)

but please do tell me if there is a straight forward way!

cheers.

On Sat, Jun 13, 2009 at 12:18 PM, Doug  wrote:

>
> Could I suggest an update to documentation then?
> Do you guys need a bug report to be lodged to do this kind of thing?
> Does this also apply to services?  The documentation there also states
> that the service will be sent a 'courtesy' stop notification... I
> think things could go quite badly if the code were to just stop in the
> middle of (say) a database update.
>
> On Jun 12, 6:29 pm, Dianne Hackborn  wrote:
> > Application.onTerminate() is actually never ever called.  The only time
> it
> > is ever called is when the system is running in single process mode, and
> > faking processes as multiple threads in one single process.  This was the
> > way the system was running very early in development, and onTerminate()
> was
> > needed for applications in that situation to clean up their globals, but
> > these days it is just old useless cruft.
> >
> > And as far as the OS deciding to kill your process...  well, you don't
> care
> > about that.  It killed your process.  Everything your process was doing,
> all
> > the network connections it had opened, all the threads it had running,
> are
> > gone.  No effort needed on your part there. :)
> >
> > On Fri, Jun 12, 2009 at 11:29 AM, Streets Of Boston <
> flyingdutc...@gmail.com
> >
> >
> >
> > > wrote:
> >
> > > My solution works fine to check if you have a configuration-change or
> > > not.
> > > But it won't work in case the OS decides to kill the process, e.g.
> > > when memory runs low or when the phone is shut off. The Application's
> > > onTerminate, as Mark noted, may help a little, but it's not guaranteed
> > > that this method is called.
> >
> > > On Jun 12, 2:16 pm, Max Salley  wrote:
> > > > On Jun 9, 1:58 pm, "Mark Murphy"  wrote:
> >
> > > > > > Yes, but when the app closes I want to close the connections
> (which
> > > > > > requires sending data - not just releasing the objects)
> regardless of
> > > > > > what's holding them.  How can I tell when the app exits?
> >
> > > > > I think you are attributing too much power to the notion of apps
> > > exiting.
> >
> > > > > Example #1: somebody is using your app. Then a phone call comes in.
> > > Your
> > > > > activity is merely stopped, not destroyed. Did your app "exit"?
> >
> > > > > Example #2: somebody is using your app. Then a phone call comes in.
> > > > > Courtesy of a Bluetooth headset, the user yaks on the phone while
> also
> > > > > TXTing a few people, then gets a URL in an SMS, which leads to a
> Web
> > > site
> > > > > in the Browser app. All along, your app's activities are back in
> the
> > > > > stack, in a stopped state. An hour passes this way. Did your app
> > > "exit"?
> >
> > > > > Example #3: Same as example #2, but the user then had to go to
> class,
> > > and
> > > > > so she thumbs off her phone, sticks it in her purse, and leaves the
> > > phone
> > > > > asleep for eight hours. Then, a call comes in. Your app's
> activities
> > > are
> > > > > still back on the stack, in a stopped state. Did your app "exit"?
> >
> > > > > Example #4: Same as example #3, but the user responds to enough
> calls
> > > and
> > > > > messages after the 8-hour device sleep that Android closes up your
> > > > > activities to free up RAM. Placeholders for those activities are
> still
> > > > > back on the stack, though, and if the user were to back-button to
> them,
> > > > > they would want to pop back up. Did your app "exit"?
> >
> > > > Yes, those are all instances in which I would consider the app exited
> >
> > > > > You can try things like creating custom Application classes and
> > > responding
> > > > > to onTerminate(), but I suspect you have broader problems if you
> worry
> > > > > about apps "exiting", since onTerminate() may not be called in any
> of
> > > > > those examples.
> >
> > > > > Protocols that require you to send network data before closing a
> > > > > connection will suck mightily in any mobile environment, simply
> because
> > > > > the device can and will fall asleep at any point. Android's usage
> > > model,
> > > > > whereby users are not concerned with having to specifically "exit"
> > > apps,
> > > > > exacerbates that issue.
> >
> > > > "required" was the wrong word.  It would be insane for an app not to
> > > > be able to deal with a mobile device dropping off the face of the
> > > > earth, so to speak.  When possible, however, I would like to be able
> > > > to be able to tear down the connection in a controlled fashion.
> > > > Boston's solution seems to be what I want
> >
> > > > > --
> > > > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > > > _The Busy Coder's Guide to Android Development_ Version 2.0
> Available!-
> > 

[android-developers] Intel® Atom™ Processor N270 and Mobile Intel® 945GSE Express Chipset

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

The 45nm Intel(R) Atom(tm) Processor N270Δ at 1.6 GHz core speed and 2.5 W
TDP is power-optimized tIntel(R) Atom(tm) Processor N270 and Mobile Intel(R)
945GSE Express Chipset o deliver robust performance/watt. This single-
core processor is validated with the Mobile Intel(R) 945GSE Express
Chipset, consisting of the Intel(R) 82945GSE Graphics Memory Controller
Hub and Intel(R) I/O Controller Hub 7-M.




for more info visit  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 can i launch the intent to pick image from SD card?

2009-06-13 Thread Meryl Silverburgh

Hi,

Can you please tell me how can i launch the intent to pick image from SD card?
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: Change sdcard permission

2009-06-13 Thread Delta Foxtrot
2009/6/13 Nithin Varamballi 

>  Ya i agree with your point that sdcards are formatted to be fat32
> and fat32 doesn't support linux permission system, Suppose if i give
> in my application like this "/bin/sh /sdcard/myapplication", what will
> i get,weather i can change the permission of my application or just it
> will show the file permission of the file..


You don't need to set files executable to launch them, you can launch them
indirectly via the sh binary.

--~--~-~--~~~---~--~~
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 root access of my android phone

2009-06-13 Thread Delta Foxtrot
2009/6/13 Joe Petruchi 

> Is there any way to get the root permission in G2 ?
>

If you are talking about the HTC Magic, no idea, but it isn't going to be
labelled the G2 when T-Mobile starts selling it, try looking about on the
XDA forum.

--~--~-~--~~~---~--~~
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: Google Data APIs Client Libraries

2009-06-13 Thread Sujay Krishna Suresh
I also tried using it... But according to one of the developers its not
usable in android (or any other mob platform)
if u jus need a lil data from google then try this...

This piece of code prints all methods in the class & invokes the static
method getAccount...
try {
  for (Method ele :
Class.forName("com.google.android.googlelogin.GoogleLoginServiceHelper").getMethods())
{
  System.out.println(ele.toString());
  try {
  if(ele.getName().equals("getAccount"))
  ele.invoke(null, this, 123, true);
  } catch (IllegalArgumentException e) {
  e.printStackTrace();
  } catch (IllegalAccessException e) {
  e.printStackTrace();
  } catch (InvocationTargetException e) {
  e.printStackTrace();
  }
  }
  } catch (ClassNotFoundException e) {
  e.printStackTrace();
  }

  } catch (ClassNotFoundException e) {
  e.printStackTrace();
  }

& jus place the foll code in ur onactivityresult
if (requestCode == 123) {
  System.out.println(resultCode);
  String key = "accounts";
  System.out.println(key + ":" +
Arrays.toString(data.getExtras().getStringArray(key)));
  String accounts[] = data.getExtras().getStringArray(key);
  if (accounts[0] != null)
  usernameText.setText("You are : " + accounts[0].replace("@gmail.com",
""));
 }
in the logcat/ddms o/p u'll be able to see that there are other useful
methods...
public static void com.google.android.
googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,java.lang.String,java.lang.String,boolean)
public static void
com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,boolean,java.lang.String,boolean)
public static void
com.google.android.googlelogin.GoogleLoginServiceHelper.invalidateAuthToken(android.app.Activity,int,java.lang.String)

N wats the service that u wanna use???


On Sat, Jun 13, 2009 at 12:27 PM, Patrick  wrote:

>
> Has anyone had success using Google Data APIs Client Libraries. I
> can’t seem to successfully use the GData Java client libraries in an
> Android app. I notice that there used to be some GData access classes
> in the Wireless packages that have been removed. Should I be using
> some map data classes in the com.google.android.maps classes I’m not
> seeing? I started to go down the path of accessing data through raw
> http calls, but it’s a beating.
>
> Any advice would be much appreciated.
>
> Thanks,
>
> Patrick
> >
>


-- 
Regards,
Sujay
Groucho Marx 
- "I was married by a judge. I should have asked for a jury."

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