[android-developers] Check during communication or not

2009-06-16 Thread aby

Hi,
how to check phone is during communication or not in the program?
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: Execute exe in android

2009-06-16 Thread Bishesh Manandhar
sorryy.,

--~--~-~--~~~---~--~~
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: Execute exe in android

2009-06-16 Thread Sujay Krishna Suresh
Hi,
  plz create ur own post since this is irrelevant to d topic.
u shd try d drawtext with inbuilt random util...

On Wed, Jun 17, 2009 at 12:07 PM, Bishesh Manandhar wrote:

>
> I m developing a game in Android,, and i m very novice to it..
>> according to my necessity, i managed to slide down the ball shaped
>> pictures down the screen.. like tetris,, now i need to imprint numbers in
>> them ,, i.e text. like for eg. 2 in one ball.. 7 in another.. random texts..
>> in the balls...
>>
>>
>> what do i need to change in my code... could you plz help me.. i m finding
>> it difficult.. heres my onDraw code..
>>
>> protected void onDraw(Canvas canvas) {
>>
>> for (int i = 0; i < snow_flake_count; i++) {
>> Drawable drawable = drawables.get(i);
>> canvas.save();
>> canvas.translate(coords[i][0], coords[i][1]);
>> drawable.draw(canvas);
>>
>>
>> canvas.restore();
>> }
>> invalidate();
>> }
>>
>>
>> Hoping to get your reply soon..Thank you
>
>
>
> >
>


-- 
Regards,
Sujay
W. C. Fields 
- "If I had to live my life over, I'd live over a saloon."

--~--~-~--~~~---~--~~
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: SQL Query

2009-06-16 Thread Sujay Krishna Suresh
hi manju,
 be patient. if smone nos d ans 2 ur q, u'll get reply... till
then try exploring other SQL specific groups since ur q may be addressed
there better...

On Wed, Jun 17, 2009 at 12:06 PM, Manjunatha M  wrote:

> Please throw some light on this..
>
> On Tue, Jun 9, 2009 at 1:52 PM, M.Manjunatha  wrote:
>
>> Hi Folks,
>>
>> I have been given a requirement.
>> Say you have five contacts in your phone book.
>> Person1, Person2, Person3, Person4, Person5.
>>
>> You have received messages from the contacts..
>>
>> Now that, I have to sort in the following manner.
>>
>> Initally, i have to sort in such a way that, I display one message per
>> contact.
>>
>> The subsequent messages should be shown based on the timestamps.
>>
>> Please let me know how this can be achieved.
>>
>
>
>
> --
> Regards,
> Manjunatha
>
>
> >
>


-- 
Regards,
Sujay
Mitch Hedberg
- "I drank some boiling water because I wanted to whistle."

--~--~-~--~~~---~--~~
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: Execute exe in android

2009-06-16 Thread Bishesh Manandhar
> I m developing a game in Android,, and i m very novice to it..
> according to my necessity, i managed to slide down the ball shaped pictures
> down the screen.. like tetris,, now i need to imprint numbers in them ,, i.e
> text. like for eg. 2 in one ball.. 7 in another.. random texts.. in the
> balls...
>
>
> what do i need to change in my code... could you plz help me.. i m finding
> it difficult.. heres my onDraw code..
>
> protected void onDraw(Canvas canvas) {
>
> for (int i = 0; i < snow_flake_count; i++) {
> Drawable drawable = drawables.get(i);
> canvas.save();
> canvas.translate(coords[i][0], coords[i][1]);
> drawable.draw(canvas);
>
>
> canvas.restore();
> }
> invalidate();
> }
>
>
> Hoping to get your reply soon..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: SQL Query

2009-06-16 Thread Manjunatha M
Please throw some light on this..

On Tue, Jun 9, 2009 at 1:52 PM, M.Manjunatha  wrote:

> Hi Folks,
>
> I have been given a requirement.
> Say you have five contacts in your phone book.
> Person1, Person2, Person3, Person4, Person5.
>
> You have received messages from the contacts..
>
> Now that, I have to sort in the following manner.
>
> Initally, i have to sort in such a way that, I display one message per
> contact.
>
> The subsequent messages should be shown based on the timestamps.
>
> Please let me know how this can be achieved.
>



-- 
Regards,
Manjunatha

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

2009-06-16 Thread Honest

Thanks Marco for your quick reply.But some one told me tha all
application running in background become pause when we receive call so
is that true ? if that is true then how can i play audio file when
call is running on ?

hope some quick reply.

On Jun 15, 8:08 pm, Marco Nelissen  wrote:
> The current platform and hardware do not support playing audio in to the
> phone conversation.
> The best you could do is play it through the speaker really loud, and hope
> the other side can hear it.
>
>
>
> On Sun, Jun 14, 2009 at 10:16 PM, Honest  wrote:
>
> > Hi,
>
> > I want to develop application in which i want to listen call and play
> > medial file so caller can listen it. Can some one tell me how can i do
> > it ? any code snippt or link of resource.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is it possible to send a log file via mms or email without user interaction?

2009-06-16 Thread D.

I know an android app can send an sms without the user's interaction,
but what about an mms? I think i've read that the intent used to send
an email brings up the email client for the user to decide which email
app and account to use(which is understandable), but how about mms?

I'm simply looking to send a text file to another phone or email
address via my app without the user's intervention. Can I use mms? Any
other 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] What purpose does the top-level FrameLayout serve?

2009-06-16 Thread adamphillips12

I was watching the Google IO videos and Romain mentioned quite quickly
something about the top-level FrameLayout being needed by the OS? That
is the one directly below the getDecorView().

Can I get a more extended explanation of why it is needed? It is not
locked in anyway, we are quite able to remove it, if it was that
critical I would assume it would come already built-in to the
decorView itself, why is it only added as a public subview? I would of
thought the point of the decorView was to handle OS related items,
such as the soft keyboard.

I have not seen any adverse effects to its removal, so I'm fairly
curious to know what it does? I can see clearly what it does with a
title bar but without one, I do not.
--~--~-~--~~~---~--~~
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 the resize/scaling of video is happening inside surface flinger

2009-06-16 Thread sreedhar b
Hi,

I am not able to understand from the surface flinger code flow, where
exactly the resize/scaling for video is performed
inside the surface flinger??

Also, if anybody can give some data flow as from where the resize parameters
source width, source height, destination width, destination height are
 passed from the upper layers (may be from the video view widget or the
opencore) to the surface flinger?

help greatly appreciated.

Regards,
Sreedhar

--~--~-~--~~~---~--~~
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's attitude towards Android.

2009-06-16 Thread zero_star

Actually the new iPhone OS supports all these features. Why isn't
Android ahead?

On Jun 16, 5:26 am, JP  wrote:
> On Jun 15, 3:22 pm, zero_star  wrote:
>
> > According to all reports from the recent Google IO event, Google  now
> > actively advocates HTML5 Standards, and rightly so, since for us
> > developers there is no better and more easily portable platform to
> > develop for mobile devices. However, despite that, Android does not
> > have a notion of 'first class' web applications.
>
> That must be years away, and I'm not looking at the technical
> availability of optimized browsers that incorporate Gears, HTML5 and
> other features that are ahead. Even with optimizations towards JS
> encoding and execution or the goodness of HTML 5, mobile web apps are
> at a disadvantage over native apps. There's a variety of reasons that
> I can see:
> - Native apps can be optimized to just sip data via JSON or XML, while
> encoded JS and HTML will always come with a overhead penalty. That
> shows, in particular, well ironically, in mobile use with spotty
> coverage and capacity. In addition, native apps have all execution
> code available a priori, which, sans caveats, allows the management of
> the user experience when connectivity is poor. I suppose we shall see
> how caching and code splitting will work out... it sure is a burden on
> the dev team, because it adds a layer of complexity. In the extreme,
> your dev team might end up succumbing to the challenges of code
> management, having to start over by developing native apps for the
> various platforms of interest after all.
> - There's issues that flat out don't exist in the wired web. In most
> cases you can optimize a native app to live comfortably on Edge or
> even GPRS. These old dogs just happen to continue to be operated on
> frequency bands that have better signal penetration than 3G. Which
> means, on Edge, users of your optimized native app can actually
> interact with your product in a meaningful way, while mobile web app
> users leave the room to hunt for 3G, or switch to WiFi (What was the
> SSID again?). That gets old real fast. To aggravate the issue -
> wireless broadband requires a solid build out of the fixed side
> infrastructure by the carrier. A lot of ground capacity is needed to
> deliver that broadband experience, and that may or not be the case in
> the area where your users live for the carriers that they chose.
--~--~-~--~~~---~--~~
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: Developing on different platforms

2009-06-16 Thread Roman

Hi Andrew,

I prefer to work with a Linux like environment. The Mac and Ubuntu
environment is pretty good for Android development. If you also work
on framework level and have to build a complete platform build then
Ubuntu and Mac should be preferred.  Windows might be fine for
application development and of course you can run Cygwin but why not
right away going for Ubuntu or Mac.

If you don't want to spend money on a Mac book then consider to run
VMplayer with a Ubuntu.iso image. On one of my machines I have this
setup and it is pretty fast.

Application development only:

Windows is fine but  Mac or Ubuntu preferred


Framework development:

Mac or Ubuntu

Platform builds and porting efforts

Ubuntu


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


On Jun 16, 4:07 am, Andy_Metia  wrote:
> Hi,
> What is the best platform to develop apps for Android on? We have both
> Mac and Windows platforms available in our software team but are not
> aware of the pros and cons of each.  If anyone could let me know what
> they prefer?
>
> Should we also condider Linux??
>
> Thanks!
>
> Andrew Lane
> Metia Ltd
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Creating merchant accounts to sell apps - Countries not supported

2009-06-16 Thread zero_star

When i tried to create a merchant account in order to sell my app, my
country (Greece) is not available in the list. Does this mean only 7
countries are supported?

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

2009-06-16 Thread Roman

Try to create a new workspace folder. When you have an existing
Android app then use the import functionality for creating a new
Android project.

In general before spending too much time on a messed up Eclipse setup
consider to download Eclipse again which might be faster ...

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

On Jun 16, 11:11 am, ndatta  wrote:
> Did you check the "Create Activity" checkbox in the New Android
> Project dialog box?
>
> On Jun 14, 5:49 pm, Lordsaibat  wrote:
>
> > When I make a new project the .java file is not generated.
> > I can run the project, but it does not run in the emulator or
> > anything.
> > It did use to work before then it stop working. I tried deleting the
> > folder and all project files.
> > After that I reinstalled everything but I am still having problems.
> > Please help.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: java.lang.ExceptionInInitializerError while reading yml file

2009-06-16 Thread Ani



On Jun 17, 1:11 am, fadden  wrote:
> On Jun 16, 3:42 am, Ani  wrote:
>
> > W/dalvikvm(24378): VFY: unable to find class referenced in signature 
> > (Ljava/beans/PropertyDescriptor;)
> > E/dalvikvm(24378): Could not find method 
> > java.beans.PropertyDescriptor.getWriteMethod, referenced from method 
> > org.ho.yaml.YamlConfig.isPropertyAccessibleForDecoding
> [...]
> > W/dalvikvm(24378): VFY:  rejected 
> > Lorg/ho/yaml/YamlConfig;.isPropertyAccessibleForDecoding 
> > (Ljava/beans/PropertyDescriptor;)Z
>
> java.beans.PropertyDescriptor is not part of the Android platform, but
> org.ho.yaml.YamlConfig.isPropertyAccessibleForDecoding requires it.

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



[android-developers] Determine system first run

2009-06-16 Thread aby

Hi,
How to distinguish android system is first run or not after booting
device? I want to add OOBE program in my device. Does android support
this function?
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: [AppWidget ] How to get widget object from appwidget

2009-06-16 Thread clybe cai
Tanks for your kindly support,JS.
Now I put the onclickactions to a BoardcastReceiver,then
bind the  BoardcastReceiver to a intent.If I want to do some operations when
click the button, I  need to create a PendingIntent object to wrap the
intent,and use RemoteViews.setOnClickPendingIntent(int buttonID,
PendingIntent pi) to bind the button with the button actions.

  final ComponentName receiverName = new ComponentName(context,
  MemoBroadcastReceiver.class);

  Intent deleteMemoIntent = new Intent(
  MemoBroadcastReceiver.DELETE_ACTION);
  deleteMemoIntent.setComponent(receiverName);
  Bundle deleteBundle = new Bundle();
  deleteBundle.putInt("KEY_APPWIDGETID", appWidgetID);
  deleteBundle.putLong("KEY_PRIORITY", priority);
  deleteMemoIntent.putExtras(deleteBundle);
  PendingIntent deleteMemoPending = PendingIntent.getBroadcast(context,
  0, deleteMemoIntent, PendingIntent.FLAG_CANCEL_CURRENT);
  views.setOnClickPendingIntent(R.id.delete, deleteMemoPending);

Best Reagards,
Clybe
2009/6/17 Jeff Sharkey 

>
> > I don't know how to get the button object from appwidget(get the ture
> > layout copy of home screen).
>
> You can't access the actually-inflated layout from your app because it
> exists entirely in another process.
>
>
> > I know the RemoteView offeres an interface
> > RemoteView.setOnClickPendingIntent,but what I need is
> > RemoteView.setOnClickListener(R.id.delete,OnClickListener)
>
> You can't setOnClickListener() directly, because the target View lives
> in another process.  If this were allowed, the other process would be
> executing your code as itself, which is a security hole.
>
>
> --
> Jeff Sharkey
> jshar...@android.com
>
> >
>

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



[android-developers] Re: How to add a new library to android source

2009-06-16 Thread arun choudhary
Yes I want to Edit/Add Android source code, build the
android library with my custom API and use it to feed my  app

Please guide me on the same

Arun

On Tue, Jun 16, 2009 at 8:28 PM, Ne0  wrote:

>
> Do you mean you want to Edit/Add Android source code, build the
> android library with your custom API and use it to feed your app?
>
> On Jun 16, 12:21 pm, Desu Vinod Kumar  wrote:
> > HI
> > add a folder name lib
> > and keep the jar  file into it
> >
> > and got to [project setting
> > add that jar file in libraries
> >
> > On Tue, Jun 16, 2009 at 4:46 PM, Sujay Krishna Suresh <
> >
> >
> >
> > sujay.coold...@gmail.com> wrote:
> > > to add a new library u jus need to go to the project properties & add d
> > > jars...
> >
> > > On Tue, Jun 16, 2009 at 4:21 PM, Arun 
> wrote:
> >
> > >> Hi All,
> >
> > >> I have an specific requirement to write a new library in android
> > >> source and an simple client application on top of that. which uses
> > >> some of functions exposed by that library
> > >> Can any one provide me step by step process for the same
> >
> > >> Arun
> > >> achoudhary2...@gmail.com
> >
> > > --
> > > Regards,
> > > Sujay
> > > Mitch Hedberg<
> http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html> - "I drank
> some boiling water because I wanted to whistle."
> >
> > --
> > Regards
> > ---
> > Desu Vinod Kumar
> > vinny.s...@gmail.com
> > 09916009493
> >
>


-- 
For pics Please visit

http://picasaweb.google.com/achoudhary2980

wish u all the best

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



[android-developers] Re: about android map application,anyboy who can help me

2009-06-16 Thread Saurav Mukherjee
i know this can sound a little stupid but did u check ur wifi and gprs
connectivity, i mean from the real handset???

On Tue, Jun 16, 2009 at 9:51 AM, 鹏  wrote:

>
> I signed my map application which developed in eclipse and sdk and
> then installl it in the real handset.
> The application works well in simulator.
> Both the sdk and the real handset source code are 1.5version.
> But when I use this application in real handset, I can not see the
> maps,all in black.I check the log and see this "Couldn't get
> connection factory client". So,what is the problem,and how to solve
> it.
> The map api key is correct, and it works well in simulator.I try the
> debug key and release key in real handset,but no use.
> Anybody who can do me a favor?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: Determine first run

2009-06-16 Thread Delta Foxtrot
2009/6/17 aby 

>
> Hi,
> How to distinguish Android is first run or not after booting device?
>

Set a simple preference variable, if it's not set it hasn't run...

--~--~-~--~~~---~--~~
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] Determine first run

2009-06-16 Thread aby

Hi,
How to distinguish Android is first run or not after booting device?
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] How to change activity priority in program forever?

2009-06-16 Thread aby

Hi,
I know Android can set activity priority in manifest file by add
“android:priority = 1” in intent filter attribute and also can change
as 0 by setPriority(0) of IntentFilter. But I need it can change as 0
forever. Is there any way to solve this problem? 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: postInvalidate not work in non-UI thread

2009-06-16 Thread waterblood

I do not paste all my code. The thread start is in OnClick on some
button as below:

public void onClick(View v) {
if(!thumbnailThread.isAlive()){
thumbnailThread.start();
}

Also has other code to change the jpg file for different image.

But now after check the link 
http://android-developers.blogspot.com/2009/05/painless-threading.html,
which i guess is written by you. I use AsyncTask instead. And it works
fine. Thanks for your great blog.

Best Regards
Guoyin Chen

On Jun 16, 11:34 pm, Romain Guy  wrote:
> You MUST NOT touch Views from a background thread. This means calls to
> findViewById() and setImageBitmap() should not be running on the backgorund
> thread in your case.




> Also, you do not start() the thread and you always set the *same* image on
> the ImageView. I doubt you will see much difference :)
>
>
>
>
>
> On Tue, Jun 16, 2009 at 1:38 AM, waterblood  wrote:
>
> > Dear all,
>
> >   I cannot make postInvalidate() work in non-UI thread in sdk1.5.
> > Below are my code, let me know if i am wrong in some place. It is
> > supposed to update imageview every seconds. But it never be updated
> > from the bitmap.
>
> > public class ThumbnailActivity extends Activity  implements
> > OnClickListener{
> >        private static final String TAG = "FSL MM Thumbnail TEST";
> >        private Thread thumbnailThread;
> >        private boolean thumbnailStoped = false;
>
> >    /** Called when the activity is first created. */
> >   �...@override
> >    public void onCreate(Bundle savedInstanceState) {
> >        Log.i(TAG,"ThumbnailActivity onCreate");
> >        super.onCreate(savedInstanceState);
> >        setContentView(R.layout.thumbnail);
>
> >        thumbnailStoped = false;
> >        thumbnailThread = new Thread(new Runnable() {
> >            public void run() {
> >                        Log.i(TAG,"***thumbnailThread run***");
> >                        while(! thumbnailStoped ) {
> >                                 Bitmap bitmap;
> >                                 ImageView thumbimage;
> >                                 thumbimage = (ImageView)findViewById
> > (R.id.thumbnail_image);
> >                                 bitmap = BitmapFactory.decodeFile("/sdcard/
> > some.jpeg");
> >                                 if(bitmap == null)
> >                                         Log.i(TAG,"Error!not get bitmap
> > from .jpg");
> >                                 thumbimage.setImageBitmap(bitmap);
> >                                 thumbimage.postInvalidate();
>
> >                                Log.i(TAG, "***thumbnailThread
> > continue running***");
> >                                SystemClock.sleep
> > (1000);
> >                              }
> >                       });
>
> >    }
>
> > }
>
> > the xml of layout as below:
>
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >    android:layout_width="fill_parent"
> >    android:layout_height="fill_parent">
>
> >     >        android:id="@+id/thumbnail_autopreview_button"
> >        android:layout_width="wrap_content"
> >        android:layout_height="wrap_content"
> >        android:layout_alignParentLeft="true"
> >        android:layout_marginTop="8dip"
> >        android:layout_marginLeft="10dip"
> >        android:text="Auto"
> >    />
>
> >     >        android:id="@+id/thumbnail_nextimage_button"
> >        android:layout_width="wrap_content"
> >        android:layout_height="wrap_content"
> >        android:layout_toRightOf="@id/thumbnail_autopreview_button"
> >        android:layout_alignTop="@id/thumbnail_autopreview_button"
> >        android:layout_marginLeft="10dip"
> >        android:text="Next"
> >    />
>
> >     >        android:id="@+id/thumbnail_stoppreview_button"
> >        android:layout_width="wrap_content"
> >        android:layout_height="wrap_content"
> >        android:layout_toRightOf="@id/thumbnail_nextimage_button"
> >        android:layout_alignTop="@id/thumbnail_nextimage_button"
> >        android:layout_marginLeft="10dip"
> >        android:text="Stop"
> >    />
>
> >     >        android:id="@+id/filename_label"
> >        android:layout_width="fill_parent"
> >        android:layout_height="wrap_content"
> >        android:text="File: /sdcard/hello.mp4"
> >        android:layout_below="@id/thumbnail_stoppreview_button"
> >    />
>
> >     >        android:id="@+id/thumbnail_image"
> >        android:layout_width="fill_parent"
> >        android:layout_height="fill_parent"
> >        android:layout_marginLeft="4dip"
> >        android:layout_marginRight="2dip"
> >        android:layout_marginTop="8dip"
> >        android:layout_below="@id/filename_label"
> >    />
> > 
>
> > Best Regards
> > Guoyin Chen
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and

[android-developers] Re: Wake Locks and Services

2009-06-16 Thread gjs

Hi,

Some related discussion here as well -

http://groups.google.com/group/android-developers/browse_thread/thread/947fd3d0ed878c66?hl=en

Regards

On Jun 17, 5:49 am, Dianne Hackborn  wrote:
> You can also manually set FLAG_KEEP_SCREEN_ON in the window.
>
> On Tue, Jun 16, 2009 at 11:45 AM, Alexey Krasnoriadtsev <
>
>
>
> ale...@agilefusion.com> wrote:
>
> >http://developer.android.com/reference/android/view/View.html#attr_an...
>
> > This will keep the screen on, while your view is visible.
>
> > On Jun 16, 3:52 am, Thomas Riley  wrote:
> > > How would I go about doing this.
>
> > > I have the wake lock working ok now but no harm in knowing a different
> > > method...
>
> > > On Jun 16, 8:49 am, Dianne Hackborn  wrote:
>
> > > > Do  you REALLY need to hold a full wake lock like this?  The vast
> > majority
> > > > of apps should use the window flag to keep the screen on while their UI
> > is
> > > > shown.  This way you don't need the power permission, and you are much
> > less
> > > > likely to have bugs that leave the screen on and cause the user's
> > battery to
> > > > drain.
>
> > > > On Sat, Jun 13, 2009 at 3:04 PM, Thomas Riley <
> > tomrile...@googlemail.com>wrote:
>
> > > > > I need to use a wakelock to hold the screen active while its
> > required.
> > > > > I was recommended to use a service which I have been trying but on
> > the
> > > > > onDestroy I am getting "wl cannot be resolved". Code below:
>
> > > > > public class WakeLockService extends Service {
>
> > > > >       �...@override
> > > > >        public IBinder onBind(Intent arg0) {
> > > > >                // TODO Auto-generated method stub
> > > > >                return null;
> > > > >        }
>
> > > > >        public void onCreate() {
> > > > >                PowerManager pm = (PowerManager) getSystemService
> > > > > (Context.POWER_SERVICE);
> > > > >                PowerManager.WakeLock wl = pm.newWakeLock
> > > > > (PowerManager.FULL_WAKE_LOCK, "My Tag");
> > > > >                wl.acquire();
> > > > >        }
>
> > > > >        public void onDestroy() {
> > > > >                wl.release();
> > > > >        }
>
> > > > > }
>
> > > > --
> > > > 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.
>
> --
> 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: Calibration with the environment may improve the readings ?!

2009-06-16 Thread Delta Foxtrot
2009/6/17 flegare 

>
> I auto answer myself and the poor soul who fall on this post, so far
> the only way to calibrate is by making big 8-like gesture with the
> phone. Try it it worked for me.


Yes, the digital compass in the G1 is self calibrating, but you have to make
figure 8's or similar to make it do it, this isn't something you can do in
software, the Android OS has magnetic field projections for the earth and if
the current reading falls outside a specific range either something is
artificially influencing it, such as the magnetic field in metals or
electromagnetic fields caused by electronics and cars etc, or it needs
calibration.

--~--~-~--~~~---~--~~
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 support drag and drop on listview.

2009-06-16 Thread Craig

Would it be too much to ask to get ListView dnd built into the
framework api? It seems like a common requirement, but a total pita to
implement every time. A couple of extra listeners like
onRequestStartDnD() and onRequestFinishDnd() would be adequate for a
lot of use cases.

(I know...patches welcome :)
--~--~-~--~~~---~--~~
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: 2 mediaplayer using one surfaceview

2009-06-16 Thread sbw.android


On 17 juin, 03:40, Yang Zhiwei  wrote:
> try this ( reset display):
>
>    public void onCompletion(MediaPlayer mp) {
>        Log.v("onCompletion()"+currplayer, "completed...");
>                if(currplayer == 1) {
>                        mp0.stop();
>                        mp0.release();
>                        *mp1.setdisplay(holder)*


thanks for the help. I tested that but I still get a black screen with
only sound after the first video.

--~--~-~--~~~---~--~~
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: 2 mediaplayer using one surfaceview

2009-06-16 Thread Yang Zhiwei
   public void onCompletion(MediaPlayer mp) {
   Log.v("onCompletion()"+currplayer, "completed...");
   if(currplayer == 1) {
   mp0.stop();
   mp0.release();

   mp1.start();
   currplayer = 0;
   }
   }


2009/6/17 sbw.android 

>
> hi,
> I want to play 2 videos one after one minimizing delay between each
> video.
> so I created 2 mediaplayer, one playing the current video and the
> other preparing to play the following video.
>
>  the 1st video is played correctely but I couldn't get the video track
> of the second video. only sound without any error.
> can somebody help?
> thanks.
>
> this is my source code :
> (note that here, I am using files on sdcard but the application will
> use files on a web server. that's why I need to prepare the second
> video while the 1st is playing)
>
>
> ---
> package com.test.testvideo;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.media.MediaPlayer;
> import android.view.SurfaceView;
> import android.util.Log;
> import android.view.SurfaceHolder;
> import android.media.AudioManager;
> import android.widget.Button;
>
> public class Test extends Activity implements
> MediaPlayer.OnPreparedListener, SurfaceHolder.Callback,
> MediaPlayer.OnCompletionListener {
>SurfaceView sf = null;
>int currplayer = 0;
>MediaPlayer mp1 = null;
>MediaPlayer mp0 = null;
>int currvideo = 0;
>SurfaceHolder holder = null;
>
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>this.sf = (SurfaceView)findViewById(R.id.sf);
>this.holder = sf.getHolder();
>holder.addCallback(this);
>holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
>}
>
>public void onPrepared(MediaPlayer mp){
>Log.v("prepared()", "onPrepared()");
>
>if(currplayer == 0) {
>currvideo++;
>String nexturl = "/sdcard/"+currvideo+".3gp";
>try {
>mp1.setDataSource(nexturl);
>}
>catch(Exception e){
>}
>mp1.setDisplay(holder);
>mp1.prepareAsync();
>mp1.setOnPreparedListener(this);
>mp1.setOnCompletionListener(this);
>mp1.setAudioStreamType(AudioManager.STREAM_MUSIC);
>currplayer=1;
>}
>}
>
>public void onCompletion(MediaPlayer mp) {
>Log.v("onCompletion()"+currplayer, "completed...");
>if(currplayer == 1) {
>mp0.stop();
>mp0.release();
>mp1.start();
>currplayer = 0;
>}
>}
>
>public void surfaceChanged(SurfaceHolder surfaceholder, int i, int
> j,
> int k) {
>Log.d("surfaceChanged()", "surfaceChanged...");
>}
>
>public void surfaceDestroyed(SurfaceHolder surfaceholder) {
>Log.d("surfaceDestroyed()", "surfaceDestroyed...");
>}
>
>
>public void surfaceCreated(SurfaceHolder holder) {
>Log.d("surfaceCreated()", "surfaceCreated...");
>mp0 = new MediaPlayer();
>mp1 = new MediaPlayer();
>try {
>mp0.setDataSource("/sdcard/0.3gp");
>mp0.setDisplay(holder);
>mp0.prepare();
>}
>catch(Exception e){
>}
>mp0.setOnPreparedListener(this);
>mp0.setOnCompletionListener(this);
>mp0.start();
>
>mp0.setAudioStreamType(AudioManager.STREAM_MUSIC);
>}
>
>@Override
>protected void onDestroy() {
>super.onDestroy();
>if (mp0 != null) {
>mp0.release();
>mp0 = null;
>}
>if (mp1 != null) {
>mp1.release();
>mp1 = null;
>}
>}
> }
>
>
>
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: 2 mediaplayer using one surfaceview

2009-06-16 Thread Yang Zhiwei
try this ( reset display):

   public void onCompletion(MediaPlayer mp) {
   Log.v("onCompletion()"+currplayer, "completed...");
   if(currplayer == 1) {
   mp0.stop();
   mp0.release();
   *mp1.setdisplay(holder)*
   mp1.start();
   currplayer = 0;
   }
   }


2009/6/17 sbw.android 

>
> hi,
> I want to play 2 videos one after one minimizing delay between each
> video.
> so I created 2 mediaplayer, one playing the current video and the
> other preparing to play the following video.
>
>  the 1st video is played correctely but I couldn't get the video track
> of the second video. only sound without any error.
> can somebody help?
> thanks.
>
> this is my source code :
> (note that here, I am using files on sdcard but the application will
> use files on a web server. that's why I need to prepare the second
> video while the 1st is playing)
>
>
> ---
> package com.test.testvideo;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.media.MediaPlayer;
> import android.view.SurfaceView;
> import android.util.Log;
> import android.view.SurfaceHolder;
> import android.media.AudioManager;
> import android.widget.Button;
>
> public class Test extends Activity implements
> MediaPlayer.OnPreparedListener, SurfaceHolder.Callback,
> MediaPlayer.OnCompletionListener {
>SurfaceView sf = null;
>int currplayer = 0;
>MediaPlayer mp1 = null;
>MediaPlayer mp0 = null;
>int currvideo = 0;
>SurfaceHolder holder = null;
>
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>this.sf = (SurfaceView)findViewById(R.id.sf);
>this.holder = sf.getHolder();
>holder.addCallback(this);
>holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
>}
>
>public void onPrepared(MediaPlayer mp){
>Log.v("prepared()", "onPrepared()");
>
>if(currplayer == 0) {
>currvideo++;
>String nexturl = "/sdcard/"+currvideo+".3gp";
>try {
>mp1.setDataSource(nexturl);
>}
>catch(Exception e){
>}
>mp1.setDisplay(holder);
>mp1.prepareAsync();
>mp1.setOnPreparedListener(this);
>mp1.setOnCompletionListener(this);
>mp1.setAudioStreamType(AudioManager.STREAM_MUSIC);
>currplayer=1;
>}
>}
>
>public void onCompletion(MediaPlayer mp) {
>Log.v("onCompletion()"+currplayer, "completed...");
>if(currplayer == 1) {
>mp0.stop();
>mp0.release();
>mp1.start();
>currplayer = 0;
>}
>}
>
>public void surfaceChanged(SurfaceHolder surfaceholder, int i, int
> j,
> int k) {
>Log.d("surfaceChanged()", "surfaceChanged...");
>}
>
>public void surfaceDestroyed(SurfaceHolder surfaceholder) {
>Log.d("surfaceDestroyed()", "surfaceDestroyed...");
>}
>
>
>public void surfaceCreated(SurfaceHolder holder) {
>Log.d("surfaceCreated()", "surfaceCreated...");
>mp0 = new MediaPlayer();
>mp1 = new MediaPlayer();
>try {
>mp0.setDataSource("/sdcard/0.3gp");
>mp0.setDisplay(holder);
>mp0.prepare();
>}
>catch(Exception e){
>}
>mp0.setOnPreparedListener(this);
>mp0.setOnCompletionListener(this);
>mp0.start();
>
>mp0.setAudioStreamType(AudioManager.STREAM_MUSIC);
>}
>
>@Override
>protected void onDestroy() {
>super.onDestroy();
>if (mp0 != null) {
>mp0.release();
>mp0 = null;
>}
>if (mp1 != null) {
>mp1.release();
>mp1 = null;
>}
>}
> }
>
>
>
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Intercepting an incoming/outgoing email

2009-06-16 Thread Dianne Hackborn
I wouldn't expect it to "mature" much in this regard.  At least not any time
soon.  First, the Gmail app is owned by Google, and by its nature is pretty
self-contained and unlikely to rely on any generic platform e-mail mechanism
you could intercept.  (Think of it the same way as the user using gmail in
their web browser on a desktop.)  Second, I don't think there is any
interest in any time soon having some kind of e-mail content provider or
back-end storage that mail apps would use, so the platform's generic e-mail
app will remain fairly self contained, and anyway I think it is something
that individual devices are likely to significantly customize or outright
replace.

On Tue, Jun 16, 2009 at 5:12 PM, Anonymous Guy  wrote:

>
> On Jun 16, 7:38 pm, Dianne Hackborn  wrote:
> > No there isn't.
>
> Ok, thanks for the info.  That's too bad, really.
>
>
> > There is a generic e-mail application that ships with the
> > platform, the special Gmail application from Google, and who knows what
> > other e-mail applications that other manufacturers can include or users
> can
> > download from the market.  There is thus no generic platform concept of
> > interacting with outgoing e-mail.
>
> I was mostly aiming at the internal email apps.  Seems the only way to
> do it is to create an email application with the functionality I want
> built in.  I think I'll wait to see if the platform matures enough,
> first. :P
>
>
> An Anonymous Guy
>
> >
>


-- 
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: How to disable Buttons on a Widget

2009-06-16 Thread Blake B.

I suspected as much with the Google Search "widget".  Thanks for
clarifying.  And the results of the grep for @RemotableViewMethod
annotation are very useful.

Great responses to every question!  Thanks Jeff!


On Jun 16, 3:25 pm, Jeff Sharkey  wrote:
> > Is it possible to disable a button on a Cupcake desktop widget?
>
> Not directly, but you could send a widget update that swaps out the
> drawable used and clears the PendingIntent.  Or, keep two buttons in
> your layout, and visible/gone them as needed.
>
> > The current Google Search widget disables the search button until a
> > user enters text, then the button is disabled.  Is this only allowed
> > for "special widgets", or is there an approach available to third-
> > party widgets?
>
> The Google Search bar on the desktop looks and feels like a widget,
> but it isn't a real widget.  It lives directly in the Launcher app,
> which is how it does things like auto completion.  Other
> AppWidgetHosts are free to include their custom elements like this:
>
> http://d.android.com/reference/android/appwidget/AppWidgetManager.htm...
>
> > More generally, is there a list somewhere of the allowed / disallowed
> > calls to widget views via the RemoteViews.set() approach?  I've
> > also encountered that "setSelected" and some others are not allowed.
>
> The allowed methods are simply marked with the @RemotableViewMethod
> annotation, here's a quick grep across the Cupcake tree:
>
> http://pastebin.com/f45b5130a
>
> --
> Jeff Sharkey
> jshar...@android.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Intercepting an incoming/outgoing email

2009-06-16 Thread Anonymous Guy

On Jun 16, 7:38 pm, Dianne Hackborn  wrote:
> No there isn't.

Ok, thanks for the info.  That's too bad, really.


> There is a generic e-mail application that ships with the
> platform, the special Gmail application from Google, and who knows what
> other e-mail applications that other manufacturers can include or users can
> download from the market.  There is thus no generic platform concept of
> interacting with outgoing e-mail.

I was mostly aiming at the internal email apps.  Seems the only way to
do it is to create an email application with the functionality I want
built in.  I think I'll wait to see if the platform matures enough,
first. :P


An Anonymous Guy

--~--~-~--~~~---~--~~
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 list of activities within a task

2009-06-16 Thread Dianne Hackborn
Sorry there is no API for this.

On Tue, Jun 16, 2009 at 3:02 PM, bain  wrote:

>
> is there a way to get the list of activities (all of them) for a
> ActivityManager.RunningTaskInfo
> >
>


-- 
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: Why is onActivityResult() called before onResume()

2009-06-16 Thread Dianne Hackborn
I don't think one way is necessarily more logical from the other.  The basic
reason is that generally when you get a result, this is coming from an
activity you had launched, so it is delivering it to you before you are
resumed.  So we give it to you before resuming so that you can update your
UI however you want, and onResume() is thus the last thing that happens
before the UI is shown and has all of the information it needs (including
whatever results are coming in) to do so.

On Tue, Jun 16, 2009 at 2:32 PM, MrSnowflake  wrote:

>
> I ran into a problem of resource allocation and release using the
> activity lifecycle functions when waiting for an activity to return a
> result. I suspected that onResume() was going to be called before
> onActivityResult() but it's the other way around.
>
> Why is this? Isn't it more logical for onResume() to be called first,
> so we can get a hold of resource we need to evaluate the result from
> the sub activity in onActivityResult()?
>
> I'm just wondering.
> >
>


-- 
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: Intercepting an incoming/outgoing email

2009-06-16 Thread Dianne Hackborn
No there isn't.  There is a generic e-mail application that ships with the
platform, the special Gmail application from Google, and who knows what
other e-mail applications that other manufacturers can include or users can
download from the market.  There is thus no generic platform concept of
interacting with outgoing e-mail.

On Tue, Jun 16, 2009 at 4:02 PM, Anonymous Guy  wrote:

>
> Anybody?  This is a basic thing to do on other platforms (well, other
> than iPhone which can't have any background processes :P ).  Without
> it being possible to intercept/change email messages, it limits what
> the platform can actually accomplish.  And if it's a "security issue",
> see Blackberries -- they are the most secure, yet still allow this for
> third-party developers.  If a user puts an application on the phone,
> they implicitly trust that application.
>
> An Anonymous Guy
>
>
> >
>


-- 
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: RelativeLayout in Java code with inflate and custom view - position issues

2009-06-16 Thread Romain Guy
No, do not use getDefaultDisplay(). Just use FILL_PARENT :)

On Tue, Jun 16, 2009 at 4:05 PM, Tane Piper wrote:

>
> Yes it does.
>
> If that's the case then I'll try using the
> WindowManager.getDefaultDisplay() methods and replaced the fixed
> values - this was currently for development purposes.
>
> On Jun 17, 12:01 am, Romain Guy  wrote:
> > Does your activity have a title bar? Is the status bar visible when
> > your activity is on screen? If so, the problem comes from the fact
> > that you manually set the RelativeLayout's size to 480 px. With a
> > title bar and a status bar, this will end up being outside of the
> > screen.
> >
> > By the way, you should NOT do what you are doing here. Using fixed
> > size and positions will not work with future Android devices.
> >
> >
> >
> > On Tue, Jun 16, 2009 at 3:55 PM, Tane Piper
> wrote:
> >
> > > Hi there,
> >
> > > I have a custom view that I had to write for a large scrollable image,
> > > as the images are larger than the size of the screen.  Before, I had
> > > tried to do it by putting the image into a ScrollView but that of
> > > course didn't work.
> >
> > > The view itself is within a RelativeLayout within the activity and at
> > > the bottom of the screen I have two buttons that are used for
> > > navigation and at the top a TextView with a caption for the activity
> > > (the main header is already being used here for instruction).
> >
> > > In my below code, I've checked the Hierachy Viewer to confirm all the
> > > elements are loaded and in the Activity I can see the TextView,
> > > however it overlays the ZN5ScrollView area and below the image I just
> > > have a blank area of the size defined rather than my buttons.  For the
> > > bottom navigation, the Hierachy Viewer is saying the absolute_y of the
> > > bottom navigation is 480.
> >
> > > I'm wondering if anyone can help with my layout code here to get this
> > > working correctly?
> >
> > > How it should be is:
> >
> > > Bottom navigation is 50px high, ZN5ScrollView is 365px above the
> > > navigation, and the TextView takes up the rest of the area at the top:
> >
> > > public void onCreate(Bundle savedInstanceState) {
> > >super.onCreate(savedInstanceState);
> > >setTitle("Tap Image To Return");
> >
> > >/* We need to get the inflator for the bottom navigation
> */
> > >LayoutInflater inflator =
> (LayoutInflater)getSystemService
> > > (Context.LAYOUT_INFLATER_SERVICE);
> > >gestureScanner = new GestureDetector(this);
> > >res = getResources();
> > >bmp = BitmapFactory.decodeResource(res,
> R.drawable.zn5_overview);
> >
> > >/* We need a root layout for this */
> > >RelativeLayout layout = new RelativeLayout(this);
> >
> > >/* We now need to load the bottom navigation */
> > >RelativeLayout bottom_navigation =
> (RelativeLayout)inflator.inflate
> > > (R.layout.bottom_navigation, layout);
> > >RelativeLayout.LayoutParams bottom_nav_params = new
> > > RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
> > > LayoutParams.WRAP_CONTENT);
> > >
>  bottom_nav_params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
> > >bottom_navigation.setLayoutParams(bottom_nav_params);
> >
> > >HomeButton = (ImageView) bottom_navigation.findViewById
> > > (R.id.btn_home);
> > >NextButton = (ImageView) bottom_navigation.findViewById
> > > (R.id.btn_next_session);
> > >HomeButton.setOnClickListener(Navigation);
> > >NextButton.setOnClickListener(Navigation);
> >
> > >ZN5ScrollView = new ZN5ScrollView(this, bmp,
> IMAGE_WITDH,
> > > IMAGE_HEIGHT);
> > >RelativeLayout.LayoutParams ZN5ScrollView_params = new
> > > RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, 365);
> > >ZN5ScrollView_params.addRule(RelativeLayout.ABOVE,
> > > R.id.bottom_navigation);
> > >ZN5ScrollView.setLayoutParams(ZN5ScrollView_params);
> >
> > >layout.addView(ZN5ScrollView, 1);
> >
> > >TextView textView = new TextView(this);
> > >textView.setText("WHAT'S COOL");
> >
> > >RelativeLayout.LayoutParams textView_params = new
> > > RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
> > > LayoutParams.WRAP_CONTENT);
> > >textView_params.addRule(RelativeLayout.ABOVE, 1);
> >
> > >textView.setLayoutParams(textView_params);
> >
> > >layout.addView(textView, 2);
> >
> > >setContentView(layout, new
> RelativeLayout.LayoutParams(320, 480));
> > >}
> >
> > > Any help on this would be much appreciated!
> >
> > > Tane
> >
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time
> > to p

[android-developers] Re: RelativeLayout in Java code with inflate and custom view - position issues

2009-06-16 Thread Tane Piper

Yes it does.

If that's the case then I'll try using the
WindowManager.getDefaultDisplay() methods and replaced the fixed
values - this was currently for development purposes.

On Jun 17, 12:01 am, Romain Guy  wrote:
> Does your activity have a title bar? Is the status bar visible when
> your activity is on screen? If so, the problem comes from the fact
> that you manually set the RelativeLayout's size to 480 px. With a
> title bar and a status bar, this will end up being outside of the
> screen.
>
> By the way, you should NOT do what you are doing here. Using fixed
> size and positions will not work with future Android devices.
>
>
>
> On Tue, Jun 16, 2009 at 3:55 PM, Tane Piper 
> wrote:
>
> > Hi there,
>
> > I have a custom view that I had to write for a large scrollable image,
> > as the images are larger than the size of the screen.  Before, I had
> > tried to do it by putting the image into a ScrollView but that of
> > course didn't work.
>
> > The view itself is within a RelativeLayout within the activity and at
> > the bottom of the screen I have two buttons that are used for
> > navigation and at the top a TextView with a caption for the activity
> > (the main header is already being used here for instruction).
>
> > In my below code, I've checked the Hierachy Viewer to confirm all the
> > elements are loaded and in the Activity I can see the TextView,
> > however it overlays the ZN5ScrollView area and below the image I just
> > have a blank area of the size defined rather than my buttons.  For the
> > bottom navigation, the Hierachy Viewer is saying the absolute_y of the
> > bottom navigation is 480.
>
> > I'm wondering if anyone can help with my layout code here to get this
> > working correctly?
>
> > How it should be is:
>
> > Bottom navigation is 50px high, ZN5ScrollView is 365px above the
> > navigation, and the TextView takes up the rest of the area at the top:
>
> > public void onCreate(Bundle savedInstanceState) {
> >                super.onCreate(savedInstanceState);
> >                setTitle("Tap Image To Return");
>
> >                /* We need to get the inflator for the bottom navigation */
> >                LayoutInflater inflator = (LayoutInflater)getSystemService
> > (Context.LAYOUT_INFLATER_SERVICE);
> >                gestureScanner = new GestureDetector(this);
> >                res = getResources();
> >                bmp = BitmapFactory.decodeResource(res, 
> > R.drawable.zn5_overview);
>
> >                /* We need a root layout for this */
> >                RelativeLayout layout = new RelativeLayout(this);
>
> >                /* We now need to load the bottom navigation */
> >                RelativeLayout bottom_navigation = 
> > (RelativeLayout)inflator.inflate
> > (R.layout.bottom_navigation, layout);
> >                RelativeLayout.LayoutParams bottom_nav_params = new
> > RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
> > LayoutParams.WRAP_CONTENT);
> >                
> > bottom_nav_params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
> >                bottom_navigation.setLayoutParams(bottom_nav_params);
>
> >                HomeButton = (ImageView) bottom_navigation.findViewById
> > (R.id.btn_home);
> >                NextButton = (ImageView) bottom_navigation.findViewById
> > (R.id.btn_next_session);
> >                HomeButton.setOnClickListener(Navigation);
> >                NextButton.setOnClickListener(Navigation);
>
> >                ZN5ScrollView = new ZN5ScrollView(this, bmp, IMAGE_WITDH,
> > IMAGE_HEIGHT);
> >                RelativeLayout.LayoutParams ZN5ScrollView_params = new
> > RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, 365);
> >                ZN5ScrollView_params.addRule(RelativeLayout.ABOVE,
> > R.id.bottom_navigation);
> >                ZN5ScrollView.setLayoutParams(ZN5ScrollView_params);
>
> >                layout.addView(ZN5ScrollView, 1);
>
> >                TextView textView = new TextView(this);
> >                textView.setText("WHAT'S COOL");
>
> >                RelativeLayout.LayoutParams textView_params = new
> > RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
> > LayoutParams.WRAP_CONTENT);
> >                textView_params.addRule(RelativeLayout.ABOVE, 1);
>
> >                textView.setLayoutParams(textView_params);
>
> >                layout.addView(textView, 2);
>
> >                setContentView(layout, new RelativeLayout.LayoutParams(320, 
> > 480));
> >        }
>
> > Any help on this would be much appreciated!
>
> > Tane
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to 

[android-developers] Re: Intercepting an incoming/outgoing email

2009-06-16 Thread Anonymous Guy

Anybody?  This is a basic thing to do on other platforms (well, other
than iPhone which can't have any background processes :P ).  Without
it being possible to intercept/change email messages, it limits what
the platform can actually accomplish.  And if it's a "security issue",
see Blackberries -- they are the most secure, yet still allow this for
third-party developers.  If a user puts an application on the phone,
they implicitly trust that application.

An Anonymous Guy


--~--~-~--~~~---~--~~
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: RelativeLayout in Java code with inflate and custom view - position issues

2009-06-16 Thread Romain Guy

Does your activity have a title bar? Is the status bar visible when
your activity is on screen? If so, the problem comes from the fact
that you manually set the RelativeLayout's size to 480 px. With a
title bar and a status bar, this will end up being outside of the
screen.

By the way, you should NOT do what you are doing here. Using fixed
size and positions will not work with future Android devices.

On Tue, Jun 16, 2009 at 3:55 PM, Tane Piper wrote:
>
> Hi there,
>
> I have a custom view that I had to write for a large scrollable image,
> as the images are larger than the size of the screen.  Before, I had
> tried to do it by putting the image into a ScrollView but that of
> course didn't work.
>
> The view itself is within a RelativeLayout within the activity and at
> the bottom of the screen I have two buttons that are used for
> navigation and at the top a TextView with a caption for the activity
> (the main header is already being used here for instruction).
>
> In my below code, I've checked the Hierachy Viewer to confirm all the
> elements are loaded and in the Activity I can see the TextView,
> however it overlays the ZN5ScrollView area and below the image I just
> have a blank area of the size defined rather than my buttons.  For the
> bottom navigation, the Hierachy Viewer is saying the absolute_y of the
> bottom navigation is 480.
>
> I'm wondering if anyone can help with my layout code here to get this
> working correctly?
>
> How it should be is:
>
> Bottom navigation is 50px high, ZN5ScrollView is 365px above the
> navigation, and the TextView takes up the rest of the area at the top:
>
> public void onCreate(Bundle savedInstanceState) {
>                super.onCreate(savedInstanceState);
>                setTitle("Tap Image To Return");
>
>                /* We need to get the inflator for the bottom navigation */
>                LayoutInflater inflator = (LayoutInflater)getSystemService
> (Context.LAYOUT_INFLATER_SERVICE);
>                gestureScanner = new GestureDetector(this);
>                res = getResources();
>                bmp = BitmapFactory.decodeResource(res, 
> R.drawable.zn5_overview);
>
>                /* We need a root layout for this */
>                RelativeLayout layout = new RelativeLayout(this);
>
>                /* We now need to load the bottom navigation */
>                RelativeLayout bottom_navigation = 
> (RelativeLayout)inflator.inflate
> (R.layout.bottom_navigation, layout);
>                RelativeLayout.LayoutParams bottom_nav_params = new
> RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
> LayoutParams.WRAP_CONTENT);
>                bottom_nav_params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
>                bottom_navigation.setLayoutParams(bottom_nav_params);
>
>
>                HomeButton = (ImageView) bottom_navigation.findViewById
> (R.id.btn_home);
>                NextButton = (ImageView) bottom_navigation.findViewById
> (R.id.btn_next_session);
>                HomeButton.setOnClickListener(Navigation);
>                NextButton.setOnClickListener(Navigation);
>
>                ZN5ScrollView = new ZN5ScrollView(this, bmp, IMAGE_WITDH,
> IMAGE_HEIGHT);
>                RelativeLayout.LayoutParams ZN5ScrollView_params = new
> RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, 365);
>                ZN5ScrollView_params.addRule(RelativeLayout.ABOVE,
> R.id.bottom_navigation);
>                ZN5ScrollView.setLayoutParams(ZN5ScrollView_params);
>
>                layout.addView(ZN5ScrollView, 1);
>
>                TextView textView = new TextView(this);
>                textView.setText("WHAT'S COOL");
>
>                RelativeLayout.LayoutParams textView_params = new
> RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
> LayoutParams.WRAP_CONTENT);
>                textView_params.addRule(RelativeLayout.ABOVE, 1);
>
>                textView.setLayoutParams(textView_params);
>
>                layout.addView(textView, 2);
>
>                setContentView(layout, new RelativeLayout.LayoutParams(320, 
> 480));
>        }
>
> Any help on this would be much appreciated!
>
> Tane
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] RelativeLayout in Java code with inflate and custom view - position issues

2009-06-16 Thread Tane Piper

Hi there,

I have a custom view that I had to write for a large scrollable image,
as the images are larger than the size of the screen.  Before, I had
tried to do it by putting the image into a ScrollView but that of
course didn't work.

The view itself is within a RelativeLayout within the activity and at
the bottom of the screen I have two buttons that are used for
navigation and at the top a TextView with a caption for the activity
(the main header is already being used here for instruction).

In my below code, I've checked the Hierachy Viewer to confirm all the
elements are loaded and in the Activity I can see the TextView,
however it overlays the ZN5ScrollView area and below the image I just
have a blank area of the size defined rather than my buttons.  For the
bottom navigation, the Hierachy Viewer is saying the absolute_y of the
bottom navigation is 480.

I'm wondering if anyone can help with my layout code here to get this
working correctly?

How it should be is:

Bottom navigation is 50px high, ZN5ScrollView is 365px above the
navigation, and the TextView takes up the rest of the area at the top:

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle("Tap Image To Return");

/* We need to get the inflator for the bottom navigation */
LayoutInflater inflator = (LayoutInflater)getSystemService
(Context.LAYOUT_INFLATER_SERVICE);
gestureScanner = new GestureDetector(this);
res = getResources();
bmp = BitmapFactory.decodeResource(res, 
R.drawable.zn5_overview);

/* We need a root layout for this */
RelativeLayout layout = new RelativeLayout(this);

/* We now need to load the bottom navigation */
RelativeLayout bottom_navigation = 
(RelativeLayout)inflator.inflate
(R.layout.bottom_navigation, layout);
RelativeLayout.LayoutParams bottom_nav_params = new
RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT);
bottom_nav_params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
bottom_navigation.setLayoutParams(bottom_nav_params);


HomeButton = (ImageView) bottom_navigation.findViewById
(R.id.btn_home);
NextButton = (ImageView) bottom_navigation.findViewById
(R.id.btn_next_session);
HomeButton.setOnClickListener(Navigation);
NextButton.setOnClickListener(Navigation);

ZN5ScrollView = new ZN5ScrollView(this, bmp, IMAGE_WITDH,
IMAGE_HEIGHT);
RelativeLayout.LayoutParams ZN5ScrollView_params = new
RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, 365);
ZN5ScrollView_params.addRule(RelativeLayout.ABOVE,
R.id.bottom_navigation);
ZN5ScrollView.setLayoutParams(ZN5ScrollView_params);

layout.addView(ZN5ScrollView, 1);

TextView textView = new TextView(this);
textView.setText("WHAT'S COOL");

RelativeLayout.LayoutParams textView_params = new
RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT);
textView_params.addRule(RelativeLayout.ABOVE, 1);

textView.setLayoutParams(textView_params);

layout.addView(textView, 2);

setContentView(layout, new RelativeLayout.LayoutParams(320, 
480));
}

Any help on this would be much appreciated!

Tane
--~--~-~--~~~---~--~~
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] UNINSTALL_SHORTCUT Intent

2009-06-16 Thread rollbak

Hello,

I am trying to use the following intent action, but i get an
ActivityNotFoundException

"com.android.launcher.action.UNINSTALL_SHORTCUT"

I try to use it with the following code:

Intent i = new Intent
("com.android.launcher.action.UNINSTALL_SHORTCUT");
startActivity(i);


Thanks,

Lucas
--~--~-~--~~~---~--~~
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: Calibration with the environment may improve the readings ?!

2009-06-16 Thread flegare

I auto answer myself and the poor soul who fall on this post, so far
the only way to calibrate is by making big 8-like gesture with the
phone. Try it it worked for me.

François Légaré
www.mobidroid.com

On 9 juin, 16:56, flegare  wrote:
> Hi there android super humans,
>
> Reading the sensor API (http://developer.android.com/reference/android/
> hardware/SensorManager.html) The section about ACCURACY speak about
> calibration:
>
> "calibration with the environment is needed"
>
> How do it calibrate?! Is this software calibration? Phone specific
> calibration??
>
> I don't see any methods to calibrate.
>
> Using the HTC Magic the compass often give me crazy values like if I
> was on the magnetic pole. I feel pretty scared and hide under a
> tinfoil hat just in case...
>
> So any url, doc or explanation will be appreciate!
>
> Cheers,
>
> François Légaréwww.mobidroid.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to get the list of activities within a task

2009-06-16 Thread bain

is there a way to get the list of activities (all of them) for a
ActivityManager.RunningTaskInfo
--~--~-~--~~~---~--~~
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 is onActivityResult() called before onResume()

2009-06-16 Thread MrSnowflake

I ran into a problem of resource allocation and release using the
activity lifecycle functions when waiting for an activity to return a
result. I suspected that onResume() was going to be called before
onActivityResult() but it's the other way around.

Why is this? Isn't it more logical for onResume() to be called first,
so we can get a hold of resource we need to evaluate the result from
the sub activity in onActivityResult()?

I'm just wondering.
--~--~-~--~~~---~--~~
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] 2 mediaplayer using one surfaceview

2009-06-16 Thread sbw.android

hi,
I want to play 2 videos one after one minimizing delay between each
video.
so I created 2 mediaplayer, one playing the current video and the
other preparing to play the following video.

 the 1st video is played correctely but I couldn't get the video track
of the second video. only sound without any error.
can somebody help?
thanks.

this is my source code :
(note that here, I am using files on sdcard but the application will
use files on a web server. that's why I need to prepare the second
video while the 1st is playing)


---
package com.test.testvideo;

import android.app.Activity;
import android.os.Bundle;
import android.media.MediaPlayer;
import android.view.SurfaceView;
import android.util.Log;
import android.view.SurfaceHolder;
import android.media.AudioManager;
import android.widget.Button;

public class Test extends Activity implements
MediaPlayer.OnPreparedListener, SurfaceHolder.Callback,
MediaPlayer.OnCompletionListener {
SurfaceView sf = null;
int currplayer = 0;
MediaPlayer mp1 = null;
MediaPlayer mp0 = null;
int currvideo = 0;
SurfaceHolder holder = null;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
this.sf = (SurfaceView)findViewById(R.id.sf);
this.holder = sf.getHolder();
holder.addCallback(this);
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
}

public void onPrepared(MediaPlayer mp){
Log.v("prepared()", "onPrepared()");

if(currplayer == 0) {
currvideo++;
String nexturl = "/sdcard/"+currvideo+".3gp";
try {
mp1.setDataSource(nexturl);
}
catch(Exception e){
}
mp1.setDisplay(holder);
mp1.prepareAsync();
mp1.setOnPreparedListener(this);
mp1.setOnCompletionListener(this);
mp1.setAudioStreamType(AudioManager.STREAM_MUSIC);
currplayer=1;
}
}

public void onCompletion(MediaPlayer mp) {
Log.v("onCompletion()"+currplayer, "completed...");
if(currplayer == 1) {
mp0.stop();
mp0.release();
mp1.start();
currplayer = 0;
}
}

public void surfaceChanged(SurfaceHolder surfaceholder, int i, int j,
int k) {
Log.d("surfaceChanged()", "surfaceChanged...");
}

public void surfaceDestroyed(SurfaceHolder surfaceholder) {
Log.d("surfaceDestroyed()", "surfaceDestroyed...");
}


public void surfaceCreated(SurfaceHolder holder) {
Log.d("surfaceCreated()", "surfaceCreated...");
mp0 = new MediaPlayer();
mp1 = new MediaPlayer();
try {
mp0.setDataSource("/sdcard/0.3gp");
mp0.setDisplay(holder);
mp0.prepare();
}
catch(Exception e){
}
mp0.setOnPreparedListener(this);
mp0.setOnCompletionListener(this);
mp0.start();

mp0.setAudioStreamType(AudioManager.STREAM_MUSIC);
}

@Override
protected void onDestroy() {
super.onDestroy();
if (mp0 != null) {
mp0.release();
mp0 = null;
}
if (mp1 != null) {
mp1.release();
mp1 = null;
}
}
}







--~--~-~--~~~---~--~~
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: Questions about how animations work / are implemented

2009-06-16 Thread Romain Guy

ViewGroup simply calls invalidate() after drawing its children if
there is at least one animation still running.

On Tue, Jun 16, 2009 at 2:00 PM, Deren wrote:
>
> I've been looking around in the framework source and I can get my head
> around some things. For instance, in the ScrollView, the animated
> scrolling is done by using computeScroll(). To make the screen redraw
> (and thus call computeScroll() again), postInvalidate() is used. Why
> is that one used, instead of a regular invalidate-call?
>
> Secondly, I wonder some things about the Animation framework. I know
> how a ViewGroup is responsible for animating the children (modifying
> the Canvas and so on), but what drives the animation, i.e. what makes
> the screen redraw over and over again? In the case of the ScrollView,
> it's the call to postInvalidate() made from computeScroll(), but what
> is it in the case of an Animation?
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Re: Able to use T-Mobile G1 without contract for application testing?

2009-06-16 Thread dindin


> Running apps on Android doesn't depend on carriers, unless you want to test
> data networking, in any case I'd get something other than the HTC Dream/G1
> for AT&T if you want data cause AT&T EDGE is so slow it's not funny... The
> HTC Magic supposedly does 900Mhz which I think AT&T runs 3G over... so will
> the i7500 and no doubt countless other devices once they start shipping...

Thanks.

As long as I can get the device and do a little prototyping and it
will allow me to test the app on the phone I am good. So long as there
are no ties to a specific carrier to test the application on a real
physical device.

-D
--~--~-~--~~~---~--~~
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: Questions about how animations work / are implemented

2009-06-16 Thread Deren

Okay, thanks! But what about the question regarding invalidate()/
postInvalidate()? Because I tried to experiment with scrolling, and
simply calling invalidate() from computeScroll() wasn't sufficient, I
had to call postInvalidate, even though computeScroll() runs on the UI
thread?
--~--~-~--~~~---~--~~
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: FakeDev

2009-06-16 Thread Junior Oyebadejo

Thanks for that.
However, shouldnt these AT commands be sent to the SIM card?
--~--~-~--~~~---~--~~
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] Questions about how animations work / are implemented

2009-06-16 Thread Deren

I've been looking around in the framework source and I can get my head
around some things. For instance, in the ScrollView, the animated
scrolling is done by using computeScroll(). To make the screen redraw
(and thus call computeScroll() again), postInvalidate() is used. Why
is that one used, instead of a regular invalidate-call?

Secondly, I wonder some things about the Animation framework. I know
how a ViewGroup is responsible for animating the children (modifying
the Canvas and so on), but what drives the animation, i.e. what makes
the screen redraw over and over again? In the case of the ScrollView,
it's the call to postInvalidate() made from computeScroll(), but what
is it in the case of an Animation?
--~--~-~--~~~---~--~~
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: Sortable ListView

2009-06-16 Thread Jeff Sharkey

The Music app can reorder a playlist of songs, and its source code is
available.  It might take a little bit of digging since it's
intertwined with Music-specific code, but here are the important
parts:

TouchInterceptor, which is a custom ListView:

http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/TouchInterceptor.java;hb=cupcake
http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=res/layout/media_picker_activity.xml;hb=cupcake

TrackBrowserActivity, which uses TouchInterceptor.  In particular,
mEditMode is what enables the reorder mode:

http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/TrackBrowserActivity.java;hb=cupcake

Hope this helps.

j



On Mon, Jun 15, 2009 at 3:10 PM, Walter wrote:
>
> Has anyone been able to create a sortable ListView (one where you can
> drag items around to change their order)?
>
> >
>



-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Re: which width and height for a 2*1 cell widget? 160*100? Bug in Widget?

2009-06-16 Thread Jeff Sharkey

Using the following equation yields:

Minimum size in dip = (Number of cells * 74dip) - 2dip

146dip = (2 * 74dip) - 2dip
72dip = (1 * 74dip) - 2dip

The reason for the odd math is because the same dimensions are used
when inserted in landscape mode, which has different cell sizes on the
default home screen.

Source of equation:
http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html

j

On Sat, Jun 13, 2009 at 7:02 PM, Hastala wrote:
>
> I use 160*100 but it becomes 3*2 cells. Is this a bug?
> >
>



-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Re: Widget Unresponsive after Opening/Closing

2009-06-16 Thread Jeff Sharkey

Are you sending a full RemoteViews update each time?  (The AppWidget
framework only keeps the last RemoteViews sent, and reapplies it when
needed, such as after a screen rotation.)

For example, if you only set the PendingIntent once, and have a second
RemoteViews update that doesn't include it, the PendingIntent will be
lost when the screen is rotated.

j

On Tue, Jun 16, 2009 at 10:16 AM, d2dadd wrote:
>
> I have a widget button that responds to user's clicks. My design is to
> assign the click event handler to calling a service in OnUpdate. It
> works fine when first created, but it stops responding after user has
> opened and closed the keyboard. How to fix this?
> Many thanks.
>
> >
>



-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Re: How to disable Buttons on a Widget

2009-06-16 Thread Jeff Sharkey

> Is it possible to disable a button on a Cupcake desktop widget?

Not directly, but you could send a widget update that swaps out the
drawable used and clears the PendingIntent.  Or, keep two buttons in
your layout, and visible/gone them as needed.


> The current Google Search widget disables the search button until a
> user enters text, then the button is disabled.  Is this only allowed
> for "special widgets", or is there an approach available to third-
> party widgets?

The Google Search bar on the desktop looks and feels like a widget,
but it isn't a real widget.  It lives directly in the Launcher app,
which is how it does things like auto completion.  Other
AppWidgetHosts are free to include their custom elements like this:

http://d.android.com/reference/android/appwidget/AppWidgetManager.html#EXTRA_CUSTOM_INFO


> More generally, is there a list somewhere of the allowed / disallowed
> calls to widget views via the RemoteViews.set() approach?  I've
> also encountered that "setSelected" and some others are not allowed.

The allowed methods are simply marked with the @RemotableViewMethod
annotation, here's a quick grep across the Cupcake tree:

http://pastebin.com/f45b5130a


-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Bug in IntBuffer.put() when using direct buffers

2009-06-16 Thread djp

In a process of switching from indirect to direct buffers for OpenGL
geometry specification I've found a problem with the following
function in java.nio.IntBuffer class:

IntBuffer put(int[] src, int off, int len)

this function is supposed to do a bulk transfer of int data from the
given array starting at the specified offset. It should be an
optimized version of the following code:

for (int i = 0; i < len; i++) {
buffer.put(src[off + i]);
}

The problem is that the bulk transfer method does not work properly
with non-zero offset when the IntBuffer is created from a direct
ByteBuffer. I'll try to demonstrate the problem using a code sample:

ByteBuffer directBuffer = ByteBuffer.allocateDirect(size).order
(ByteOrder.nativeOrder());
IntBuffer intBuffer = directBuffer.asIntBuffer();

// does *not* work with offset > 0
intBuffer.put(data, offset, length);

// does work with offset > 0
for (int i = 0; i < length; i++) {
intBuffer.put(data[offset + i]);
}

I'm using G1 with an official 1.5 firmware.

Regards,
David

--~--~-~--~~~---~--~~
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: [AppWidget ] How to get widget object from appwidget

2009-06-16 Thread Jeff Sharkey

> I don't know how to get the button object from appwidget(get the ture
> layout copy of home screen).

You can't access the actually-inflated layout from your app because it
exists entirely in another process.


> I know the RemoteView offeres an interface
> RemoteView.setOnClickPendingIntent,but what I need is
> RemoteView.setOnClickListener(R.id.delete,OnClickListener)

You can't setOnClickListener() directly, because the target View lives
in another process.  If this were allowed, the other process would be
executing your code as itself, which is a security hole.


-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Re: java.lang.ExceptionInInitializerError while reading yml file

2009-06-16 Thread fadden

On Jun 16, 3:42 am, Ani  wrote:
> W/dalvikvm(24378): VFY: unable to find class referenced in signature 
> (Ljava/beans/PropertyDescriptor;)
> E/dalvikvm(24378): Could not find method 
> java.beans.PropertyDescriptor.getWriteMethod, referenced from method 
> org.ho.yaml.YamlConfig.isPropertyAccessibleForDecoding
[...]
> W/dalvikvm(24378): VFY:  rejected 
> Lorg/ho/yaml/YamlConfig;.isPropertyAccessibleForDecoding 
> (Ljava/beans/PropertyDescriptor;)Z

java.beans.PropertyDescriptor is not part of the Android platform, but
org.ho.yaml.YamlConfig.isPropertyAccessibleForDecoding requires it.

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

2009-06-16 Thread Jeff Sharkey

You have to long-press on the home screen, or pick "Add" from the
menu.  Then you can pick "Widgets" and the example widget.

j

On Sat, Jun 13, 2009 at 1:32 PM,
tng.z...@googlemail.com wrote:
>
> I checked out the "SimpleWikitionary", the demo project mentioned in
> the Blog "http://android-developers.blogspot.com/2009/04/introducing-
> home-screen-widgets-and.html".
> I tried to start the application in the emulator. The application was
> installed successfully on the emulator, but I could not see the wiki-
> widget on the home screen. I added also some logging code in the
> "WordWidget::onUpdate()", however, the code seems never to be called.
>
> Does the emulator delivered in SDK 1.5 support the AppWidgets
> Framework? Or I did forget to do some configuration?
>
> Thx in advance for help!
>
> Ting
>
> >
>



-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Re: FakeDev

2009-06-16 Thread fadden

On Jun 16, 9:00 am, Marco Nelissen  wrote:
> > So looking back at the 'writeline'
> > function in /device/system/reference-ril/atchannel.c the commands gets
> > sent to a function named 'write'. At the time of my previous question
> > I thought this was in the FakeDev. I'm guessing this is not the case
> > for when the code is ported to the device.
>
> Isn't that just the POSIX write() function from libc ?

Put another way:

% man 2 write
NAME
   write - write to a file descriptor

SYNOPSIS
   #include 

   ssize_t write(int fd, const void *buf, size_t count);

DESCRIPTION
   write()  writes  up  to  count bytes from the buffer pointed
buf to the
   file referred to by the file descriptor fd.
[...]

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

2009-06-16 Thread Jeff Sharkey

Right, you can't pass the appWidgetId through a PendingIntent extra
reliably.  You could pass it through the setData() Uri, and have the
configuration activity watch for both.

j

On Mon, Jun 15, 2009 at 2:18 AM, BoD wrote:
>
> Replying to my own post for future reference.
>
> This is due to the way PendingIntents work and are automatically
> reused.
> Quoting the PendingIntent Javadoc:
> "If the creating application later re-retrieves the same kind of
> PendingIntent (same operation, same Intent action, data, categories,
> and components, and same flags), it will receive a PendingIntent
> representing the same token if that is still valid, and can thus call
> cancel() to remove it."
>
> BoD
>
>
>
> On Jun 14, 9:19 pm, BoD  wrote:
>> Hi!
>>
>> I'm making a little AppWidget that should be configured when you first
>> add it and also when you click on it.
>>
>> I figured, since clicking on it should do the same as the "creation"
>> event, why not try to use the same code?
>>
>> My configuration Activity should not know or care, whether it was
>> called for a creation event or an "already exists, wants to be
>> configured" event.
>>
>> So I extend AppWidgetProvider, create a RemoteViews for my AppWidget
>> and do this in onUpdate():
>>
>>             Intent intent = new Intent(context,
>> ConfigureActivity.class);
>>             intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>>             intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
>> appWidgetId);
>>
>>             PendingIntent pendingIntent = PendingIntent.getActivity
>> (context, 0, intent, 0);
>>
>>             views.setOnClickPendingIntent(R.id.buttonImage,
>> pendingIntent);
>>
>> For some reason it's not working as I'd like:
>> in my ConfigureActivity when I look at getIntent().getExtras
>> ().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID), it returns
>> always the same id: the first one that was configured.
>>
>> Now the strange part:
>> if in the code above I add this line:
>>
>>             intent.setData(ContentUris.withAppendedId(Uri.EMPTY,
>> appWidgetId));
>>
>> then it works correctly and in my ConfigureActivity getIntent
>> ().getExtras().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID)
>> returns the correct id, the id of the widget I clicked on.
>>
>> Surely there is an explanation but I don't see it.
>> Please help! :)
>>
>> Thanks a lot!
>>
>> BoD
> >
>



-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Re: Native MediaPlayer plays audio but not video (3gp format)

2009-06-16 Thread Marco Nelissen
This group is about developing using the Android SDK, which is Java only.


On Tue, Jun 16, 2009 at 9:01 AM, dglushko  wrote:

>
> Hi,
> I have the following native source code that is supposed to display
> video.
> It plays 3gp file ok and I can hear the audio, but the video is not
> shown.
>
> Code:
>
> // Global surface initialized elsewhere
> extern sp g_surface;
>
> void media_player_test(void) {
>MediaPlayer *mp;
>
>mp = new MediaPlayer();
>if(mp == NULL) {
>return;
>}
>
>mp->setDataSource("/data/local/video.3gp");
>mp->setVideoSurface(g_surface);
>mp->prepare();
>mp->start();
> }
>
> End of code
>
> In Java I manage to play video with almost the same implementation.
> The only difference I can see is that Java code calls setType() for
> the surface holder.
> I can't find a matching operation for setType() in native code.
> Is it important?
>
> One more thing, I tried with and without listeners/callbacks, but the
> video still doesn't play.
>
> Thank you.
> David
>
> >
>

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



[android-developers] Re: Android market data or API

2009-06-16 Thread Mark Murphy

> We have a website with free games and we would like to had direct
> links to the great games from the android Market.
>
> Is there a possibility to get the data automatically  from the Android
> Market to put it on my website ?

Not in any officially approved way.

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

2009-06-16 Thread Dianne Hackborn
You can also manually set FLAG_KEEP_SCREEN_ON in the window.

On Tue, Jun 16, 2009 at 11:45 AM, Alexey Krasnoriadtsev <
ale...@agilefusion.com> wrote:

>
>
> http://developer.android.com/reference/android/view/View.html#attr_android:keepScreenOn
>
> This will keep the screen on, while your view is visible.
>
> On Jun 16, 3:52 am, Thomas Riley  wrote:
> > How would I go about doing this.
> >
> > I have the wake lock working ok now but no harm in knowing a different
> > method...
> >
> > On Jun 16, 8:49 am, Dianne Hackborn  wrote:
> >
> > > Do  you REALLY need to hold a full wake lock like this?  The vast
> majority
> > > of apps should use the window flag to keep the screen on while their UI
> is
> > > shown.  This way you don't need the power permission, and you are much
> less
> > > likely to have bugs that leave the screen on and cause the user's
> battery to
> > > drain.
> >
> > > On Sat, Jun 13, 2009 at 3:04 PM, Thomas Riley <
> tomrile...@googlemail.com>wrote:
> >
> > > > I need to use a wakelock to hold the screen active while its
> required.
> > > > I was recommended to use a service which I have been trying but on
> the
> > > > onDestroy I am getting "wl cannot be resolved". Code below:
> >
> > > > public class WakeLockService extends Service {
> >
> > > >@Override
> > > >public IBinder onBind(Intent arg0) {
> > > >// TODO Auto-generated method stub
> > > >return null;
> > > >}
> >
> > > >public void onCreate() {
> > > >PowerManager pm = (PowerManager) getSystemService
> > > > (Context.POWER_SERVICE);
> > > >PowerManager.WakeLock wl = pm.newWakeLock
> > > > (PowerManager.FULL_WAKE_LOCK, "My Tag");
> > > >wl.acquire();
> > > >}
> >
> > > >public void onDestroy() {
> > > >wl.release();
> > > >}
> >
> > > > }
> >
> > > --
> > > 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.
> >
> >
> >
>


-- 
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: Features of SDK 1.5

2009-06-16 Thread Yusuf T. Mobile

GIYF

http://source.android.com/roadmap/cupcake



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



On Jun 16, 3:50 am, Andy_Metia  wrote:
> Hi Developers!
> My software team is looking to develop mobile apps on the Android
> platform for our clients and they have asked me to do some research on
> the platform.  I'm not a dev so apologies if some of the questions are
> a little simple!!
>
> What are the key features of SDK 1.5?  i.e. what works well and is an
> improvement on 1.1, what needs to be added and what plain doesn't
> work?
>
> Can you help??!
>
> 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: Wake Locks and Services

2009-06-16 Thread Alexey Krasnoriadtsev

http://developer.android.com/reference/android/view/View.html#attr_android:keepScreenOn

This will keep the screen on, while your view is visible.

On Jun 16, 3:52 am, Thomas Riley  wrote:
> How would I go about doing this.
>
> I have the wake lock working ok now but no harm in knowing a different
> method...
>
> On Jun 16, 8:49 am, Dianne Hackborn  wrote:
>
> > Do  you REALLY need to hold a full wake lock like this?  The vast majority
> > of apps should use the window flag to keep the screen on while their UI is
> > shown.  This way you don't need the power permission, and you are much less
> > likely to have bugs that leave the screen on and cause the user's battery to
> > drain.
>
> > On Sat, Jun 13, 2009 at 3:04 PM, Thomas Riley 
> > wrote:
>
> > > I need to use a wakelock to hold the screen active while its required.
> > > I was recommended to use a service which I have been trying but on the
> > > onDestroy I am getting "wl cannot be resolved". Code below:
>
> > > public class WakeLockService extends Service {
>
> > >       �...@override
> > >        public IBinder onBind(Intent arg0) {
> > >                // TODO Auto-generated method stub
> > >                return null;
> > >        }
>
> > >        public void onCreate() {
> > >                PowerManager pm = (PowerManager) getSystemService
> > > (Context.POWER_SERVICE);
> > >                PowerManager.WakeLock wl = pm.newWakeLock
> > > (PowerManager.FULL_WAKE_LOCK, "My Tag");
> > >                wl.acquire();
> > >        }
>
> > >        public void onDestroy() {
> > >                wl.release();
> > >        }
>
> > > }
>
> > --
> > 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: New Google Maps app - new Intents URI schemes?

2009-06-16 Thread JP


Clarification: I am looking for the Intents URL schemes that may or
may not be available to call the new functions in the Google Maps app,
from outside of an app. This is similar to the websphere when opening
calling a web server with a RESTful GET query. So this is *not* an API
call from within an app.




On Jun 16, 10:19 am, Lorenz  wrote:
> Hi, are you talking about the set of Google api that allows to use
> Driving directions and draws driving path( from a start point to a
> final point) on the map?
>
> On Jun 16, 4:33 am, JP  wrote:
>
> > Just downloaded the update to Google Maps that has been posted in the
> > Market.
> > Nice new features like transit directions.
>
> > My immediate question, naively asked: Are these new features available
> > through Intents, and has anybody seen the URI schemes posted
> > somewhere? I checked the Intents list in the documentation and, as
> > expected, there is no update there.
--~--~-~--~~~---~--~~
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] help with apn settings insertion

2009-06-16 Thread kalyan simhan
hi ppl...
im getting permission error when trying to insert into apn
setting table(carriers)
ContentResolver contentResolver = getContentResolver();
contentResolver.insert(Uri.parse("content://telephony/carriers"),
cv);
im using sdk 1.5 ... kindly help!!
thanks in advance!

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



[android-developers] Re: How to save the "view" to "image file" ?

2009-06-16 Thread Brian Smith

Two questions...

1) (out of curiosity) What does the ability to take snapshots have to
do with the ability to design a game for Android?  Games usually put
things on the screen, not the other way around.

2) Are you wanting to do this from your code, or just to have
screenshots for advertising/publishing?

I don't know how to do it from code, but the Android SDK does provide
a way to take screenshots from an emulator or connected device.

http://developer.android.com/guide/developing/tools/ddms.html

If you're using Eclipse for Android development, the DDMS functions
are available in the DDMS context (assuming you've installed the
Android plugin).

On Jun 16, 2:28 am, Alan  wrote:
> Hi all,
>
>     When I design a game, I have a problem.
>     How to save the "View" display on the screen to a image file such
> as png,jpg file
>     Whether android API is support to this function?
>
>     If no API support to this save function, how to design my
> program ?
>
>     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: Is there any dev accreditation for Android?

2009-06-16 Thread Yusuf T. Mobile

No, there is no official dev accreditation for Android.



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



On Jun 16, 6:49 am, Andy_Metia  wrote:
> Why put in more time training if I don't get greater opportunities
> from Android?? Do they offer dev points or a chance for more revenue
> to skilled devs? Can't find any mention of it.
--~--~-~--~~~---~--~~
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: Upgrading to sdk 1.5

2009-06-16 Thread ndatta

To add to the above: on Windows, the current working directory is
included automatically in the search PATH. Thus when you type
"android" from inside the tools directory, Windows searches the
current directory by default and runs the android tool. On Mac/Linux
however, the current working directory is not automatically included
in the search path. Thus you have to tell the system that the android
tool is in fact located in the current directory (assuming that you
have already changed to the tools/ directory). Thus you need to type
"./android" instead of just "android".

On Jun 15, 7:53 pm, gjs  wrote:
> ./android
>
> On Jun 14, 4:46 am, jared  wrote:
>
>
>
> > I am having an issue when upgrading to 1.5.I am good on all steps
> > listed here:
>
> >http://developer.android.com/sdk/1.5_r2/upgrading.html
>
> > but I run into problems when creating the AVD. It says do this:
> > Open a command-line (e.g.,"Command Prompt" application on Windows, or
> > "Terminal" on Mac/Linux) and navigate to your SDK package's tools/
> > directory. First, you need to select a Deployment Target. To view
> > available targets, execute:
> > android list targets
>
> > From the terminal, I navigate into the directory of the SDK on a Mac
> > and I call the command listed above:
> > myMac:Mobile jaredfurgal$ cd android-sdk-mac_x86-1.5_r2
> > myMac:android-sdk-mac_x86-1.5_r2 jaredfurgal$ cd tools
> > myMac:tools jaredfurgal$ android list targets
> > -bash: android: command not found
>
> > when I list the files in the directory, I see this:
> > Jet             android         dmtracedump     hierarchyviewer mksdcard
> > NOTICE.txt      apkbuilder      draw9patch      hprof-conv      sqlite3
> > adb             ddms            emulator        lib             traceview
>
> > clearly "andoid" is in the list, so why would I not be able to execute
> > it? Is there something else I am missing?- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android WebView - handling orientation changes

2009-06-16 Thread Brian Smith

It has to reload the page every time, by default, because the default
action for an activity dealing with a configuration (including
orientation) change is for it to be destroyed and restarted.  That can
be overridden, though, by specifying an android:configChange attribute
for the activity in your manifest file.  My uses of WebView so far
don't involve any forms where keyboard input would be required, so
I've been able to specify "orientation|keyboardHidden" for that
attribute without having to do anything special with config change
notifications.  The WebView widget handles re-wrapping text and images
based on view size.

On Jun 16, 1:26 pm, Glenn  wrote:
> Hi,
>
> Just started working with the webview. The issue is performance
> following rotation. The WebView has to reload the page, which can be a
> bit tedious.
>
> What's the best of of handling an orientation change without reloading
> the page from source each time?
>
> Thanks
>
> Glenn
--~--~-~--~~~---~--~~
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: PORTING BROWSER ON ANDROID

2009-06-16 Thread Delta Foxtrot
2009/6/16 Vincent 

>
> What about write a native-c web browser? rending on framebuffer ..?
> I just say say.. :)
>

Almost no one would be able to use it except those that have root?

--~--~-~--~~~---~--~~
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 save the "view" to "image file" ?

2009-06-16 Thread Alan

Hi all,

When I design a game, I have a problem.
How to save the "View" display on the screen to a image file such
as png,jpg file
Whether android API is support to this function?

If no API support to this save function, how to design my
program ?

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: Is there any dev accreditation for Android?

2009-06-16 Thread Delta Foxtrot
2009/6/16 Andy_Metia 

>
> Why put in more time training if I don't get greater opportunities
> from Android?? Do they offer dev points or a chance for more revenue
> to skilled devs? Can't find any mention of it.
>

Yet another useless piece of paper to wipe our butts with when we run short
of toilet paper :)

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

2009-06-16 Thread ndatta

Did you check the "Create Activity" checkbox in the New Android
Project dialog box?

On Jun 14, 5:49 pm, Lordsaibat  wrote:
> When I make a new project the .java file is not generated.
> I can run the project, but it does not run in the emulator or
> anything.
> It did use to work before then it stop working. I tried deleting the
> folder and all project files.
> After that I reinstalled everything but I am still having problems.
> Please help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Can you disable/enable Buttons on a Cupcake desktop widget?

2009-06-16 Thread Blake B.

(updated subject)

On Jun 16, 11:36 am, "Blake B."  wrote:
> Is it possible to disable a button on a Cupcake desktop widget?
>
> When I attempt to use the RemoteViews.setBoolean(myButtonId,
> "setEnabled", false) approach, I get an error saying that calling
> "setEnabled" is not permitted via RemoteViews.
>
> The current Google Search widget disables the search button until a
> user enters text, then the button is disabled.  Is this only allowed
> for "special widgets", or is there an approach available to third-
> party widgets?
>
> More generally, is there a list somewhere of the allowed / disallowed
> calls to widget views via the RemoteViews.set() approach?  I've
> also encountered that "setSelected" and some others are not allowed.
>
> Thanks,
> Blake
--~--~-~--~~~---~--~~
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: Able to use T-Mobile G1 without contract for application testing?

2009-06-16 Thread Delta Foxtrot
2009/6/16 dindin 

>
> I don't have T-Mobile but AT&T. I want to get an unlocked Android
> Phone (thinking of the new Samsung i7500 or the G2). Can I use that as
> a development device to test my applications? Will it even work on
> another GSM carrier?


Running apps on Android doesn't depend on carriers, unless you want to test
data networking, in any case I'd get something other than the HTC Dream/G1
for AT&T if you want data cause AT&T EDGE is so slow it's not funny... The
HTC Magic supposedly does 900Mhz which I think AT&T runs 3G over... so will
the i7500 and no doubt countless other devices once they start shipping...

--~--~-~--~~~---~--~~
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] Baseband Drivers

2009-06-16 Thread Junior Oyebadejo

Are the packet drivers for the Qualcomm MSM7201A included in the
Android PDK? If not does anyone know where they can be found?

Thanks!

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



[android-developers] Re: Feature request / Defect report declined with no comment

2009-06-16 Thread Kerry

Romain,

Could you provide a code example of how you would handle this on the
application side?

Thanks.

On Jun 14, 10:14 pm, Romain Guy  wrote:
> It is very easy to handle this from the application side and a
> selection event is a selection event. There should be no distinction
> between the first one and other events.
>
>
>
> On Sun, Jun 14, 2009 at 9:10 PM, Kerry wrote:
>
> > I just posted a defect / feature request and it was declined without
> > comment. Can anybody explain to me why this was declined without an
> > explanation?
>
> >http://code.google.com/p/android/issues/detail?id=2991
>
> > I took the time to provide feedback as a user of the android api,
> > based on some discussion in the developer group. I am not the only
> > developer who has encountered this deficiency in the api. I think I
> > explained the deficiency clearly. And I think it is a professional
> > courtesy to provide an explanation. If it is a duplicate, please say
> > so. If I am in error and this is not a problem because of an oversight
> > on my part, I think that would be helpful to know.
>
> > If the attitude of the project owners is that the api is good enough.
> > Maybe we could have a short conversation about that.
>
> > As it stands now, I have no insight into this issue or why my defect
> > was declined. Was it rejected for good reason or an arrogant developer
> > who like to hit the reject button?
>
> > -Kerry
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Search context with type-to-search?

2009-06-16 Thread Brian Smith

Figured this one out... along with overriding onSearchRequested(), I'm
also overriding startSearch() and inserting the required app data in
the 2 activities where I need it if it's not there and local search is
specified.  It may be redundant but, at the same time, logic suggests
that the default key handler in android.app.Activity should call
onSearchRequested() in the first place for local searching, in case
it's overridden.  Oops :-)

On May 1, 7:27 pm, Brian Smith  wrote:
> When implementing search in my application, I'm including some search
> context info depending on the activity where search is invoked.  In
> one of those, I'd like to implement type-to-search as well, but the
> standard method of adding search context info doesn't work in that
> case... the onSearchRequested() method in the activity is never
> called.
>
> Is there any way to include search context info in a type-to-search
> invocation, or am I stuck with only the Search key and menu option?
--~--~-~--~~~---~--~~
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] LOOKING FOR ANDROID DEVELOPERS for STORK MOBILE MEDIA STARTUP in SILICON VALLEY?

2009-06-16 Thread STORK

Looking to build a team of Android Developers for a Mobile Media
Startup here in the Silicon Valley.

If you or anyone you know maybe interested in getting involved, please
contact me here or at spame...@yahoo.com.

We will be challenged with developing a superior application than
www.permuto.com, currently a stealth startup organized by the old
yahoo guys.  The founder previously founded www.rhythmnewmedia.com

This will be a great opportunity to get immediate funding from VC's.
Currently, mobile media comprised of social networking capabilities is
the trend with investors on the Android platform.

Schools I've attended
Stanford University

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



[android-developers] Re: Android Market Data

2009-06-16 Thread android-games

Hi

I'm searching exactly the same thing. Have you found an answer since
the 2 last weeks ?
Is there a beta Android Market API just for some developpers ? That
what I think.

Thanks,

Stephane.

On Jun 3, 1:42 am, SizzlingSkizzorsProgrammer 
wrote:
> Hi!
>
> I was wondering if there is a way that I could access the market data
> from Google's (android's) servers, in a similar fashion to Cyrket.com
> (such as an open web service, etc)
>
> This would definitely increase the market's potential and usability,
> and I was wondering how I could go about getting that data, since
> cyrket obviously has a way.
>
> Thanks!
>
> PS:  I don't want a link to cyrket, I want a way to get this data on
> my own (rss feeds, web service, etc from GOOGLE!)

--~--~-~--~~~---~--~~
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] binaries for omap3530

2009-06-16 Thread aparna

Hi all,
I'm new to Android.. I'm trying to port Android onto Omap 3530
(Mistral)..
Can somebody share/send  the binaries for Omap 3530 from Mistral...??
While working i find that the   /dev/tty files are all empty and it
shows
the error that these files could not be opened...
what can i do about this??
one more thing is where can i find the following image:
omap3evm_program_NAND.sd.img ??
It would be good if someone can help me out...

Regards
Aparna


--~--~-~--~~~---~--~~
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: Able to use T-Mobile G1 without contract for application testing?

2009-06-16 Thread dindin

I don't have T-Mobile but AT&T. I want to get an unlocked Android
Phone (thinking of the new Samsung i7500 or the G2). Can I use that as
a development device to test my applications? Will it even work on
another GSM carrier?

Thanks.

-D

On Jun 9, 11:13 pm, Kent Loobey  wrote:
> The following is my opinion.
>
> I have a dev g1 phone.  I was not able to get it to register with google
> without a sim card.  This means that I couldn't get past the registration
> screen until I had a sim card.  I think google makes it have to go through a
> phone connection to complete the registration.  I got a sim card from T-Mobile
> ($63/mo, one month minimum).  I could not get a data only plan from them.  I
> haven't tried it yet without the sim because my month isn't up yet but I
> believe that it works fine with just WiFi which is just any WiFi connection
> (That is to say the WiFi isn't going through T-Mobile.).
>
> The point of a T-Mobile G1 contract is to get the phone discounted.  If you
> don't want the phone discounted then you don't need the contract.  The monthly
> rate is the same with or without the contract.
>
> You only need a T-Mobile account if you need to make cellular phone calls and
> to do the initial google registration.  If you already have a GMail account
> the registration might not be necessary.
>
> On Tuesday 09 June 2009 19:35:49 tgustafson wrote:
>
> > Hi Todd,
>
> > Thank you very much for the reply.  Is there a charge for the wifi-
> > only data plan?  I will be using this solely to develop and will
> > always be covered by wifi coverage.
>
> > Cheers,
> > Tom
>
> > On Jun 9, 7:16 am, Todd Sjolander  wrote:
> > > I'm using a G1 with the old non-Android (read: "Wifi only") data
> > > plan.  The only downside that I've seen is the loss of connectivity
> > > outside of your Wifi networks.  But if you're developing from inside a
> > > wireless network, it makes no difference.  You can still buy apps on
> > > the market, and use all the usual network-based software.
>
> > > Todd Sjolander
>
> > > On Jun 9, 1:55 am, tgustafson  wrote:
> > > > Hi John,
>
> > > > Thanks for the tip, they look like they are quite expensive
> > > > unfortunately given the low supply.  Have you had any experience with
> > > > developers using a generic t-mobile G1 phone for development without
> > > > data plan?
>
> > > > Cheers,
> > > > Tom
>
> > > > On Jun 8, 10:12 pm, "Maps.Huge.Info (Maps API Guru)"
>
> > > >  wrote:
> > > > > There are a few of the unlocked HTC Magic phones available on eBay.
> > > > > These are the ones given out at the Google IO conference that will
> > > > > work without a SIM or on any capable network. Search eBay for Google
> > > > > IO and you'll find them. Nice phones, I wouldn't part with mine for
> > > > > anything.
>
> > > > > -John Coryat
>
> > > > >http://maps.huge.info
>
> > > > >http://www.usnaviguide.com
>
> > > > >http://www.zipmap.net

--~--~-~--~~~---~--~~
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: start call with intent from browser

2009-06-16 Thread nleiptv

Hi,

I am quite a newbie to Android, so chances are there is an easier way
to do this, but what I propose should work.
Have a look at this project from Android's SVN:
http://apps-for-android.googlecode.com/svn/trunk/Samples/WebViewDemo
It displays how to use a web view (if you want: a browser view that
you can integrate in your own application) and how to call JavaScript
from the activity that embeds it. Furthermore it shows how to call
from JavaScript into your Activity by registering a JavaScript
interface with the web view to serve as the callback. You could attach
JavaScript code to the link you want the user to press in your web
view, then that JavaScript code could call into your application and
that could initiate the call.

Say you had written a JavaScript interface class like this:

public class CallDispatcher{

  public void call(String number)
  {
 String dispatchURI = "tel:" + number;
 // the code to fire the intent to start the call
  }
}

then in the activity you embed the WebView in you would call:

mWebView.addJavascriptInterface(new CallDispatcher(),
"jsCallDispatcher");

and in the JavaScript of the link you would call:

window.jsCallDispatcher.call("+00161384950");


I think that should work.

Cheers,

nle



On 3 Jun., 11:33, dev_rob  wrote:
> Hi,
>
> is it possible to start a call from the android browser, let's say by
> clicking a link in an html file or with javascript after a button
> click? maybe with help of the gears api?
>
> i'd appreciate any hints, maybe an example of how to embed the intent
> in the html-file/in javascript.
>
> thanks a lot!!
> cheers

--~--~-~--~~~---~--~~
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 pick off the ANIMATE_SCREEN_LIGHTS in the @141571?

2009-06-16 Thread Kuma

Hi,

I am wonder why pick off the following code in the file
"PowerManagerService.java" ( @141571 )?

 if ((newState & SCREEN_BRIGHT_BIT) == 0)
{
 ...
 ...
- } else {
-mScreenBrightness.setTargetLocked
(preferredBrightness,
-   ANIM_STEPS, INITIAL_SCREEN_BRIGHTNESS,
nominalCurrentValue); }


If add this part will be caused another issue?

BR, Kuma

--~--~-~--~~~---~--~~
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] Features of SDK 1.5

2009-06-16 Thread Andy_Metia

Hi Developers!
My software team is looking to develop mobile apps on the Android
platform for our clients and they have asked me to do some research on
the platform.  I'm not a dev so apologies if some of the questions are
a little simple!!

What are the key features of SDK 1.5?  i.e. what works well and is an
improvement on 1.1, what needs to be added and what plain doesn't
work?

Can you help??!

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] Playing video as a raw resource

2009-06-16 Thread JP

I'm writing a program which requires that a video be packaged with
it.  The only way I know of doing this is by adding the video to res/
raw/, which coincidentally renders the video useless.  I've looked all
over the web and the consensus seems to be you can only play streaming
video, or video from a file.  In the emulator if I attempt to play the
video through the method used here ( 
http://developer.android.com/guide/topics/media/index.html
), all I get is audio and a black screen.

I've attempted to use VideoView as well, and the same thing occurs,
audio but with a black screen.  There must be a way to package video
with your application without needing an SD card, or having to stream
the file and have the video actually play.  In the words of Google, I
would like to create a "seamless" experience.  :)

Any help is greatly appreciated!

--~--~-~--~~~---~--~~
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 market data or API

2009-06-16 Thread android-games

Dear,

We have a website with free games and we would like to had direct
links to the great games from the android Market.

Is there a possibility to get the data automatically  from the Android
Market to put it on my website ?

Thanks,

Stephane.

--~--~-~--~~~---~--~~
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 switch windows like browsers?

2009-06-16 Thread JdbcDroid

to use a window function in the menu button you need to configure the
menu like this:


public class MyActivity extends Activity {

 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
 }

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);

menu.add("See Window");
return true;
   }

  public boolean onOptionsItemSelected(MenuItem item) {

   if (item.hasSubMenu() == false) {
 if(item.getTitle().equals("See Window"))
 //launch the window Activity witch do that Saurav 
Mukherjee
says before me.
   }
   return true;
   }
}

--~--~-~--~~~---~--~~
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 play video file in android.

2009-06-16 Thread yangzw

MediaPlayer does support streaming, but in this case, setDataSource
should have Uri as the input, rather than a String input just like you
used in your code. Hope it helps.

On 5月22日, 上午11时57分, Priya  wrote:
> Hi,
>
> here is my code for playing video through url
>
> public class sample extends Activity {
>
> private String _videoPath;
> privateMediaPlayer_mp;
> private static final String TAG = "Video";
>
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
>
> _videoPath = "http://16.181.151.159/video/funnydog.wmv";;
>
> getWindow().setFormat(PixelFormat.TRANSLUCENT);
>
> LinearLayout layout = new LinearLayout(getBaseContext());
> layout.setLayoutParams(new LinearLayout.LayoutParams
> (LinearLayout.LayoutParams.FILL_PARENT,
> 
> LinearLayout.LayoutParams.FILL_PARENT));
>
> SurfaceView sview = new SurfaceView(getBaseContext());
> sview.setLayoutParams(new LinearLayout.LayoutParams
> (320,180));
> sview.getHolder().addCallback(new surfaceHolderCallback());
>
> layout.addView(sview);
> setContentView(layout);
> }
>
> class surfaceHolderCallback implements SurfaceHolder.Callback {
> public void surfaceCreated(SurfaceHolder holder) {
> try {
> _mp = newMediaPlayer();
> _mp.setDataSource(_videoPath);
> _mp.setDisplay(holder);
>
> _mp.setOnPreparedListener(new
>MediaPlayer.OnPreparedListener() {
> public void onPrepared(MediaPlayermediaPlayer) {
>mediaPlayer.start();
> }
> });
>
> _mp.setOnErrorListener(newMediaPlayer.OnErrorListener
> () {
> public boolean onError(MediaPlayermediaPlayer,int
> i, int i1) {
> Log.e(TAG, Integer.toString(i));
> return false;
> }
> });
>
> _mp.prepareAsync();
>
> } catch (Exception ex) {
> Log.e(TAG, ex.getMessage());
> }
> }
>
> public void surfaceChanged(SurfaceHolder surfaceHolder, int i,
> int i1, int i2) {
> }
>
> public void surfaceDestroyed(SurfaceHolder surfaceHolder) {
> _mp.stop();
> _mp.release();
> }
> }
>
> }
>
> I am getting Error(-1,0)   ... can anybody resolve this issue...
>
> Thanks
> Priya
>
> On May 21, 1:29 pm, Priya  wrote:
>
> > Hi,
>
> > I am new to Android.
> > I have depeloped a video player app. through Sd card.
>
> > Now i want to play video direct from URL.
>
> > Can anybody provide me sample code for the same.
>
> > Thanks in advance...
>
> > Thanks
> > Priya

--~--~-~--~~~---~--~~
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] Native MediaPlayer plays audio but not video (3gp format)

2009-06-16 Thread dglushko

Hi,
I have the following native source code that is supposed to display
video.
It plays 3gp file ok and I can hear the audio, but the video is not
shown.

Code:

// Global surface initialized elsewhere
extern sp g_surface;

void media_player_test(void) {
MediaPlayer *mp;

mp = new MediaPlayer();
if(mp == NULL) {
return;
}

mp->setDataSource("/data/local/video.3gp");
mp->setVideoSurface(g_surface);
mp->prepare();
mp->start();
}

End of code

In Java I manage to play video with almost the same implementation.
The only difference I can see is that Java code calls setType() for
the surface holder.
I can't find a matching operation for setType() in native code.
Is it important?

One more thing, I tried with and without listeners/callbacks, but the
video still doesn't play.

Thank you.
David

--~--~-~--~~~---~--~~
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: start call with intent from browser

2009-06-16 Thread nleiptv

Actually I found an easier way: you just create a link like this:  wrote:
> Hi,
>
> is it possible to start a call from the android browser, let's say by
> clicking a link in an html file or with javascript after a button
> click? maybe with help of the gears api?
>
> i'd appreciate any hints, maybe an example of how to embed the intent
> in the html-file/in javascript.
>
> thanks a lot!!
> cheers

--~--~-~--~~~---~--~~
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] RTSP and RTP streaming on the Cupcake-upgraded

2009-06-16 Thread pierre

Hello all,

I am trying to test RTP streaming on the Android G1 dev phone with no
success.
I used to do that successfully before to upgrade to Cupcake. But now
the same test doesn't work anymore.
Is it supposed to work?

Here is a detailed description of the test:

1) The device is the G1 dev phone upgraded to Cupcake.
2) It is connected via WiFi
3) The RTSP session is started with the VideoView activity from the
sample code (http://developer.android.com/guide/samples/ApiDemos/src/
com/example/android/apis/media/VideoViewDemo.html). The only
modification consists in specifying the RTSP URL for the path string.
4) The Darwin Streaming Server version 5.5.5 is used as an RTSP
server.
5) The mp4 file which is streamed complies with the specifications in
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/media/VideoViewDemo.html
. It is hinted.
6) Wireshark is used to monitor RTSP exchanges. The OPTIONS and
DESCRIBES commands take place normally. Then nothing more.
7) The following error appears in the Android error Log:
E/PlayerDriver(   35): Command PLAYER_INIT completed with an error or
info PVMFFailure
8) A popup windows says: "Cannot play video. Sorry, this video cannot
be played".

Notes:

1) The same test was successfull with the 1.1 Android version before
upgrading to Cupcake.
2) There is a web server collocated with the RTSP server. The same
file streams OK over http with the web server.

Thanks in advance for any clue.

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



[android-developers] Is there any dev accreditation for Android?

2009-06-16 Thread Andy_Metia

Why put in more time training if I don't get greater opportunities
from Android?? Do they offer dev points or a chance for more revenue
to skilled devs? Can't find any mention of it.

--~--~-~--~~~---~--~~
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 switch windows like browsers?

2009-06-16 Thread JdbcDroid

to use a window function in the menu button you need to configure the
menu like this:


public class MyActivity extends Activity {

 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
 }

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);

menu.add("See Window");
return true;
   }

  public boolean onOptionsItemSelected(MenuItem item) {

   if (item.hasSubMenu() == false) {
 if(item.getTitle().equals("See Window"))
 //launch the window Activity witch do that Saurav 
Mukherjee
says before me.
   }
   return true;
   }
}

--~--~-~--~~~---~--~~
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] ListView app dies

2009-06-16 Thread Markus Gursch

hey all

i have an activity with layout

- linearlayout
   - listview
   - textview ( on the bottom line )


to make nice rows in the listview i have my own adapter. when i show
the activity everything looks fine until i try to scroll. then the app
crashes with following messages:

06-16 15:44:44.908: INFO/DEBUG(539): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
06-16 15:44:44.908: INFO/DEBUG(539): Build fingerprint: 'generic/sdk/
generic/:1.5/CUPCAKE/147336:eng/test-keys'
06-16 15:44:44.918: INFO/DEBUG(539): pid: 825, tid: 826  >>>
com.moneymanager.android <<<
06-16 15:44:44.918: INFO/DEBUG(539): signal 11 (SIGSEGV), fault addr
0004
06-16 15:44:44.918: INFO/DEBUG(539):  r0 0004  r1 40021800  r2
0004  r3 ad3296c5
06-16 15:44:44.918: INFO/DEBUG(539):  r4   r5   r6
ad342da5  r7 41039fb8
06-16 15:44:44.918: INFO/DEBUG(539):  r8 100ffd00  r9 41039fb0  10
41039fa0  fp 0001
06-16 15:44:44.918: INFO/DEBUG(539):  ip ad35b874  sp 100ffce8  lr
ad3296cf  pc afb045a8  cpsr 0010
06-16 15:44:45.418: INFO/DEBUG(539):  #00  pc 45a8  /
system/lib/libcutils.so
06-16 15:44:45.437: INFO/DEBUG(539):  #01  lr ad3296cf  /
system/lib/libandroid_runtime.so
06-16 15:44:45.477: INFO/DEBUG(539): stack:
06-16 15:44:45.487: INFO/DEBUG(539): 100ffca8  
06-16 15:44:45.507: INFO/DEBUG(539): 100ffcac  
06-16 15:44:45.517: INFO/DEBUG(539): 100ffcb0  
06-16 15:44:45.517: INFO/DEBUG(539): 100ffcb4  
06-16 15:44:45.538: INFO/DEBUG(539): 100ffcb8  
06-16 15:44:45.548: INFO/DEBUG(539): 100ffcbc  41f844ec
06-16 15:44:45.567: INFO/DEBUG(539): 100ffcc0  0001
06-16 15:44:45.577: INFO/DEBUG(539): 100ffcc4  41f844ec
06-16 15:44:45.587: INFO/DEBUG(539): 100ffcc8  0001
06-16 15:44:45.597: INFO/DEBUG(539): 100ffccc  
06-16 15:44:45.597: INFO/DEBUG(539): 100ffcd0  
06-16 15:44:45.617: INFO/DEBUG(539): 100ffcd4  410a79d0
06-16 15:44:45.627: INFO/DEBUG(539): 100ffcd8  100ffd30
06-16 15:44:45.637: INFO/DEBUG(539): 100ffcdc  000a
06-16 15:44:45.658: INFO/DEBUG(539): 100ffce0  df002777
06-16 15:44:45.658: INFO/DEBUG(539): 100ffce4  e3a070ad
06-16 15:44:45.668: INFO/DEBUG(539): #00 100ffce8  
06-16 15:44:45.677: INFO/DEBUG(539): 100ffcec  ad3296cf  /system/
lib/libandroid_runtime.so
06-16 15:44:45.686: INFO/DEBUG(539): 100ffcf0  100ffd20
06-16 15:44:45.696: INFO/DEBUG(539): 100ffcf4  ad342db5  /system/
lib/libandroid_runtime.so
06-16 15:44:45.718: INFO/DEBUG(539): 100ffcf8  40021800
06-16 15:44:45.718: INFO/DEBUG(539): 100ffcfc  ad00e3b8  /system/
lib/libdvm.so
06-16 15:44:45.737: INFO/DEBUG(539): 100ffd00  410a79d0
06-16 15:44:45.737: INFO/DEBUG(539): 100ffd04  00141850  [heap]
06-16 15:44:45.747: INFO/DEBUG(539): 100ffd08  ad342da5  /system/
lib/libandroid_runtime.so
06-16 15:44:45.766: INFO/DEBUG(539): 100ffd0c  40021800
06-16 15:44:45.766: INFO/DEBUG(539): 100ffd10  1071
06-16 15:44:45.776: INFO/DEBUG(539): 100ffd14  00141850  [heap]
06-16 15:44:45.788: INFO/DEBUG(539): 100ffd18  100ffd20
06-16 15:44:45.788: INFO/DEBUG(539): 100ffd1c  ad040a8d  /system/
lib/libdvm.so
06-16 15:44:45.788: INFO/DEBUG(539): 100ffd20  41039fb0
06-16 15:44:45.788: INFO/DEBUG(539): 100ffd24  41fffe7d
06-16 15:44:45.807: INFO/DEBUG(539): 100ffd28  ad342da5  /system/
lib/libandroid_runtime.so
06-16 15:44:45.817: INFO/DEBUG(539): 100ffd2c  100ffd98
06-16 15:44:48.758: INFO/ActivityManager(569): Process
com.moneymanager.android (pid 825) has died.
06-16 15:44:48.798: INFO/WindowManager(569): WIN DEATH: Window
{43722ae0 com.moneymanager.android/
com.moneymanager.android.StartActivity paused=false}
06-16 15:44:48.828: INFO/WindowManager(569): WIN DEATH: Window
{435c5150 com.moneymanager.android/
com.moneymanager.android.OverviewActivity paused=false}


can anyone help me 

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] How to get the audios' _id list from db

2009-06-16 Thread Androlux

Hi, All,

Now, I wanna get the audios' _id in the same folder, except
the audio files in the sub-folder; do you have any suggestions?
For instance, there is a folder /sdcard/A, which contains some
songs and sub-folder B(that is, /sdcard/A/B), and there are some song
files exist in /sdcard/A/B; now, how to get the _id of the files in /
sdcard/A except those in /sdcard/A/B?
Thanks in advance!

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



[android-developers] Android WebView - handling orientation changes

2009-06-16 Thread Glenn

Hi,

Just started working with the webview. The issue is performance
following rotation. The WebView has to reload the page, which can be a
bit tedious.

What's the best of of handling an orientation change without reloading
the page from source each time?

Thanks

Glenn

--~--~-~--~~~---~--~~
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] ListView app dies

2009-06-16 Thread Markus Gursch

Hey at all,
i have a strange problem and i dont know what to do

i have an activity with an layout
-linearlayout
   - listview
   - textview ( on the bottom line )


to make some nice listview lines i have my own adapter (extends
baseadapter)

when i show this activity everything looks ok, but when i try to
scroll it, the app dies with following debug messages:

06-16 15:44:44.908: INFO/DEBUG(539): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
06-16 15:44:44.908: INFO/DEBUG(539): Build fingerprint: 'generic/sdk/
generic/:1.5/CUPCAKE/147336:eng/test-keys'
06-16 15:44:44.918: INFO/DEBUG(539): pid: 825, tid: 826  >>>
com.moneymanager.android <<<
06-16 15:44:44.918: INFO/DEBUG(539): signal 11 (SIGSEGV), fault addr
0004
06-16 15:44:44.918: INFO/DEBUG(539):  r0 0004  r1 40021800  r2
0004  r3 ad3296c5
06-16 15:44:44.918: INFO/DEBUG(539):  r4   r5   r6
ad342da5  r7 41039fb8
06-16 15:44:44.918: INFO/DEBUG(539):  r8 100ffd00  r9 41039fb0  10
41039fa0  fp 0001
06-16 15:44:44.918: INFO/DEBUG(539):  ip ad35b874  sp 100ffce8  lr
ad3296cf  pc afb045a8  cpsr 0010
06-16 15:44:45.418: INFO/DEBUG(539):  #00  pc 45a8  /
system/lib/libcutils.so
06-16 15:44:45.437: INFO/DEBUG(539):  #01  lr ad3296cf  /
system/lib/libandroid_runtime.so
06-16 15:44:45.477: INFO/DEBUG(539): stack:
06-16 15:44:45.487: INFO/DEBUG(539): 100ffca8  
06-16 15:44:45.507: INFO/DEBUG(539): 100ffcac  
06-16 15:44:45.517: INFO/DEBUG(539): 100ffcb0  
06-16 15:44:45.517: INFO/DEBUG(539): 100ffcb4  
06-16 15:44:45.538: INFO/DEBUG(539): 100ffcb8  
06-16 15:44:45.548: INFO/DEBUG(539): 100ffcbc  41f844ec
06-16 15:44:45.567: INFO/DEBUG(539): 100ffcc0  0001
06-16 15:44:45.577: INFO/DEBUG(539): 100ffcc4  41f844ec
06-16 15:44:45.587: INFO/DEBUG(539): 100ffcc8  0001
06-16 15:44:45.597: INFO/DEBUG(539): 100ffccc  
06-16 15:44:45.597: INFO/DEBUG(539): 100ffcd0  
06-16 15:44:45.617: INFO/DEBUG(539): 100ffcd4  410a79d0
06-16 15:44:45.627: INFO/DEBUG(539): 100ffcd8  100ffd30
06-16 15:44:45.637: INFO/DEBUG(539): 100ffcdc  000a
06-16 15:44:45.658: INFO/DEBUG(539): 100ffce0  df002777
06-16 15:44:45.658: INFO/DEBUG(539): 100ffce4  e3a070ad
06-16 15:44:45.668: INFO/DEBUG(539): #00 100ffce8  
06-16 15:44:45.677: INFO/DEBUG(539): 100ffcec  ad3296cf  /system/
lib/libandroid_runtime.so
06-16 15:44:45.686: INFO/DEBUG(539): 100ffcf0  100ffd20
06-16 15:44:45.696: INFO/DEBUG(539): 100ffcf4  ad342db5  /system/
lib/libandroid_runtime.so
06-16 15:44:45.718: INFO/DEBUG(539): 100ffcf8  40021800
06-16 15:44:45.718: INFO/DEBUG(539): 100ffcfc  ad00e3b8  /system/
lib/libdvm.so
06-16 15:44:45.737: INFO/DEBUG(539): 100ffd00  410a79d0
06-16 15:44:45.737: INFO/DEBUG(539): 100ffd04  00141850  [heap]
06-16 15:44:45.747: INFO/DEBUG(539): 100ffd08  ad342da5  /system/
lib/libandroid_runtime.so
06-16 15:44:45.766: INFO/DEBUG(539): 100ffd0c  40021800
06-16 15:44:45.766: INFO/DEBUG(539): 100ffd10  1071
06-16 15:44:45.776: INFO/DEBUG(539): 100ffd14  00141850  [heap]
06-16 15:44:45.788: INFO/DEBUG(539): 100ffd18  100ffd20
06-16 15:44:45.788: INFO/DEBUG(539): 100ffd1c  ad040a8d  /system/
lib/libdvm.so
06-16 15:44:45.788: INFO/DEBUG(539): 100ffd20  41039fb0
06-16 15:44:45.788: INFO/DEBUG(539): 100ffd24  41fffe7d
06-16 15:44:45.807: INFO/DEBUG(539): 100ffd28  ad342da5  /system/
lib/libandroid_runtime.so
06-16 15:44:45.817: INFO/DEBUG(539): 100ffd2c  100ffd98
06-16 15:44:48.758: INFO/ActivityManager(569): Process
com.moneymanager.android (pid 825) has died.
06-16 15:44:48.798: INFO/WindowManager(569): WIN DEATH: Window
{43722ae0 com.moneymanager.android/
com.moneymanager.android.StartActivity paused=false}
06-16 15:44:48.828: INFO/WindowManager(569): WIN DEATH: Window
{435c5150 com.moneymanager.android/
com.moneymanager.android.OverviewActivity paused=false}


can anyone help me with this 

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



  1   2   >