[android-developers] Launching play store for specific product

2013-01-17 Thread JPS
Hi

I'm trying to launch the Google/Android Play Story using an intent 
(com.android.vending). I would like Play store to display the page specific 
to an app. I've searched on ways to do this but could not find anything.
I assume some parameters need to be added to the intent.
I Know this can be done via the web browser but I cannot use the browser in 
this case.

Thanks in advance for all you help.

JPS

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

Re: [android-developers] Launching play store for specific product

2013-01-17 Thread JPS


 Hi Harri and thanks for the reply


This is what I'm currently doing but this causes a dialog to pop-up asking 
if this action should be done using the browser or playstore. This is not 
acceptable in this situation. This is why I want to launch the 
com.android.vending activity directly.

JPS

-- 
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: Live wallpaper. nullPointerException when detecting preview mode

2012-09-08 Thread JPS


 Thanks for all your help.


looks like the place to make this call is in:
@Override
public void onCreate(SurfaceHolder surfaceHolder) {
}
 Beware: this is called once and only once in run mode what the wallpaper 
is launched and each time the wallpaper is viewed in preview mode.

This  got me a bit confused.

I wish the documentation was a bit more mature.

Thanks 

JPS

On Friday, September 7, 2012 9:19:42 AM UTC+2, JPS wrote:

 Hi 
 I am developing a live wallpaper and want the preview mode to display a 
 bitmap as opposed to the regular animation in run mode.

 I know I should use the isPreview() call and all my searches indicate that 
 I should do this in the onCreateEngine() method which is what I did. 
 However I get a nullPointerException. I have tried other locations and the 
 only locations it works are located too far down to perform initialisation.

 Any help is Greatly appreciated.

 Thanks

 JPS


 @Override
 public Engine onCreateEngine() {
 mEng = new WallpaperEngine();

 if (mEng!= null) {
 *if (mEng.isPreview()) { // crash here*
 Log.d(TAG, preview mode);
 // display preview bitmap
 } else {
 Log.d(TAG, run mode);
 // perform full initalization
 }
 }

 return mEng;
 }



-- 
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] Live wallpaper. nullPointerException when detecting preview mode

2012-09-07 Thread JPS
Hi 
I am developing a live wallpaper and want the preview mode to display a 
bitmap as opposed to the regular animation in run mode.

I know I should use the isPreview() call and all my searches indicate that 
I should do this in the onCreateEngine() method which is what I did. 
However I get a nullPointerException. I have tried other locations and the 
only locations it works are located too far down to perform initialisation.

Any help is Greatly appreciated.

Thanks

JPS


@Override
public Engine onCreateEngine() {
mEng = new WallpaperEngine();

if (mEng!= null) {
*if (mEng.isPreview()) { // crash here*
Log.d(TAG, preview mode);
// display preview bitmap
} else {
Log.d(TAG, run mode);
// perform full initalization
}
}

return mEng;
}

-- 
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: Live wallpaper. nullPointerException when detecting preview mode

2012-09-07 Thread JPS


On Friday, September 7, 2012 9:19:42 AM UTC+2, JPS wrote:

 Hi 
 I am developing a live wallpaper and want the preview mode to display a 
 bitmap as opposed to the regular animation in run mode.

 I know I should use the isPreview() call and all my searches indicate that 
 I should do this in the onCreateEngine() method which is what I did. 
 However I get a nullPointerException. I have tried other locations and the 
 only locations it works are located too far down to perform initialisation.

 Any help is Greatly appreciated.

 Thanks

 JPS


 @Override
 public Engine onCreateEngine() {
 mEng = new WallpaperEngine();

 if (mEng!= null) {
 *if (mEng.isPreview()) { // crash here*
 Log.d(TAG, preview mode);
 // display preview bitmap
 } else {
 Log.d(TAG, run mode);
 // perform full initalization
 }
 }

 return mEng;
 }


Hi Calin

here is the crash log

09-07 09:58:33.441: E/AndroidRuntime(2101): FATAL EXCEPTION: main
09-07 09:58:33.441: E/AndroidRuntime(2101): java.lang.NullPointerException
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
android.service.wallpaper.WallpaperService$Engine.isPreview(WallpaperService.java:332)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
com.aajo.appia.LiveWallpaper.onCreateEngine(LiveWallpaper.java:205)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:872)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
android.os.Handler.dispatchMessage(Handler.java:99)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
android.os.Looper.loop(Looper.java:130)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
android.app.ActivityThread.main(ActivityThread.java:3683)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
java.lang.reflect.Method.invokeNative(Native Method)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
java.lang.reflect.Method.invoke(Method.java:507)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
09-07 09:58:33.441: E/AndroidRuntime(2101): at 
dalvik.system.NativeStart.main(Native Method)
 
Is this what you 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] Live wallpaper bitmap animation flickering

2012-09-06 Thread JPS
Hi

I am doing a bitmap animation at 24fps. This is a 64 pixel bitmap of a 
filled circle with transparent borders. The animation is done using a 
Runnable and the drawBitMap() to draw the bitmaps on the canvas.

The animation runs fine but it looks like in every second frame the 
transparent area shows the background image slightly darker. this causes 
some flickering in the transparent areas.

Has anyone seen this before and/or has a solution to this problem.

Any help is much appreciated.

Thanks

JPS

-- 
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 WebView style background-color:transparent ignored on android 2.2

2011-02-15 Thread JPS
Hello, I'm struggling to create a WebView with transparent background.

webView.setBackgroundColor(0x00FF);
webView.setBackgroundDrawable(myDrawable);

Then I load a html page with

body style=background-color:transparent; ...

The background color of the WebView is transparent but as soon as the
page is loaded, it's overwritten by a black background from the html
page. This only happens on android 2.2, it works on android 2.1.

So is there something to add in the html page code to make it really
transparent ?

Or is it simply again another bug that nobody cares and that will
never been addressed by 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] TabActivity, selecting a new tab with animation

2011-02-08 Thread JPS
Hello,

My application/game is based upon a TabActivity, each tab is an
activity.
At one time in the application you can click on a button to select
another tab. It's not only a tab selection, we change also the view in
the newly selected tab.

That's why I would like to implement an animated transition when
selecting the new tab. I need some help to find the direction I should
go to implement this.

Thx a lot.

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


[android-developers] Re: Analysis of the engadget app

2011-01-27 Thread JPS
Well that's exactly the inverse my little Zsolt Vasvari.
Thx TreKing.

On Jan 17, 8:53 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 Another guy who wants to code an iPhone copy app on Android :(

 On Jan 17, 3:46 pm, TreKing treking...@gmail.com wrote:

  On Mon, Jan 17, 2011 at 1:17 AM, JPS jpsa...@gmail.com wrote:
   I want to make an application with tabbed panes, with different views
   in each pane. I would like to know if there is a standard component/ way
   for doing this.

  Standard way of doing tabs would be TabActivity and TabView. Though I doubt
  that's what's being used in the picture, by the looks of it.

   Any help to analyse how they are doing this will be greatly appreciated.

  Looks simply like a LinearLayout with a single row of buttons. Clicking on a
  given button changes the main view. This should be incredibly easy to layout
  and code up.

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



-- 
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] [beginner] Analysis of the engadget app

2011-01-16 Thread JPS
Hello all,

I want to make an application with tabbed panes, with different views
in each pane. I would like to know if there is a standard component/
way for doing this.

An example of what I'm trying to do is the engadget android app.
Screen shot :
http://www.eurodroid.com/pics/engadget_updates_android_app_1.png

Any help to analyse how they are doing this will be greatly
appreciated.

Thx!

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