[android-developers] Re: HTC Hero getPicture failed error

2011-03-15 Thread Sebastian Lindström
Anyone? Please!

On 10 mar, 10:35, Sebastian Lindström sebastian.lindst...@gmail.com
wrote:
 This is my code, and i have the following as childs of my manifest-tag
 in the manifest-file:
   uses-permission android:name=android.permission.CAMERA /
   uses-permission android:name=android.permission.INTERNET /
   uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE/

  uses-feature android:name=android.hardware.camera /
  uses-feature android:name=android.hardware.camera.autofocus /
  uses-feature android:name=android.hardware.camera.flash /

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

 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

         getWindow().setFormat(PixelFormat.UNKNOWN);
         surfaceView = (SurfaceView)findViewById(R.id.camerapreview);
         surfaceHolder = surfaceView.getHolder();

         surfaceHolder.addCallback(this);

 surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);

         controlInflater = LayoutInflater.from(getBaseContext());
         View viewControl = controlInflater.inflate(R.layout.control,
 null);
         LayoutParams layoutParamsControl
                 = new LayoutParams(LayoutParams.FILL_PARENT,
                 LayoutParams.FILL_PARENT);
         this.addContentView(viewControl, layoutParamsControl);

         Button buttonTakePicture =
 (Button)findViewById(R.id.takepicture);
         buttonTakePicture.setOnClickListener(new
 Button.OnClickListener(){
                         public void onClick(View arg0) {
                                 // TODO Auto-generated method stub
                                 if (previewing){
                                         camera.takePicture(
                                                         myShutterCallback,
                                                         myPictureCallback_RAW,
                                                         myPictureCallback_PV,
                                                         
 myPictureCallback_JPG);
                                 }
                         }});

     }

  ShutterCallback myShutterCallback = new ShutterCallback(){

                 public void onShutter() {
                         // TODO Auto-generated method stub

                 }};

         PictureCallback myPictureCallback_RAW = new PictureCallback(){

                 public void onPictureTaken(byte[] data, Camera cam) {
                         // TODO Auto-generated method stub

                 }};
         PictureCallback myPictureCallback_PV = new PictureCallback(){

                 public void onPictureTaken(byte[] data, Camera cam) {
                         // TODO Auto-generated method stub

                 }};

         PictureCallback myPictureCallback_JPG = new PictureCallback(){
                 public void onPictureTaken(byte[] data, Camera cam) {
                         // TODO Auto-generated method stub

                         Bitmap bitmapPicture
                                 = BitmapFactory.decodeByteArray(data, 0, 
 data.length);
                         try{
                         String path =
 Environment.getExternalStorageDirectory().toString();
                         String name = test_img.jpg;
                         OutputStream fOut = null;
                         File file = new File(path, name);
                         fOut = new FileOutputStream(file);

                         bitmapPicture.compress(Bitmap.CompressFormat.JPEG, 5,
 fOut);
                         fOut.flush();
                         fOut.close();

 MediaStore.Images.Media.insertImage(getContentResolver(),file.getAbsolutePath(),file.getName(),file.getName());

                         Upload upload = new Upload();
                         upload.put(bitmapPicture);

            } catch (Exception e) {
                e.printStackTrace();
             }

                 }};

         public void surfaceChanged(SurfaceHolder holder, int format, int
 width,
                         int height) {

                 if (camera != null){
                         try {
                                 camera.setPreviewDisplay(surfaceHolder);
                                 camera.startPreview();
                                 previewing = true;
                         } catch (IOException e) {
                                 // TODO Auto-generated catch block
                                 e.printStackTrace();
                         }
                 }
         }

         public void surfaceCreated(SurfaceHolder holder) {
                 // TODO Auto-generated method stub
                 camera = Camera.open();
         }

         public void surfaceDestroyed(SurfaceHolder holder) {
                 // TODO Auto-generated method stub
                 camera.stopPreview();
                 camera.release();
     

[android-developers] Re: Install % drop again?

2011-03-15 Thread Zsolt Vasvari
That's f-ed up:  According to my chart, my install # should be about
71% (what the graph shows / total installs from the main page), but
the main page shows nearly 50% fewer installs and thus my install % is
only 45%.

I can only say one thing to this:  WTF



On Mar 15, 1:23 pm, Doug beafd...@gmail.com wrote:
 But wait!  Now the Android Market will show you installation stats!

 It's interesting.  Apparently I had a big install spike coming up to Jan 1
 this year, and a similar drop the next few days.  Also, I had a sustained
 run up through the middle of Feb, but then a drop after that.  None of this
 really explains the wacky numbers I've seen lately, though.

-- 
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] 3D renderscript sample for carousel view

2011-03-15 Thread Akil
Need sample code for corousel view with 3d renderscript.

-- 
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 Videos using Service but facing problem with respect to Wifi Connection

2011-03-15 Thread monty
Hi All
 I am downloading encrypted  videos from server in my phone memory and
decrptying and moving the decrypted video to sdcard. I have the
following issues and doubts:

1.Is it good to use Service to handle downloading process of videos or
is there any other alternative?

2.I am downloding about 5 videos continuosly in a for loop in a
Service which will be started from my launcher Activity. The linear
downloading works fine but when there is some Wifi issue such as
network is down..then how can the user get notified and if the Wifi is
up again will the Service work again or it has to be started again?

3.Could any1 please tell how to show a Download progress bar in
android

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


Re: [android-developers] redirct the an alert or replay to the device that send sms

2011-03-15 Thread vineeshkc
  can u outsource your work

On Thu, Mar 3, 2011 at 9:34 PM, Breece Lynn bl...@vereduscorp.com wrote:

 Anybody know of any Android/iOS Developers open for contract opps in
 Florida? You all are very hard to find! We have some great opportunities in
 some great shops, but we are lacking the developers. The pay rate is pretty
 much open as the urgency of this need has risen, and therefore we are doing
 all we can. Let me know if anybody knows someone!


 Breece Lynn
 Veredus Corporation
 Advancing Business  with People!

 Phone/fax: 813.463.0265
 email:  bl...@vereduscorp.com
 web:  http://www.vereduscorp.com




 -Original Message-
 From: android-developers@googlegroups.com [mailto:
 android-developers@googlegroups.com] On Behalf Of Marcin Orlowski
 Sent: Thursday, March 03, 2011 11:00 AM
 To: android-developers@googlegroups.com
 Subject: Re: [android-developers] redirct the an alert or replay to the
 device that send sms

 On 3 March 2011 16:29, vineeshkc kcvine...@gmail.com wrote:

  Is it possible to either redirect incoming messages to another
  application or allow the other application to receive the sms as well

 You can register for broadcast message when SMS comes. It was discussed a
 few days ago, so search the group archive

  or redirct the sms to the save device that  send

 There's no redirect nor I do not really know what save device is, but
 once you got the SMS you can send it to the next device (at regular SMS
 cost)

 --
 Regards,
 Marcin

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


-- 
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: Install % drop again?

2011-03-15 Thread Zsolt Vasvari
On the other hand, my free app is the other way around.  More installs
are shown on the first page then on the chart...


On Mar 15, 2:14 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 That's f-ed up:  According to my chart, my install # should be about
 71% (what the graph shows / total installs from the main page), but
 the main page shows nearly 50% fewer installs and thus my install % is
 only 45%.

 I can only say one thing to this:  WTF

 On Mar 15, 1:23 pm, Doug beafd...@gmail.com wrote:



  But wait!  Now the Android Market will show you installation stats!

  It's interesting.  Apparently I had a big install spike coming up to Jan 1
  this year, and a similar drop the next few days.  Also, I had a sustained
  run up through the middle of Feb, but then a drop after that.  None of this
  really explains the wacky numbers I've seen lately, though.- 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] SSL handshake failure: for HttpsURLConnection behind the proxy.

2011-03-15 Thread swapnil kamble
Hi All,
  I need some suggestion in resolving SSL handshake failure issue.
When trying to connect to HTTPS url using
javax.net.ssl.HttpsURLConnection in android with code below. I set the
properties for proxy host, port and tried opening https connection.

props.setProperty(https.proxyHost,co.proxyserver.com);
props.setProperty(https.proxyPort,8000);

URL targetURL = new URL(https://www.fortify.net;); //
http://www.fortify.net works properly
HttpsURLConnection connection = (HttpsURLConnection) targetURL.openConnection();
//Proxy proxy = new Proxy(Proxy.Type.HTTP,new
InetSocketAddress(co.proxyserver.com,8000));//Doesn't work either
//connection = (HttpsURLConnection) targetURL.openConnection(proxy);
//java.io.IOException: SSL handshake failure: I/O error during system
call, Unknown error: 0

connection.connect();


The same code works perfectly fine when ran with jdk on desktop.
There is something SSL protocol related error during ssl handshake in
s23_clnt.c of openssl code.

There are no issues in connecting to http URLs.


*- Steps to reproduce *
1. Use the above code in an android activity
2. Run it behind the proxy by correctly replacing proxy host and port
*- What happened.*
03-15 11:41:28.069: WARN/System.err(1312): java.io.IOException: SSL
handshake failure: Failure in SSL library, usually a protocol error
03-15 11:41:28.069: WARN/System.err(1312): error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown protocol
(external/openssl/ssl/s23_clnt.c:597 0x80cfb51f:0x)
03-15 11:41:28.069: WARN/System.err(1312): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect(Native
Method)
03-15 11:41:28.069: WARN/System.err(1312): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:305)
03-15 11:41:28.069: WARN/System.err(1312): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:168)
03-15 11:41:28.070: WARN/System.err(1312): at
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection$HttpsEngine.connect(HttpsURLConnection.java:404)
03-15 11:41:28.070: WARN/System.err(1312): at
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.connect(HttpsURLConnection.java:146)
03-15 11:41:28.091: WARN/System.err(1312): at
com.android.proxytest.HttpProxyTest.javaHttpsRequest(HttpProxyTest.java:354)
03-15 11:41:28.092: WARN/System.err(1312): at
com.android.proxytest.HttpProxyTest.access$800(HttpProxyTest.java:49)
03-15 11:41:28.092: WARN/System.err(1312): at
com.android.proxytest.HttpProxyTest$8$1.run(HttpProxyTest.java:163)
03-15 11:41:28.092: WARN/System.err(1312): at
java.lang.Thread.run(Thread.java:1096)

This issue is there in both in eclair as well as froyo.

Thanks
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] create Image from String

2011-03-15 Thread Rahul Garg
Hi,
I want to convert any String value as image. Actually I want to set text in 
the statusbar. but I cant set it untill it is Image. So can you tell me how 
can I do it ? I am using Gingerbread source code.
 
--
Rahul Garg

-- 
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: SSL handshake failure: for HttpsURLConnection behind the proxy.

2011-03-15 Thread swapnil kamble
Attached the code for the reference

On Tue, Mar 15, 2011 at 12:28 PM, swapnil kamble swap.kam...@gmail.comwrote:

 Hi All,
   I need some suggestion in resolving SSL handshake failure issue. When 
 trying to connect to HTTPS url using javax.net.ssl.HttpsURLConnection in 
 android with code below. I set the properties for proxy host, port and tried 
 opening https connection.

 props.setProperty(https.proxyHost,co.proxyserver.com);
 props.setProperty(https.proxyPort,8000);

 URL targetURL = new URL(https://www.fortify.net;); // http://www.fortify.net 
 works properly

 HttpsURLConnection connection = (HttpsURLConnection) 
 targetURL.openConnection();
 //Proxy proxy = new Proxy(Proxy.Type.HTTP,new 
 InetSocketAddress(co.proxyserver.com,8000));//Doesn't work either

 //connection = (HttpsURLConnection) targetURL.openConnection(proxy); 
 //java.io.IOException: SSL handshake failure: I/O error during system call, 
 Unknown error: 0

 connection.connect();


 The same code works perfectly fine when ran with jdk on desktop.

 There is something SSL protocol related error during ssl handshake in 
 s23_clnt.c of openssl code.

 There are no issues in connecting to http URLs.


 *- Steps to reproduce *
 1. Use the above code in an android activity

 2. Run it behind the proxy by correctly replacing proxy host and port
 *- What happened.*
 03-15 11:41:28.069: WARN/System.err(1312): java.io.IOException: SSL handshake 
 failure: Failure in SSL library, usually a protocol error

 03-15 11:41:28.069: WARN/System.err(1312): error:140770FC:SSL 
 routines:SSL23_GET_SERVER_HELLO:unknown protocol 
 (external/openssl/ssl/s23_clnt.c:597 0x80cfb51f:0x)
 03-15 11:41:28.069: WARN/System.err(1312): at 
 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect(Native 
 Method)

 03-15 11:41:28.069: WARN/System.err(1312): at 
 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:305)
 03-15 11:41:28.069: WARN/System.err(1312): at 
 org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:168)

 03-15 11:41:28.070: WARN/System.err(1312): at 
 org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection$HttpsEngine.connect(HttpsURLConnection.java:404)
 03-15 11:41:28.070: WARN/System.err(1312): at 
 org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.connect(HttpsURLConnection.java:146)

 03-15 11:41:28.091: WARN/System.err(1312): at 
 com.android.proxytest.HttpProxyTest.javaHttpsRequest(HttpProxyTest.java:354)
 03-15 11:41:28.092: WARN/System.err(1312): at 
 com.android.proxytest.HttpProxyTest.access$800(HttpProxyTest.java:49)

 03-15 11:41:28.092: WARN/System.err(1312): at 
 com.android.proxytest.HttpProxyTest$8$1.run(HttpProxyTest.java:163)
 03-15 11:41:28.092: WARN/System.err(1312): at 
 java.lang.Thread.run(Thread.java:1096)

 This issue is there in both in eclair as well as froyo.

 Thanks
 Swapnil




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

HttpsTest.java
Description: Binary data


[android-developers] How to create Insecure RFCOMM Socket in Android?

2011-03-15 Thread javame_android
Hi,

I am looking at way of connecting over rfcomm socket insecurely. I was
able to find the way mentioned below

Method m = device.getClass().getMethod(createInsecureRfcommSocket,
new Class[] {int.class});
tmp = (BluetoothSocket) m.invoke(device, 1);

This for the time being is doing what I want. Even the documentation
over here says that we need to use
createInsecureRfcommSocketToServiceRecord for insecure connections.
But there is no such method. The only way I found out was using
reflection as shown above. And even in that the method that is passed
in createInsecureRfcommSocket and not
createInsecureRfcommSocketToServiceRecord. I just wanted to know how
reliable is this way. If I mention
createInsecureRfcommSocketToServiceRecord in method the connection
never happens. Anyone with experience in Bluetooth Communication in
Android please help me out with 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] Enabling SoundRecorder in Emulator built from GB src code

2011-03-15 Thread ss
Hi
I am trying out the emulator from the source code - when I build for the 
product generic using the following commands:

1. . build/envsetup.sh (2) lunch 1 (3) make -j2

Now, I noticed that there are a few apps in the apps directory under 
packages, which do not appear on the emulator. I needed SoundRecorder, and 
was unable to make the application visible on the emulator application 
screen.

What should I do to enable this?

Thanks and Best regards
mn

-- 
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: GLES20 background bitmap on just 2 triangles kills 35 fps

2011-03-15 Thread JAlexoid (Aleksandr Panzin)
Do you use NPOT textures?
Non power of two textures are not optimal in performance, lightly
saying.

On Mar 13, 3:52 pm, Alex Rempel alexey.rem...@googlemail.com wrote:
 Hi piplz,

 I'm trying to develop a little LiveWallpaper engine for OpenGL GLES20,
 for now just in 2D. After I got around all the thread/event-problems
 because of the wallpaper issues and after I booh'ed at the 60fps I now
 inly have one grudge:

 Drawing just one single big PNG loaded as GL_RGBA.UNSIGNED_BYTE on 2
 triangles representing the background takes away 35 fps, regardless of
 blending mode being enabled or not!

 What I tried:
 - driving the source image resolution down doesn't help, it's the size
 of the quad to blit
 What I could try:
 - binding the big image just once after loading instead of doing it
 in every frame

 Is there something I might have missed?

-- 
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] About Android Application Development

2011-03-15 Thread kajal patil
Hi All,
  I have problem in displaying message on logcat.I tried
different ways  but i didn't get my application as working.So i m also
posting my code.I have two files send.java and receive.java.From send.java i
sent information like first name,last name from my application to another
emulator which considered it as a message. i want to display some string on
console after receiving message but its not working for me.Please kindly
suggest the solution.
Thank you.

//Receive.java
package com.example;
import java.util.StringTokenizer;
import android.util.Log;
import android.os.Bundle;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.SmsMessage;
import android.widget.Toast;

public class receive extends BroadcastReceiver
{
   public void onReceive(Context context, Intent intent)
   {
//---get the SMS message passed in---
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
String name=,mobile= ,address=,skill=,salary=;
String str = ;

if (bundle != null)
{
//---retrieve the SMS message received---
Object[] pdus = (Object[]) bundle.get(pdus);
msgs = new SmsMessage[pdus.length];
for (int i=0; imsgs.length; i++){

msgs[i] =
SmsMessage.createFromPdu((byte[])pdus[i]);
str += SMS from  +
msgs[i].getOriginatingAddress();
str +=  :;
str += msgs[i].getMessageBody().toString();
str += \n;

}

//HERE I am trying to display this message.But its not working.

//Log.d(string1, string2);
   System.out.println(string);


StringTokenizer st = new StringTokenizer(str);
while (st.hasMoreTokens()) {
String token=st.nextToken();
  if(token.equalsIgnoreCase(name:))
  {
   token=st.nextToken();
   while(token.equals(address:)==false)
   {
  name=name+ +token;
  token=st.nextToken();
   }
}
if(token.equals(address:))
{
token=st.nextToken();
while(token.equals(skill:)==false)
{
 address=address+ +token;
token=st.nextToken();
}
}

if(token.equals(skill:))
{
token=st.nextToken();
while(token.equals(mobile no:)==false)
{
   skill=skill+ +token;
token=st.nextToken();
}
}

if(token.equals(mobile no:))
{
token=st.nextToken();
while(token.equals(salary:)==false)
{
mobile=mobile+ +token;
token=st.nextToken();
}
}

}
}

//HERE I am also trying

System.out.println(b4 uima);
Uima obj=new Uima();
obj.printProducts1(str, name, address, skill);
System.out.println(after uima);
//---display the new SMS message---
Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
}
}
}

-- 
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] About Android Application Development

2011-03-15 Thread cuil yahoo
System.out.println won't work here.
Use Log.d(Tag, String) for printing inside the logcat.

--
Cuil



On Tue, Mar 15, 2011 at 1:12 PM, kajal patil patil.kaja...@gmail.comwrote:

 Hi All,
   I have problem in displaying message on logcat.I tried
 different ways  but i didn't get my application as working.So i m also
 posting my code.I have two files send.java and receive.java.From send.java i
 sent information like first name,last name from my application to another
 emulator which considered it as a message. i want to display some string on
 console after receiving message but its not working for me.Please kindly
 suggest the solution.
 Thank you.

 //Receive.java
 package com.example;
 import java.util.StringTokenizer;
 import android.util.Log;
 import android.os.Bundle;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.telephony.SmsMessage;
 import android.widget.Toast;

 public class receive extends BroadcastReceiver
 {
public void onReceive(Context context, Intent intent)
{
 //---get the SMS message passed in---
 Bundle bundle = intent.getExtras();
 SmsMessage[] msgs = null;
 String name=,mobile= ,address=,skill=,salary=;
 String str = ;

 if (bundle != null)
 {
 //---retrieve the SMS message received---
 Object[] pdus = (Object[]) bundle.get(pdus);
 msgs = new SmsMessage[pdus.length];
 for (int i=0; imsgs.length; i++){

 msgs[i] =
 SmsMessage.createFromPdu((byte[])pdus[i]);
 str += SMS from  +
 msgs[i].getOriginatingAddress();
 str +=  :;
 str += msgs[i].getMessageBody().toString();
 str += \n;

 }

 //HERE I am trying to display this message.But its not working.

 //Log.d(string1, string2);
System.out.println(string);


 StringTokenizer st = new StringTokenizer(str);
 while (st.hasMoreTokens()) {
 String token=st.nextToken();
   if(token.equalsIgnoreCase(name:))
   {
token=st.nextToken();
while(token.equals(address:)==false)
{
   name=name+ +token;
   token=st.nextToken();
}
 }
 if(token.equals(address:))
 {
 token=st.nextToken();
 while(token.equals(skill:)==false)
 {
  address=address+ +token;
 token=st.nextToken();
 }
 }

 if(token.equals(skill:))
 {
 token=st.nextToken();
 while(token.equals(mobile no:)==false)
 {
skill=skill+ +token;
 token=st.nextToken();
 }
 }

 if(token.equals(mobile no:))
 {
 token=st.nextToken();
 while(token.equals(salary:)==false)
 {
 mobile=mobile+ +token;
 token=st.nextToken();
 }
 }

 }
 }

 //HERE I am also trying

 System.out.println(b4 uima);
 Uima obj=new Uima();
 obj.printProducts1(str, name, address, skill);
 System.out.println(after uima);
 //---display the new SMS message---
 Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
 }
 }
 }


  --
 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: Is it possible to get android device id? (Urgent -- Please)

2011-03-15 Thread Nesim TUNÇ
Thanks to all you ... I did with this way ... I tried in onCreate event in
activity.  This is works for me ... Thanks ... Sorry after i found this way
i forgot to reply this post.


DeviceId = 35 + //we make this look like a valid IMEI
 Build.BOARD.length()%10+ Build.BRAND.length()%10 +
 Build.CPU_ABI.length()%10 + Build.DEVICE.length()%10 +
 Build.DISPLAY.length()%10 + Build.HOST.length()%10 +
 Build.ID.length()%10 + Build.MANUFACTURER.length()%10 +
 Build.MODEL.length()%10 + Build.PRODUCT.length()%10 +
 Build.TAGS.length()%10 + Build.TYPE.length()%10 +
 Build.USER.length()%10 ; //13 digits

Resource: http://www.pocketmagic.net/?p=1662
http://www.pocketmagic.net/?p=1662

On Mon, Mar 14, 2011 at 11:17 PM, lbendlin l...@bendlin.us wrote:


 http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id

 On Mar 14, 3:25 pm, David Williams dwilli...@dtw-consulting.com
 wrote:
  I will look into that, and this might make more sense to me.
  
 
  David Williams
  Check out our WebOS mobile phone app for the Palm Pre and Pixi:
  http://www.dtw-consulting.com/GolfCaddie Golf Caddie
  http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum
  http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ
  http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting,
 Inc.
 
  On 3/14/2011 3:23 PM, Brill Pappin wrote:
 
   why not user AccountManager.getAccounts(com.google).
   You can digest that value and use it as a unique id. It will be as
   unique as the user is and will work across phones/devices.
   Only thing thats needed is for the user to have a google account,
   which just about everyone using an android phone does.
 
   --
   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




-- 
Nesim TUNÇ
Senior Software Developer of Distributed Applications

-- 
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: Do existing scheduled items on the AlarmManager get cancelled after an application update from the Marketplace?

2011-03-15 Thread mort
I've been notified about this problem as well. It seems like using the
PACKAGE_REPLACED intent should make it able to offer a workaround.
Otherwise, if you offer an alarm clock function or any other important
schedule, you'd got to tell your users they have to disable auto
update and restart your app after updates, because otherwise they'll
come too late to work...

-- 
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: Install % drop again?

2011-03-15 Thread Doug
I wonder if there is maybe something going on with devices not phoning home 
properly to collect stats.  The notes at the bottom of the page seem to 
suggest that nothing you see there is really that reliable.

Also wonder if piracy or highly customized devices play into these numbers 
at all.

-- 
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] About Android Application Development

2011-03-15 Thread kajal patil
Hi All,
  I have tried it. But message is not getting displayed in
logcat.Actually i am using 2 emulator at a time. so is this a reason for not
working?
Thank you.

On Tue, Mar 15, 2011 at 1:43 PM, cuil yahoo cuilya...@gmail.com wrote:

 System.out.println won't work here.
 Use Log.d(Tag, String) for printing inside the logcat.

 --
 Cuil



 On Tue, Mar 15, 2011 at 1:12 PM, kajal patil patil.kaja...@gmail.comwrote:

 Hi All,
   I have problem in displaying message on logcat.I tried
 different ways  but i didn't get my application as working.So i m also
 posting my code.I have two files send.java and receive.java.From send.java i
 sent information like first name,last name from my application to another
 emulator which considered it as a message. i want to display some string on
 console after receiving message but its not working for me.Please kindly
 suggest the solution.
 Thank you.

 //Receive.java
 package com.example;
 import java.util.StringTokenizer;
 import android.util.Log;
 import android.os.Bundle;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.telephony.SmsMessage;
 import android.widget.Toast;

 public class receive extends BroadcastReceiver
 {
public void onReceive(Context context, Intent intent)
{
 //---get the SMS message passed in---
 Bundle bundle = intent.getExtras();
 SmsMessage[] msgs = null;
 String name=,mobile= ,address=,skill=,salary=;
 String str = ;

 if (bundle != null)
 {
 //---retrieve the SMS message received---
 Object[] pdus = (Object[]) bundle.get(pdus);
 msgs = new SmsMessage[pdus.length];
 for (int i=0; imsgs.length; i++){

 msgs[i] =
 SmsMessage.createFromPdu((byte[])pdus[i]);
 str += SMS from  +
 msgs[i].getOriginatingAddress();
 str +=  :;
 str += msgs[i].getMessageBody().toString();
 str += \n;

 }

 //HERE I am trying to display this message.But its not
 working.

 //Log.d(string1, string2);
System.out.println(string);


 StringTokenizer st = new StringTokenizer(str);
 while (st.hasMoreTokens()) {
 String token=st.nextToken();
   if(token.equalsIgnoreCase(name:))
   {
token=st.nextToken();
while(token.equals(address:)==false)
{
   name=name+ +token;
   token=st.nextToken();
}
 }
 if(token.equals(address:))
 {
 token=st.nextToken();
 while(token.equals(skill:)==false)
 {
  address=address+ +token;
 token=st.nextToken();
 }
 }

 if(token.equals(skill:))
 {
 token=st.nextToken();
 while(token.equals(mobile no:)==false)
 {
skill=skill+ +token;
 token=st.nextToken();
 }
 }

 if(token.equals(mobile no:))
 {
 token=st.nextToken();
 while(token.equals(salary:)==false)
 {
 mobile=mobile+ +token;
 token=st.nextToken();
 }
 }

 }
 }

 //HERE I am also trying

 System.out.println(b4 uima);
 Uima obj=new Uima();
 obj.printProducts1(str, name, address, skill);
 System.out.println(after uima);
 //---display the new SMS message---
 Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
 }
 }
 }


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

[android-developers] Re: What more does my game need(space bike)

2011-03-15 Thread metal mikey
Crikey is trademarked by Australia ;P

Some quick feedback based on my 1 time play of about 3minutes (sorry,
am busy!) on a Huawei u8150:

- great that this is now available for small screens! gripe I'd use
a bigger screen but my N1 power button is FAIL so I'm using a much
better built phone that's 1/3rd the cost /gripe
- I agree that the ListView main menu is a bit nasty, but not the
worst problem.
- the Reverse, Stop, and Forward buttons are mostly offscreen (off the
bottom) and I could only tell what they are thanks to the white
writing above them that's displayed at the very beginning...although
those white sentences overlapping each other doesn't look neat. From
what I can see of the buttons, they're overlapping too.
- music would be great. Or at least, a nicer punctuation sound, the
white-noise shot sound is horrible!
- The futuristic font is nice for big headings, but hard to read for
smaller font sizes.

On Mar 15, 2:52 pm, brian purgert brianpurge...@gmail.com wrote:
 Lol spiral, your so set on crikey bikey, I had to google it just go see if
 it actually ment some thing...

 Treking thank you so much, it means alot to me and its really hard to think
 of improvements sometimes because I just am so used to my game. Ill start
 working on it asap and probably have it updated by this friday with alot of
 changes.
 Lol and you would have your phone plugged into your computer with the logcat
 open

-- 
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: Install % drop again?

2011-03-15 Thread Kostya Vasilyev
For me as well, the second page shows lesser numbers than the old, first 
one, by about 10%.


-- Kostya

15.03.2011 9:18, Zsolt Vasvari пишет:

On the other hand, my free app is the other way around.  More installs
are shown on the first page then on the chart...


On Mar 15, 2:14 pm, Zsolt Vasvarizvasv...@gmail.com  wrote:

That's f-ed up:  According to my chart, my install # should be about
71% (what the graph shows / total installs from the main page), but
the main page shows nearly 50% fewer installs and thus my install % is
only 45%.

I can only say one thing to this:  WTF

On Mar 15, 1:23 pm, Dougbeafd...@gmail.com  wrote:




But wait!  Now the Android Market will show you installation stats!
It's interesting.  Apparently I had a big install spike coming up to Jan 1
this year, and a similar drop the next few days.  Also, I had a sustained
run up through the middle of Feb, but then a drop after that.  None of this
really explains the wacky numbers I've seen lately, though.- Hide quoted text -

- Show quoted text -



--
Kostya Vasilyev -- http://kmansoft.wordpress.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: Bluetooth Adapter.EXTRA DISCOVERABLE not obeyed

2011-03-15 Thread Zeljko Devcic
I use Nexus 1, and observed that also on other 2.2 device. No other
app is started when I test it.

On 14 ožu, 20:25, Gergely Juhász jg.sv...@gmail.com wrote:
 What device do you use exactly?
 It can be a device issue, or some king of third party application
 messes up something.

 On 14 March 2011 08:42, Zeljko Devcic zeljko.dev...@fgmicrotec.com wrote:



  I have observed issue with setting up discoverable time. Namely, I am
  using following intent to start Bluetooth and request observability of
  max allowed 300 seconds:

  Intent activateBTIntent = new
  Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
  activateBTIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,
  300);
  startActivityForResult(activateBTIntent,
  TURN_BLUETOOTH_ON_INTENT);

  In the intent result I get 300, meaning my request is accepted. But,
  in fact device does not stay observable for that long. I go to
  Bluetooth settings and monitor status. Discoverable is checked and
  starts countdown from 300, but when it reaches 180, Discoverable is
  unchecked and my device is not visible any more. So, even if I set max
  allowed value, I get default 120 seconds discoverability. Can anyone
  put more light on 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- Sakrij citirani 
 tekst -

 - Prikaži citirani tekst -

-- 
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: Install % drop again?

2011-03-15 Thread Zsolt Vasvari
Well, they need to phone home as I am using LVL.  I think the notes on
the bottom are talking about the device info stuff.

On Mar 15, 4:21 pm, Doug beafd...@gmail.com wrote:
 I wonder if there is maybe something going on with devices not phoning home
 properly to collect stats.  The notes at the bottom of the page seem to
 suggest that nothing you see there is really that reliable.

 Also wonder if piracy or highly customized devices play into these numbers
 at all.

-- 
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: Integrating Facebook To my App

2011-03-15 Thread Ponraj Android Developer
thank you for your replies. I have done with my Facebook integration.

On Sat, Mar 12, 2011 at 6:29 AM, LAM_Creations
lam.creations...@gmail.comwrote:

 Do you want it to just be Facebook or are you looking to offer the data to
 any network/app that can receive the data? If you just want your app to
 share the data to where ever the user wants you can use an intent like this:

 Intent shareData = new Intent(Intent.ACTION_SEND);
 shareData.setType(text/*);
 shareData.putExtra(Intent.EXTRA_TEXT, Text Data Here);
 startActivity(Intent.createChooser(shareData, Share This Data...));

 You can adjust this to accommodated what ever the data is that you wish to
 send. Hope that helps.

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




-- 
always as a friend
-santhosh-

-- 
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: Locate Zoom Controls (x,y) in MapView?

2011-03-15 Thread Adam R
I highly suggest just implementing your own ZoomControls as an
appropriate alternative.  You can add a ZoomControls element to your
layout, place it wherever you want, and have much more control over
it, without having to do a lot of hackery around the built-in variety
(just set it to not use built-in).  The only things you may need to do
are handle touch events to determine when you want them to appear/
disappear automatically, and handle their actions.  I think it's
generally been found that to do anything complex with MapViews, the
built-in items are best left as proof-of-concept examples (such as the
my location overlay), to base your own more customized versions off
of.

On Mar 14, 10:44 am, mcmatom mcmatom.testa...@gmail.com wrote:
 UPDATE:  I have managed to get this working, but it still has a hacky feel
 to me since it is completely reliant on the placement of the zoom controls
 forever being at the bottom of the screen.  I am open to any suggestions on
 how to handle this more appropriately.  For anyone interested, the code
 snippet placed into *OnSingleTapUpConfirmed* follows:

     ZoomButtonsController zBC = mView.getZoomButtonsController();
     View zcView = zBC.getZoomControls();

     int iMapHeight = mView.getHeight();

     Rect zoomHit = new Rect();
     zcView.getHitRect(zoomHit);

     zoomHit.top = iMapHeight - zcView.getHeight();
     zoomHit.bottom = iMapHeight;

     RectF rectFloat = new RectF(zoomHit);
     if (rectFloat.contains(e.getX(),e.getY())) {
         return false;
     }

-- 
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 fetch GroupId of ContextMenu

2011-03-15 Thread Puneet Agarwal
Hey Android Developers,

I am facing a problem in my application. I want to fetch the group id
of ContextMenu. Is there any function available, because i can't find
any function. I want that when i click on any of item of my ListView,
it will display a different context menu corresponding to different
List item.Please help me out. If you provide any example code, then it
will be appreciated.

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] How to get coordinates by clicking a point in the map

2011-03-15 Thread Dominik Schury
Hi Developers,
in my app that I want to develope I need to get location coordinates
by clicking a point in google maps.
Ist this possible? If yes, what code do I need for this.

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


RE: [android-developers] Re: drag and drop view in android?

2011-03-15 Thread 曾少彬

You can referer to android source/packages/apps/Launcher, there is a set of 
classes to support drag  drop.


 Date: Mon, 14 Mar 2011 19:27:42 -0700
 Subject: [android-developers] Re: drag and drop view in android?
 From: lancaster.dambust...@gmail.com
 To: android-developers@googlegroups.com
 
 This probably won't help most people, but Honeycomb includes a drag
 and drop framework.
 
 On Mar 14, 5:48 am, TreKing treking...@gmail.com wrote:
  On Mon, Mar 14, 2011 at 5:59 AM, Hitendrasinh Gohil 
 
  hitendra.virtuei...@gmail.com wrote:
   i  want reordering of the list row by drag and drop.
   means if i drag first row and drop at 5th position the view should
   be updated.
 
  http://tinyurl.com/6eqvtp9
 
  --- 
  --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
  

-- 
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] Open AOSP apps in eclipse

2011-03-15 Thread 曾少彬

You have to build android source, and reference 
out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar in 
your project.


 Date: Mon, 14 Mar 2011 04:08:05 -0700
 Subject: [android-developers] Open AOSP apps in eclipse
 From: smarko...@gmail.com
 To: android-developers@googlegroups.com
 
 Hi, I need to edit the original Android Apps from packages
 in terms make my own distro..
 I want to make changes to the In Call screen etc..
 I understand that for doing this I will have to build everything from
 source,
 however I need to edit the source and to do so I need to open it as an
 eclipse project,
 When I did I saw that there are
 1. missing imports which are hidden in the SDK (or missing)
 2. hidden parameters within the classes..
 I don't want to use reflection since the whole code is here and
 available, but how do you build a platform development kit.. od
 PDK ?:)
 
 Can any one 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
  

-- 
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 Kernel Build Errors- Yaffs2 Errors

2011-03-15 Thread Su-Android
yaffs2 Build Error

Using  2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009
i686 GNU/Linux


I Had installed GIT git version 1.6.3.3
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)

repo version v1.7.3.1
(from git://android.git.kernel.org/tools/repo.git)
git version 1.6.3.3
Python 2.6.4rc2 (r264rc2:75497, Oct 20 2009, 02:55:11)
[GCC 4.4.1]

Successfully Installed repo client and buld the code.


Now downloaded the Android kernel using git command
$ git clone git://android.git.kernel.org/kernel/common.git android-
kernel

Inside Android Kernel i used make menuconfig
   --- Used option Load Alternate Configuration and selected  my
configuration that am using basically ARM , used the same
CROSS_COMPILER path in .bashrc (myandroid/prebuilt/linux-x86/toolchain/
arm-eabi-4.2.1/bin)

Now when i build the code i was getting these Errors.
make


  fs/yaffs2/yaffs_fs.o
fs/yaffs2/yaffs_fs.c:400: error: unknown field 'delete_inode'
specified in initializer
fs/yaffs2/yaffs_fs.c:400: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:401: error: unknown field 'clear_inode' specified
in initializer
fs/yaffs2/yaffs_fs.c:401: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c: In function 'yaffs_delete_inode':
fs/yaffs2/yaffs_fs.c:799: error: implicit declaration of function
'clear_inode'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_setattr':
fs/yaffs2/yaffs_fs.c:1823: error: implicit declaration of function
'inode_setattr'


So i downloaded the recent yaffs2 folder using command   git clone
git://www.aleph1.co.uk/yaffs2' and copy it into fs/yaffs2/
and pasted it inide /android-kernel/fs/

 make


These Errors came up.

  CHK include/linux/version.h
  CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALLscripts/checksyscalls.sh
  CHK include/generated/compile.h
  CC  fs/yaffs2/yaffs_fs.o
fs/yaffs2/yaffs_fs.c:37:26: error: linux/config.h: No such file or
directory
fs/yaffs2/yaffs_fs.c:187: error: unknown field 'prepare_write'
specified in initializer
fs/yaffs2/yaffs_fs.c:187: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:188: error: unknown field 'commit_write'
specified in initializer
fs/yaffs2/yaffs_fs.c:188: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:196: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:229: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:237: error: unknown field 'delete_inode'
specified in initializer
fs/yaffs2/yaffs_fs.c:237: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c: In function 'yaffs_readlink':
fs/yaffs2/yaffs_fs.c:263: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:267: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_follow_link':
fs/yaffs2/yaffs_fs.c:287: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:291: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_lookup':
fs/yaffs2/yaffs_fs.c:328: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:332: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:337: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_clear_inode':
fs/yaffs2/yaffs_fs.c:396: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:411: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_delete_inode':
fs/yaffs2/yaffs_fs.c:432: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:449: error: implicit declaration of function
'clear_inode'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_file_flush':
fs/yaffs2/yaffs_fs.c:458: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_readpage_nolock':
fs/yaffs2/yaffs_fs.c:489: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_writepage':
fs/yaffs2/yaffs_fs.c:589: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_FillInodeFromObject':
fs/yaffs2/yaffs_fs.c:707: error: 'struct inode' has no member named
'i_blksize'
fs/yaffs2/yaffs_fs.c:759: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_get_inode':
fs/yaffs2/yaffs_fs.c:791: error: implicit declaration of function
'iget'
fs/yaffs2/yaffs_fs.c:791: warning: assignment makes pointer from
integer without a cast
fs/yaffs2/yaffs_fs.c: In function 'yaffs_file_write':
fs/yaffs2/yaffs_fs.c:808: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_readdir':
fs/yaffs2/yaffs_fs.c:868: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_mknod':
fs/yaffs2/yaffs_fs.c:962: error: 'struct inode' has no member 

[android-developers] Re: Buyer’s Currency

2011-03-15 Thread Nathan Roy
So, are we to assume then, that it will automatically set the currency
for us on March 31st if we don't get the options to set it manually?

Or is it just a false alarm e-mail?

-- 
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] Could anyone tell me what i need to develop this app...?

2011-03-15 Thread Daichi Shimabukuro
Hello world here

i would like to make an application for the local bus schedule but the
problem is that i am a noob here

i want to be knowledged through the development of this application


can anyone suggest any books for learning how to handle datas and
search them according to the parameter?

i personaly think that this app can be built with
html since the datas should cope with google map

how can i intergrate the map data and the schedule for each bus
number?

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: What more does my game need(space bike)

2011-03-15 Thread Robert Massaioli
Well, this really is not the right place for this I do not think but I will 
help you out by pointing you to this article on general game improvement by 
improving your game mechanics: 
http://www.gamasutra.com/view/feature/5901/evaluating_game_mechanics_for_depth.php?print=1

-- 
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] uninstalling packages/ APK's in C

2011-03-15 Thread Kiran K
Hello All,

I want to uninstall the some packages / apk's depending some some
condition ( based on my custom version number) . How do I do it at
during system startup in C code ? My plan to create a service and
start it (via init.rc)  to delete the packages. I have created the
template for the service and need know the C functions to uninstall
the packages. Any help is appreciated.

Regards,
Kiran

-- 
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 Context Menu group id

2011-03-15 Thread Puneet Agarwal
Hey android developers,

I am facing problem to get the group id of ContextMenu. I can't find
any function which can fetch the group id of ContextMenu.
In my application i want that if i click on any of my ListView items,
it will display a different context menu on different items of the
list.
Can you please help me out. If you give example code, then it will be
appreciated.

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] How to fetch GroupId of ContextMenu

2011-03-15 Thread Puneet Agarwal
Hey Android Developers,

I am facing a problem in my application. I want to fetch the group id
of ContextMenu. Is there any function available, because i can't find
any function. I want that when i click on any of item of my ListView,
it will display a different context menu corresponding to different
List item.Please help me out. If you provide any example code, then it
will be appreciated.

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] EnvironmentalReverb unsupported operation exception in android

2011-03-15 Thread sandy
Hi everyone,

When i am trying to use EnvironmentReverb class in android 2.3 i am 
getting exception UnsupportedOperation. Can anyone explain why i am getting 
this? I am just creating a new instance and i am getting this.

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] How to change appearance of the ContextMenu

2011-03-15 Thread Irina Belenki
Hi all,

Is it possible to change horizontalDivider (drawable) of the
ContextMenu?

Thanks in advance.
Irina.

-- 
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 Emulator Skins for Nexus S and Nexus One including Reflection Overlay

2011-03-15 Thread HeikoB
Hey,

I published some Emulator skins for Nexus S and Nexus One (in
different colors). These skins had been built with respect to the
actual resolution and proportions of the device and feature a
reflection/glare effect overlay each you can activate as onion.
Doing so allows you to produce high quality screencasts, take
screenshots or just wow your presentation audience ;)

Also, you can find a short tutorial about how to scale them back so
you can use them on small screens, too.

Feel free to download them at http://HeikoBehrens.net/2011/03/15/android-skins/

Have fun!
Heiko

-- 
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] service send information to Activity

2011-03-15 Thread maggy mtac
Hello,

I want to known How send information for example String from service
to Activity?

How start even Activity in a service because i want to display when
the service recover a data , he transmit to even Activity?

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: MediaPlayer.isPlaying() question

2011-03-15 Thread Krzysztof Majkowski
From documentation:

Returns
true if currently playing, false otherwise


So, when player is paused method is playing will return false.

On 13 Mar, 19:25, Ken H hunt1...@gmail.com wrote:
 Will android.media.MediaPlayer.isPlaying() return true if the
 MediaPlayer is paused?

 Ken

-- 
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] Gallery Infinite Loop

2011-03-15 Thread James Liu
Hi, guys:

I use default gallery widget in my android application. The default gallery
action is that when it reach end, it will stop scroll. And what I want to
implement is loop to the first image after the gallery reach to the end. I
already search it on google, and still get stuck.

Do you have any idea for that?


Thanks for your any helps.

-- 
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] Creating SQLite DB

2011-03-15 Thread Kamil Michalak

Did you try
this.getApplicationContext().openOrCreateDatabase(DATABASE_NAME, 
Context.MODE_PRIVATE, null);

?

W dniu 14.03.2011 01:46, David Williams pisze:

All,

I am trying to create an SQLite DB but for some reason it's not working.
My logic performs the following.

db.openDatabase(GlobalVars.DATABASE_NAME, null, 0);

This simply tries to open my DB.  If the DB doesn't exist it will 
throw an exception, which I can check, but I would suspect that if the 
DB can't be opened it doesn't exist, therefore my assumption then is 
that this is a new install of my app and I need to create my DB.  So, 
in my exception I am doing the following:


db.openOrCreateDatabase(GlobalVars.DATABASE_NAME, null);

I'd expect the above command to create the database regardless, but it 
isn't.  The exception I am getting for both of the above commands is: 
*unable to open database file. *I am surprised am I getting this in 
the second exception as I would expect it to create the DB.


DATABASE_NAME = golfcaddie.db

What am I doing wrong?


--


David Williams
Check out our WebOS mobile phone app for the Palm Pre and Pixi:
http://www.dtw-consulting.com/GolfCaddie Golf Caddie 
http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum 
http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ 
http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, 
Inc.



--
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=enimage/png

[android-developers] Re: Display sd card size

2011-03-15 Thread JohnHeape
So what is the best soln for Android 3.0?

On Mar 3, 2:22 pm, Dianne Hackborn hack...@android.com wrote:
 For overall data about a filesystem, you can use this 
 class:http://developer.android.com/reference/android/os/StatFs.html

 Use the path you retrieve with Environment.getExternalStoragePath().

 Warning: the APIs return number of blocks in integers.  Be sure you cast
 this to a long before multiplying with the block size, to avoid overflow
 errors.

 Also note that starting with Android 3.0 the SD card may not actually be
 its own partition, in which case this would be telling you the total size
 and amount used of all internal storage.









 On Tue, Mar 1, 2011 at 3:37 AM, shobi s.shobanasubbu...@gmail.com wrote:
  Hi all,
          In my application i want to display all the properties of the
   sdcard like sizeof sdcard, used space in sdcard , free space etc..
  I'm
   unable to get the used space of sdcard and free space in sdcard,  and
  also unable to get the total size
   of sdcard ( size given at the creation time of AVD ). How can i do
   that?

   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


[android-developers] Re: Cursor management issue with Honeycomb

2011-03-15 Thread ZFred
I had the same problem with managed Cursors when updating my project
for honeycomb.

One solution was to not close the managed cursor myself.  In other
words if your managed cursor is called cur than do not ever call
cur.close() in your code.  Let the system manage the managed cursor
and everything will be fine.

A better solution is to replace managedCursor with an normal unmanaged
cursor and continue to call cur.Close() yourself.

I suspect that this is a bug that was introduced in honeycomb in that
it appears that the system is trying to access some property of the
managed cursor without first checking to see if it is closed, and
since we closed it ourselves it is in fact closed.

-- 
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] Convert a J2ME project to Android project

2011-03-15 Thread Huynh Ngoc Bang
Hii all Developers
I would like to ask you. How to convert a J2ME project to Android
project.
Please help me show step by step I can convert them.
Thanks so much!

-- 
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: MediaPlayer.isPlaying() question

2011-03-15 Thread Krzysztof Majkowski
From documentation:

Checks whether the MediaPlayer is playing.

Returns
true if currently playing, false otherwise


It means, that the method will return true only when players is
playing. When it's stopped or paused will return false.

On 13 Mar, 19:25, Ken H hunt1...@gmail.com wrote:
 Will android.media.MediaPlayer.isPlaying() return true if the
 MediaPlayer is paused?

 Ken

-- 
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 many messages can I send via C2DM?

2011-03-15 Thread kyoung min kim
how many messages can I send using C2DM? There is no limitation?

We are expecting to send messages about 18 millions per year.

There are 17,000 users.

-- 
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 Script alert not working in Android WebView

2011-03-15 Thread Kapil
Thanks mark
 the alert() method in the html file are working now :) .

Now there are two issues in WebView :
1: I am using a textarea in the html file that i am loading in
WebView , and trying to write in Hindi font in it ,
but when i try to write Hindi text it displays as symbol (  rectangle
symbols like [] ) .

when i do the same in firefox browser on desktop it works fine.
any clue how to give support for multiple language in textarea in
WebView ?

2: When I am clicking submit and trying to open the value of textarea
in alert() method in another java script it doesn't work , does it
mean even after using WebChromeClient
its applicable only for vurrent loaded html page and not java scripts
called from that page ?



On Mar 12, 1:46 am, Mark Murphy mmur...@commonsware.com wrote:
 Add a WebChromeClient implementation to your WebView via
 setWebChromeClient(), then override onJSAlert() to do whatever you
 want.



 On Fri, Mar 11, 2011 at 5:44 AM, Kapil kapil.hear...@gmail.com wrote:
  Hi All,
          In my application I am using WebView and in that I am using
  javascript alert( ) method but its not working, no pop-up appears.

  in my manifest file I have added
     uses-permission android:name=android.permission.INTERNET/uses-
  permission

  and in activity file I have added
         mWebView = (WebView) findViewById(R.id.webview);
         mWebView.getSettings().setJavaScriptEnabled(true);
         mWebView.loadUrl(file:///android_asset/demo.html);

  In layout xml file I have added
  WebView
     android:id=@+id/webview
     android:layout_width=fill_parent
     android:layout_height=fill_parent
  /

  Any clue how to enable full Java script in WebView.

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

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

 Android Training in NYC:http://marakana.com/training/android/

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


[android-developers] Re: Android App login

2011-03-15 Thread nehal ahmad
Hi
Fares Askndaer :
I am developing an app in which I have to make a login form(which I
have made earlier and I have to code for further flow) and when user
fills his/her username and password,
then authenticate it through a webservice (built in ASP) and when
authentication is successfull then
display his/her personal detail, in a view. Would you like to help me
please. thanks a lot.

On Jan 20, 8:06 am, Fares Askndaer asknd...@gmail.com wrote:
 Hi

 I have built app that display asp pages using WebView but some of the
 page want theauthentication(Username ,Password ) tologinI want my
 application to autologinto this page using Username and Password
 from my Application

 This is my code Please Help

 public class eadvantage extends Activity {
     /** Called when the activity is first created. */
 WebView mWebView; @Override public void onCreate(Bundle
 savedInstanceState) { super.onCreate(savedInstanceState);
 setContentView(R.layout.eadvantage);

      HttpClient httpclient = new DefaultHttpClient();
      HttpPost httppost = new HttpPost(http://www.ucsi.edu.my/
 advantage/new/main.asp);

     try {
         // Add your data
         ListNameValuePair nameValuePairs = new
 ArrayListNameValuePair(2);
         nameValuePairs.add(new BasicNameValuePair(txtUserID,
 12345));
         nameValuePairs.add(new BasicNameValuePair(txtPassword,
 12345));
         httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

         // Execute HTTP Post Request
         HttpResponse response = httpclient.execute(httppost);

         mWebView = (WebView) findViewById(R.id.webview);
         mWebView.getSettings().setJavaScriptEnabled(true);
         mWebView.loadUrl(http://www.ucsi.edu.my/advantage/new/
 main.asp);

         mWebView.setWebViewClient(new WebViewClient());

-- 
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] Read/Write Text File to shared folder on Windows computer on LAN

2011-03-15 Thread jaegermeister
I am trying to develop an application that writes several lines of
text to a text file that is located on a windows computer on the same
LAN that the Android device will reside.

I downloaded ES File Explorer and can see the text file on the Windows
computer on the LAN that I want to read/write to but I do not know
what path to tell the Android app to write the text file to so that it
shows up on this Windows PC?  I saw this article on read/write but
still am missing what file path to tell the app to read/write to:
http://huuah.com/android-writing-and-reading-files/

If there is a better way to do this than using ES File Explorer, I am
open to trying that as well.  I have hit a brick wall and really need
some help on how to do this.

Thanks for your advice,
-Ben

-- 
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] Table tag in html content cannot be loaded by webview(witch WebView.loadData)?

2011-03-15 Thread Hendy
Hi, All
I find that when if there are some table tags in HTML, then the
webview will not display anything. This only happens when use
WebView.loadData or WebView.loadDataWithBaseURL. If I put the same
HTML file to a server and use WebView.loadUrl, this problem doesn't
exist. And if I remove the table/table tag, no problem too.

My HTML is like below:
html
body
table border=0 width=100% height=100% id=table1
tr
td
p align=centerfont color=#FFUpdate Checking Failed.
Please Try Again./font/td
/tr
/table
/body
/html

Is this the known problem with webview? What do you suggest if I want
to use local html resources with different languages?

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 load zimage in android.

2011-03-15 Thread wannabeguru
The message appear

sending 'zimage' (2578 KB)... OKAY [  0.162s]
  writing 'zimage'... FAILED (remote: partition does not
exist)
finished. total time: 0.162s

Is there solution??

And I built the android source code. At that time, system.img,
userdata.img and ramdisk.img are made. However boot.img didn't make.

How do I make boot.img??

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] How can I use the MediaScannerService to scan a video on the network

2011-03-15 Thread Mrinal
Hi,

I am trying to develop a DLNA client. I want the user to see all the
playable data (not at the same time) on the network.
I wanted to store the information of the media in some form of a
database. I tried to use MediaService to scan a particular media

http://ip-Address:port-no/WMPNSSv4/2201497635/1_ezQ3MzNGOERCLTE4MkMtNDBEOC1BQTNDLUZFOTg1RjUyQTlBRX0uMC44.mp4

This is a video on one of my media servers(which you will not be able
to see).
 and this is the error I am receiving.


03-11 17:17:04.215  1201  1201 E
Working:onMediaScannerConnected
03-11 17:17:04.343   969  1209 W
MediaScanner:MediaScannerClient::setLocale is not supported on GTV.
03-11 17:17:04.343   969  1209 E MediaScannerService: Exception in
handleMessage
03-11 17:17:04.343   969  1209 E MediaScannerService:
java.lang.IllegalStateException: Unable to create new file:
http://ip-Address:port-no/WMPNSSv4/2201497635/1_ezQ3MzNGOERCLTE4MkMtNDBEOC1BQTNDLUZFOTg1RjUyQTlBRX0uMC44.mp4
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaProvider.ensureFile(MediaProvider.java:
1345)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:
1586)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaProvider.insert(MediaProvider.java:
1381)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.content.ContentProvider$Transport.insert(ContentProvider.java:
150)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.media.MediaScanner
$MyMediaScannerClient.endFile(MediaScanner.java:781)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.media.MediaScanner
$MyMediaScannerClient.doScanFile(MediaScanner.java:536)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.media.MediaScanner.scanSingleFile(MediaScanner.java:1208)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:
200)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaScannerService.access
$100(MediaScannerService.java:48)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaScannerService
$ServiceHandler.handleMessage(MediaScannerService.java:244)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.os.Handler.dispatchMessage(Handler.java:99)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.os.Looper.loop(Looper.java:123)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaScannerService.run(MediaScannerService.java:
188)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
java.lang.Thread.run(Thread.java:1096)
03-11 17:17:04.347   652   672 D Checkin : Logging stats:
CRASHES_REPORTED(count 1, sum 0.0)
03-11 17:17:04.559   652  1306 I DumpStateReceiver: Added state dump
to 1 crashes


Is it possible to scan a file on the network and add it to the
MediaStore db or will I have to create my own scanning service and db
for this.

Also how would i scan a file in android. I know linux has a file
command which would tell what kind of file it is. Does the android sdk
have a similar thing?

Thanks,
Mrinal

-- 
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] Snmp Query

2011-03-15 Thread robit
HI Everybody

I yesterday starting the developing :-)
But not found any info from  SNMP protocol
How can I make snmpquery, snmpwalk, snmpset from android application?

Can I use the native Java snmp library (aka:snmp4.jar), examples?

Thnx Robit

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

2011-03-15 Thread abhishek
Iam using ubuntu and I want to check my application on the phone.How
do i do it.The application runs in the emulator i want to change it..
Thank u 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] How to set different color to fifth row of listview.

2011-03-15 Thread Prathamesh

My listview is diaplying 5 rows.
When Control is on 1st or 2nd or 3rd or 4th row, I want to gray out
fifth row.
And when 5th row has control, first row should get grayed out.

please help me how to access fithrow or individual row and set their
background color.

Thanks in advance
pratham

-- 
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: Source Code for HelloGoogleMaps Tutorial

2011-03-15 Thread Piyush Hari
Hello,

The official tutorial works for me.
http://developer.android.com/resources/tutorials/views/hello-mapview.html

Its best to debug to identify the problem. Did you include marker
images in your res/drawable* directories ?

Regards,
Piyush Hari
http://petsiiphoneapp.com
PETSI: Where Pets meet their sitters...
Android Version coming soon...

On Mar 13, 3:58 pm, Dominik Schury dominik.sch...@googlemail.com
wrote:
 Hello Developers,

 I am new at Android development and I work through the tutorials.
 The HelloGoogleMaps Tutorial

 http://developer.android.com/resources/tutorials/views/hello-mapview

 does not work on my phone. The map is shown but not the marker. So I
 want to ask if someone has a working source code of the tutorial?
 I can not understand that Google does not provide!

 Thank you 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] finishActivity() does not stop child activity

2011-03-15 Thread Rams
OK, so I have a Service which I want to be able to start (3rd party)
Activities and stop them as necessary. A simple example would be
detecting that headphones are plugged in and starting the Music app,
then stopping it when they are unplugged,

I've explored a number of ways to do this, but the only way seems to
be for the Service to start an Activity which then starts a sub-
activity. This much, I've accomplished and is pretty straight-forward.

My issue comes with shutting down the child Activity. I know it can be
done, since I have knocked up a Proof Of Concept project to check this
functionality. My POC has an Activity with a 'Go' button with the
following code:


Button button = (Button) findViewById(R.id.button);
button.setOnClickListener(new OnClickListener() {
@Override public void onClick(View v) {
Intent intent = new Intent();
intent.setComponent(new
ComponentName(com.android.spare_parts,
com.android.spare_parts.SpareParts));
startActivityForResult(intent, 17);

try {
Thread.sleep(3500);
}
catch (InterruptedException e) {
e.printStackTrace();
}

finishActivity(17);
}
});

This works exaclty as expected.

My issue is that when I incorporate this principle into my app, the
call to finishActivity() does nothing.

Services can't start another Activity for result, so it starts an
intermediary Activity. The intermediary Activity then starts the 3rd
Party Activity. All this works fine.

The issue is that when the intermediary calls finishActivity(), the
3rd Party Activity continues running. I don't understand this, since
my POC project does not suffer from this problem.

There is a suspicious warning message in the Android console stating,
Activity is launching as a new task, so cancelling activity result.,
but I suspect that this might be erroneous...

The obvious difference between the POC project and my app is that my
app is a Service which starts an intermediary Activity to control the
3rd party Activity. Is it possible that the intermediary Activity is a
'child' of the Service and is therefore unable to finish sub-
Activities?

+-++---+++
| Service | - | Intermediary Activity | - | 3rd Party Activity |
+-++---+++

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


[android-developers] Re: About Android Application Development

2011-03-15 Thread Boudhina Omran
hi kajal patil
u can use Log.i(category,message);
don't forget to import android.util.log

On 15 mar, 04:56, kajal patil patil.kaja...@gmail.com wrote:
 Hi all,.
       I am developing an android application.I used
 system.out.println(message) to display message in logcat.But i did not get
 in logcat.I don't knw  that whether system.out.println(message) is correct
 way.I need it for my project.Please kindly suggest solution.
 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: About Android Application Development

2011-03-15 Thread Boudhina Omran
hi kajal patil
to display a message in logcat you can use:
Log.i(category,message);
don't forget to import android.util.log

On 15 mar, 04:56, kajal patil patil.kaja...@gmail.com wrote:
 Hi all,.
       I am developing an android application.I used
 system.out.println(message) to display message in logcat.But i did not get
 in logcat.I don't knw  that whether system.out.println(message) is correct
 way.I need it for my project.Please kindly suggest solution.
 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: LocationListener not triggering onLocationChanged when Listener is reset.

2011-03-15 Thread Shao
This is what I have in my service, I have a UI button that calls these
2 different functions:

private void StartLocationUpdates() {
mLocationManager = (LocationManager)
getSystemService(LOCATION_SERVICE);

mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
LOCATION_INTERVAL, 0, listen);

mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
LOCATION_INTERVAL, 0, listen);
}

private void StopLocationUpdates() {
mLocationManager = (LocationManager)
getSystemService(LOCATION_SERVICE);
mLocationManager.removeUpdates(listen);
}

private LocationListener listen = new LocationListener() {

@Override
public void onLocationChanged(Location loc) {
// blah blah do stuff
}
 }

Anything wrong with this?

On Mar 11, 4:49 pm, lbendlin l...@bendlin.us wrote:
 Your issue is most likely elsewhere in the code logic. Disabling/
 enabling the listener works fine for me across all possible device/API
 version combinations.

 On Mar 10, 9:48 pm, Shao shaoy...@gmail.com wrote:

  Hi all,

  I was playing around with the GPS location on my Android.  What I'm
  trying to do was make a toggle button that can turn it on and off.

  When I turn it on, I'll set my LocationListener to the request
  location updates call.

  When I turn it off, I'll remove location updates and pass in my
  LocationListener.

  The problem I'm seeing though is that this works fine the first time,
  but after turning it off and then turning it on again the GPS does
  start up and update locations but the onLocationChanged is no longer
  called.

  I was also trying to create a routine to save battery life by changing
  the time hint between updates if the location is relatively static
  for a while.  But again, onLocationChanged no longer gets called if I
  remove location updates and then request location updates again with
  the same location listener (it's a static LocationListener).

  Wondering if anyone else came across 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] Build environment for .APK

2011-03-15 Thread Nagesh A
Hi all,
Greetings

I have an requirement of providing a .apk file from .c file.
I have installed SDK starter package to my linux PC.

Is there any document to do this task?

regards,
-Nagesh A

-- 
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] About vertical Cover flow

2011-03-15 Thread android_lover
I want to build a cover flow vertically. For building it I had
downloaded the code for Horizontal flow from the link:
http://www.inter-fuser.com/2010/01/android-coverflow-widget.html

what are the changes should I made to make it vertical...Any type of
help will be 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] App not compatible. How to detect which feature/code is incompatible

2011-03-15 Thread TinTin
Hi,

I wrote an app and since a few days I receive multiple reports that
the Android Market says my app isn't compatible with their phone. It's
only one specific phone, Motorola Defy. I have no idea what is
incompatible because my app doesn't use anything exotic. How can a
developer know what is incompatible without actually having that type
of phone?

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] Search suggestions for a SearchView Widget

2011-03-15 Thread Tom
I've added a SearchView to the ActionBar like is done here:
http://developer.android.com/guide/topics/ui/actionbar.html#ActionView
and am running into a few issues. First, is there any mechanism for
search suggestions, like with the standard search dialog (can I just
hook up a Content Provider), or do  I need to create my own view that
I manually update in the onQueryTextChanged listener?

-- 
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 auto answer call programmatically

2011-03-15 Thread zameer
  I am working on app that will auto answer the call programatically,
but the API for this is not working in Android2.3, by some initial
investigation came to know that it was removed due to some security
issue.. but it is allowed if we can do modification in Phone
application of android, but I want to achieve it through my app only..
so just want to know that if its allowing through bulit in then why
its not allowing from my app ?? and want to know what are the measures
that it will take that perticular API call is from built in or third
party APP...
and please let me know if there is any alternative to achieve this
form third party application.

-- 
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] Problem in building kernel -yaffs2 error

2011-03-15 Thread Su-Android
fs/yaffs2/yaffs_fs.c:985: error: 'struct task_struct' has no member
named 'fs_uid'
fs/yaffs2/yaffs_fs.c:986: error: 'struct task_struct' has no member
named 'fs_gid'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_symlink':
fs/yaffs2/yaffs_fs.c:1165: error: 'struct task_struct' has no member
named 'fs_uid'
fs/yaffs2/yaffs_fs.c:1166: error: 'struct task_struct' has no member
named 'fs_gid'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_internal_read_super':
fs/yaffs2/yaffs_fs.c:1550: warning: format '%d' expects type 'int',
but argument 2 has type 'uint64_t'
make[2]: *** [fs/yaffs2/yaffs_fs.o] Error 1
make[1]: *** [fs/yaffs2] Error 2
make: *** [fs] Error 2


please Any help to solve 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] Re: Using Eclipse write monkeyrunner

2011-03-15 Thread c j
in command line used monkeyrunner is ok
but i need used eclipse can Instantly watch result
thank you

On 3月15日, 上午10時23分, A. Elk lancaster.dambust...@gmail.com wrote:
 Although I don't think that monkeyrunner was designed to be used fromEclipse.

 Whenever you run into a problem with monkeyrunner, try it from the
 command line first.

 On Mar 13, 9:11 pm, Diego Torres Milano dtmil...@gmail.com wrote:







  Some hints to use monkeyrunner fromeclipsecan be found 
  athttp://dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-...

  On Mar 11, 6:06 am, c j techandroid@gmail.com wrote:

   I needusingmonkeyrunner do some easy auto test but have some
   problem.

  EclipseSDK 3.6.2 (Pydev 1.6.5 + Jython 2.5.2 + Python 2.7.1 +
   monkeyrunner.jar + google-collect-1.0-rc1.jar)
   jdk1.6.0_24
   android-sdk-windows

   i try this example in second line have wrong

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

   # Imports the monkeyrunner modules used by this program
   from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

   # Connects to the current device, returning a MonkeyDevice object
   device = MonkeyRunner.waitForConnection()

   error msg

    device = MonkeyRunner.waitForConnection()
           at
   com.android.monkeyrunner.MonkeyRunner.waitForConnection(MonkeyRunner.java:
   74)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
   Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
   java.lang.NullPointerException: java.lang.NullPointerException

   Please tell know where setting wrong.
   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] onItemLongClick and onItemClick for a gridview

2011-03-15 Thread varinag gold
Hello,

For a gridview I am able to set the onItemClick and it works fine but
I don't know how should I implement  onItemLongClick so that I can
get both type of responses from a gridview items.

I googled but could'n get an understandable code where both have been
implemented properly.

Please respond if you have done it .

Regards,
varinag

-- 
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] Urgent and Alarming battery management problem. Google please do something about it.

2011-03-15 Thread wnpixel
Hello There. I am writing to inform you of an alarming trend and a
request.

Because Android is an open OS, app developers are free do develop apps
in any way they want. Unfortunately, it has come to my attention that
most app developers take absolutely zero care in developing apps for
good battery life.

This is one of the reasons Android handsets get much shorter battery
life even though they use the same exact chips as other phones such as
iPhone, blackberry, etc.

The MAJOR problem isn't cpu usage, but data usage. 3G radios are being
turned on literally hundreds of times an hour! What's worse is that
this is happening even with apps that use the C2DM push notification
service from Google.

I have done a real world test with a network analyzer. You can do it ,
too. Just download Shark for root and Shark reader from android
market. Turn it on and notice how your average android device, even
when seemingly doing nothing, is constantly polling the network:

- Words With Friends (Wildly Popular): By default checks for new moves
EVERY 5 MINUTES!
- Official Twitter App, Tweetdeck: Check for new tweets every 15
minutes, BY DEFAULT.
- Tweetcaster from Handmark: Checks for new tweets every 3 minutes(!)
by default!
- BeejiveIM polls network and downloads packets at least once a
minute. This is an app that supposedly has push notifications.
- Fring: Uses a third party push notifications that is also constantly
downloading packets
- FOX news: Uses an alert system that is on by default and doesn't
even seem to be push. Noticed activity dozens of times an hour.

This is just a VERY short list to illustrate my point. Notice how some
of the apps are wildly popular? It's not hard for an average user to
have ALL these apps installed. Imagine what all that collective
polling is doing to their batteries...

App developers don't seem to mind the impact of such settings on
possibly millions of people's handsets. This is quite a big deal. As
long as their apps work.. Why bother? The fact is, these apps are
killing a LOT of peoples batteries. Really high defaults also punish
the average users who won't bother going to settings menu or simply
don't know the effect of such a frequent poll on the battery. My
request is, Google, you strive for innovation and customer
satisfaction.. Please do something about it.

But don't just implement a fix on the next version of Android. Do it
now. Require this from developers. Actively talk to them. Please
realize this is something really important. There are millions of
Android users who need their phones for mission critical jobs, and
just don't know why they can't make through a day without an empty
battery And not even using the damn thing.

Thanks
Eli

-- 
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] ActionBar.setCustomView doesn't seem to work

2011-03-15 Thread Tom
I'm attempting to use the 'setCustomView' method of the ActionBar, but
am unable to load my (very basic) layout. I took a look at the
Honeycomb-Gallery sample, which also references
ActionBar.setCustomView. After removing the code which adds the tabs
to the ActionBar and failing to see the Hello Action Bar text from
that layout file, I'm unconvinced the sample is correct. Is there
anything I might be missing here?

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

2011-03-15 Thread Jayanthi
Hi, can you provide sample code for video chat using android sdk

On Mar 10, 5:03 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
 Ya sure... just wait i will provide you the complete source code

 On Thu, Mar 10, 2011 at 5:30 PM, Jayanthi jaia...@gmail.com wrote:
  Fine, Do google provide any Library for video conference

  On Mar 10, 4:18 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
   Yes i am sure it must be by some way or other

   On Thu, Mar 10, 2011 at 2:40 PM, Jayanthi jaia...@gmail.com wrote:
Hi,
   can anyine tell me  Whether voice chat and video conference is
possible in android

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

  --
  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] Update contact is not working using lookupUri

2011-03-15 Thread twisha
I am trying to add contacts from my application to the phonebook and
then update it later through my application itself. As mentioned, to
uniquely identify the contact I am using the lookup key as follows:

Uri lookupUri =
Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_LOOKUP_URI,
lookupKey);
Uri res =
ContactsContract.Contacts.lookupContact(context.getContentResolver(),
lookupUri);
Cursor t_cursor = context.getContentResolver().query(res, null, null,
null, null);
String t_id =
t_cursor.getString(t_cursor.getColumnIndex(ContactsContract.Contacts.Data._ID));
String t_contactId =
t_cursor.getString(t_cursor.getColumnIndex(ContactsContract.Contacts._ID));

using the above I am trying to update the contact as follows:

String Where = ContactsContract.Contacts.Data._ID +  = 
'+t_id
+';
ContentValues values = new ContentValues();

values.put(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME,
modified_name+P);
values.put(Email.TYPE, Email.TYPE_WORK);
values.put(Email.DATA, email);
values.put(Organization.TITLE, title);
values.put(Organization.COMPANY, XYZ);

context.getContentResolver().update(Data.CONTENT_URI, values,
Where, null);

But nothing is getting updated using this. I tried using the t_id as
well as t_contactId for the where clause but it made no difference.
Could anyone please suggest where am I going wrong ?

-- 
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] Delete browserplugin sample. do not merge

2011-03-15 Thread Topclass8205
I found above log at android git.
actually, I need to make android chrome plugin using NPAPI.

Why that sample was deleted? Isn't it possible to use same way in that
sample?
then, How can I make android chrome plugin?

Please help me guys. have a good day.

-- 
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] mediaMetadataRetreviever.GetFrameAtTime

2011-03-15 Thread chip
I am using Honeycomb , and whenever i call the GetFrameAtTime method
the same (first) frame from the video is returned regardless of the
paramaters i use

getFrameAtTime(long timeUs, int option)

for the first paramater I have been using values int the range (0,
1*METADATA_KEY_DURATION)  and in the range  (0,
1000*METADATA_KEY_DURATION) ( thinking to convert from milli to micro
seconds)

and MediaMetadataRetriever.OPTION_CLOSEST;

any assistance would be appreciated

thank you

-Jeffrey

-- 
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: Using Eclipse write monkeyrunner

2011-03-15 Thread c j
very thank you.

but my os is windows 7 not ubuntu

i will try another setting

On 3月14日, 下午12時11分, Diego Torres Milano dtmil...@gmail.com wrote:
 Some hints to use monkeyrunner fromeclipsecan be found 
 athttp://dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-...

 On Mar 11, 6:06 am, c j techandroid@gmail.com wrote:







  I needusingmonkeyrunner do some easy auto test but have some
  problem.

 EclipseSDK 3.6.2 (Pydev 1.6.5 + Jython 2.5.2 + Python 2.7.1 +
  monkeyrunner.jar + google-collect-1.0-rc1.jar)
  jdk1.6.0_24
  android-sdk-windows

  i try this example in second line have wrong

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

  # Imports the monkeyrunner modules used by this program
  from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

  # Connects to the current device, returning a MonkeyDevice object
  device = MonkeyRunner.waitForConnection()

  error msg

   device = MonkeyRunner.waitForConnection()
          at
  com.android.monkeyrunner.MonkeyRunner.waitForConnection(MonkeyRunner.java:
  74)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
  java.lang.NullPointerException: java.lang.NullPointerException

  Please tell know where setting wrong.
  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] setimageresource showing wrong image

2011-03-15 Thread rankan
Hi,

I'm trying to build a simple UI based on the tutorial on using tabs. I
added a couple of .png files to the /res/drawable folder. When I'm
creating an image button, I call
button.setImageResrouce(R.drawable.arrowup). The imagebutton is
created, however the image that it displays is the wrong image. It is
one of the images that existed in the folder previously. I simply
added a arrowup.png file to the res/drawable folder. Is there some
step I am missing?

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: SQLite attach database not working in Honeycomb

2011-03-15 Thread Vasu Nori
In Honeycomb, using bindargs for 'Attach' sql statement doesn't seem
to work.

try this instead
db.execSQL(attach database ' + newDb + ' as newDb);

this should work.

files a bug to address this. thanks for posting this question. (also
answered this question on 
http://stackoverflow.com/questions/5108964/attached-databases-in-honeycomb.
again thanks for the pointer)

On Mar 14, 3:04 am, Mark Carter mjc1...@googlemail.com wrote:
 My app makes extensive use of this:

 sqldb.execSQL(ATTACH DATABASE ? AS mydb, new String[] { dbFile.getPath()

 });

 where the dbFile is stored on External Storage.

 The Honeycomb emulator confirms the File.exists() but when I query the
 database, it's as if the database hasn't been attached at all.

 Also SQLiteDatabase.getAttachedDbs() only returns main, :memory: -
 i.e. a single-item list.

 The code works fine in 1.5 through to 2.3.

 And I'm not the only one experiencing 
 this:http://stackoverflow.com/questions/5108964/attached-databases-in-hone...

-- 
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: GLES20 background bitmap on just 2 triangles kills 35 fps

2011-03-15 Thread Alex Rempel
The size of the texture is not an issue as the result is the same with
1000x900 PNG and with a 64x64 PNG, it really seems to be the overall
size of the blitting area.

The NPOT textures should only be a problem if mipmapping or wrapping
modes other than clamp are used, there should be no performance hit
except of those issues (at least I deducted this much from the 2.0 ES
book). Nevertheless I resize all incoming textures in program before
binding/loading them in GL.

I also tried to do a tiled map of the background instead of doing it
all on a single quad - there was no difference as expected.

The PNG is loadedresized once in an Android Bitmap, then following
gets set: MIN_FILTER to GL_NEAREST, MAG_FILTER to GL_LINEAR, WRAP_S/T
to GL_CLAMP_TO_EDGE.
After that the texture gets loaded into GL context with
texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);, then the bitmap is
recycled and null'ed.
I already checked the internal format chosen by this function and it
functions properly.

Is there any way to bind the textures to GL_TEXTURE0..31 permanently?
I'd like to have e.g. 20 textures that are permanently bound to 20
GL_TEXTURE... IDs and then just glActiveTexture'ing them before a
shader program gets executed. I already tried to do this, but
apparently I need to do the glActiveTexture and glBindTexture all the
time to avoid artifacts... Isn't that important though because the
performance wasn't better.

-- 
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 auto answer call programmatically

2011-03-15 Thread Gergely Juhász
What API did you used than previously worked?

On 14 March 2011 11:14, zameer zameer...@gmail.com wrote:
  I am working on app that will auto answer the call programatically,
 but the API for this is not working in Android2.3, by some initial
 investigation came to know that it was removed due to some security
 issue.. but it is allowed if we can do modification in Phone
 application of android, but I want to achieve it through my app only..
 so just want to know that if its allowing through bulit in then why
 its not allowing from my app ?? and want to know what are the measures
 that it will take that perticular API call is from built in or third
 party APP...
 and please let me know if there is any alternative to achieve this
 form third party application.

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

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


[android-developers] How to declare Button as global object????

2011-03-15 Thread Ponraj Android Developer
Hi All.
I am creating buttons dynamically. I am not able to access those buttons
outside the methods.
I am not familiar with java programming. I am new to android. Give solution
for my problem.
Should I declare the  Buttons globallyIf yes means, How should I?
help me out
-- 
with thanks and regards,
P.Ponraj

-- 
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] About vertical Cover flow

2011-03-15 Thread Soumen Debnath
I have a code for Horizontal Cover Flow , but I need a vertical Cover Flow .
Can any one supply me relevant code for that?

--

-- 
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] fetch all the miss call

2011-03-15 Thread crajesh
Hi,

  I need to fetch all the miss call, so may i know in which database i
can fetch the miss call list.

can any one tell me the corresponding Query for fetching the all the
miss call

Thanks
C.Rajesh

-- 
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: GLES20 background bitmap on just 2 triangles kills 35 fps

2011-03-15 Thread alan
have you tried the draw texture extension?

-- 
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: fetch all the miss call

2011-03-15 Thread Bastiaan
You can use the Call Log Content Provider to fetch the missed calls:

http://malsandroid.blogspot.com/2010/06/accessing-call-logs.html
http://www.devx.com/wireless/Article/41133/1763/page/3



On 15 mrt, 11:23, crajesh crajesh2...@gmail.com wrote:
 Hi,

   I need to fetch all the miss call, so may i know in which database i
 can fetch the miss call list.

 can any one tell me the corresponding Query for fetching the all the
 miss call

 Thanks
 C.Rajesh

-- 
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 vertical Cover flow

2011-03-15 Thread Soumen Debnath
Hello can any one help me with this topic Cover flow topic?

On Tue, Mar 15, 2011 at 3:38 PM, Soumen Debnath soumendebnath@gmail.com
 wrote:

 I have a code for Horizontal Cover Flow , but I need a vertical Cover Flow
 . Can any one supply me relevant code for that?

 --



-- 
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: FLAG_BLUR_BEHIND not working with Honeycomb?

2011-03-15 Thread Clément Plantier
If you're right, then the documentation is wrong/incomplete, because
it says:

int FLAG_BLUR_BEHIND Window flag: *blur everything behind this
window*.

It doesn't say: apply a random effect, that is concretely *blur* on
all versions of SDK, except on Honeycomb in which it's a full black
background. I don't understand why the behavior is allowed to be
inconsistent between versions. Prior to 3.0, FLAG_BLUR_BEHIND blurs
everything behind the window. In 3.0, this flag replaces everything
behind the window by a black background.


Also, in Honeycomb, how can I blur everything behind my window, if
this flag doesn't allow it?


On Mar 14, 6:08 pm, Romain Guy romain...@android.com wrote:
 This flag does not guarantee you're going to get a blur effect. The term
 blur is used in a more generic sense, thus having a black veil instead of
 a blur is expected.

 2011/3/14 Clément Plantier clemplant...@gmail.com









  Could someone else try? Thanks.

  On Mar 11, 11:03 am, Clément Plantier clemplant...@gmail.com wrote:
   Hi,

   I have a dialog that use the window flag FLAG_BLUR_BEHIND to have a
   blur effect behind the dialog. It works fine with older versions of
   SDK, but with Honeycomb everything is black behind my dialog.

   To reproduce:
   
   Dialog dialog = new Dialog(context);
   dialog.setTitle(Test);
   dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
   dialog.show();
   

   Am I doing something wrong?

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

 --
 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: how to auto answer call programmatically

2011-03-15 Thread Pent
   I am working on app that will auto answer the call programatically,
 but the API for this is not working in Android2.3, by some initial
 investigation came to know that it was removed due to some security
 issue.. but it is allowed if we can do modification in Phone
 application of android, but I want to achieve it through my app only..
 so just want to know that if its allowing through bulit in then why
 its not allowing from my app ?? and want to know what are the measures
 that it will take that perticular API call is from built in or third
 party APP...
 and please let me know if there is any alternative to achieve this
 form third party application.

They almost certainly added that permission and made it non-
requestable because
they don't want apps doing the things it protects.

I personally wish they'd use a dynamic user whitelist for such things
(GPS control, take call etc)
rather than barring every non-system app and driving people to
modified ROMs.

Pent

-- 
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] Override the Status bar

2011-03-15 Thread Rahul Garg
Hi,
Can I override the Status bar ? if yes then how ??

-- 
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: ANN: Mock Objects on Android with Borachio

2011-03-15 Thread Paul Butcher
On 15 Mar 2011, at 02:15, A. Elk wrote:
 Good work. I have a couple of comments:

Glad you like it :-)

 If you have POJOs in your code, you can test them with JUnit using a
 standard mocking framework of your choice. The only limitations on
 mocking are imposed by the Android system.

That's true, of course. In our particular case, however, all of our 
non-Android-specific code is C++, so we have no Java code that doesn't talk to 
Android APIs.

Our C++ code has extensive fully-automated unit and functional tests. We've 
found achieving the same level of test coverage for our Java code to be 
*extremely* difficult. Hopefully the techniques outlined on my blog will remedy 
that somewhat.

 Without getting into too much detail, most of the objects in the
 Android API can't be mocked. This is known. It's not meant to be test-
 hostile, and it's not accidental. I always think that to get anything
 useful in a finite amount of time, one has to make tradeoffs.

That's clearly true, and I'm sure that the Android developers weren't 
deliberately trying to make Android test-hostile. Even if it *feels* like it 
sometimes :-)

 I think the key thing is that you've produced something useful for
 Android developers.

I hope so! I'd be very interested to hear your, and others, feedback if/when 
you've had a chance to play with Borachio. It's still very young and I'm sure 
that there is much that could be improved. 

--
paul.butcher-msgCount++

Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?

http://www.paulbutcher.com/
LinkedIn: http://www.linkedin.com/in/paulbutcher
MSN: p...@paulbutcher.com
AIM: paulrabutcher
Skype: paulrabutcher

-- 
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: GLES20 background bitmap on just 2 triangles kills 35 fps

2011-03-15 Thread Alex Rempel
 have you tried the draw texture extension?

You mean GL_OES_draw_texture? I thought about trying this, but I'm not
sure if this is compatible with GLES20 exclusive context. I don't have
a 'gl' instance anywhere in my program because I try to remain GLES20
only.

-- 
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] About Android Application Development

2011-03-15 Thread kajal patil
Hi All,
 I developed an android application but i want it more user friendly
means in my application one field is skill.And when i focus on edittext
field of skill then it will show pictures along with its name below of
picture,like for all skills carpenter,cook,driver etc.How to do that in my
application?
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

Re: [android-developers] Override the Status bar

2011-03-15 Thread Mark Murphy
On Tue, Mar 15, 2011 at 6:48 AM, Rahul Garg rahul.lnm...@gmail.com wrote:
 Can I override the Status bar ? if yes then how ??

You can suppress the status bar in your own applications for Android
1.x and 2.x with a Fullscreen theme. You cannot override the Status
bar for the entire system, or for Android 3.0, except via custom
firmware.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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: GLES20 background bitmap on just 2 triangles kills 35 fps

2011-03-15 Thread Soumen Debnath
Hey any one knows how to implement vertical scroll Cover Flow for android in
android . I have a code for Horizontal scroll Cover Flow . But I am not able
fix it for vertical. The Horizontal scroll is :
http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html
Please help me

On Tue, Mar 15, 2011 at 5:12 PM, Alex Rempel
alexey.rem...@googlemail.comwrote:

  have you tried the draw texture extension?

 You mean GL_OES_draw_texture? I thought about trying this, but I'm not
 sure if this is compatible with GLES20 exclusive context. I don't have
 a 'gl' instance anywhere in my program because I try to remain GLES20
 only.

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




-- 
*Thanks  Regards,
Soumen Debnath.
Master of Technology (By Research), B.Tech In Computer Science
Bangalore,India.
Voice: +91 9620002132*

-- 
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 declare Button as global object????

2011-03-15 Thread Mark Murphy
On Tue, Mar 15, 2011 at 5:53 AM, Ponraj Android Developer
sanraj...@gmail.com wrote:
 I am creating buttons dynamically. I am not able to access those buttons
 outside the methods.
 I am not familiar with java programming.

Then you should learn Java outside of Android first. There are
innumerable Java programming resources, including tons of free
material online. Spend a month getting comfortable with the language,
*then* dive into Android.

Here is a blog post where I list the key pieces of Java that an
Android developer needs, including links to relevant portions of the
Java programming Wikibook:

http://commonsware.com/blog/2010/08/02/java-good-parts-version.html

 Should I declare the  Buttons globally

No.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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] About Android Application Development

2011-03-15 Thread kajal patil
Hi All,
   I developed an android application.But I want my application more user
friendly means skill is one field in my application but i want it like when
i focus on its edittext box then it will show picture along with its name
below for all skills like chef,carpenter,driver etc.But i didn't get that
how to do it?
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

Re: [android-developers] ActionBar.setCustomView doesn't seem to work

2011-03-15 Thread Mark Murphy
Well, I haven't played with action bar tabs yet, but here are two
sample projects that use custom views in the action bar:

https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBar
https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC

The second one is a bit more complicated but is backwards-compatible
to non-Honeycomb versions of Android.

On Mon, Mar 14, 2011 at 9:45 PM, Tom thomas.j.benn...@gmail.com wrote:
 I'm attempting to use the 'setCustomView' method of the ActionBar, but
 am unable to load my (very basic) layout. I took a look at the
 Honeycomb-Gallery sample, which also references
 ActionBar.setCustomView. After removing the code which adds the tabs
 to the ActionBar and failing to see the Hello Action Bar text from
 that layout file, I'm unconvinced the sample is correct. Is there
 anything I might be missing here?

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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] finishActivity() does not stop child activity

2011-03-15 Thread Mark Murphy
On Mon, Mar 14, 2011 at 1:41 PM, Rams rdoml...@gmail.com wrote:
 OK, so I have a Service which I want to be able to start (3rd party)
 Activities and stop them as necessary.

If this is not impossible, it is a security hole.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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] Read/Write Text File to shared folder on Windows computer on LAN

2011-03-15 Thread Mark Murphy
On Tue, Mar 15, 2011 at 1:19 AM, jaegermeister jaeger@gmail.com wrote:
 I am trying to develop an application that writes several lines of
 text to a text file that is located on a windows computer on the same
 LAN that the Android device will reside.

 I downloaded ES File Explorer and can see the text file on the Windows
 computer on the LAN that I want to read/write to but I do not know
 what path to tell the Android app to write the text file to so that it
 shows up on this Windows PC?

There is no path.

 If there is a better way to do this than using ES File Explorer, I am
 open to trying that as well.  I have hit a brick wall and really need
 some help on how to do this.

First, you write a server that runs on the Windows PC. A Web server
with a REST Web service API would seem likely.

Second, you have the Android application use that REST Web service to
do whatever it is you were seeking.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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 declare Button as global object????

2011-03-15 Thread DanH
 I am not familiar with java programming.

http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html

Enjoy!

On Mar 15, 4:53 am, Ponraj \Android Developer\
sanraj...@gmail.com wrote:
 Hi All.
 I am creating buttons dynamically. I am not able to access those buttons
 outside the methods.
 I am not familiar with java programming. I am new to android. Give solution
 for my problem.
 Should I declare the  Buttons globallyIf yes means, How should I?
 help me out
 --
 with thanks and regards,
 P.Ponraj

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