[android-developers] Need help:Any Opencore APi to get the decoded frame of a video into a buffer??

2010-02-07 Thread Latha Shivanna
Hi All

Is it possible to get the decoded frame of a video in a buffer using
Opencore Apis? Or is it like, the Opencore Media APis would directly
update these frames on screen display?

Any reply is greatly appreciated. Please do advise.

thanks
Latha

-- 
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: Signing in to Google for Google Document access

2010-02-07 Thread Hugo Visser
There's no ClientLogin class in the android public api, but you can
easy implement it with the instructions that are posted here:
http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html.

If you are targetting android 2.0 up only, you should use the built in
AccountManager to get the token that you'd otherwise get from
ClientLogin. I know because I just added that for my own app :)

On Feb 6, 4:38 am, Jonathan Nalewajek  wrote:
> I am working on an app where the user inputs some numbers, my app
> performs a few relevant calculations, and displays the result.
> However, I would like it if the user could somehow save this value to
> a Google Spreadsheet.
>
> My problem is, I have no idea how to authenticate with Google. I have
> been Goggle'ing this for awhile, and 
> found:http://code.google.com/apis/documents/docs/3.0/developers_guide_proto...
>
> However, when I try to use the command ClientLogin in my code, it
> tells me this is undefined. I have the Build set to SDK 7, which is
> Android+Google, and I have: import google.*;  (I did this just to play
> it safe);
>
> Anyway, I would appreciate any help I could get. If there are any
> tutorials or code snippets out there that can help, please send me the
> link. This is the first time I am attempting something like this (I am
> a C++ developer who works on offline applications), so anything that
> can help the learning process is greatly appreciated.
>
> Thank you!
> -Jon

-- 
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] Map With Marker & Intimation

2010-02-07 Thread Sasikumar.S
Hi,

In my program i showed a Map. I'm having 5 latitude & 5 longitude Points.
By using that points i need to set the Marker in map.
When the Marker is clicked a intimation should be showed.
When i click the intimation it should go to another page..

My expectation is same like below link image
http://www.wirelessandmobilenews.com/6art/transit-android.png

How to do
that?

-- 
Thanks & Regards
Sasikumar.S

-- 
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: Showing image from Url

2010-02-07 Thread kiran
Just include internet permission in manifest file
ie 

On Feb 6, 1:10 pm, pankaj nigam  wrote:
> Hi,
>     i want to display an image from URL,i found one example from forum
> .but it doing nothing. i m sending the code plz suggest me what to do
>
> package com.example.urlImage;
>
> import java.io.IOException;
> import java.io.InputStream;
> import java.net.HttpURLConnection;
> import java.net.MalformedURLException;
> import java.net.URL;
> import android.app.Activity;
> import android.graphics.Bitmap;
> import android.graphics.BitmapFactory;
> import android.os.Bundle;
> import android.widget.ImageView;
>
> public class urlImage extends Activity {
>
>         Bitmap bmp;
>         URL url = null;
>         @Override
>         public void onCreate(Bundle icicle) {
>         super.onCreate(icicle);
>         setContentView(R.layout.main);
>         String str="http://www.glamsham.com/images/tv06.jpg";;
>         ImageView imView = (ImageView)findViewById(R.id.imview);
>         
> //url="http://images.orkut.com/orkut/photos/OgAAADG3_VXKdNE9-VI1jHhG_KvV-2H-...";;
>         try{
>         url = new URL(str);
>         }
>         catch(MalformedURLException e)
>         {
>                 e.printStackTrace();
>         }
>         try{
>                 HttpURLConnection conn =  
> (HttpURLConnection)url.openConnection();
>                 conn.setDoInput(true);
>
>                 conn.connect();
>                 int length = conn.getContentLength();
>
>                 int[] bitmapData =new int[length];
>                 byte[] bitmapData2 =new byte[length];
>
>                 InputStream is = conn.getInputStream();
>
>                 bmp = BitmapFactory.decodeStream(is);
>                 imView.setImageBitmap(bmp);
>                 } catch (IOException e)
>                 {
>                         e.printStackTrace();
>                 }
>         }
>
> }
>
> And my xml file is
>
> 
> http://schemas.android.com/apk/res/android";
> android:orientation="vertical"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent">
>  android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:text="Hello World, HTTPImage load test"
> />
>  android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_gravity="center"
> />
> 
>
> Please suggest me.
> Pankaj Nigam
> Software Engineer

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


[android-developers] How can I scroll ListView by pixel?

2010-02-07 Thread NoraBora
I have a ListView which has many TextViews.

Each TextView has different texts. They are usually 2 or more pages.

How can I scroll this ListView by pixel?


At first I thought scrollBy works but then it doesn't show the next
item.

Later I implemented with a few of dispatchTouchEvent(). but then I
have to create a MotionEvent everytime.


I believe there should be something.

-- 
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-developers+subscr...@googlegroups.com

2010-02-07 Thread Peng Songbai
-- 
Thanks & Best Regards,
Peng Songbai

-- 
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: UI Testing

2010-02-07 Thread andrew_prunicki
Of course right after I wrote this, I noticed the classes in
android.test, including TouchUtils, which seems to have numerous
methods for UI interaction.

On Feb 7, 11:10 pm, andrew_prunicki  wrote:
> Is there anything to test the UI of an Android app like Jemmy for
> Swing?

-- 
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 send motion Event down to another activity

2010-02-07 Thread Guobin
1. Possibly there are ways to find the activity behind the current
one.
Precondition: All activity are fullscreen.
If your activity is the root activity, then Home is in behind.
Otherwise find the previous activity in the task stack.
2. You could send the touch event to other activity, but it's useless
I think.
The Android Window Mananger can only handle UI events for one view
hirarchy at one time.
May you send the event to the other activity, but no one can handle
it.

BRs
Guobin

On Feb 8, 12:50 pm, sheng wang  wrote:
> Hi GuoBin,
>
> I understand what u mean below. I think that's the standard way the android
> deal with the event. Event goes through a current path within the activity.
> No event will go out of the current activity.
>
> As a surround way, is there any method that can let the current activity
> find out who is behind him? so he  might communicate with the one behind
> it?
>
> Anyway, think you for taking your time to think the question.
>
> Shawn.
>
> 2010/2/8 Guobin 
>
> > > 1. Whether the event can be send down to any thing behind the current
> > > activity.
> > No, you can't.
> > On the Android platform, you define an Activity's UI using a hierarchy
> > of View and ViewGroup nodes.
> > Home & your activity are different activity, they have their own view
> > hierarchy.
> > Key events are always delivered to the View currently in focus. They
> > are dispatched starting from the top of the View hierarchy, and then
> > down, until they reach the appropriate destination.
> > But not the view of other activity.
> >http://developer.android.com/guide/topics/ui/ui-events.html
>
> > Guobin
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
>

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


[android-developers] UI Testing

2010-02-07 Thread andrew_prunicki
Is there anything to test the UI of an Android app like Jemmy for
Swing?

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


Re: [android-developers] Re: How to use RTP in Android?

2010-02-07 Thread satish bhoyar
Hi jarnaud,
Thanks for the reply,

Shall i google for it or is there any specific link which will have that
info?

thanks,
satish

On Mon, Feb 8, 2010 at 3:35 AM, jarnaud  wrote:

> Hi Satish,
>
> you might want to check the SIPDROID project... Really nice
> implementation of SIP/RTP
>
> --
> Jay (http://android.voxisland.com";>Complete Android Tutorials
> on http://android.voxisland.com)
>
> On Feb 7, 12:29 pm, satish bhoyar  wrote:
> > Hi all,
> > I wish to use RTP in android. I am learning RTP, & wish to use the RTP
> for
> > some apps can anyone tell me how to use it...
> >
> > any doc or links will also be helpfull for me.
> >
> > thanks,
> > satish
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: How to send motion Event down to another activity

2010-02-07 Thread sheng wang
Hi GuoBin,

I understand what u mean below. I think that's the standard way the android
deal with the event. Event goes through a current path within the activity.
No event will go out of the current activity.

As a surround way, is there any method that can let the current activity
find out who is behind him? so he  might communicate with the one behind
it?

Anyway, think you for taking your time to think the question.


Shawn.






2010/2/8 Guobin 

> > 1. Whether the event can be send down to any thing behind the current
> > activity.
> No, you can't.
> On the Android platform, you define an Activity's UI using a hierarchy
> of View and ViewGroup nodes.
> Home & your activity are different activity, they have their own view
> hierarchy.
> Key events are always delivered to the View currently in focus. They
> are dispatched starting from the top of the View hierarchy, and then
> down, until they reach the appropriate destination.
> But not the view of other activity.
> http://developer.android.com/guide/topics/ui/ui-events.html
>
> Guobin
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
@prunicki

You application was connecting with internet repeatedly?? if yes did
you face this same issue and how did you work out that ?

On Feb 7, 8:43 pm, himanshu jain  wrote:
> @frank
>
> I already tried in different network at home and at office , I have
> been trying this on G1 at home i try on WIFI and at office at tried
> when WIFI is OFF and i am using ip address not host name.
>
> I am using Alarm manager which call service repeatedly after 5 minutes
> so once it throws Exception(Network Unreachable). Alarm manager does
> not stop by this exception it again start service on specified time
> and then my service try to connect through HttpURLConnection it says
> Network Unreachable.
>
> On Feb 7, 7:16 pm, prunicki  wrote:
>
> > I tried something similar back in Android 1.0/1.1 using only wifi.
> > What I found is that once the wifi connection was lost, the only way
> > to get it back was to fully wakeup the phone.
>
> > I think it may be different with the later versions of the SDK, but in
> > case it's 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] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
@frank

I already tried in different network at home and at office , I have
been trying this on G1 at home i try on WIFI and at office at tried
when WIFI is OFF and i am using ip address not host name.

I am using Alarm manager which call service repeatedly after 5 minutes
so once it throws Exception(Network Unreachable). Alarm manager does
not stop by this exception it again start service on specified time
and then my service try to connect through HttpURLConnection it says
Network Unreachable.

On Feb 7, 7:16 pm, prunicki  wrote:
> I tried something similar back in Android 1.0/1.1 using only wifi.
> What I found is that once the wifi connection was lost, the only way
> to get it back was to fully wakeup the phone.
>
> I think it may be different with the later versions of the SDK, but in
> case it's 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] Downloading App from store

2010-02-07 Thread Swapnil Dalal
Hi All,


What is the procedure of installing application downloaded from any
app store?

Which module takes care of it from android.


Thanks n regards,

Swapnil

-- 
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] Shared Heap concept in Android..

2010-02-07 Thread Swapnil Dalal
HI All,

Does DVM supports Shared HEAP concept in android?


Thanks n Regards,

Swapnil Dalal.

-- 
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 send motion Event down to another activity

2010-02-07 Thread Guobin
> 1. Whether the event can be send down to any thing behind the current
> activity.
No, you can't.
On the Android platform, you define an Activity's UI using a hierarchy
of View and ViewGroup nodes.
Home & your activity are different activity, they have their own view
hierarchy.
Key events are always delivered to the View currently in focus. They
are dispatched starting from the top of the View hierarchy, and then
down, until they reach the appropriate destination.
But not the view of other activity.
http://developer.android.com/guide/topics/ui/ui-events.html

Guobin

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


Re: [android-developers] How to get: Angle of View of Camera

2010-02-07 Thread 李務誠
Now there is no API to query AOV. We are working on supporting the AOV API
in the future release.

Wu-cheng

On Fri, Feb 5, 2010 at 7:19 AM, Ralf Schneider wrote:

> Hello,
>
> is there a possibility to query the hardware specs of the camera.
> I'm especially interested in the AOV "Angle of View"[
> http://en.wikipedia.org/wiki/Angle_of_view].
>
> Regards,
> Ralf
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread prunicki
I tried something similar back in Android 1.0/1.1 using only wifi.
What I found is that once the wifi connection was lost, the only way
to get it back was to fully wakeup the phone.

I think it may be different with the later versions of the SDK, but in
case it's 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


Re: [android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread Frank Weiss
The network unreachable error is always a networking problem. Could be the
local network interfaces (wifi and phone) are turned off or temporarily
disabled, a bad network mask setting, or some router is unable to route an
IP address. It may also be an ipv6 config error. It may be occuring while
trying to resolve DNS (DNS server is unreachable). I have some suggestions:

1) Describe the network environment: emulator or device (which device) WiFi
on or off, wireless network carrier, local network configuration, including
firewalls (if using emulator or WiFi).
2) Test the application in a different network environment (home, office,
friend's house, cafe).
3) Add code that when the exception occurs, tries to access the network by
some other means besides HttpUrlConnection.
4) As 3), but try using a different Android application that accesses the
internet.
5) Try using an IP address instead of hostname.
6) I forgot to add, once the error occurs, how do you get the service to
connect again?

-- 
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 decide widget size in a configure Activity?

2010-02-07 Thread Urakagi
Hi, in HTC Sense, we can choose widgets of different size after
tapping a single entry in the widget list.
Is this also possible in pure Android Framework?
I have tried to modify the widget's size in the configure Activity,
but failed.

-- 
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: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
@frank

Service does not crash completely , it consistently throwing
Socket.net Exception Netwrok unreachable after five minutes.
If phone is not always connected to network then what is the way of
implementing , i dont get this point . Yeah i am assuming phone is
connected with network and i should possibly connect to server on
stipulated time.

thanks

On Feb 7, 5:06 pm, Frank Weiss  wrote:
> Is the service completely crashing due to the exception or does the service
> continue to get the exception subsequently? Are you perhaps wrongly assuming
> that the phone is connected to the internet whenever you want it to be?

-- 
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's his name?

2010-02-07 Thread tora
Hello,

I have a simple question.

What's his name?
http://www.android.com/intl/ja/media/android_vector.jpg

According to this site, his name is [ android robot ]
http://www.android.com/branding.html

And according to this site, his name is [ Droid ]
http://www.android.com/intl/ja/media/goodies.html

Or some japanese sites said, his name is [ Goodies ]

Which is correct?

-- 
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 send motion Event down to another activity

2010-02-07 Thread sheng wang
Hi,

My Activity using transparent Theme  in AndroidManifest.xml

*android:theme="@android:style/Theme.Translucent"*
*
*
Which works fine.  When it's started from the Home screen,   we can see both
 the content of  my activity  and the home screen below it.  It gives the
feeling of   "floating" .

Furthermore, to make it real "floating",  the motionEvent has to go down to
the home screen to let the home screen response some motion touch.
But I have no idea of 2 things :

1. Whether the event can be send down to any thing behind the current
activity.
2. If so, how. The solution don't need to be restricted in API level.  I
mean if  any solution need us to rewrite home screen or something else, It's
also ok for me.


Thanks for any suggestion.
Shawn.

-- 
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 create executable file with linking static library?

2010-02-07 Thread bluestar
Dear Dole:

   Do you tell me your suggestion or solution?
   Thanks!!!


BR,
Alan

On 2月4日, 下午8時17分, Sachin Dole  wrote:
> On Feb 4, 2010 4:09 AM, "bluestar"  wrote:
>
> Dear Sir:
>
>     I have a static library: libhello.a and I want to create a
> executable file that link with this
>     static library: libhello.a
>
>     I put this static library under
>     /out/target/product/generic/obj/STATIC_LIBRARIES/
> libhello_intermediates/
>     and make my executable file, but failed
>
>     It shows error message:
>     "make: *** No rule to make target `NOTICE-TARGET-STATIC_LIBRARIES-
> libhello'.  Stop."
>
>     How to fix this issue? (Below is Android.mk of executable file)
>     Thanks!!!
>
> //-//
> LOCAL_PATH:= $(call my-dir)
>
> include $(CLEAR_VARS)
> LOCAL_MODULE_PATH := $(TARGET_OUT)/bin
> LOCAL_SRC_FILES:= MyMain.c
> LOCAL_SHARED_LIBRARIES := libcutils libc
> LOCAL_STATIC_LIBRARIES := libhello
> LOCAL_MODULE := myhello
> include $(BUILD_EXECUTABLE)
> //-//
>
> BR,
> Alan
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Searching Mulitple Developers in Market

2010-02-07 Thread SteelJ0ker
Ya I tried that one it didnt want to work.

On Feb 3, 3:37 pm, TreKing  wrote:
> On Wed, Feb 3, 2010 at 1:13 PM, SteelJ0ker  wrote:
> > I know how to have the search point to one developer, i.e.
> > pub:, but does anyone know of a way to have it search
> > multiple?
>
> I have no idea if this will work, but the docs says you can do multiple
> criteria in each search, so maybe try doing "pub" twice?
> Like:
>
> market://search?q=pub:<1st Developer Name> pub:<2nd Developer Name>
>
> ---­--
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

-- 
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] Letting user save as ringtone or Notification... Please help

2010-02-07 Thread SteelJ0ker
I've got a soundboard application created, but i want to allow the
users to be able to long press on one of the sounds and they can
select to save the tone as a ringtone or notification.
I've tried finding good solid examples i could learn from but i just
can't seem to figure it out

any help would be appreciated. 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] KeyStore causing EOFException

2010-02-07 Thread Reado
I have some code for my app that creates a keystore in android,
creates some default keys then saves the keystore.

Later on the code tries to reload the keystore, on the emulator this
runs fine however when run on a phone I get an EOFException. Any
advice on where I'm going wrong?


An out take of the code is below:

In the class I have the following variables

static KeyStore keyStore;
String filenameKeyStore = "KeyStore.kstore";


Then the following two functions

public KeyHandler(Context context) {


if(keyStore == null) {
Log.d("KeyStore", "Keystore is null so loading");
if(initialiseKeyStore(context) == false) {
// KeyStore failed to initialise
Log.e("ERROR", "Store failed to initialise");
}
}
}


private boolean initialiseKeyStore(Context context) {
FileInputStream input = null;
try {
// Get an instance of KeyStore
keyStore = KeyStore.getInstance("BKS");

// Load the KeyStore file
try {

// Try and open the private key store
input = context.openFileInput(filenameKeyStore);

} catch (FileNotFoundException e) {

// If  the file doesn't exist then create the 
file, a ECDH key and
store the key
Log.w("Warning","File does not exist, creating 
new file");

try {
// Load the default Key Store
keyStore.load(null, null);

// Create the file
FileOutputStream output =
context.openFileOutput(filenameKeyStore, 0);

// Reset private key
resetPrivateKey(context);

// Save the key
keyStore.store(output, 
"password".toCharArray());

// Close the keystore and set the input 
stream
output.close();
input = 
context.openFileInput(filenameKeyStore);

// Reset the keyStore
keyStore = KeyStore.getInstance("BKS");

} catch (FileNotFoundException ee) {
Log.e("ERROR", "File not found, even 
though we just created it");
return false;
} catch (NoSuchProviderException e1) {
// BC isn't working exit
e1.printStackTrace();
System.exit(1);
} catch (InvalidAlgorithmParameterException e1) 
{
Log.e("ERROR", "The algorithm used for 
secure algorithm is
incorrect");
e1.printStackTrace();
return false;
}
}


// Load the store
keyStore.load(input, "password".toCharArray());

} catch (KeyStoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return false;
} catch (CertificateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return false;
}  catch (EOFException e) {

  // Where the exception is caught

e.printStackTrace();
return false;
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return false;
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return false;
} catch (NoSuchProviderException e) {
// Serious error, return
e.printStackTrace();
System.exit(1);
}

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 unsubsc

[android-developers] Re: Forcibly using 3G or CDMA network even though wi-fi is available.

2010-02-07 Thread Dongjoon Lee
Oh, that's nice:)


On 2월7일, 오후6시37분, Poqit  wrote:
> I added a request 
> feature:http://code.google.com/p/android/issues/detail?id=6518
>
> On Feb 6, 6:45 pm, Jens  wrote:
>
>
>
> > Uh yeah, that's why they added that particular crazed hack - an
> > undocumented call to #startUsingNetworkFeature(int, String).
>
> > On 3 Feb, 09:31, Anonymous Anonymous 
> > wrote:
>
> > > --
>
> > > MMS cannot be sent over wi-fi.Carriers network is mandatory to send/recv.
> > > The MMSC need to identify from/to the message coming going and it wont be
> > > possible while using wi-fi.
> > > So its required to switch to 3g or CDMA even if wi-fi is available.
>
> > > 2010/2/3 Dongjoon Lee 
>
> > > > The application needs to get some information from operator's server.
> > > > And operator want us to make use operator's network, not wifi, even
> > > > though wifi is available.
>
> > > > It's very difficult to find solution. May I need to search alternative
> > > > way.
>
> > > > Anyway, thanks for your advice.
>
> > > > Best regards,
> > > > Dongjoon.
>
> > > > On 1월15일, 오후7시17분, Jens  wrote:
> > > > > For the same reason you added the "feature" that allows the MMS
> > > > > application to switch to a specific APN even when WiFi is
> > > > > available. lots of mobile apps require you to go through a
> > > > > specific APN - for billing purposes amongst other things.
>
> > > > > Dongjoon: You could check if the same crazed hack that allows the MMS
> > > > > application to work can be used by you?
>
> > > > > Br
> > > > > Jens
>
> > > > > On 14 Jan, 19:07, Dianne Hackborn  wrote:
>
> > > > > > Sorry, I don't believe you can.  Why do you want to do this?
>
> > > > > > On Thu, Jan 14, 2010 at 12:39 AM, Dongjoon Lee 
> > > > wrote:
> > > > > > > Hello.
>
> > > > > > > My question is, as you can see the title, can i use3gnetwork even
> > > > > > > though wi-fi is available?
> > > > > > > i heard wi-fi priority is higher than3gor cdma. can i change that
> > > > > > > priority in specific application?
> > > > > > > this is one of requirement of the project. if anybody has an 
> > > > > > > answer,
> > > > > > > plz help me.
>
> > > > > > > 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 > > > > > >  cr...@googlegroups.com>
> > > >  > > >  unsubs-cr...@googlegroups.com>
>
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > > > --
> > > > > > Dianne Hackborn
> > > > > > Android framework engineer
> > > > > > hack...@android.com
>
> > > > > > Note: please don't send private questions to me, as I don't have 
> > > > > > time
> > > > to
> > > > > > provide private support, and so won't reply to such e-mails.  All 
> > > > > > such
> > > > > > questions should be posted on public forums, where I and others can 
> > > > > > see
> > > > and
> > > > > > answer them.- 원본 텍스트 숨기기 -
>
> > > > > - 원본 텍스트 보기 -
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread Frank Weiss
Is the service completely crashing due to the exception or does the service
continue to get the exception subsequently? Are you perhaps wrongly assuming
that the phone is connected to the internet whenever you want it to be?

-- 
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: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
Thanks Anthoni and Frank

@Anthoni and @Frank

I checked this code , actually i had already implemented in this way
instead of on  BOOT i used Alarm Manager that repeatedly wake up the
phone after 5 minutes and then i start my service.

But the problem is background service works fine for 15 minutes or
more and after sometimes it throws Socket.net Exception Network
Unreachable??. This is when i am trying to connect with my company
server for updates .

On Feb 7, 1:36 am, Anthoni  wrote:
> Hihimanshu,
>
> The code, along with all other test / demo applications done by the
> android team, is located on Google under subversion.
>
> This link ishttp://code.google.com/p/apps-for-android/
>
> Regards
> Anthoni
>
> On Feb 7, 5:37 am,himanshujain  wrote:
>
> > @frank
>
> > Can you please tell me where i can find that sample code.
>
> > thanks
>
> > On Feb 6, 9:28 pm,himanshujain  wrote:
>
> > > @frank
>
> > > Thank you very much let me look at those sample then i  will let you
> > > know.
>
> > > once again thanx
>
> > > On Feb 6, 7:14 pm, Frank Weiss  wrote:
>
> > > > Re your question about implementing a service that polls for updates, 
> > > > please
> > > > look at some of the sample code. For example, Romain Guy's Photostream 
> > > > demo
> > > > application has a background service that polls the Flikr API 
> > > > webservice for
> > > > updates and displays a notification in the notification bar. AFAIK 
> > > > whether
> > > > the access is by phone network or WiFi is functionally irrelevant.

-- 
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] Setting up dummy streams for the Ringtone Picker..??

2010-02-07 Thread Tydiz
I was just wondering if it is actually possible to create a stream,
similar to the "Default" stream, and have it recognized as a ringtone
by any of the ringtone pickers on the phone. Currently I am using the
"Default" streams for calls and for texts and it works just fine, but
there is some major gripes with the whole thing, and I would honestly
like a little more control over what is going on behind the scenes.

Note: By stream I just mean some pointer that is static within the
picker list(Says something like Shuffled Tone in list), but can be
point to many different things and can be changed without requiring
any work from the user.

-- 
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 use RTP in Android?

2010-02-07 Thread jarnaud
Hi Satish,

you might want to check the SIPDROID project... Really nice
implementation of SIP/RTP

--
Jay (http://android.voxisland.com";>Complete Android Tutorials
on http://android.voxisland.com)

On Feb 7, 12:29 pm, satish bhoyar  wrote:
> Hi all,
> I wish to use RTP in android. I am learning RTP, & wish to use the RTP for
> some apps can anyone tell me how to use it...
>
> any doc or links will also be helpfull for me.
>
> thanks,
> satish

-- 
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: OpenGL lifecycle ends with a crash

2010-02-07 Thread Robert Green
My first guess would be that you are passing a null buffer to a gl
array method.

What you want to do is:

Activity.onPause() -> pause your logic thread and call
GLSurfaceView.onPause()
Activity.onResume() -> resume your logic thread and call
GLSurfaceView.onResume()
GLSurfaceView.onSurfaceChanged() -> Set "not loaded" to true
GLSurfaceView.onDraw()
if "not loaded" {
  load
  "not loaded" = false
}
draw.

That's how I handle it and I have no issues.  I do some "ready-wait"
sync stuff between the renderer and the logic thread so the game logic
always waits for the renderer to be ready to draw before it starts
doing anything important.  When I say load, I mean load anything that
goes into VRAM.  Textures and Buffer objects are the main things.  I
do my loading in onDraw() so that I can show a progress meter and
because it makes it easy to sync stuff that way.

On Feb 7, 4:54 am, Moritz Post  wrote:
> Hi folks
>
> I am having difficulties with the lifecycle of the opengl context.
> While rendering my scene and the user hits the back button, home
> button or another application opens in front of my application, my app
> is still running in the background.
>
> So when my application comes to the foreground later on (user
> relaunches it or the app that was opened on top of it finishes), my
> application crashes and leaves me nothing but a GL stack trace which i
> can't properly decipher.
>
> For rendering i use the GLSurfaceView and therefore delegate the
> onPause and onResume. The crash happens on the first call to
> glDrawElements(..).
>
> I have tried to reload my resource (geometry/textures etc.) on
> onSurfaceChanged but with or without reloading... The problem
> persists.
>
> This behavior can be observed on all AVD versions of the emulator as
> well as on the G1.
>
> Here is the gl stacktrace i get. Any help would be greatly
> appreciated.
>
> Thanks
> Moritz
>
> 02-07 10:33:26.768: INFO/DEBUG(28): *** *** *** *** *** *** *** ***
> *** *** *** *** *** *** *** ***
> 02-07 10:33:26.778: INFO/DEBUG(28): Build fingerprint: 'generic/
> google_sdk/generic/:2.1/ERD79/22607:eng/test-keys'
> 02-07 10:33:26.778: INFO/DEBUG(28): pid: 403, tid: 410  >>>
> com.comp.app <<<
> 02-07 10:33:26.788: INFO/DEBUG(28): signal 11 (SIGSEGV), fault addr
> 
> 02-07 10:33:26.788: INFO/DEBUG(28):  r0 1401  r1 007e  r2
>   r3 1403
> 02-07 10:33:26.788: INFO/DEBUG(28):  r4 0041d6c0  r5   r6
> 007e  r7 0041d6c0
> 02-07 10:33:26.788: INFO/DEBUG(28):  r8   r9 007b  10
>   fp 00137d10
> 02-07 10:33:26.798: INFO/DEBUG(28):  ip   sp 46b3bd48  lr
> acc86014  pc acc850a0  cpsr 8010
> 02-07 10:33:27.368: INFO/DEBUG(28):          #00  pc 50a0  /system/
> lib/egl/libGLES_android.so
> 02-07 10:33:27.378: INFO/DEBUG(28):          #01  pc 6010  /system/
> lib/egl/libGLES_android.so
> 02-07 10:33:27.388: INFO/DEBUG(28):          #02  pc f1f4  /system/
> lib/libdvm.so
> 02-07 10:33:27.388: INFO/DEBUG(28): code around pc:
> 02-07 10:33:27.388: INFO/DEBUG(28): acc85090 5ade e8bd87f0
> e1a05002 e3a0a000
> 02-07 10:33:27.388: INFO/DEBUG(28): acc850a0 e5d51000 e1a4
> eb4a e5d51001
> 02-07 10:33:27.398: INFO/DEBUG(28): acc850b0 e1a06000 e1a4
> eb46 e5d51002
> 02-07 10:33:27.398: INFO/DEBUG(28): code around lr:
> 02-07 10:33:27.408: INFO/DEBUG(28): acc86004 e0845105 e1a02008
> e1a0e00f e595f2c0
> 02-07 10:33:27.408: INFO/DEBUG(28): acc86014 e8bd81f0 e8bd81f0
> e597098c e3a01b01
> 02-07 10:33:27.408: INFO/DEBUG(28): acc86024 e281c008 e15c
> 1ae1 eaf7
> 02-07 10:33:27.418: INFO/DEBUG(28): stack:
> 02-07 10:33:27.418: INFO/DEBUG(28):     46b3bd08  3f80
> 02-07 10:33:27.418: INFO/DEBUG(28):     46b3bd0c  
> 02-07 10:33:27.418: INFO/DEBUG(28):     46b3bd10  4060
> 02-07 10:33:27.428: INFO/DEBUG(28):     46b3bd14  3fc0
> 02-07 10:33:27.428: INFO/DEBUG(28):     46b3bd18  41a0  /dev/
> ashmem/dalvik-LinearAlloc (deleted)
> 02-07 10:33:27.428: INFO/DEBUG(28):     46b3bd1c  3f80
> 02-07 10:33:27.438: INFO/DEBUG(28):     46b3bd20  00af
> 02-07 10:33:27.448: INFO/DEBUG(28):     46b3bd24  acf08c14  /system/
> lib/libpixelflinger.so
> 02-07 10:33:27.448: INFO/DEBUG(28):     46b3bd28  0041d6c0  [heap]
> 02-07 10:33:27.448: INFO/DEBUG(28):     46b3bd2c  acf091ac  /system/
> lib/libpixelflinger.so
> 02-07 10:33:27.458: INFO/DEBUG(28):     46b3bd30  0041d6c0  [heap]
> 02-07 10:33:27.458: INFO/DEBUG(28):     46b3bd34  acc9b850  /system/
> lib/egl/libGLES_android.so
> 02-07 10:33:27.458: INFO/DEBUG(28):     46b3bd38  1100
> 02-07 10:33:27.468: INFO/DEBUG(28):     46b3bd3c  acc9540b  /system/
> lib/egl/libGLES_android.so
> 02-07 10:33:27.468: INFO/DEBUG(28):     46b3bd40  df002777
> 02-07 10:33:27.468: INFO/DEBUG(28):     46b3bd44  e3a070ad
> 02-07 10:33:27.468: INFO/DEBUG(28): #00 46b3bd48  acc9b008  /system/
> lib/egl/libGLES_android.so
> 02-07 10:33:27.468: INFO/DEBUG(28):     46b3bd4c  acc9b018  /system/
> lib/egl/libGLES_

Re: [android-developers] Error parsing XML (using DOM/DocumentBuilder) from URI

2010-02-07 Thread Frank Weiss
Does new URL(url).getConnection().getInputStream() work instead? You'd think
that DocumentBuilder.parse(String) is just a convenience method.

BTW, are you sure you want to use a DOM parser instead of a SAX push or pull
parser?

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

Re: [android-developers] Re: debugging with a different keystore

2010-02-07 Thread Frank Weiss
It's pretty easy to figure out. Here are the detailed steps:

In Eclipse, choose Window / Preferences. Navigate to Android / Build. Note
the location of the Default debug keystore file. Copy the defualt keystore
file to someplace where it can be shared among developers, such as the the
code repository or the project's folder. In the Android / Build properties,
set the Custom debug keystore to the shared keystore location.

The shortcoming of this technique is you can set only one Android keystore
for Eclipse, even if you are working on several Android projects from
different developer groups with different shared keystores. There may be
some clever ways around this or we could ask for an enhancement for the
Android SDK if this is a problem for many developers.

-- 
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: debugging with a different keystore

2010-02-07 Thread guich
Hi,

>In Eclipse, I pointed custom keystore to the keystore in the project workspace.

And how you did that?

thx

   guich

-- 
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] Video streaming, omx problem

2010-02-07 Thread Faboom
Hello,
I want to stream video via sdp.
The stream url is set to a MediaPlayer as described in the api sample.
Most of the times it is working fine.
Sometimes, however, i get a black or green screen and the log says:

E/QCOmxcore(   51): OMX.qcom.video.decoder.avc Instance already
exists, return OMX_ErrorInsufficientResources

There isnt even an error callback to notify the user or initiate
appropriate measures.
I think the only way to fix this is to reboot the device, but i hope
there is a more convenient ;) method ..
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] Re: moving the softkeyboard from place

2010-02-07 Thread guich
   public static void setSIP(int sipOption)
   {
  InputMethodManager imm = (InputMethodManager)
instance.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
  switch (sipOption)
  {
 case SIP_HIDE:
imm.hideSoftInputFromWindow(instance.getWindowToken(), 0);
break;
 case SIP_SHOW:
imm.showSoftInput(instance, 0);
break;
  }
   }

-- 
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 stop a service, when all activities are finished?

2010-02-07 Thread Martin
I found the problem of the stuttering of the MediaPlayer.
It was, because I was using an mp3-file. Now I am using an ogg-file
and
I have completely NO stuttering!

So for everybody: NEVER USE MP3's!!! USE OGG ;-)

Greetings, Martin


On 30 Jan., 09:12, Martin  wrote:
> Thank you all!
> I deleted my service now and will make it with a manager class :-)
> Greetings, Martin

-- 
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] Error parsing XML (using DOM/DocumentBuilder) from URI

2010-02-07 Thread Pedro Machado Santa
Hi all,

Before I detail my error/problem, let me thank all the help from the
community in advance.

I'm trying to parse a XML from a page/URI the DocumentBuilder method
parse(String uri) - reference here
http://developer.android.com/reference/javax/xml/parsers/DocumentBuilder.html
- but on run-time it gives me a SAXParseException: InputSource needs
either stream or reader.

The code I'm using inside the method onCreate of the class
pt.pelicula.Pelicula is:

try {
DocumentBuilder builder =
DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document xmldata = builder.parse("http://services.sapo.pt/GIS/
GetDistrictsSortedByName?includeMunicipalities=false"); // This is
line 120.
} catch (SAXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ParserConfigurationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (FactoryConfigurationError e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

The on the logcat the exception is:

W/System.err(  785): org.xml.sax.SAXParseException: InputSource needs
either stream or reader
W/System.err(  785):at
org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:
124)
W/System.err(  785):at
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:201)
W/System.err(  785):at pt.pelicula.Pelicula.onCreate(Pelicula.java:
120)
W/System.err(  785):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
W/System.err(  785):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
W/System.err(  785):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
W/System.err(  785):at android.app.ActivityThread.access
$1800(ActivityThread.java:112)
W/System.err(  785):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1692)
W/System.err(  785):at
android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(  785):at android.os.Looper.loop(Looper.java:123)
W/System.err(  785):at
android.app.ActivityThread.main(ActivityThread.java:3948)
W/System.err(  785):at java.lang.reflect.Method.invokeNative(Native
Method)
W/System.err(  785):at java.lang.reflect.Method.invoke(Method.java:
521)
W/System.err(  785):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
W/System.err(  785):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
W/System.err(  785):at dalvik.system.NativeStart.main(Native Method)

Did someone had problems with XML parsing from an URI before?

I think the compiler is using the parse(InputSource source) abstract
method (http://developer.android.com/reference/javax/xml/parsers/
DocumentBuilder.html#parse%28org.xml.sax.InputSource%29) instead of
the parse(String uri) one (http://developer.android.com/reference/
javax/xml/parsers/DocumentBuilder.html#parse%28java.lang.String%29).
But why?

Can anyone shed some light on this one? I would be much appreciated.

I'm using API from the version 1.5 of the Android, API Level 3.

Thanks in advance again.

--
Pedro Machado Santa

-- 
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 use RTP in Android?

2010-02-07 Thread satish bhoyar
Hi all,
I wish to use RTP in android. I am learning RTP, & wish to use the RTP for
some apps can anyone tell me how to use it...

any doc or links will also be helpfull for me.

thanks,
satish

-- 
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 a way to measure the time-consumings of all my functions in percent after a game?

2010-02-07 Thread theSmith
Traceview is the way to go.  Just remember that your game will play
even slower while you have method tracing turned on, but the results
you get from it are still very helpful.  They are just in relative
time and not absolute time.

Here are some videos from Google I/O 09
Writing Real-Time Games for Android
http://www.youtube.com/watch?v=U4Bk5rmIpic&feature=player_embedded

Debugging Arts of the Ninja Master
http://www.youtube.com/watch?v=Dgnx0E7m1GQ&feature=player_embedded

In the second video go to ~22:30 and he starts covering how to use
traceview

-theSmith

On Feb 7, 8:37 am, "Mark Murphy"  wrote:
> > I want to optimize my game and remove the stuttering. Is there a way
> > to measure the time-consumings of all my functions in the game without
> > having to change all my functions?
>
> Try Traceview:
>
> http://developer.android.com/intl/fr/guide/developing/tools/traceview...
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html

-- 
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] Google Docs

2010-02-07 Thread DAVIDT
Hi All

How to read the info from spreadsheets from GoogleDoc. I need read the
info from cells and save to database.

Thanks
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


Re: [android-developers] Re: moving the softkeyboard from place

2010-02-07 Thread swapnil kamble
Hi,
   I am also looking for displaying soft keyboard in my layout
programmatically (not full screen but always visible.) Do you guys have any
idea about this ?

On Sat, Feb 6, 2010 at 11:36 PM, Mark Murphy wrote:

> guich wrote:
> > Thanks. Do you know how to *programatically* force the inputmethod to
> > be shown in fullscreen?
>
> I don't see an option to do that in InputMethodManager -- you can find
> out if it is fullscreen, but you can't force it.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.9 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
>



-- 
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare RamaHare Rama   Rama   RamaHare Hare ||

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

Re: [android-developers] Displaying Calendar in month view

2010-02-07 Thread Mark Murphy
>  i just wanna know  is it possible to display the Calendar in the
> month view using the api available. i am searching for while dint find
> anything to display the calendar in the Month view . kindly help and
> let me know is this possible using android sdk1.5 or 1.6 or even 2.0.
> If not what would be the procedure to generate month view and
> highlighting the present date.

The Calendar application is not part of the SDK.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
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] Displaying Calendar in month view

2010-02-07 Thread sheik
Hello developers,

 i just wanna know  is it possible to display the Calendar in the
month view using the api available. i am searching for while dint find
anything to display the calendar in the Month view . kindly help and
let me know is this possible using android sdk1.5 or 1.6 or even 2.0.
If not what would be the procedure to generate month view and
highlighting the present date.

thank you for ur help.

regards
Sheik

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


Re: [android-developers] Is there a way to measure the time-consumings of all my functions in percent after a game?

2010-02-07 Thread Mark Murphy
> I want to optimize my game and remove the stuttering. Is there a way
> to measure the time-consumings of all my functions in the game without
> having to change all my functions?

Try Traceview:

http://developer.android.com/intl/fr/guide/developing/tools/traceview.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
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 on Homescreen: How to focus ImageView or TextView with trackball?

2010-02-07 Thread Moritzz
Okay I fixed that one ;)

On Feb 6, 8:29 pm, Moritzz  wrote:
> Hi,
>
> I coded an AppWidget the user can add to his homescreen. There are a
> bunch of images (ImageView) in it that perform different actions like
> starting Activities on click (realised with PendingIntents). To make
> it easier to navigate through the AppWidget I'd like to use the
> trackball (as it works with the SearchWidget or FacebookWidget) but I
> just can't make it work.
> Here's my layout code for the AppWidget:
>
> http://schemas.android.com/apk/res/
> android"
>         android:id="@+id/relativeLayoutLevel1"
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>     android:background="@drawable/widget_bg"
>         android:focusable="true"
>         android:focusableInTouchMode="true">
>
>      android:addStatesFromChildren="true" android:gravity="center"
> android:layout_width="67dip" android:layout_height="67dip"
> android:background="@layout/backgroundchange"
> android:layout_marginLeft="22dip" android:layout_marginTop="34dip"
> android:clickable="true" android:focusable="true"
> android:focusableInTouchMode="true">
>                  android:layout_centerHorizontal="true" android:maxWidth="48dip"
> android:maxHeight="48dip" android:src="@drawable/appazaar_logo"
> android:layout_width="48dip"  android:layout_height="48dip"
> android:paddingTop="1dip" android:focusable="true"
> android:focusableInTouchMode="true"/>
>                  android:layout_centerHorizontal="true" android:layout_below="@id/
> Button1" android:maxWidth="66dip" android:layout_width="66dip"
> android:layout_height="19dip" android:text="Appazaar"
> android:maxLines="1" android:textColor="#11"
> android:typeface="sans" android:textSize="13dip"
> android:gravity="center_horizontal" android:focusable="true"
> android:focusableInTouchMode="true"/>
>         
> ...
> 
>
> So I want to be able to navigate through a bunch of these "Spots" that
> are all relativeLayouts. How can I make that work out?
> I'd be really happy about every hint or idea!
>
> Cheers
>
> Moritz

-- 
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 a way to measure the time-consumings of all my functions in percent after a game?

2010-02-07 Thread Martin
Hi!

I want to optimize my game and remove the stuttering. Is there a way
to measure the time-consumings of all my functions in the game without
having to change all my functions?

Greetings, Martin

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


RE: [android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-07 Thread Emre A. Yavuz

 

Thanks for all the responses ...

 

Cheers,

 

Emre
 
> Date: Sat, 6 Feb 2010 11:18:44 -0800
> Subject: [android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions 
> ?
> From: jotobje...@gmail.com
> To: android-developers@googlegroups.com
> 
> On Feb 5, 5:45 am, "Emre A. Yavuz"  wrote:
> > Hi,
> >
> > We need to convert XML messages to a stream or string which can then be 
> > sent via sockets.
> 
> You can read one XML input with XmlPullParser (or DOM or SAX) and
> write it at the same time to another stream with XMLSerializer - see
> XmlPullParserFactory.newSerializer().
> 
> Regarding your other question, your code controls the parsing thread
> with XmlPullParser, but with SAX the parser controls the thread while
> your DocumentHandler waits for callbacks.
> 
> -- 
> 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
  
_
Introducing Windows® phone.
http://go.microsoft.com/?linkid=9708122

-- 
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] OpenGL lifecycle ends with a crash

2010-02-07 Thread Moritz Post
Hi folks

I am having difficulties with the lifecycle of the opengl context.
While rendering my scene and the user hits the back button, home
button or another application opens in front of my application, my app
is still running in the background.

So when my application comes to the foreground later on (user
relaunches it or the app that was opened on top of it finishes), my
application crashes and leaves me nothing but a GL stack trace which i
can't properly decipher.

For rendering i use the GLSurfaceView and therefore delegate the
onPause and onResume. The crash happens on the first call to
glDrawElements(..).

I have tried to reload my resource (geometry/textures etc.) on
onSurfaceChanged but with or without reloading... The problem
persists.

This behavior can be observed on all AVD versions of the emulator as
well as on the G1.

Here is the gl stacktrace i get. Any help would be greatly
appreciated.

Thanks
Moritz

02-07 10:33:26.768: INFO/DEBUG(28): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
02-07 10:33:26.778: INFO/DEBUG(28): Build fingerprint: 'generic/
google_sdk/generic/:2.1/ERD79/22607:eng/test-keys'
02-07 10:33:26.778: INFO/DEBUG(28): pid: 403, tid: 410  >>>
com.comp.app <<<
02-07 10:33:26.788: INFO/DEBUG(28): signal 11 (SIGSEGV), fault addr

02-07 10:33:26.788: INFO/DEBUG(28):  r0 1401  r1 007e  r2
  r3 1403
02-07 10:33:26.788: INFO/DEBUG(28):  r4 0041d6c0  r5   r6
007e  r7 0041d6c0
02-07 10:33:26.788: INFO/DEBUG(28):  r8   r9 007b  10
  fp 00137d10
02-07 10:33:26.798: INFO/DEBUG(28):  ip   sp 46b3bd48  lr
acc86014  pc acc850a0  cpsr 8010
02-07 10:33:27.368: INFO/DEBUG(28):  #00  pc 50a0  /system/
lib/egl/libGLES_android.so
02-07 10:33:27.378: INFO/DEBUG(28):  #01  pc 6010  /system/
lib/egl/libGLES_android.so
02-07 10:33:27.388: INFO/DEBUG(28):  #02  pc f1f4  /system/
lib/libdvm.so
02-07 10:33:27.388: INFO/DEBUG(28): code around pc:
02-07 10:33:27.388: INFO/DEBUG(28): acc85090 5ade e8bd87f0
e1a05002 e3a0a000
02-07 10:33:27.388: INFO/DEBUG(28): acc850a0 e5d51000 e1a4
eb4a e5d51001
02-07 10:33:27.398: INFO/DEBUG(28): acc850b0 e1a06000 e1a4
eb46 e5d51002
02-07 10:33:27.398: INFO/DEBUG(28): code around lr:
02-07 10:33:27.408: INFO/DEBUG(28): acc86004 e0845105 e1a02008
e1a0e00f e595f2c0
02-07 10:33:27.408: INFO/DEBUG(28): acc86014 e8bd81f0 e8bd81f0
e597098c e3a01b01
02-07 10:33:27.408: INFO/DEBUG(28): acc86024 e281c008 e15c
1ae1 eaf7
02-07 10:33:27.418: INFO/DEBUG(28): stack:
02-07 10:33:27.418: INFO/DEBUG(28): 46b3bd08  3f80
02-07 10:33:27.418: INFO/DEBUG(28): 46b3bd0c  
02-07 10:33:27.418: INFO/DEBUG(28): 46b3bd10  4060
02-07 10:33:27.428: INFO/DEBUG(28): 46b3bd14  3fc0
02-07 10:33:27.428: INFO/DEBUG(28): 46b3bd18  41a0  /dev/
ashmem/dalvik-LinearAlloc (deleted)
02-07 10:33:27.428: INFO/DEBUG(28): 46b3bd1c  3f80
02-07 10:33:27.438: INFO/DEBUG(28): 46b3bd20  00af
02-07 10:33:27.448: INFO/DEBUG(28): 46b3bd24  acf08c14  /system/
lib/libpixelflinger.so
02-07 10:33:27.448: INFO/DEBUG(28): 46b3bd28  0041d6c0  [heap]
02-07 10:33:27.448: INFO/DEBUG(28): 46b3bd2c  acf091ac  /system/
lib/libpixelflinger.so
02-07 10:33:27.458: INFO/DEBUG(28): 46b3bd30  0041d6c0  [heap]
02-07 10:33:27.458: INFO/DEBUG(28): 46b3bd34  acc9b850  /system/
lib/egl/libGLES_android.so
02-07 10:33:27.458: INFO/DEBUG(28): 46b3bd38  1100
02-07 10:33:27.468: INFO/DEBUG(28): 46b3bd3c  acc9540b  /system/
lib/egl/libGLES_android.so
02-07 10:33:27.468: INFO/DEBUG(28): 46b3bd40  df002777
02-07 10:33:27.468: INFO/DEBUG(28): 46b3bd44  e3a070ad
02-07 10:33:27.468: INFO/DEBUG(28): #00 46b3bd48  acc9b008  /system/
lib/egl/libGLES_android.so
02-07 10:33:27.468: INFO/DEBUG(28): 46b3bd4c  acc9b018  /system/
lib/egl/libGLES_android.so
02-07 10:33:27.468: INFO/DEBUG(28): 46b3bd50  007e
02-07 10:33:27.468: INFO/DEBUG(28): 46b3bd54  0041d6c0  [heap]
02-07 10:33:27.468: INFO/DEBUG(28): 46b3bd58  
02-07 10:33:27.468: INFO/DEBUG(28): 46b3bd5c  42f28e48
02-07 10:33:27.468: INFO/DEBUG(28): 46b3bd60  42f28e30
02-07 10:33:27.478: INFO/DEBUG(28): 46b3bd64  acc86014  /system/
lib/egl/libGLES_android.so
02-07 10:33:27.478: INFO/DEBUG(28): #01 46b3bd68  46b3bda8
02-07 10:33:27.478: INFO/DEBUG(28): 46b3bd6c  
02-07 10:33:27.478: INFO/DEBUG(28): 46b3bd70  42aadedc  /data/
dalvik-cache/sys...@framework@framework@classes.dex
02-07 10:33:27.488: INFO/DEBUG(28): 46b3bd74  42f28e58
02-07 10:33:27.488: INFO/DEBUG(28): 46b3bd78  46b3bd88
02-07 10:33:27.488: INFO/DEBUG(28): 46b3bd7c  ad00f1f8  /system/
lib/libdvm.so
02-07 10:33:28.908: DEBUG/Zygote(30): Process 403 terminated by signal
(11)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-deve

[android-developers] Re: Forcibly using 3G or CDMA network even though wi-fi is available.

2010-02-07 Thread Poqit
I added a request feature:
http://code.google.com/p/android/issues/detail?id=6518


On Feb 6, 6:45 pm, Jens  wrote:
> Uh yeah, that's why they added that particular crazed hack - an
> undocumented call to #startUsingNetworkFeature(int, String).
>
> On 3 Feb, 09:31, Anonymous Anonymous 
> wrote:
>
> > --
>
> > MMS cannot be sent over wi-fi.Carriers network is mandatory to send/recv.
> > The MMSC need to identify from/to the message coming going and it wont be
> > possible while using wi-fi.
> > So its required to switch to 3g or CDMA even if wi-fi is available.
>
> > 2010/2/3 Dongjoon Lee 
>
> > > The application needs to get some information from operator's server.
> > > And operator want us to make use operator's network, not wifi, even
> > > though wifi is available.
>
> > > It's very difficult to find solution. May I need to search alternative
> > > way.
>
> > > Anyway, thanks for your advice.
>
> > > Best regards,
> > > Dongjoon.
>
> > > On 1월15일, 오후7시17분, Jens  wrote:
> > > > For the same reason you added the "feature" that allows the MMS
> > > > application to switch to a specific APN even when WiFi is
> > > > available. lots of mobile apps require you to go through a
> > > > specific APN - for billing purposes amongst other things.
>
> > > > Dongjoon: You could check if the same crazed hack that allows the MMS
> > > > application to work can be used by you?
>
> > > > Br
> > > > Jens
>
> > > > On 14 Jan, 19:07, Dianne Hackborn  wrote:
>
> > > > > Sorry, I don't believe you can.  Why do you want to do this?
>
> > > > > On Thu, Jan 14, 2010 at 12:39 AM, Dongjoon Lee 
> > > wrote:
> > > > > > Hello.
>
> > > > > > My question is, as you can see the title, can i use3gnetwork even
> > > > > > though wi-fi is available?
> > > > > > i heard wi-fi priority is higher than3gor cdma. can i change that
> > > > > > priority in specific application?
> > > > > > this is one of requirement of the project. if anybody has an answer,
> > > > > > plz help me.
>
> > > > > > 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
>
> > > > > --
> > > > > 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

-- 
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: Network Unreachable (Socket.net Exception)

2010-02-07 Thread Anthoni
Hi himanshu,

The code, along with all other test / demo applications done by the
android team, is located on Google under subversion.

This link is http://code.google.com/p/apps-for-android/

Regards
Anthoni

On Feb 7, 5:37 am, himanshu jain  wrote:
> @frank
>
> Can you please tell me where i can find that sample code.
>
> thanks
>
> On Feb 6, 9:28 pm, himanshu jain  wrote:
>
> > @frank
>
> > Thank you very much let me look at those sample then i  will let you
> > know.
>
> > once again thanx
>
> > On Feb 6, 7:14 pm, Frank Weiss  wrote:
>
> > > Re your question about implementing a service that polls for updates, 
> > > please
> > > look at some of the sample code. For example, Romain Guy's Photostream 
> > > demo
> > > application has a background service that polls the Flikr API webservice 
> > > for
> > > updates and displays a notification in the notification bar. AFAIK whether
> > > the access is by phone network or WiFi is functionally irrelevant.

-- 
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 programmatically install an APK file ?

2010-02-07 Thread Carlo
Is it possible to have the APK installed with forward lock option ?



On Jan 27, 7:23 pm, ColletJb  wrote:
> Thank you, I will try this this afternoon.
>
> On 27 jan, 10:45, kirti kaul  wrote:
>
>
>
> > Hi,
>
> > Use this:
>
> >              intent.setAction(android.content.Intent.ACTION_VIEW);
> >              intent.setDataAndType(Uri.parse("file:///
> > sdcard/.sampleapk"), "application/vnd.android.package-archive");
> >              startActivity(intent);
>
> > Where Sample.apk is the apk you need to install.
>
> > On Jan 27, 1:54 pm, ColletJb  wrote:
>
> > > Hi,
>
> > > How can I programmatically install an apk file ?
>
> > > I've foud that the PackageManager.installPackage(...) method was used
> > > to do that, but is no longer supported (http://developer.android.com/
> > > sdk/api_diff/4/changes/android.content.pm.PackageManager.html)
>
> > > How can I do then ?
>
> > > Thanks for your help
>
> > > ColletJb

-- 
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] Animations with transparent background broken on Milestone/Droid?

2010-02-07 Thread Michael Elsdörfer
I'm using the stock android.R.anim.fade_in animation to fade in a
textview. Here's the code to reproduce:

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Animation fadeInAnim = AnimationUtils.loadAnimation(this,
android.R.anim.fade_in);
fadeInAnim.setDuration(1);

LinearLayout r = (LinearLayout)findViewById(R.id.root);
TextView text = new TextView(this);
text.setText("Hello World");
text.setTextColor(Color.BLACK);
r.addView(text);

text.startAnimation(fadeInAnim);
}

The Layout:


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/root"
android:background="#FF">


This works wonderfully on the ADP1, the emulator in various versions,
but on a 2.0 Milestone, for the whole time the animation is running,
the background of the textview is visible in very light grey/blue
color.

Note that in the code above, the TextView background color is
transparent, on the activity background is set to something non-
default. If either of those are not true, the problem doesn't occur.
For example, if I set the TextView background to white also, I don't
see the artifact; same if I leave the activity background at the
default,

Is this a bug? Can other Milestone/Droid owners confirm 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