[android-developers] Sharing public files between applications inside a work profile

2016-06-01 Thread jona
In Android 5 (Lollipop), a work profile/profile owner application could 
still write on the external storage and share file, even doing a local 
socket.
>From Android 6 (Marshmallow), this is not possible and it does make sense.
But what about sharing files between applications inside a Work Profile?

Thank you for your help.

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/89a78177-4810-41d4-8af1-869f943fc5e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Sharing public files between applications inside a work profile

2016-06-01 Thread jona
To be more clear, I would like to install a non-market application on the 
Work Profile. But as I can't download and write the APK in a public storage 
available from all applications in the Work Profile, this following code 
will fail as either I can't write the APK in a public storage or the 
following intent doesn't have the right to read the file in the private 
storage of the application:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(APKFile,
"application/vnd.android.package-archive");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);



-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/28a4edbf-d27b-4e6b-b0f0-877be6d322d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Sharing public files between applications inside a work profile

2016-06-02 Thread jona
Nobody has any idea? How about the Google developpers who developped the 
mobile device management?

On Thursday, June 2, 2016 at 11:15:52 AM UTC+9, jo...@bizmobile.co.jp wrote:
>
> In Android 5 (Lollipop), a work profile/profile owner application could 
> still write on the external storage and share file, even doing a local 
> socket.
> From Android 6 (Marshmallow), this is not possible and it does make sense.
> But what about sharing files between applications inside a Work Profile?
>
> Thank you for your help.
>

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3bfa1abc-3c00-4028-be70-f8fcaf85dfac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] AACPlus - Decoding a Stream? - Anyone Shoutcast?

2008-11-03 Thread Jona

Hello Androids!

So lets get Radio Streaming working! First to those that are experts.
The G1 phone supports AAC file types... but not sure if AACPlus? or
are we talking about the same thing? Do we need decoder support? Is
there any decoder support on the MediaPlayer?

So I was looking into making an ACCPlus V1 or V2 radio stream readable
by the MediaPlayer but apparently it doesn't work...
if I store a few Kbytes of this stream into a file than try to play it
on my computer it works...  If I try playing that file on my G1
phone... no luck...

So at this point I know I'm getting the right data...

Now how do we decode this stream to be MediaPlayer readable on
android? I guess this will get us on the right path to Radio
Streaming...

Thanks
Jona

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



[android-developers] Re: AACPlus - Decoding a Stream? - Anyone Shoutcast?

2008-11-04 Thread Jona

Ok so now I understand a little more!

We need a decoder for AACPlus.  for some reason I thought the G1 phone
supported aacPlus™ and Enhanced aacPlus? please correct me if I'm
wrong...

Are this codecs 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: AACPlus - Decoding a Stream? - Anyone Shoutcast?

2008-11-04 Thread Jona

OpenCORE includes:
• PV’s multimedia platform, including interfaces for
third-party and hardware media codecs, input and
output devices and content policies
• Media playback, streaming, downloading and
progressive playback—including 3GPP, MPEG-4,
AAC and MP3 containers
• Media streaming, downloading and progressive
playback—including 3GPP, HTTP and RTSP/RTP
• Video and image encoders and decoders:
MPEG-4, H.263 and AVC (H.264), JPEG
• Speech codecs: AMR-NB and AMR-WB
• Audio codecs: MP3, AAC, AAC+
• Media recording: 3GPP, MPEG-4 and JPEG
• Video telephony based on 324-M standard
• PV test framework to ensure robustness and stability;
profiling tools for memory and CPU usage
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: AMR Codec List

2008-11-05 Thread Jona

I was also looking for information about the ARM codecs to support
music streaming specifically decoding AAC+ stream...
Could you guys point me to the right direction? I know hardware on the
G1 phone is supported but how do I bring this codec to LIFE!?

Thanks,
hope someone answers.. really sad no one answers this type of
questions...

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



[android-developers] Re: AACPlus - Decoding a Stream? - Anyone Shoutcast?

2008-11-07 Thread Jona

Dave thanks so much for your reply! I really appreciate it!

I'm trying to understand why it wouldn't work... I handled my
connection properly to one of the radios on ShoutCast and stored
around 1MB of data to be later tested if the correct information was
sent...  It was successful on playing the file on my PC but not
MediaPlayer on android... So that would tell me I achieved a proper
connection via HTTP... maybe I'm confusing my self?

About the metadata tags I  could just write a function to parse my
stream data and give me my metadata tags... right?

Thanks for your time and patience ^.^

Jona


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



[android-developers] Streaming RTSP directly by suing MediaPlayer

2008-11-24 Thread Jona

Question:
Does MediaPlayer support the following code.

mp.setDataSource("rtsp://someRTSPStremingSite.com");

Does it take the path of the RTSP stream and the Media Player handles
the connection etc...?
how would this work?

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



[android-developers] How do you associate a file type to open with an application?

2008-11-24 Thread Jona

I guess the subject asks the question...
I want to be able to download a file type and when the user clicks on
that file my application is invoked with the file path passed to it...

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



[android-developers] Re: Streaming RTSP directly by suing MediaPlayer

2008-12-04 Thread Jona

Thanks Dave for your reply it answers my question!

About the firewall issue on the emulator  this is due to port 544, but
in my case I used port 8544 on my server and I didn't see this issue
it work fine...



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



[android-developers] Re: Streaming RTSP directly by suing MediaPlayer

2008-12-05 Thread Jona

I'm not sure were or who to ask...

I've been trying to create a server to communicate with MediaPlayer
via RTSP.

Now I've got this response from the MediaPlayer to my server:

//
[OPTIONS rtsp://localhost:8554/triStateBuffer1 RTSP/1.0

CSeq: 0

User-Agent: PVCore/05.02.00.00 PVPlayer/6.18 (Linux; Android; NJ)

ClientChallenge: 9e26d33f2984236010ef6253fb1887f7

PlayerStarttime: [28/03/2003:22:50:23 00:00]

CompanyID: KnKV4M4I/B2FjJ1TToLycw==

GUID: ----



DESCRIBE rtsp://localhost:8554/triStateBuffer1 RTSP/1.0

CSeq: 1

User-Agent: PVCore/05.02.00.00 PVPlayer/6.18 (Linux; Android; NJ)

Accept: application/sdp

Accept-Encoding:
//

I know I have to reply to the MediaPlayer like

"RTSP/1.0 200 OK"
"CSeq: 1"
"Content-Type:
"Content-length:
//And more details, this is what I'm not sure what to reply the Media
Player in order to get a SETUP message back...


Could someone help me?

I want to send only audio... mpg

Thanks!
JOna


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



[android-developers] How To Start a RTSP connection

2008-12-09 Thread Jona

Could someone help me figure out how to initialize the MediaPlayer to
play an RTSP link?  The link is only audio there is no video... would
this matter?

Thanksin Advance!!!

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



[android-developers] Re: How To Start a RTSP connection

2008-12-18 Thread Jona

Hi Dave,
I have tried opening the link using the Live555 Media Server to
broadcast the mp3 track.  This broadcast is accessible anywere on the
internet and as well my local network.  I tried accessing via my
wireless connection and using WireShark to record communication and I
could see the first two messages from the MediaPlayer.  OPTIONS, and
DESCRIBE.

My server replied back but a SETUP message was never returned any
ideas? Here is my log.

C->S:
OPTIONS rtsp://76.117.125.33:554/one.mp3 RTSP/1.0
CSeq: 0
User-Agent: PVCore/05.02.00.00 PVPlayer/6.18 (Linux; Android; NJ)
ClientChallenge: 9e26d33f2984236010ef6253fb1887f7
PlayerStarttime: [28/03/2003:22:50:23 00:00]
CompanyID: KnKV4M4I/B2FjJ1TToLycw==
GUID: ----

C->S:
DESCRIBE rtsp://76.117.125.33:554/one.mp3 RTSP/1.0
CSeq: 1
User-Agent: PVCore/05.02.00.00 PVPlayer/6.18 (Linux; Android; NJ)
Accept: application/sdp
Accept-Encoding:

S->C:
RTSP/1.0 200 OK
CSeq: 0
Date: Mon, Dec 08 2008 01:09:10 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE

S->C:
RTSP/1.0 200 OK
CSeq: 1
Date: Mon, Dec 08 2008 01:09:10 GMT
Content-Base: rtsp://192.168.0.101/one.mp3/
Content-Type: application/sdp
Content-Length: 377

v=0
o=- 520052821747 1 IN IP4 192.168.0.101
s=MPEG-1 or 2 Audio, streamed by the LIVE555 Media Server
i=one.mp3
t=0 0
a=tool:LIVE555 Streaming Media v2008.02.08
a=type:broadcast
a=control:*
a=range:npt=0-194.374
a=x-qt-text-nam:MPEG-1 or 2 Audio, streamed by the LIVE555 Media
Server
a=x-qt-text-inf:one.mp3
m=audio 0 RTP/AVP 14
c=IN IP4 0.0.0.0
a=control:track1

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] "Cupcake" Anyone in Google that Could Shed Some Light! :) Thanks!

2008-12-23 Thread Jona

//Notable changes introduced in cupcake://
#  Music
- New features
  Music playback fades in after suspending for phone call.

# Framework
- Streaming audio I/O for applications.


Questions:

1). Fade Music playback, will we have to lessen to an onCall event?
and handle the fades or will this be something that automatically
fades the music pauses? and after the call resumes playback?

2). Streaming audio, will we be passing an InputStream? that would be
great!


Thanks in advance!
Moto
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: "Cupcake" Anyone in Google that Could Shed Some Light! :) Thanks!

2008-12-23 Thread Jona

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



Re: [android-developers] Re: Copyright question: Can I remix a Final Fantasy song and use it in my game?

2012-01-19 Thread Jona
I would recommend you make your own music... These types of music are so 
simple!  Just copy the structure of the song... And apply your own keys 
:)

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

[android-developers] Re: Updating home screen shortcut icon

2012-12-15 Thread Jona
As fast as I know once shortcuts are created they are no longer related to 
the application that created it. So you wont be able to update the icon on 
old shortcuts.

On Thursday, August 4, 2011 8:00:49 AM UTC-4, mad stuntman wrote:
>
> Hi Willian, 
>
> Did you solve the problem? I have the same issue. I have 
> relocated .action.MAIN intent filter to newer activity in the new app 
> version, and users report me that they are not able to lunch 
> application from older shortcut after upgrade. They need delete 
> previous shortcut and create a new one. I also able to reproduce the 
> issue. So I also looking for a way to update app shortcut. 
>
> On Jul 24, 4:08 pm, William Ferguson  
> wrote: 
> > No, just the icon. 
> > 
> > On Jul 24, 7:29 pm, Zsolt Vasvari  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > Did you also change your main activity? Doing that can cause the icon 
> > > not to update until the next reboot. 
> > 
> > > On Jul 24, 2:23 pm, William Ferguson  
> > > wrote: 
> > 
> > > > The latest version of my app has a new launcher icon, and when the 
> new 
> > > > version is installed (at least on the emulators and a 2.3.3 device) 
> > > > the icon for existing home screen shortcuts to the app are not 
> > > > updated. 
> > 
> > > > Is there a way to force existing home screen shortcuts to update 
> their 
> > > > icons? 
> > 
> > > > William

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

[android-developers] Re: ListView - is it possible to limit the fling speed?

2011-05-09 Thread Jona
I haven't tested this but API 11 supports friction. See:
http://developer.android.com/reference/android/widget/AbsListView.html#setFriction(float)

Moto

On May 9, 2:36 pm, Dianne Hackborn  wrote:
> ListView already limits its fling speed; you shouldn't change it to behave
> differently than it does everywhere else in the UI.
>
> On Mon, May 9, 2011 at 12:03 PM, Omar Adobati wrote:
>
>
>
>
>
> > Hi Everyone,
>
> > I would like to knoe if I can limit the speed of the fling gestures in my
> > ListActivity and if it is possible to stop the "scrolling" of the same list
> > when I touch it.
>
> > My current situation is the following: If I perform a vertical scroll that
> > trigers the Fling state, sometimes (often actually) my List View scrolls
> > full speed to the bottom (or to the top) and dose't stop till it reaches the
> > final position. This is not really user friendly... is there a way to limit
> > it?
>
> > I have already tried with setFastScrollEnabled(false); but it seems to
> > don't work.
>
> > Thanks to everyone who would like to help.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Re: Shoutcast streaming app

2011-05-09 Thread Jona
We currently have a robust streaming solution.  Around June we will
have a lib available for licensing...  This stream engine is used by
xiialive.

-jona

On May 9, 4:47 am, gaurav gupta  wrote:
> hi Michanel,
>
> m using streaming in my application too , i dont think SDK version will
> affected . u must using something that is not available in previous version
> of android. so its creates problem.
> i dont know the exact proble so cant give u exact answer.
> m using this code for Streaming audio from web , and its working superb:
>
> String url = "enter your Url that starts Streaming ";
>
> Intent intent = *new* Intent(Intent.*ACTION_VIEW*);
>
> intent.setData(Uri.*parse*(url));
>
>     .*this*.startActivity(intent);
>
>     .*this*.finish();// it will return intent after streming
> .remove this line if u dont need.
>
> i hope it will work for u :)
>
> On Mon, May 9, 2011 at 4:12 AM, Michael Foster 
> wrote:
>
>
>
> > Hello all
> > I am building an app that can play my shoutcast radio station.  For
> > starters, I'm just using the standard MediaPlayer and everything
> > seemingly works fine.   I just point it to my shoutcast url and it
> > does the rest.  However, this does not work for Android 2.1 or lower.
> > Also, I have found that on various devices, people have complained
> > that there is no sound.
>
> > I'm wondering if anyone has had any success building a shoutcast media
> > player that can work on all (or most) devices.  I'm willing to
> > purchase a 3rd party library if reasonably priced.  Is there a better
> > way to do this than using MediaPlayer?
>
> > thanks in advance for any tips you all can offer.
> > Michael
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] How to properly clear intent data from singleTop Activity?

2011-04-19 Thread Jona


Scenario is: 

Activity with singleTop declared at the manifest. This activity is called 
with some extras. I'm able to clear the intent data and be able to flip 
screen and such without the original intent being called using 
setIntent(newIntent). 

The issue is that when the activity is killed by the system and the user 
goes back to this activity it gets restarted using the original intent used 
to create the activity.
How do I resolve this issue? I tried starting the same activity from within 
with a new Intent but no luck... I have also used various intent start 
activity flags.

Thanks,
- Jona

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 properly clear intent data from singleTop Activity?

2011-04-19 Thread Jona
Well, doing what you are saying leaves me with an issue... How do I than 
know when it's a legit incoming intent?

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

Re: [android-developers] Re: How to properly clear intent data from singleTop Activity?

2011-04-19 Thread Jona
You are completely right... :) Now I see a way out of this issue...  But I'm 
still thinking why does Android work like this? There should be a way to 
tell the OS to clear the intent data from the ActivityManager.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 properly clear intent data from singleTop Activity?

2011-04-19 Thread Jona
Thanks man!  It has helped understand this much better and now things are 
working as expected! :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: IllegalStateException in MediaPlayer (Redux)

2011-06-15 Thread Jona
I know this thread is old, but why not call stop() and that's it.
After you can call start().  Or just call reset() and when you need to
prepare again just setDataSource() and prepareAsync().

-Jona
On Jun 15, 7:30 am, Petroleum Nasby  wrote:
> Issue #800 has been open since 2008.
>
> It's unbelievable that three years later, one still cannot determine
> the state of the MediaPlayer.
>
> I hate to kvetch, but Android makes me kvetch more that just about any 
> platform.
>
> Regards
>
> P. V. Nasby
>
>
>
>
>
>
>
> On Sat, Nov 27, 2010 at 7:38 AM, Jason  wrote:
> > Thanks for the advice.  I had already modeled the state transitions
> > using the listeners, however I suspect there is (was) a problem with
> > the rules I had implemented in this regard.
>
> > Because the call to prepareAsync returns immediately, I think a
> > subsequent call to prepareAsync was coming in and failing due to a
> > missed state check in the code.
>
> > I also realized that I don't actually need to call prepareAsync in
> > most cases anyway.  Because I am really just wanting to "reset" the
> > audio track to be played again, I can just call seekTo(0) which is
> > much faster.
>
> > In the end.. as usual.. it was my crufty code that was the problem!
>
> > Thanks again,
>
> > Jason.
>
> > --
> > Droid Odyssey!  A new game for Android
> >http://www.carboncrystal.com/droid-odyssey/
>
> > On Nov 27, 6:59 am, joebowbeer  wrote:
> >> Do you have an error listener registered? Does it give you more
> >> information?
>
> >> According to the state diagram, stop() is not available in all states.
> >> Perhaps you're calling stop() in an invalid state, causing the player
> >> to transition to the Error state, at which point prepareAsync would
> >> fail:
>
> >>http://developer.android.com/reference/android/media/MediaPlayer.html
>
> >> In my experience with media player, it's best not to assume that a
> >> state transition has happened until one of the listeners tells you.
>
> >> Also, if you have the luxury of creating a new MediaPlayer instead of
> >> trying to stop and reuse the current player, I think you'll receive
> >> fewer error reports.
>
> >> On Nov 23, 1:16 am, Jason Polites  wrote:
>
> >> > Hi folks,
>
> >> > Some time ago I posted an issue relating to an IllegalStateException
> >> > in the Media Player (http://groups.google.com/group/android-developers/
> >> > browse_thread/thread/46c7c2cd4f4a6958/5551d47aac93632c)
>
> >> > I have just launched the app into the "wild" and this error is
> >> > flooding in.
>
> >> > I just can't seem to fathom why.. here's the code:
>
> >> > if(mp != null) {
> >> >        mp.stop();
> >> >        mp.prepareAsync();
>
> >> > }
>
> >> > (mp is a MediaPlayer instance BTW).
>
> >> > According to the doco, prepareAsync is valid for {Initialized,
> >> > Stopped} states.. but I just can't see how it could be in any state
> >> > other than stopped??
>
> >> > The trace is:
>
> >> > java.lang.IllegalStateException
> >> >       at android.media.MediaPlayer.prepareAsync(Native Method)
> >> >       .. the line of code mentioned above follows.
>
> >> > Is it possible that stop() is not synchronous?  Can't seem to see
> >> > anything in the doco stating this.
>
> >> > Anyone got any ideas?
>
> >> > P.S.
>
> >> > I'm seeing this on a wide range of devices, but all so far are version
> >> > 2.1-update1
>
> >> > --
> >> > Droid Odyssey!  A new game for 
> >> > Androidhttp://www.carboncrystal.com/droid-odyssey/
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
   
  
I think there is a bug somehow on the Android OS. I'm using HTC EVO which on 
the home screen it never goes to landscape as it was intended by HTC.

*Here is my setup:*

drawable-port/button_image_on.png
drawable-port/button_image_off.png
drawable-land/button_image_on.png
drawable-land/button_image_off.png

On my home screen widget I toggle the images depending on the received 
broadcast intent. 

This is what I use to change the image from within the AppWidgetProvider:

if (toggleOn)
{
   views.setImageViewResource(R.id.button_image_on, R.drawable.button_image_on);
}
else
{
   views.setImageViewResource(R.id.button_image_on, 
R.drawable.button_image_off);
}

The problem I'm having is that some cases the land images are shown when the 
phone is in port mode.

To reproduce easily from my application I send a broadcast intent to toggle 
image state on the widget. I send this intent while the app is in landscape 
mode. Than when I got to the homescreen bam! the widget in port mode is 
using a land image! Odd right?

Anyone run into a similar issue? 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 does home screen widget confuse land/port images?

2011-06-17 Thread Jona
Unless I'm not understanding, I don't think what you are saying is valid. If 
you are trying to provide a different look/image for a view in land and 
port, you should name the file the same and place them inside the respective 
drawable folders.  drawable-land and drawable-port.  This should technically 
work but in this particular scenario it doesn't

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
Thanks for your reply. Yes, I currently update everything at once.  What I'm 
seeing is that I also have a different design layout for land and port... 
I'm wondering how that could affect it...
final RemoteViews views = new RemoteViews(ctx.getPackageName(), 
R.layout.widget_main_4x1);

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
I removed the land and port layouts and placed just one layout under layout 
folder and the issue was reproducible again.  So, I guess layout is not the 
issue...

By the way, I cleaned up the whole project and recompiled freshly to get a 
new R file.

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
I'm going to do some more tests see if I can figure out the main cause...

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
Thanks for your help, I really appreciate it!  The hard part was trying to 
reproduce this weird issue, but as the post mentioned I discovered how to 
reproduce it every time...  Right now I'm stripping everything apart and 
start freshly adding things... I'll post once I find out what is the cause 
or if I can't find the cause...

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona







After a lot of testing this is what I found out.  The widget did not get 
confused about picking up the correct image, the problem was actually the 
image got shifted to the side so it seemed like it was using the wrong image 
but it wasn't.  Since the two images land and port are a bit different in 
dimensions that is causing the ImageButton to go crazzy.  See the attached 
image and also the two sample images I use. I'm not sure why there are now 
two images. It seems like setImageViewResource doesn't update the background 
image but the source image.

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
I take back that it's not an issue with the images getting confused... I 
changed the color of the land image and I can clearly see this image on the 
widget when it goes crazy.  About the background and source images I tested 
by using only src images but that didn't help... issue is still there... I'm 
still inclined this is a bug in Android.  I tested on few phones and I can 
reproduce the issue every time.

I guess as you said my only option is going to be place two ImageButtons and 
hide one and toggle visibility on these...

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
Let me clarify that the double image issue is gone but the issue with the 
wrong image being displayed is still an issue.

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
I bet you can reproduce the issue just try the following:

1. Make sure you place image into drawable-port and drawable-land.  
2. Make sure to run setImageViewResource(...) while you are inside your 
application in landscape mode.  Don't use the keyboard to make the phone go 
into landscape mode. 
3. Hit back until you are in the home screen. 

The key here I think is that the home screen doesn't change orientation but 
the application does and confuses the widget when it does updates.

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

[android-developers] Re: Is there something wrong?

2011-06-17 Thread Jona
you should explain a little more about what you are having problems with... 
If your table has _id than you probably wan to call 
results.add(r.getString(1)); 
not results.add(r.getString(0));

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
Sorry took a little long to reply...  I kept trying to narrow the cause.  I 
tried what you said place images under drawable-hdpi and drawable-land-hdpi. 
I also tried just drawable and drawable-land.  I have made sure I removed 
all images from the widget from this folders to avoid any mistakes testing 
on my end.

Up to now what I've noticed is it doesn't matter if the land and port images 
are the same dimensions or different, the issue still occurs.

Something important to reproducing the issue I noticed is that make sure the 
call setImageViewResource(...) is never called in port mode otherwise  you 
will not see this issue. The call to setImageViewResource has to happen 
while you are inside an application in land mode.

I have simplified my application to just that one call setImageViewResource 
when a particular intent is received.  After so much testing I'm starting to 
think this is a bug in android...

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
Yeah... I'll most likely have to do that... When I do I'll post again on 
this thread with the link to the bug report which will have a sample 
apk./code..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] PopupWindow with custom view for Spinner breaks touch events?

2011-11-15 Thread Jona
I'm not understanding what exactly is the issue with my custom
PopupWindow. I have a ListView as my content view and each item in the
list contains a button or Spinner.

When I place a spinner with a custom layout for its list items none of
the buttons or Spinners work, nothing happens when pressed, on my
content view list... But if I leave the default android layout for the
spinner there is no problem...

What exactly could I be missing?

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


[android-developers] Re: Streaming link not working?

2011-12-29 Thread Jona
Android doesn't support mms streaming.  I use XiiaLive to stream that
type of content.

On Dec 22, 8:05 pm, Thomas  wrote:
> SORRY MMS STREAM!!! Maybe thats why theres no reply :-)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Nullsoft WinAmp UI question

2011-12-29 Thread Jona
They are using a view component called SlidingDrawer:
http://developer.android.com/reference/android/widget/SlidingDrawer.html

They than place the layout design of their player inside it.  I would
say fairly simple design approach.

On Dec 18, 5:25 pm, TreKing  wrote:
> On Sun, Dec 18, 2011 at 7:30 AM, romdroid  wrote:
> > where the left picture shows the "hidden" audio-player (just a bar
> > upon the control
> > buttons) and the full audio-player which could be shown by sliding the
> > bar to the top
> > (just like the status bar could be expanded).
>
> That looks like a (high customized) SlidingDrawer.
>
> -
> 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] Re: How is RockPlayer doing hardware decoding?

2011-09-16 Thread Jona
They probably use FFmpeg to take care of getting the encoded media
data than pushing that untouched data using some type of proxy server
to the MediaPlayer to do the hardware decoding. That's probably
all... :-)

On Sep 16, 2:22 am, Doug  wrote:
> If authentication over rtsp is a documented standard, then you could
> file a bug with details and hope that it gets resolved in a future
> version.
>
> Doug
>
> On Sep 15, 12:17 am, "B.Arunkumar" 
> wrote:
>
>
>
> > Hi,
>
> >      Regarding your question, MediaPlayer supports RTSP streaming but
> > does not take all RTSP URLs, (with authentication, for instance).
> > Atleast that is the experience we have had.
> > The built in C++ RTSP Stack that comes with mediaplayer seems to have
> > limited capabilities.
>
> > Arunkumar
>
> > On Sep 11, 4:19 am, Doug  wrote:
>
> > > On Sep 9, 1:30 am, "B.Arunkumar"  wrote:
>
> > > >     Would somebody have some idea what exactly has RockPlayer done in
> > > > the Hardware Decoding mode on a high level basis? I mean have they
> > > > used the mediaplayer as it is or they have changed something at the
> > > > source code level of MediaPlayer to get more improvements than the
> > > > MediaPlayer (support more RTSP Url formats) and things like that?
>
> > > Why do you say that MediaPlayer does not support rtsp?  I ask this
> > > because it does support rtsp.  It's documented.  The audio/video
> > > format of the stream still has to be supported by the device, though.
>
> > > Doug

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 real-time memory of an Android system by emulator?

2011-09-16 Thread Jona
You can actually call those linux commands via java layer if I recall
correctly... I don't have any sample to show you but try looking on
that...

On Sep 15, 10:10 pm, Zhibo Hu  wrote:
> Hello everyone,
> I am a newbie of Android. Actually I am not a developer but a student.
> I need to conduct an experiment on Android emulator.
> In the experiment, I have to get the real-time system parameters e.g.
> free memory, buffers and etc., to investigate the variation of system
> parametes.
> I know in Linux, I can get the information for /proc of the OS. But I
> have no idea about the Android emulator.
> By the way, I am using Android emulator on Ununtu.
>
> Could you please kindly give me any hint of such tools?

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


[android-developers] Re: How do we get Google's attention regarding the problems around randomly sorting comments in the Android Market?

2011-08-01 Thread Jona
I'm seeing the same issue.  I was looking at the comments and saw few
where people complaint about really old bugs! And sure enough the date
on those where months back!  Google needs to provide the same rating
system as Apple.  They show you ratings according to the current
version and previous and also a combined.

On Aug 1, 1:01 pm, nadam  wrote:
> That would really suck. Someone gives a crappy app 5 stars and then
> the second rater has to give it 4 or 5?
>
> A better solution could be to skip the 5-star rating and replace it
> with something like +1, which is already used in other Google
> services.
>
> On 1 Aug, 06:50, AndroidYourself  wrote:
>
>
>
>
>
>
>
> > It is simple: The user cannot rate with 1-Star!
>
> > The last rating have to be the possible range of +1-
>
> > So if the first user rate this app with 4, then the next user can only
> > rate 5/4/3.
>
> > If the 2nd user rate this app with 3 (4+3 /2 = 3.5), then the next
> > user can rate this app:  3.5 +/-1: = ( 4, 3.5 or 3 )
>
> > ... and so on. Now the problem is solved. Never 1-Star ratings!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: what are the best practices for good coding skills and classes, methods, and variables naming +android

2011-08-26 Thread Jona
For naming res stuff and where to place different files in them
explore the Android sdk platform files that you downloaded.  Also, for
classes variables dtc, ylu could look at the android source files for
Views or other parts of android.

It might not be the best but in case of organizing,properly res stuff
its great!


On Aug 25, 11:39 pm, Mark Ayers  wrote:
> Read Code Complete second edition. It will teach you that and much much
> more.
> On Aug 24, 2011 5:24 AM, "Naveen"  wrote:
>
>
>
> > what are the best practices for good coding skills and classes,
> > methods, and variables naming +android
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] Re: activity transition animations

2011-08-27 Thread Jona
Create your own custom theme and override the activity animations.
See the theme.xml file located under the android sdk.

On Aug 26, 9:27 pm, hachi  wrote:
> i am also using windowIsTranslucent to achieve transparent background
> on activity B
>
> On Aug 26, 6:07 pm, hachi  wrote:
>
>
>
> > I am trying to make an activity transition for the switch between
> > animations. What I want is that if I go from activity A to activity B,
> > A gets a certain animation. I am adding this statement right after
> > startActivity() :
>
> > overridePendingTransition(0, R.anim.to_right)
>
> > the thing is this doesnt work (no animation on A, no animation on B)
> > but if I reverse it to be overridePendingTransition(R.anim.to_right,
> > 0), B gets an animation, so I know my animation resource file is
> > legit.
>
> > Any ideas? Is this not how to do animation on outgoing activity.

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