Re: [android-developers] Re: How to hide error dialog on MediaPlayer

2013-02-07 Thread Per-Jarle Sæther
Hi
That solved it :)

Thank you for the help

Best regards
Per-Jarle

On Tue, Feb 5, 2013 at 4:46 PM, Nobu Games dev.nobu.ga...@gmail.com wrote:

 Have you tried setting a 
 MediaPlayer.OnErrorListenerhttp://developer.android.com/reference/android/media/MediaPlayer.OnErrorListener.htmlthat
  returns true? Maybe this will suppress the internally generated error
 message.



 On Tuesday, February 5, 2013 4:55:05 AM UTC-6, Per-Jarle Sæther wrote:

 Hello all
 I'm working with a video playback app

 Sometimes when there is a problem with the video stream, the MediaPlayer
 displays an error dialog saying:
 Sorry, this video cannot be played

 Is there any way to disable this dialog so it will not be displayed in my
 app?
 I would like to implement my own functionality when errors happen

 Best regards
 Per-Jarle

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] How to hide error dialog on MediaPlayer

2013-02-05 Thread Per-Jarle Sæther
Hello all
I'm working with a video playback app

Sometimes when there is a problem with the video stream, the MediaPlayer
displays an error dialog saying:
Sorry, this video cannot be played

Is there any way to disable this dialog so it will not be displayed in my
app?
I would like to implement my own functionality when errors happen

Best regards
Per-Jarle

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] how to make graphics fit to different screen resolutions

2013-01-21 Thread Per-Jarle Sæther
Hi all
I have an application that was originally developed for a 7 touchpad with
resolution 800x480 (mdpi).
Both graphics and layouts was made for this resolution.

Now I am trying to make this app to support another device that have
resolution 1024x552 (mdpi)

Since both devices are mdpi, then I need to make new graphics to fit the
new resolution.
How can I make each device automatically select the right graphics and
layouts when they are both mdpi?

Can anybody show point me to an example that solves this?

Best regards
Per-Jarle

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 update SDK Tools to revision 21?

2012-11-26 Thread Per-Jarle Sæther
Hello all
I ran an update of the ADT in Eclipse.

After updating, I get an error message saying:

*This version of ADT requires Android SDK Tools revision 21.0.0 rc9 or
above.
Current revision is 20.0.0.
Please update your SDK Tools to the latest version.*

Together with two buttons (Open SDK Manager, Close)

When I open SDK Manager, it does not show Android SDK Tools higher than
Rev. 20.

How do I solve this?

Best regards
Per-Jarle

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 update SDK Tools to revision 21?

2012-11-26 Thread Per-Jarle Sæther
Hi all
Please ignore my last email
I found the reload button...

Best regards
Per-Jarle

On Mon, Nov 26, 2012 at 3:33 PM, Per-Jarle Sæther 
per.jarle.saet...@gmail.com wrote:

 Hello all
 I ran an update of the ADT in Eclipse.

 After updating, I get an error message saying:

 *This version of ADT requires Android SDK Tools revision 21.0.0 rc9 or
 above.
 Current revision is 20.0.0.
 Please update your SDK Tools to the latest version.*

 Together with two buttons (Open SDK Manager, Close)

 When I open SDK Manager, it does not show Android SDK Tools higher than
 Rev. 20.

 How do I solve this?

 Best regards
 Per-Jarle


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Using custom Content Providers

2012-06-19 Thread Per-Jarle Sæther
Thank you for good explanation

Best regards
Per-Jarle

On Mon, Jun 18, 2012 at 5:01 PM, Mark Murphy mmur...@commonsware.comwrote:

 If the ContentProvider has an android:permission,
 android:readPermission, or android:writePermission attribute in its
 provider element in the manifest, then the consumer needs to have
 the corresponding uses-permission element.

 On Mon, Jun 18, 2012 at 9:02 AM, Per-Jarle Sæther
 per.jarle.saet...@gmail.com wrote:
  Hello, and thank you for replying
 
  I was looking at a tutorial that used Contacts which is a ContentProvider
 
  That app had the following tag in AndroidManifest:
 
   uses-permission
 android:name=android.permission.READ_CONTACTS
 
   /uses-permission
 
 
 
  I thought maybe I would need something like that to access a custom
  ContentProvider
 
  Best regards
  Per-Jarle
 
 
  On Mon, Jun 18, 2012 at 12:29 PM, Mark Murphy mmur...@commonsware.com
  wrote:
 
  You do not need to have a uses-permission element to use that
  ContentProvider. I do not know what other uses tag you might be
  concerned with.
 
  On Mon, Jun 18, 2012 at 5:09 AM, Per-Jarle Sæther
  per.jarle.saet...@gmail.com wrote:
   Hello all
   Do I need to specify an uses tag in AndroidManifest if I shall use a
   custom
   Content provider?
  
   Example:
   Provider tag in Content Provider:
  
provider android:name=BooksProvider
  
android:authorities=net.learn2develop.provider.Books /
  
  
   What uses tag do I need to have in a client app that use this
 provider?
  
   Best regards
   Per-Jarle
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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
 
 
 
  --
  Mark Murphy (a Commons Guy)
  http://commonsware.com | http://github.com/commonsguy
  http://commonsware.com/blog | http://twitter.com/commonsguy
 
  _The Busy Coder's Guide to Android Development_ Version 3.7 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
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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



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

 _The Busy Coder's Guide to Android Development_ Version 3.7 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Using custom Content Providers

2012-06-18 Thread Per-Jarle Sæther
Hello all
Do I need to specify an uses tag in AndroidManifest if I shall use a custom
Content provider?

Example:
Provider tag in Content Provider:

 provider android:name=BooksProvider
 android:authorities=net.learn2develop.provider.Books /


What *uses* tag do I need to have in a client app that use this provider?

Best regards
Per-Jarle

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Using custom Content Providers

2012-06-18 Thread Per-Jarle Sæther
Hello, and thank you for replying

I was looking at a tutorial that used Contacts which is a ContentProvider

That app had the following tag in AndroidManifest:

 uses-permission
   android:name=android.permission.READ_CONTACTS
 /uses-permission



I thought maybe I would need something like that to access a custom
ContentProvider

Best regards
Per-Jarle

On Mon, Jun 18, 2012 at 12:29 PM, Mark Murphy mmur...@commonsware.comwrote:

 You do not need to have a uses-permission element to use that
 ContentProvider. I do not know what other uses tag you might be
 concerned with.

 On Mon, Jun 18, 2012 at 5:09 AM, Per-Jarle Sæther
 per.jarle.saet...@gmail.com wrote:
  Hello all
  Do I need to specify an uses tag in AndroidManifest if I shall use a
 custom
  Content provider?
 
  Example:
  Provider tag in Content Provider:
 
   provider android:name=BooksProvider
 
   android:authorities=net.learn2develop.provider.Books /
 
 
  What uses tag do I need to have in a client app that use this provider?
 
  Best regards
  Per-Jarle
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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



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

 _The Busy Coder's Guide to Android Development_ Version 3.7 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

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

Re: [android-developers] How to configure SDK emulator to start with english instead of japanese?

2010-08-26 Thread Per-Jarle Sæther
Hi again Kostya
The Wipe User Data is not checked in any of my run configurations.

Best regards
Per-Jarle

On Thu, Aug 26, 2010 at 9:37 AM, Kostya Vasilyev kmans...@gmail.com wrote:

 Have you tried disabling wipe user data in the emulator launch dialog? I
 just verifified that it does help to leave it off.

 --
 Kostya Vasilyev -- http://kmansoft.wordpress.com

 26.08.2010 11:19 пользователь Per-Jarle Sæther 
 per.jarle.saet...@gmail.com написал:


 Hi, and thank you for replying to me

 The japanese settings are coming back every time I start the simulator or
 run an app (doesn't matter if the simulator is restarted or not)

 The attached picture shows the Compose message application after I changed
 the settings and thereafter ran an application.

 It seems like the simulator is reset or settings uploaded during the upload
 of the application.

 Best regards
 Per-Jarle




 On Wed, Aug 25, 2010 at 5:28 PM, { Devdroid } webnet.andr...@gmail.com
 wrote:
 
  2010/8/25 Per...

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


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

[android-developers] How to configure SDK emulator to start with english instead of japanese?

2010-08-25 Thread Per-Jarle Sæther
Hello all
I'm new to Android development and have just startet playing with the SDK.

One thing that is annoying is that the emulator always start with Japanese
settings.
I have found out how to fix this by going into settings and remove all the
Japanese stuff, but this is time consuming since I have to do it every time
I start the emulator.

Can someone help me change the startup settings for the emulator?

Thanks in advance

/Per-Jarle

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 manipulate order of views in a viewgroup using drag'n'drop

2010-08-19 Thread Per-Jarle Sæther
Hi all
I want to develop an application that contains 4 views in one viewgroup

The following interactions shall be possible:

   1. change ordering
  - When you drag a finger from one view to another, the two views shall
  swap
   2. maximize one view
  - When you click on one view, it shall maximize (remove other 3 views)
  - when maximized, a single touch shall give back the quad view
  3. Start rotation between maximized views
  - When push and hold, it shall start rotation between all views
  showing one maximized at a time in the same order as the views are
  organized.
  - When rotation running, a single touch should give back the quad view

I would be thankful if someone can give me some hints how to accomplish
this. If possible with some sample code

Best regards
Per-Jarle

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Dalvik VM vs Sun JVM - compabillity

2010-08-18 Thread Per-Jarle Sæther
Hi all
I am new to Android development

Are there any compability issues between a standard JVM and Dalvik VM?

Are there any classes or packages from the Sun SDK that can't be used on
Android?

Best regards
Per-Jarle Sæther

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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