Re: [android-developers] Re: APK signing and certificate for production device

2011-09-01 Thread Pratik Prajapati
Hi Narayanan,

Thank you for you inputs. Any idea for,  differece between certificate and
key?

*
*
On Wed, Aug 31, 2011 at 10:50 PM, C++ Narayanan wrote:

> Pratik,
> well signing your application is only for the purpose of security
> while uploading it on android market!
>  once you have genrate ur "private keystore" , u have to signed ur
> application with that "private keystore" to publish it on android
> market
>  once publish that apk and later if u redesigned or made change in
> your app source code and want replace the app in the market u have to
> use the same "private keystore" without that same keystore u cannt
> change or modify the application thats the only purpose of it! as far
> as i know
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Kind Regards,
Pratik Prajapati

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

2011-09-01 Thread bhaskar ettem
dude ,put your apk file in mobile ,,, when ur mobile location gets changed
then "onlocationchanged will be called",,,(in emulator it wont call.)

On Sun, Aug 28, 2011 at 2:08 PM, Bipin Sutariya wrote:

> OK one change Toast.makeText requires show() method to show toast. I
> added it and still onLocationChange not called.
>
> On Aug 28, 1:32 pm, Bipin Sutariya  wrote:
> > Hi,
> >
> > I am trying to develop application in which i need current lat/lang.
> > However onLocationChange method never get called.
> >
> > Following is my code, and note that i have given all required
> > permission like android.permission.ACCESS_COARSE_LOCATION,
> > android.permission.ACCESS_FINE_LOCATION, android.permission.INTERNET
> > in manifest file. I can see gps icon on status bar that keep blinking
> > to find location, but never get success.
> >
> > Can any one please help me on this.
> >
> > public class LocationServiceActivity extends Activity implements
> > LocationListener{
> > /** Called when the activity is first created. */
> > @Override
> > public void onCreate(Bundle savedInstanceState) {
> > super.onCreate(savedInstanceState);
> > setContentView(R.layout.main);
> >
> > LocationManager lm =
> > (LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
> >
> > Boolean isGPSEnabled =
> > lm.isProviderEnabled(LocationManager.GPS_PROVIDER);
> > Boolean isNetworkEnabled =
> > lm.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
> >
> > if(isGPSEnabled)
> > {
> > lm.requestLocationUpdates(LocationManager.GPS_PROVIDER,
> 0, 0,
> > this);
> > }
> > else if(isNetworkEnabled)
> > {
> >
> lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
> > 0, 0, this);
> > }
> > else
> > {
> > Toast.makeText(this, "NO SERVICE ENABLED", 5000);
> > }
> >
> > }
> >
> > public void onLocationChanged(Location location) {
> > Toast.makeText(this, location.getLatitude()+"---
> >
> > >"+location.getLongitude(), 5000);
> >
> > }
> > public void onProviderDisabled(String provider) {
> > // TODO Auto-generated method stub
> >
> > }
> > public void onProviderEnabled(String provider) {
> > // TODO Auto-generated method stub
> >
> > }
> > public void onStatusChanged(String provider, int status, Bundle
> > extras) {
> > // TODO Auto-generated method stub
> >
> > }
> >
> >
> >
> >
> >
> >
> >
> > }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Can we create two ThreadPoolExecutor running on android?

2011-09-01 Thread Ed Harned
Take a look at this article and the open source project it mentions.

http://coopsoft.com/ar/AndroidArticle.html

You can create the Tymeac service with thread pools and do anything
you want

Ed

On Aug 30, 12:30 pm, usher  wrote:
> AsyncTask is managing a thread pool with 5 core thread. Once we start
> to use AsyncTask, it will start to set up this thread pool on android
> phone.
>
> The reason I don't want to AsyncTask is because I am going to create a
> service, and start threads from service, which means there is not much
> UI updates from task. However, asynctask has to been created and
> execute on UI thread.
>
> So I am going to create another different thread pool which will be
> used to manage this kind of threads. What I am worrying about is that
> if I create another thread pool with 5 core threads, would that be too
> much threads(10 core threads) running on the android? will that slow
> it down and cause bad performance?
>
> 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] Failed to initialize Monitor Thread: Unable to establish loopback connection

2011-09-01 Thread Poul Kristensen
Hi

I keep getting this errormessage: "Failed to initialize Monitor
Thread: Unable to establish loopback connection" when I open a project
in Eclipse.

I tried to kill and start the server but I still get this message.
Also happens when I switch my firewall off.

So I'm completely stuck here - any ideas anyone?

Best regards

Poul Kristensen

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

2011-09-01 Thread Phan Dinh Thuy
Hi !!!
I am newbie in Android. I want to join this group because i want
developer software when this school teaching developer game.
Thanks 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] Phone gets rebooted while applicatin is been used.

2011-09-01 Thread karthikcr
I have developed an application which can record video, voice or
image, upload files to sever, the upload process works in background.
My application uses service to upload all the files, activity for view
related things, and LBS to get location. I noticed that if the
application is used for some time, the phone gets rebooted 2-3 times a
day. The phone which i am using is Samsung GT-I5503. I checked the
logs after reboot using adb bugreport, nothing i could figure out,
also there is no error in kernal panic log. Can you suggest me how to
resolve this issue.
I am pasting the bug report below.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] flv/mp4 to fmp3 Converting

2011-09-01 Thread andr
Hello! I must convert .flv or .mp4 file to .mp3 file on Android. I
find information about compilation ffmpeg library for Android and I
have done that, but I don't know how to create code on C for my
converting or other way for my task. Please, give me an example or
something. I'm upset, help me please. Thank you, anyway.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] GridView setColumnWidth in dp?

2011-09-01 Thread Rick
I have a GridView which, depending on the situation, may have 3 or 4
columns.  The column widths need to change depending on whether 3 or 4
are being displayed.  I therefore can't hardcode the width into the
layout XML containing the GridView, it must be set via the
setColumnWidth command.

The problem is that setColumnWidth can only set the width in pixels,
and I want to specify the width in dp.  How can I do this, or must I
create 2 layouts with the column width hardcoded into each in dp?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 2.2 can only support 2 concurrent bluetooth connections?

2011-09-01 Thread novakom
I am developing an app which will have multiple phones communicating
together concurrently via bluetooth.  To this end, I extended the
BluetoothChat example to support multiple simultaneous connections.
Once I got it working with 3 phones, I ramped up to 4 but have
discovered that it appears that phones running Android 2.2 can only
support 2 simultaneous bluetooth connections, while phones running
2.3.4 can support 3 (at least, if not more).  Can anyone confirm this
as a known bug for 2.2?  It would be good to know if this is just a
hard limitation.

Phones I am testing with:
HTC Incredible (2.2)
Nexus S (2.3.4)
Nexus 1 (2.3.4)
Nexus 1 (2.3.4)

Here's how I determined that there is this hard limit:

My code extends the BluetoothChat sample program, as I said.
Unfortunately I cannot share it right now (company legal limitations)
but it's basically the same as the original except that all threads
are not killed when new connections are made, all ConnectThread and
ConnectedThread objects are stored in an array, and I kick off a new
AcceptThread whenever an incoming connection is turned into a
ConnectedThread.

After instrumenting my code with lots of debug, what I've found is
that once my 2.2 device (the incredible) has established 2
connections, it will literally hang at either the accept() in the
AcceptThread or at the connect() in the ConnectThread.  This is true
with whichever order of connections are made.  For example, if I do
the following:
1. Incredible > NS
2. Incredible > N1 (1)
3. Incredible > N1 (2)
or
1. Incredible > N1 (1)
2. Incredible > N1 (2)
3. Incredible > NS
or
1. Incredible > N1 (either)
2. Incredible > NS
3. Incredible > N1 (either)
or
1. NS > Incredible
2. N1 (either) > Incredible
3. N1 (either) > Incredible

In all cases, the Incredible will Always hang on step 3, whether it's
on the connect() in the first 3 cases, or the accept() in the last
case. Debug shows that it hangs specifically on those calls (not the
RFComm socket creation calls or anything else).  Now, there are other
potential connection orders but these are the basic ones that need to
work, so I'm not worried about interleaving connects and accepts right
now.

The other interesting thing is that I instrumented an end program
method from the menu which calls cancel on all open threads.
According to the SDK, when you call close() on an open hanging socket,
it is supposed to throw an error.  Well, if the app has already hung
on either accept() or connect() in any of the scenarios above, then
the close() call hangs as well and I have to forceclose the program.

Other info:
- Using another N1 running 2.3.4, I found that I didn't have any
trouble connecting all 4 phones as long as the incredible wasn't in
the mix.
- Also, when a phone running 2.3.4 with 2 active connections tries to
connect to the incredible while the incredible has 2 other active
connections, the phone running 2.3.4 fails to connect and does not
hang, while attempting the connection in reverse has the (now)
expected hang.
- Also tried to connect 4 phones with a Samsung Infuse (2.2) and
another N1 running 2.2.  Both cases had similar hangs (cannot
exhaustively check this thanks to limited access to the devices).
- When trying to establish a 3rd connection with a device which is not
there (turned off the bluetooth on one of the N1s), the connect() call
does NOT hang.  However, if I then turn on BT on the 3rd phone and try
to reconnect, it's back to hanging at connect().  Therefore there
definitely appears to be some kind of connection management problem
when running 2.2.
- If I make 2 connections on the incredible, then close one, I can
open another.  All closing/opening works fine as long as I'm only
trying to manage 2 connections.

Anyways, as I said, if anyone can confirm that I simply cannot use my
2.2. device for testing more than 2 concurrent connections, that would
be very helpful.

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


[android-developers] Re: UI design pattern

2011-09-01 Thread David
Hi,

kinda weird... my reply didn't show up. Anyway: second try :)
I found these a while ago:

http://www.androiduipatterns.com/

And I forgot this one on my first reply:
http://www.androidpatterns.com/

Hope this helps.

Regards,
David

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

[android-developers] Re: UI design pattern

2011-09-01 Thread David
Hi,

I was looking for the same, and I found this Blog:

http://www.androiduipatterns.com/

Best regards,
David

I hope

On 31 Aug., 20:30, "Igor Nesralla Ribeiro"  wrote:
> Hi,
>
> I'm looking for something article or any information about best way to
> implement UI design pattern for login screens on tablets(honeycomb) !!
>
> Thanks in advance !
>
> Igor Nesralla Ribeiro

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 link multiple HTML pages in assets folder ?

2011-09-01 Thread Harshani
I am new to Android.

I want to display HTML pages in android emulator. I put my
"test1.html" and "test2.html" files in the "assets" folder and managed
to display "test1.html" file in Android by using the following code.

package com.example.helloandroid;

import java.io.IOException;
import java.io.InputStream;

import android.app.Activity;
import android.os.Bundle;

public class Test extends Activity {


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WebView webview = new WebView(this);
setContentView(webview);

try {

InputStream fin = getAssets().open("test1.html");
byte[] buffer = new byte[fin.available()];
fin.read(buffer);
fin.close();
webview.loadData(new String(buffer), "text/html",
"UTF-8");


} catch (IOException e) {
e.printStackTrace();
}
}
}
Now I want to click a button or a link in the "test1.html" file and
open the "test2.html" file.How can I link those two HTML pages?

Thanks in advance.

Regards,

Harshani

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

2011-09-01 Thread Ivan Fajardo
Hi,
i have been working in a app that allow comunicate with a open
accesory dev kit, and i have a big throuble, when ended the USB
comunication I cant start new one until the readthread die. then when
the ativity is pasused or throw new activity i cant comunicate with an
accessory.

i close the parcelFileDescriptor, inputStream and outputStream in the
onPause method and try to open again in the onResume method unless
that the readthread dies. i used a flat to stop the thread. some thing
like this

public void run() {
// TODO Auto-generated method stub
byte[] buffer = new byte[1024];  // buffer para leer el
stream
int bytes; // numero de bytes retornado de read()
while(continueRunning) {
try {

bytes = inputStream.read(buffer);

byte[] data = new byte[bytes];
System.arraycopy(buffer, 0, data, 0, bytes);

synchronized(readData) {
readData.add(data);
}

handler.obtainMessage(what, bytes, -1, new
USBMensaje(USBMensaje.MessageType.READ,
data)).sendToTarget();
} catch (IOException e) {
//Exiting read thread
break;
}

}

but the thread not always dies, and i dont have control when the app
could connect

Hope anybody could help me to fix this issue.

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


[android-developers] Re: application should not exists

2011-09-01 Thread James
Then things will be clear if you run log cat, There must be some
exceptions uncaught in your code :-)

 On Aug 31, 2:12 pm, mohana priya  wrote:
> Thanks for your reply but am getting error as force close.
>
> On Aug 30, 12:49 pm, James <030440...@163.com> wrote:
>
>
>
>
>
>
>
> > It's just paused, not closed. When the call finishes and you come
> > back. Camera would resume.
> > This is the android way of multi-task.
>
> > On Aug 29, 9:15 pm, mohanapriya  wrote:
>
> > > Am in a camera and if any interruption occurs or if i need to attend
> > > the calls the application gets close.But for me the application should
> > > not get closed.Any one give some suggestions for this problem .I need
> > > the coding.

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

2011-09-01 Thread Avinash Chandra
Hi,

I like to know how to make a PDF Editor on Android.

I used PDFBox, iText, PDFRenderer and some other such PDF Library.

I found all of these use some core java dependencies which are not
supported in Android like java.awt and javax packages.

Kindly let me know if there is anyway to convert PDF(Text and images)
to JPG after that I can easily edit if it is in image format.

PS: in it's desktop version I used imagemagick but neither Ghostscript
nor imagemagick can be installed over Android to convert PDF to JPG
format for further processing.

Regards

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Verify EditText input when inputType = number?

2011-09-01 Thread Conrad
Hello,

It appears that specifying an EditText view in my XML layout file with
attribute

android:inputType="number"

will limit input to characters that make up an actual number. Is this
necessarily true, or do I really need to do a test in code to confirm
it is to avoid a possible NumberFormatException or something similar?
Thanks for any assistance 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] Equivalent to " !kbhit() in c " method in Android

2011-09-01 Thread ursNARESH
I am new to Android.

I am planing to write code for typing tutor game application.
In that i need to scroll down letters from top to bottom until user
enters a key.


I can write the same in c like

while(!kbhit())
{

   print("c");
}

but i don't know how to convert the same into Android.

I tried something like this but its not working

while(TRUE){
canvas.drawText("naresh", 30, i, p);++i;
   try {
Thread.sleep(5000);
 }
  catch (InterruptedException e) {
e.printStackTrace();

 }i++;
}

can u help me

Thanks in advance...

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


[android-developers] Google Removing Search Apps From Market?

2011-09-01 Thread GoogleIsEvil
My search app that allows users to search through mature sites has
been removed from the market.

The app is powered by Google Search and shows similar results to what
Google search 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


[android-developers] Re: an error with android application--internal error logged from JDI Debug

2011-09-01 Thread James
your eclipse's crashing, I have encountered similar errors before. Try
your code in another computer and see if error still exist.

On Aug 31, 5:09 pm, 诗阳 刘  wrote:
> I am recently programming and when I debug my program, I got this
> error. I don't have any idea about what's why. Can anyone help me?
> Thanks a lot. Here is the log error information:
>
> eclipse.buildId=M20110210-1200
> java.version=1.6.0_26
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
> Framework arguments:  -product org.eclipse.epp.package.java.product
> Command-line arguments:  -os win32 -ws win32 -arch x86 -product
> org.eclipse.epp.package.java.product
>
> Error
> Wed Aug 31 16:49:16 CST 2011
> Internal error logged from JDI Debug:
>
> org.eclipse.debug.core.DebugException: Invalid stack frame
>         at
> org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingStackF 
> rame(JDIStackFrame.java:
> 1010)
>         at
> org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingThisOb 
> ject(JDIStackFrame.java:
> 700)
>         at
> org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getThis(JDIStackFra 
> me.java:
> 1058)
>         at
> org.eclipse.jdt.internal.debug.ui.JavaDebugHover.getHoverInfo2(JavaDebugHov 
> er.java:
> 362)
>         at
> org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(Be 
> stMatchHover.java:
> 141)
>         at
> org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHov 
> erInfo2(JavaEditorTextHoverProxy.java:
> 82)
>         at org.eclipse.jface.text.TextViewerHoverManager
> $4.run(TextViewerHoverManager.java:166)
>
> Also, I would like to paste my program. Please let me know if you find
> any bug about it. Thanks a log.It is the function below where the
> project broke down:
>         public boolean smooth(){
>                 int x,y,i,j;
>                 int r=1,d=1;
>                 int sum,num;
>                        int temp=0;
>
>                 for(y = 0; y < this.Imgh; y++)
>                 {
>                    for(x = 0; x < this.Imgw; x++)
>                       {
>                         sum = 0;
>                         num = 0;
>                         for(i = -r; i <= r; i++)
>                         {
>                                 if((i+y<0) || (i+y>=this.Imgh))
>                                 continue;
>                                    for(j = -r; j <= r; j++)
>                           {
>                                 if((j+x<0 )|| (j+x>=this.Imgw))
>                                 continue;
>
>                                 temp=(y+i)*this.Imgw+x+j;
>                                 if((temp>=0)&&(temp                                          sum += this.g_OrgFinger[temp];
>                                          num++;
>                                         }
>                                 else{
>                                 Log.e("myerror","matrix overload");
>                          }
>                              }
>                 }
>                 this.g_Temp[y*this.Imgw+x] = (byte)(sum/num);
>                 }
>
>                 }
>                         return true;
>         }

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

[android-developers] Re: SDK Tools r12 causing aapt to fail

2011-09-01 Thread yellowjacket
Did I miss something?  If the styles in question are private, and I
make a copy, and they change in the future, have I not lost the point
of extension?

Say I wish to extend android:WindowTitle.
>From the source @
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/values/styles.xml;h=d7b654e49809cb97a35682754b1394af5c8bc88b;hb=HEAD

it has four properties.  I want the default platform look & feel, but
wish to tweak say the shadowColor, but wish to retain the other
property settings from the default.
>From what I understand, currently, I need to make a copy from Android
source, and embed that in my application.  When another aapt is
released and the property shadowRadius is changed, for example, how do
I "inherit" that?  With this current solution I believe I have to
detect these changes manually, and then update all the copies of any
private styles I copied.  I just want to extend what is the default,
tweak some one property, and then remain in sync with the default,
regardless of what other property values change or are added.

On Jul 28, 3:48 pm, Xavier Ducrohet  wrote:
> hello everyone,
>
> I just commented on the bug but I'll copy-paste it here too.
>
> Short version: this is working as intended (and has it should always have 
> been).
>
> What is happening is that some styles, like WindowTitle are not public
> (you won't find them in android.R.style). You should not be extending
> non public resources. aapt used to let you do that but it was a bug
> which was fixed in platform-tools r6.
>
> The issue is that once compiled, resources are assigned an integer. In
> this case your custom style is assigned an integer and its parent is
> referenced through the parent integer.
>
> For the framework, only public resources are guaranteed to only have
> the same integer, build after build. The integer of private resources
> integer will change from build to build.
>
> This means that your custom style is referencing a parent that *will
> not* be valid once installed on a device. It'll referenced either
> another resources or none at all, and it won't do what you want.
>
> If you wish to reuse a style that is private, you should copy the
> content of that style into your own instead of extending it.
>
> Reverting to an older aapt that lets you do this is basically similar
> to using a private Java API.
>
> Our stance on this has been clear since 1.0: Don't do it. It may be
> convenient for a bit, but it'll break on devices, all of them in this
> case too, and it's not good for anyone.
>
> xav
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.http://developer.android.com|http://tools.android.com
>
> Please do not send me questions directly. 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] Emulator web access behind proxy using HttpURLConnection()

2011-09-01 Thread Miles
Hi,

I'm behind a proxy and have set-up the correct proxy settings in the
emulator.  I am therefore able to browse the net using the emulator
browser.  But in my app when using  HttpURLConnection to open an input
stream to any website I get a connection timeout.  This only happens
in the emulator, running the app on the device works fine.

My question is if the HttpURLConnection uses the same proxy settings
as set on the emulator.  Or does it access the net some other way? As
such it might be blocked by our firewall.

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: Android installer strange issue

2011-09-01 Thread kaka050099
خ
Sent from my BlackBerry® wireless device from STC

-Original Message-
From: rich friedel 
Sender: android-developers@googlegroups.com
Date: Wed, 31 Aug 2011 21:56:43 
To: 
Reply-To: android-developers@googlegroups.com
Subject: [android-developers] Re: Android installer strange issue

It is per design. You should call finish() on your activity in your 
onDestroy() method.

Again, I highly recommend you familiarize yourself with the Activity class 
and its lifecycle. 
http://developer.android.com/reference/android/app/Activity.html

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] GPS not work( GpsLocationProvider: native_start failed in startNavigating )

2011-09-01 Thread jabachan
はじめまして。

以下のコードでGPSとNETWORKの位置情報を取得しているのですが問題があります。

locationMgr =
(LocationManager)context.getSystemService( Context.LOCATION_SERVICE );

LocationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER,
0, 0, listener, Looper.getMainLooper() );
LocationManager.requestLocationUpdates( LocationManager.NETWORK_PROVIDER,
0, 0, listener, Looper.getMainLooper() );

しかし、突然位置情報が取れなくなり、次のエラーがLogCatに発生してしまいます。

GpsLocationProvider: native_start failed in startNavigating()

色々試しているのですが、発生しない端末もあったりと全く原因が掴めないでいます…

今の所、原因として疑っているは次の2点くらいなのですが…
・同じLocationManagerのインスタンスに別々のプロバイダーリスナを登録している。
・minTimeに0を入れている(但し、これをしないと動かない端末がある為)。

もし知っている方がいましたら教えて頂けないでしょうか?

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


[android-developers] Can't delete Laucher2.apk

2011-09-01 Thread turkey zhu
I am repo Androd 2.3.3_r1 (Gingerbread) on ubuntu, and I build up
my own android platform on iMX53 development board, and for a test, i
replace initlogo, I want to replace HOME Laucher2.apk,and on windows
emulator,I did the following things, use ADB tools,
Android2.3 API lever10,I can not delete Laucher2.apk on emulator

adb remount
adb shell
rm Launcher2.apk
error: rm failed for  Launcher2.apk,Directory not empty

but in version 2.2(Froyo) and 1.6 (Donut), I can rm Launcher2.apk
sucessfully.

anyone can help me , why?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Device differences in responding to monkeyrunner touch

2011-09-01 Thread Bourne Hacker
Samsung Gem allows monkeyrunner to touch() its home screen, but
Motorola Droid 2 does not. Droid 2 DOES allow touch()es within at
least certain apps (such as Minesweeper). I'm guessing this is not a
bug but the manufacturer's decision.

Have others seen this discrepancy?
Can anyone explain what's happening at a deeper level?

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] Charles Hudson's 6 Android Development Challenges (and how to tackle them)

2011-09-01 Thread Tyler York
Hey all,

I was at the Android-i-fied event at Google SF last night, and heard
Charles Hudson speak about the 6 Big Development Challenges for
Android developers, and his suggestions on how to fix them. I thought
it was a pretty good talk and wanted to share some key points with the
Android community. We wrote up a quick blog post covering Charles
Hudson's tips for dealing with:
1. Fragmentation
2. Development & Testing
3. Metrics
4. Platform Wars
5. Distribution & Discovery
6. Monetization

For more on what Charles' spoke about at the event, check out our blog
post at http://blog.betable.com/charles-hudsons-six-android-challenges-and-ho

Feedback and suggestions are welcome. 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] GPS doesn't work.

2011-09-01 Thread jabachan
I am acquiring the location information of GPS and NETWORK in the
following codes.

 locationMgr =
(LocationManager)context.getSystemService( Context.LOCATION_SERVICE );
 LocationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER,
0, 0, listener, Looper.getMainLooper() );
 
LocationManager.requestLocationUpdates( LocationManager.NETWORK_PROVIDER,
0, 0, listener, Looper.getMainLooper() );

However, it becomes impossible to take the location information
suddenly and the following error occurs in LogCat.

 GpsLocationProvider: native_start failed in startNavigating()

I cannot grip the cause now at all.
[Cause?]
 1) A separate provider listener is registered in the instance of same
LocationManager.
 2) "0" is set to "minTime".

Please help.

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


Re: [android-developers] Creating a Widget without extendig AppWidgetProvider

2011-09-01 Thread Silvio Gustavo
I'm with the same problem.
I'm developing a widget for Android 3.1 and I would like to know the actual
size and based on this information, change the xml layout of my widget.
Also, I would like to control the minimum and maximum size of the widget.

On Tue, Aug 30, 2011 at 7:40 PM, Dianne Hackborn wrote:

> You should not.  AppWidgetProvider also already lets you handle resizing as
> much as is possible.  Your widget does not run code in the host process, so
> you must handle everything through the features available through views you
> can put in RemoteViews.
>
>
> On Tue, Aug 30, 2011 at 1:35 PM, Carlos Junior  > wrote:
>
>> Hello, is it possible to create a custom Widget without extending
>> AppWidgetProvider?
>> I wish to handle resizing events in my widgets because I need to
>> control max and minimum resize.
>>
>> Best regards,
>> Carlos
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>



-- 
Silvio Gustavo de Oliveira Santos
Engenheiro de Software

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] NullPointer Exception creating MediaPlayer

2011-09-01 Thread Andrea Stagi
Hi all,

I'm trying to stream from an url using this code

MediaPlayer mediaPlayer =
MediaPlayer.create(getApplicationContext(), Uri.parse("http://
voxsc1.somafm.com:8880"));
mediaPlayer.start();

This code works on emulator, on my htc wildfire with 2.3, on another
wildfire with 2.2 and other devices, but I get a NullPointer Exception
with an LG and a GalaxyTab running 2.2 ... Tried other solutions,
using prepared listener too, but nothing changes ... Why this??

Thank you in advance,

=.4.S.=

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


[android-developers] Can't activate breakpoint in Eclipse under Windows (Video)

2011-09-01 Thread vitagoni
I'm new in Eclipse and Android but not in Programming, particulary in
C# under VS.
Now 'm trying to play with Android under Win XP debugging environment.
Can't get vreakpoint workable.

Please, see the video: http://www.youtube.com/embed/WyRyVrrmXAE?hl=ru&fs=1
The breakpoint is crosslined and doesn't work in debug perspective.

Need ya help, nearly suicided :)

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] Problem developing eclipse plugin

2011-09-01 Thread David Ribeiro
Hi,

I am developing an eclipse plugin, and I am trying to use Android's
ddmlib, which is exported by the plugin:
com.android.ide.eclipse.ddms .

The problem is: I added that plugin to the dependencies in the
manifest, but when I try to use the classes contained in ddmlib jar,
they aren't accessible. Only com.android.ide.* ones are.

Can anyone help?
Why can't I access the plugin's exported packages?

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


[android-developers] Can't activate breakpoint in Eclipse under Windows (Video)

2011-09-01 Thread vitagoni
I'm new in Eclipse and Android but not in Programming, particulary in
C# under VS.
Now 'm trying to play with Android under Win XP debugging environment.
Can't get breakpoint workable.

Please, see the video: http://www.youtube.com/embed/WyRyVrrmXAE?hl=ru&fs=1
The breakpoint is crosslined and doesn't work in debug perspective.

Need ya help, nearly suicided :)

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] Android's InputMethodService - how to get unicode characters?

2011-09-01 Thread Rob
Hi guys,
I'm trying to develop a keyboard. This code nicely send letter "A" to
the application, as it is associated with the code "29", as from here
KeyEvent | Android Developers

Code:

int code = 29; // Key code constant: 'A' key. Constant Value: 29
(0x001d)
KeyEvent k = new KeyEvent(KeyEvent.ACTION_UP, code);

InputConnection ic = getCurrentInputConnection();
ic.sendKeyEvent(k);

But what should I do, if I want to use unicode characters, such as in
here
List of Unicode characters - Wikipedia, the free encyclopedia


Any ideas? Thanks! :)

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


[android-developers] Re: SDK Tools r12 causing aapt to fail

2011-09-01 Thread Raymond Chenon

On 28 juil, 15:48, Xavier Ducrohet  wrote:
>
> This means that your custom style is referencing a parent that *will
> not* be valid once installed on a device. It'll referenced either
> another resources or none at all, and it won't do what you want.
>
> If you wish to reuse a style that is private, you should copy the
> content of that style into your own instead of extending it.

So Xavier , where can we find the content of that "private" style ?

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

2011-09-01 Thread gnibrE
found some related issues :

http://code.google.com/p/android/issues/detail?id=8427

http://code.google.com/p/android/issues/detail?id=5669#c456

http://code.google.com/p/android/issues/detail?id=10127

if this bug still exists ,  what i can do to prevent this from
happening again?uninstall all the applications that reading this
db? :(

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Calendar Event Location not Syncing Properly from Cloud to Phone

2011-09-01 Thread mbob
I have a calendar event (in my case an whole-day-event) with a
location defined.
When I delete the location on the web (Google Calendar), i.e. setting
it to blank, this change does not sync to the Android phone (changing
to something non-blank does sync however).

Phone: HTC Desire with Gingerbread 2.3.3

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

2011-09-01 Thread Stefan S
And how should I do that?
I'm pretty new with java coding

On 31 Aug., 18:00, TreKing  wrote:
> On Wed, Aug 31, 2011 at 12:56 AM, Stefan S  wrote:
> > So han can I listen to the onTap Event in the MapActivity-Class?
>
> Create your own callback.
>
> ---­--
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: SE LiveView SDK Template app

2011-09-01 Thread Johan Abramsson
Basically, you can rename your classes and packages as you want to.
What you need to keep intact is the interface package, i.e.
com.sonyericsson.extras.liveview.IPluginServiceCallbackV1/
IPluginService

And you need to keep track of your naming of the intents in the
manifest and res/values/strings.xml.

Manifest: application->service->intent-filter->action->name needs to
correspond to res/values/strings.xml->intent_service
Manifest: application->application->intent-filter->action->name needs
to correspon to res/values/strings.xml->intent_preferences

Renaming the other packages and names also need to be defined
correctly in the manifest. Easiest way to get that right is to check
the current manifest setup of the template-project or the other
examples, and change the manifest accordingly. Some things will
hopefully be corrected for you by the built-in functionality of your
IDE, e.g. Eclipse.

Kind regards
  /Johan, Sony Ericsson Developer Support

On Aug 21, 11:09 pm, PeLa  wrote:
> Hi,
>
> I would like to develop apps that uses Sony Ericsson's LiveView
> device. I'm new to Android and Java, so my question my seem stupid. My
> experience is mainly C/C++ with Microsoft's MFC and Nokia's Qt, but
> Java seems to be not too far from C++. I managed to make some changes
> to the Sandbox example app which is included with the LiveView SDK,
> and it behave like I expected, so it seems like have understood at
> least a bit of LiveView, Android and Java. Now, here's my stupid
> question.
>
> In Eclipse, I import the template app included with the SDK, and call
> it something else. Now, what changes should I do to it in terms of
> names of files, names of packages, etc?
>
> Everywhere I saw the name Template, I changed it to my own app name,
> but that leaves a lot of package names beginning with
> com.sonyericsson... and ending with my app name. I guess I should
> change the beginning of some package names, but probably not all.
> Which ones should I change?
>
> It would have been nice if the template files had more detaild
> instruction comments, like
> // TODO: change the next next line to the format
> myTopDomain.myDomain.MyExtraHierachy.MyAppname
>
> I used appXplore to check other LiveView plugins from Market, just to
> see how others did. And it's a mix. Some have kept  com.sony.ericsson
> in the beginning of their package names, process names, and preference
> activities, and some have changed to their own. (I know that some of
> the LiveView plugins in Marked are developed by Sony Ericsson, so it's
> natural that they kept com.sonyericsson... but some non-sony-ericsson
> also kept it).
>
> So, it seems like I'm not the only one who need guidence.It would be
> nice if Sony Ericsson presented guidlines on how they expect people to
> do. If they don't, it would be nice if someone else wrote detailed
> instructions.
>
> Should the following keep their names (including com.sonyericsson...)
> myProjName/src/com.sonyericsson.extras.liveview
> myProjName/src/com.sonyericsson.extras.liveview.plugins
>
> Should I change the following:
> myProjName/src/com.sonyericsson.extras.liveview.plugins.template
> to for example
> myProjName/src/
> myTopDomain.myDomain.myAppName.liveview.plugins.myAppName
>
> I tried that,and updated the manifest etc, but I didn't get it to
> work. Should I have done something else?
>
> It would have been really nice for beginners like me with specific
> TODO: comments saying exactly what to do.
>
> Thanks in advance

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


[android-developers] Re: Calendar Event Location not Syncing Properly from Cloud to Phone

2011-09-01 Thread Zsolt Vasvari
How is this related to Android SDK development?

On Sep 1, 3:54 pm, mbob  wrote:
> I have a calendar event (in my case an whole-day-event) with a
> location defined.
> When I delete the location on the web (Google Calendar), i.e. setting
> it to blank, this change does not sync to the Android phone (changing
> to something non-blank does sync however).
>
> Phone: HTC Desire with Gingerbread 2.3.3

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

2011-09-01 Thread imran ali
I don't think so...
according to me, better to remove all images, then looks error,
and add one by one images according to error, that will remove all
unused images.

On Sep 1, 10:45 am, Akhilesh Mani  wrote:
> I am looking for an efficient way to find out if a resource (mostly a
> drawable) is used in java or in an XML file.The problem is, that on my
> current project the drawables are changed often and now I have some
> drawables, which might never be used.Is there a tool/way to find those
> unused drawables without search each filename in the whole project?
>
> Best Regards.
>
> Mani.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: i have problem about listview adding can any one help me?

2011-09-01 Thread Tawisak Ruksuwan
why i can not remove item on listview

final ListView viewInfo = (ListView)findViewById(R.id.listView1);
final SWFForeCastInfoLayoutAdapter adapter = new
SWFForeCastInfoLayoutAdapter(this, data,
data.getCurrentConditionData());
viewInfo.setAdapter(adapter);
adapter.notifyDataSetChanged();
viewInfo.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView a, View 
v, final int
position, long id) {
AlertDialog.Builder adb=new 
AlertDialog.Builder(SearchActivity.this);
adb.setTitle("Delete?");
adb.setMessage("Are you sure you want to delete 
" + position);
final int positionToRemove = position;
adb.setNegativeButton("Cancel", null);
adb.setPositiveButton("Ok", new 
AlertDialog.OnClickListener() {

@Override
public void 
onClick(DialogInterface dialog, int which) {
// TODO Auto-generated 
method stub

viewInfo.removeViewAt(positionToRemove);
adapter.notifyDataSetChanged();
}});
adb.show();
}
});

i see logcat . It say error at this  viewInfo.removeViewAt(positionToRemove);

How can i do
best regard;
jhew

2011/8/31, TreKing :
> On Wed, Aug 31, 2011 at 5:03 AM, Tawisak Ruksuwan <
> tawisak.ruksu...@gmail.com> wrote:
>
>> this page can run but i want call public class MyCustomAdapter
>> extends BaseAdapter for  show data from layout item
>> How can i do?
>>
>
> Your question makes little sense.
>
> -
> 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


[android-developers] I implement for delete row from listview but have force close

2011-09-01 Thread Jhew SAN
Logcat say error this line  viewInfo.removeViewAt(positionToRemove);

final ListView viewInfo = (ListView)findViewById(R.id.listView1); 
final SWFForeCastInfoLayoutAdapter adapter = new 
SWFForeCastInfoLayoutAdapter(this, data, data.getCurrentConditionData());
viewInfo.setAdapter(adapter);
adapter.notifyDataSetChanged();
viewInfo.setOnItemClickListener(new OnItemClickListener() {
 @Override
public void onItemClick(AdapterView a, View v, final int position, long 
id) {
AlertDialog.Builder adb=new 
AlertDialog.Builder(SearchActivity.this);
adb.setTitle("Delete?");
adb.setMessage("Are you sure you want to delete " + position);
final int positionToRemove = position;
adb.setNegativeButton("Cancel", null);
adb.setPositiveButton("Ok", new AlertDialog.OnClickListener() {

@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
viewInfo.removeViewAt(positionToRemove);
adapter.notifyDataSetChanged();
}});
adb.show();
}
});

any body help?

best regard;

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Alert input must show the keyboard.

2011-09-01 Thread sblantipodi
Hi all...

I have this code to show an alert input.
When a user click on some object I launch this alert input to let the
user to input some data.

To do it I use this code.

void alertInputStr(String title, String message, int
numeroCampoEditabile) {
AlertDialog.Builder alertI = new AlertDialog.Builder(this);
final int num = numeroCampoEditabile;
alertI.setTitle(title);
alertI.setMessage(message);
input = new EditText(this);
alertI.setView(input);
alertI.setPositiveButton("Ok", new
DialogInterface.OnClickListener() {

public void onClick(DialogInterface dialog, int
whichButton) {
Editable value = input.getText();
String valInput;
try {
valInput = value.toString();
} catch (Exception e) {
valInput = "";
}
switch (num) {
case 1:
Home.to = valInput;
instance.setContentView(new
SendMail(instance));
break;
}
}
});
alertI.setNegativeButton("Cancel", new
DialogInterface.OnClickListener() {

public void onClick(DialogInterface dialog, int
whichButton) {
}
});
alertI.show();
}



This code displays an alert with a textbox, user can tap on the
textbox to enter the desiderd value.
The problem is that in this way user needs to tap two times to enter
the text.
Is it possible to display the alert input with the keyboard opened,
without the needs to tap a second time to open the keyboard?

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: I implement for delete row from listview but have force close

2011-09-01 Thread skink


On Sep 1, 11:06 am, Jhew SAN  wrote:
> Logcat say error this line  viewInfo.removeViewAt(positionToRemove);
>
> final ListView viewInfo = (ListView)findViewById(R.id.listView1);
>         final SWFForeCastInfoLayoutAdapter adapter = new
> SWFForeCastInfoLayoutAdapter(this, data, data.getCurrentConditionData());
>         viewInfo.setAdapter(adapter);
>         adapter.notifyDataSetChanged();
>         viewInfo.setOnItemClickListener(new OnItemClickListener() {
>  @Override
> public void onItemClick(AdapterView a, View v, final int position, long
> id) {
>         AlertDialog.Builder adb=new
> AlertDialog.Builder(SearchActivity.this);
>         adb.setTitle("Delete?");
>         adb.setMessage("Are you sure you want to delete " + position);
>         final int positionToRemove = position;
>         adb.setNegativeButton("Cancel", null);
>         adb.setPositiveButton("Ok", new AlertDialog.OnClickListener() {
>
> @Override
> public void onClick(DialogInterface dialog, int which) {
> // TODO Auto-generated method stub
> viewInfo.removeViewAt(positionToRemove);
>                 adapter.notifyDataSetChanged();}});
>
>         adb.show();
>         }
>     });
>
> any body help?
>
> best regard;


change your adapter's data set and then notify data set changed

pskink

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

2011-09-01 Thread Dominik
I usually look at
http://www.nfcworld.com/nfc-phones-list/
to see which devices might have NFC inside.
Dominik

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I implement for delete row from listview but have force close

2011-09-01 Thread Jhew SAN
change from  viewInfo.removeViewAt(positionToRemove);  to what

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I implement for delete row from listview but have force close

2011-09-01 Thread skink


On Sep 1, 11:35 am, Jhew SAN  wrote:
> change from  viewInfo.removeViewAt(positionToRemove);  to what

What 'feeds' your list view? An adapter.

If adapter has 5 items then list view will show 5 items.

Then, now, if you want your list view to show 4 items you need to do
something so that your adapter has also 4 items.

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I implement for delete row from listview but have force close

2011-09-01 Thread Jhew SAN
i will send my full source to ur mail
what is ur 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] Graphics come out ugly on Nexus S after doing glRotate

2011-09-01 Thread Johannes Mario Ringheim
I am developing a 2D app in which I am using OpenGL ES to display the
graphics. It is done in the most basic manner, by having textured
quads and orthographic projection.

It has worked very well, until I received my new Nexus S phone. On
this device, but not on any other as far as I have seen, graphics
which are rotated with glRotate comes out ugly and aliased:

http://apploudable.com/tmp/device-nexus.png

On the emulator which runs the same screen resolution, in addition to
other phones I have been trying it on (Hero, Desire) the image looks
much better:

http://apploudable.com/tmp/device-emulator.png

Any ideas as to what can be causing this? Are there some hardware
issues on the Nexus S, perhaps, or is it something I am doing wrong?

I have tried to adjust glShadeModel and glHint with all available
options, but still with the same result.

Thanks for any input!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I implement for delete row from listview but have force close

2011-09-01 Thread Jhew SAN
i don't know. plz tell me

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I implement for delete row from listview but have force close

2011-09-01 Thread skink


On Sep 1, 11:48 am, Jhew SAN  wrote:
> i will send my full source to ur mail

thanks, but I dont need it. I already told you twice what you have to
do.

> what is ur 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] Re: I implement for delete row from listview but have force close

2011-09-01 Thread Jhew SAN
adap.remove();  don't have

have only  adapter.registerDataSetObserver();

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

2011-09-01 Thread Sudha
Then eventually the progam will crash

On Sep 1, 11:28 am, Sudha  wrote:
> What I understood from your reply is that
> if you press "OPEN" new instaces of teh appln willbe getting created
> and if you press "DONE" and then start the app from menu , the appln
> should resume ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Should i resize the bitmap before adding to a ImageView or let the ImageView resize the Bitmap?

2011-09-01 Thread Benjamin
Hello friends,

i have a simple question: Should i resize a bigger bitmap before
adding to a ImageView or let the ImageView resize the Bitmap?

What's the right way, regarding performance?

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: I implement for delete row from listview but have force close

2011-09-01 Thread Jhew SAN
how can i change that line?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I implement for delete row from listview but have force close

2011-09-01 Thread skink


Jhew SAN wrote:
> adap.remove();  don't have
>
> have only  adapter.registerDataSetObserver();

Ok, find ArrayAdapter.java and see add/remove methids

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Question about Relative Layout

2011-09-01 Thread Ash
Hello All,

I am trying to add a HorizontalScrollView to my layout with a left and right 
arrow image button on either side of the HorizontalScrollView. How can I 
specify the android:layout_xxx parameter so that I have the left arrow image 
button at the left, the right arrow image button at the right and the 
HorizontalScrollView in the middle of these image buttons.

I can achieve the above but only if I set the width of the 
HorizontalScrollView to be of fixed size. Can I achieve the above without 
having to specify width for the scroll view? 

If I set android:layout_centerInParent, then it will overlay on the 2 image 
buttons.
I want to avoid having to type width numbers and would prefer to use 
'wrap_content' or 'fill_parent'

Pls advice.

My XML code:














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

Re: [android-developers] Should i resize the bitmap before adding to a ImageView or let the ImageView resize the Bitmap?

2011-09-01 Thread Chirag Raval
Hello Benjamin

You have to resize the bitmap before set to image view if its size is
bigger, other wise sometime it gives memory out of exceed error.

On Thu, Sep 1, 2011 at 3:34 PM, Benjamin wrote:

> Hello friends,
>
> i have a simple question: Should i resize a bigger bitmap before
> adding to a ImageView or let the ImageView resize the Bitmap?
>
> What's the right way, regarding performance?
>
> 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

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

2011-09-01 Thread Chirag Raval
Hello to ereryone

I want to call Brodcast Receiver from my main activity when it satisfy the
particular condition. How can i achieve this ?

Please help to find this solution . Please give me proper example for that.

Example
---

if(condition)
{
Here i want to call broadcast receiver
}

Thanks in advance.

Regards,
Chirag Raval.

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

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 3:20 AM, Stefan S  wrote:

> And how should I do that?


Google "Java listener pattern" and see what you find. The platform itself
uses this pattern extensively so you've likely already seen it (ex:
ClickListener).

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Slow aapt generating R.java

2011-09-01 Thread b0b
I have  project made of several Library projects and aapt on each invocation 
will hang for 10 seconds. from the debug output:

... many new resource id lines (over 200) appearing in the same second
[2011-09-01 13:02:16 - ... ] (new resource id  from .xml)
[2011-09-01 13:02:25 - ... ] (new resource id  from .xml)
...  remaining new resource id lines appearing in the same second

As you can see aapt hangs for 10 seconds. Since it it is invoked multiple 
times, it takes nearly 1 minute to finish, each time a resource is modified.
This is unbearably slow. It always hang on the same resource as long as I 
don't add/remove resources.

this is the same problem as described in thi post:
http://markmail.org/message/f5ha5qobcxyldo5b

Although there's no replies.

Anyone knows what's going on ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: i have problem about listview adding can any one help me?

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 3:40 AM, Tawisak Ruksuwan  wrote:

> i see logcat . It say error at this
>  viewInfo.removeViewAt(positionToRemove)
>

What "error"?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Android autogenerated R file

2011-09-01 Thread LiTTle
Hi,

I found a way to call the variables from R file which are generated
automatically without using their names but through a for block. I
believe that the algorithm is something like that. I don't say that
this is the algorithm but I imagine it!

///
items = array of variables;
i=0;
for ( file: xml_files ){
  items[i] = read the first item from file;
  i++;
}

sort items;
for (item:items){
  write to R file the contents of xml file where the item variable
exists
}

/
And now a little (actually I mean a lot) of my code. 2 xml files are
following (zzzShops_18_29.xml,
zzzShops_18_28.xml).
  zzzShops_18_29.xml  /





Value_Name


Value_Street


Value_Tel


Value_Mob


Value_Fax


Value_Site


Value_Email


x,x


/
  zzzShops_18_28.xml  /





Value_Name


Value_Street


Value_Tel


Value_Mob


Value_Fax


Value_Site


Value_Email


x,x


//
The contents of the R file depending on the previous files are:
/
public static final int aaaShops_18_28_email=0x7f04018b;
/**  0
 */
public static final int aaaShops_18_28_fax=0x7f040189;
/**  0
 */
public static final int aaaShops_18_28_map=0x7f04018c;
/**  0
 */
public static final int aaaShops_18_28_mob=0x7f040188;
/**  ?-?? / ??
 Write the shops using alphabetical order to this array
 Change the value Shops_XX_XX_count @ GuideActivity if the string
arrays
here (and to every zzzShops_XX_XX.xml file) get
increased or
decreased.
 0
 */
public static final int aaaShops_18_28_name=0x7f040185;
/**  0
 */
public static final int aaaShops_18_28_site=0x7f04018a;
/**  0
 */
public static final int aaaShops_18_28_street=0x7f040186;
/**  0
 */
public static final int aaaShops_18_28_tel=0x7f040187;
/**  0
 */
public static final int aaaShops_18_29_email=0x7f040193;
/**  0
 */
public static final int aaaShops_18_29_fax=0x7f040191;
/**  0
 */
public static final int aaaShops_18_29_map=0x7f040194;
/**  0
 */
public static final int aaaShops_18_29_mob=0x7f040190;
/**  ?-?? / ???
 Write the shops using alphabetical order to this array
 Change the value Shops_XX_XX_count @ GuideActivity if the string
arrays
here (and to every zzzShops_XX_XX.xml file) get
increased or
decreased.
 0
 */
public static final int aaaShops_18_29_name=0x7f04018d;
/**  0
 */
public static final int aaaShops_18_29_site=0x7f040192;
/**  0
 */
public static final int aaaShops_18_29_street=0x7f04018e;
/**  0
 */
public static final int aaaShops_18_29_tel=0x7f04018f;
///
Take a look. There is an alphabetical order and the hex values have
specific values.
Actually if you see, you can do the following!
ΠΧ aaaShops_18_29_street=aaaShops_18_29_name+1

Is this right? Do you suggest to use it?

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


[android-developers] Card emulation in Nexus s without using Secure Element

2011-09-01 Thread sumit singhal
I am working in NFC trying to emulate a card using Nexus S in android
gingerbread. I've read that gingerbread does not provide the api to do
so and also the permissions in the kernel are hidden. There is a work
around present by tweaking with the source.
My question is - can I emulate the card by not using the secure
element? I mean is it possible to run an application which emulates an
ISO14443-B card, when the application is not stored in the secure
element? Is it possible to do this only with the help of PN544 chip
available in the nexus s?
Can I do something like providing the track data for card emulation on
the fly and not at all use the secure element anywhere?

Another thing I want to ask is - once I play around with the source,
even then is it possible to emulate ISO1443-B card. Because I've found
people emulated Mifare cards only.

thanks for any 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


Re: [android-developers] Verify EditText input when inputType = number?

2011-09-01 Thread TreKing
On Wed, Aug 31, 2011 at 4:20 PM, Conrad  wrote:

> Is this necessarily true, or do I really need to do a test in code to
> confirm it is to avoid a possible NumberFormatException or something
> similar?
>

Set it and test it.

-
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

Re: [android-developers] How to link multiple HTML pages in assets folder ?

2011-09-01 Thread TreKing
On Wed, Aug 31, 2011 at 2:03 PM, Harshani  wrote:

> How can I link those two HTML pages?


Did you try a basic relative anchor? (Click Me)

-
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

Re: [android-developers] Call BroadCast Receiver

2011-09-01 Thread MComputing Lab
You cant call a Broadcast Receiver from a class. Its called automatically
when it receives the matching Broadcast.

if you have written a piece of code inside an existing BroadcastReceiver,
then port it to a class and use this class in your BroadcastReceiver as well
as in your Activity.

Regards,
Santosh
MComputing Lab

On Thu, Sep 1, 2011 at 4:39 PM, Chirag Raval <
chirag.android.develo...@gmail.com> wrote:

> Hello to ereryone
>
> I want to call Brodcast Receiver from my main activity when it satisfy the
> particular condition. How can i achieve this ?
>
> Please help to find this solution . Please give me proper example for that.
>
> Example
> ---
>
> if(condition)
> {
> Here i want to call broadcast receiver
> }
>
> Thanks in advance.
>
> Regards,
> Chirag Raval.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Android autogenerated R file

2011-09-01 Thread Mark Murphy
On Thu, Sep 1, 2011 at 7:24 AM, LiTTle  wrote:
> Is this right?

For the next 30 seconds, perhaps.

> Do you suggest to use it?

Absolutely not.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] Alert input must show the keyboard.

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 4:09 AM, sblantipodi wrote:

> Is it possible to display the alert input with the keyboard opened, without
> the needs to tap a second time to open the keyboard?
>

Request focus on the EditText.
http://developer.android.com/reference/android/view/View.html#requestFocus()

-
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

Re: [android-developers] Question about Relative Layout

2011-09-01 Thread Mark Murphy
On Thu, Sep 1, 2011 at 6:57 AM, Ash  wrote:
> I am trying to add a HorizontalScrollView to my layout with a left and right
> arrow image button on either side of the HorizontalScrollView. How can I
> specify the android:layout_xxx parameter so that I have the left arrow image
> button at the left, the right arrow image button at the right and
> the HorizontalScrollView in the middle of these image buttons.

Use android:layout_alignParentRight and android:layout_alignParentLeft
for the buttons. Use android:layout_toLeftOf and
android:layout_toRightOf for the HorizontalScrollView, tying it to the
buttons.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] Problem developing eclipse plugin

2011-09-01 Thread Mark Murphy
This isn't really in the scope of this list. You might try the adt-dev
Google Group.

On Wed, Aug 31, 2011 at 5:16 AM, David Ribeiro  wrote:
> Hi,
>
> I am developing an eclipse plugin, and I am trying to use Android's
> ddmlib, which is exported by the plugin:
> com.android.ide.eclipse.ddms .
>
> The problem is: I added that plugin to the dependencies in the
> manifest, but when I try to use the classes contained in ddmlib jar,
> they aren't accessible. Only com.android.ide.* ones are.
>
> Can anyone help?
> Why can't I access the plugin's exported packages?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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


Re: [android-developers] Creating a Widget without extendig AppWidgetProvider

2011-09-01 Thread Mark Murphy
On Wed, Aug 31, 2011 at 8:26 AM, Silvio Gustavo  wrote:
> I'm with the same problem.
> I'm developing a widget for Android 3.1 and I would like to know the actual
> size and based on this information, change the xml layout of my widget.
> Also, I would like to control the minimum and maximum size of the widget.

None of that is presently possible, sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] Can't delete Laucher2.apk

2011-09-01 Thread Mark Murphy
Firmware questions belong on some other Google Group, probably one
linked to off of http://source.android.com. This group is for Android
SDK questions.

On Wed, Aug 31, 2011 at 6:02 AM, turkey zhu  wrote:
>    I am repo Androd 2.3.3_r1 (Gingerbread) on ubuntu, and I build up
> my own android platform on iMX53 development board, and for a test, i
> replace initlogo, I want to replace HOME Laucher2.apk,and on windows
> emulator,I did the following things, use ADB tools,
> Android2.3 API lever10,I can not delete Laucher2.apk on emulator
>
> adb remount
> adb shell
> rm Launcher2.apk
> error: rm failed for  Launcher2.apk,Directory not empty
>
> but in version 2.2(Froyo) and 1.6 (Donut), I can rm Launcher2.apk
> sucessfully.
>
> anyone can help me , why?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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


Re: [android-developers] Question about Relative Layout

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 5:57 AM, Ash  wrote:

> How can I specify the android:layout_xxx parameter so that I have the left
> arrow image button at the left, the right arrow image button at the right
> and the HorizontalScrollView in the middle of these image buttons.


I would try:

LinearLayout
+ Left Image (weight = 0)
+ HorizontalScrollView (weight = 1)
+ Right Image (weight = 0)

-
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

Re: [android-developers] Android autogenerated R file

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 6:24 AM, LiTTle  wrote:

> I found a way to call the variables from R file which are
> generated automatically without using their names but through a for block.
>

And the purpose of this would be ... ?

-
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

Re: [android-developers] Google Removing Search Apps From Market?

2011-09-01 Thread Mark Murphy
On Wed, Aug 31, 2011 at 6:04 PM, GoogleIsEvil
 wrote:
> My search app that allows users to search through mature sites has
> been removed from the market.

Please review the Android Market Terms and Conditions and the Android
Market Developer Program Policies with qualified legal counsel.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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] Strange problem with toggleSoftInput() in Android 2.3.3

2011-09-01 Thread blindfold
I recently upgraded the firmware of my HTC Desire from 2.2 to 2.3.3,
and since then I find that after starting an Activity I need to call

   toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

exactly *3* times before it pops up the soft keyboard. After that it
works upon every call until I restart my Activity. I did not have this
problem in Android 2.2, and my old ADP1 running Android 1.6 also
always pops up the soft keyboard upon a first call.

Anyone else experiencing this?

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


Re: [android-developers] Call BroadCast Receiver

2011-09-01 Thread dnkoutso
You could also use sendBroadcast() from your Activity, which will trigger 
your BR. However, this might have more implication with respect to 
synchronous operation. I believe the sendBroadcast would be asynchronous and 
your BR will not execute immediately.

Otherwise, I suggest doing what MComputing Lab suggested.

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

2011-09-01 Thread LiTTle
I can parse the variables I want from the R file without knowing the
name of every variable!
I could build an array that contains the variables!

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

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 7:54 AM, LiTTle  wrote:

> I could build an array that contains the variables!


OK. And again ... the purpose of that would be ... what?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Verify EditText input when inputType = number?

2011-09-01 Thread Conrad
So are you saying that it is possible to enter a non-number into such
a field, and I do need to test for rigorousness?


On Sep 1, 7:59 am, TreKing  wrote:
> On Wed, Aug 31, 2011 at 4:20 PM, Conrad  wrote:
> > Is this necessarily true, or do I really need to do a test in code to
> > confirm it is to avoid a possible NumberFormatException or something
> > similar?
>
> Set it and test it.

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


[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
In the future maybe I am going to use a lot of string (specials for
me) elements (now I use only 249 variables). But the problem is if I
want to call every string I have to create over 100 'if' blocks. One
'if' block is going to be inside the other. But, now I know that the
variable I want is the 31st for example, so I say to my code int
varWanted=R.array.Var0+31.

Without using this:
if(selected==0){
get this
}

if(selected==31){
get this
}
.
and go on with 'if' blocks until 249

And I want to use the xml file to reduce the size of the final
runnable file.

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


Re: [android-developers] Re: Verify EditText input when inputType = number?

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 8:05 AM, Conrad  wrote:

> So are you saying that it is possible to enter a non-number into such a
> field, and I do need to test for rigorousness?
>

I'm saying set the attribute ("inputType=number") then run your app and test
it. If you can enter a non-number, you have to add checks - if you can't,
you're good to go.

-
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

Re: [android-developers] Re: Android autogenerated R file

2011-09-01 Thread Mark Murphy
On Thu, Sep 1, 2011 at 9:08 AM, LiTTle  wrote:
> In the future maybe I am going to use a lot of string (specials for
> me) elements (now I use only 249 variables).

Why are they string-array resources?

If you are planning on internationalizing them, use an XML resource,
which gives you better iteration options. Do not make any assumptions
about the R values.

> And I want to use the xml file to reduce the size of the final
> runnable file.

Huh?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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: AbsoluteLayout

2011-09-01 Thread Streets Of Boston
"I have an iPhone app that needs conversion to Android ASAP."
And just plain (attempts of) ports/conversions of iPhone apps into Android 
apps don't work. You will get a lousy rating on the Market. No one will use 
it or want to use it.
And using an AbsoluteLayout to do so, is setting yourself up for even more 
problems.

Unless you want your Android app to fail, create proper Android application 
based on your iPhone application, not just a direct port/conversion.

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

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 8:08 AM, LiTTle  wrote:

> But the problem is if I
> want to call every string I have to create over 100 'if' blocks. One
> 'if' block is going to be inside the other. But, now I know that the
> variable I want is the 31st for example, so I say to my code int
> varWanted=R.array.Var0+31.
>

I don't know what "call every string" means, but it sounds like you just
need an array of variables:
http://developer.android.com/guide/topics/resources/more-resources.html#TypedArray

-
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

Re: [android-developers] Re: i have problem about listview adding can any one help me?

2011-09-01 Thread Tawisak Ruksuwan
when i click for remove item in listview . it is show force close msg

2011/9/1, TreKing :
> On Thu, Sep 1, 2011 at 3:40 AM, Tawisak Ruksuwan > wrote:
>
>> i see logcat . It say error at this
>>  viewInfo.removeViewAt(positionToRemove)
>>
>
> What "error"?
>
> -
> 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] Re: i have problem about listview adding can any one help me?

2011-09-01 Thread Mark Murphy
On Thu, Sep 1, 2011 at 9:17 AM, Tawisak Ruksuwan
 wrote:
> when i click for remove item in listview . it is show force close msg

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your "force close
msg".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] Re: i have problem about listview adding can any one help me?

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 8:17 AM, Tawisak Ruksuwan  wrote:

> when i click for remove item in listview . it is show force close msg


Use LogCat and your debugger to track down your problem. At the very least
post a stack trace.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Verify EditText input when inputType = number?

2011-09-01 Thread Conrad
Sorry for not being explicit here - I already did that, and I could
not enter a non-number. But I'm sure I didn't test exhaustively. It
would be nice if this were stated explicitly one way or the other in
the docs.


On Sep 1, 9:11 am, TreKing  wrote:
> On Thu, Sep 1, 2011 at 8:05 AM, Conrad  wrote:
> > So are you saying that it is possible to enter a non-number into such a
> > field, and I do need to test for rigorousness?
>
> I'm saying set the attribute ("inputType=number") then run your app and test
> it. If you can enter a non-number, you have to add checks - if you can't,
> you're good to go.
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
I am using this xml file for array. Thanks for the conversation!
Here is the whole problem. We have this website www.patra-city-guide.gr.
Here we have some categories with subcategories with shops (31 for
now). Every shop has address,site,mail etc.

So actually I need an array that have these shops depending on
category. For example
show me the address from the first shop from the first subcategory
from the second subcategory!

And the R file is the faster because I tell: var
street=R.array.FirstStreetShop+10
and the value returned to me in no time!

If I use simple xml file it will be a big one and it will take a lot
of time.

Do you have any good idea? I'm out of ideas that's why I catch the R
file!!!

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


[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
My answer is never uploaded!

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

2011-09-01 Thread Mark Murphy
On Thu, Sep 1, 2011 at 9:28 AM, LiTTle  wrote:
> And the R file is the faster because I tell: var
> street=R.array.FirstStreetShop+10
> and the value returned to me in no time!

What part of "do not do that" is beyond your understanding?

> If I use simple xml file it will be a big one and it will take a lot
> of time.

And your proof of this is... what, exactly? An XML resource is parsed
using the same parser that is used for string-array resources.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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] code profiling with post_trace

2011-09-01 Thread ehsan azimzadeh
Hi
I enable code profiling with press F9 in emulator then convert generated
files with post_trace tool.
This tool shows me number of executed dynamic instructions.
My question is, what do instructions mean? ARM instructions or Dalvik
bytecodes? which one?
I want number and type of *executed dynamic bytecode*. How can I do this?
thanks
Ehsan

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

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 8:28 AM, LiTTle  wrote:

> Do you have any good idea?


Database?

-
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

Re: [android-developers] Re: Verify EditText input when inputType = number?

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 8:23 AM, Conrad  wrote:

> Sorry for not being explicit here - I already did that, and I could not
> enter a non-number. But I'm sure I didn't test exhaustively. It would be
> nice if this were stated explicitly one way or the other in the docs.
>

Ah, well short of someone with this knowledge chiming in, your next best
option is looking at the source.

-
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

Re: [android-developers] Re: i have problem about listview adding can any one help me?

2011-09-01 Thread Tawisak Ruksuwan
after i user logcat. I want to see position value
it is = null

final ListView viewInfo = (ListView)findViewById(R.id.listView1);
final SWFForeCastInfoLayoutAdapter adapter = new
SWFForeCastInfoLayoutAdapter(this, data,
data.getCurrentConditionData());
viewInfo.setAdapter(adapter);
//  adapter.notifyDataSetChanged();
viewInfo.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView a, View 
v, final int
position, long id) {
AlertDialog.Builder adb=new 
AlertDialog.Builder(SearchActivity.this);
adb.setTitle("Delete?");
adb.setMessage("Are you sure you want to delete 
" + data.getCity());
final int positionToRemove = position;
adb.setNegativeButton("Cancel", null);
adb.setPositiveButton("Ok", new 
AlertDialog.OnClickListener() {

@Override
public void 
onClick(DialogInterface dialog, int which) {
// TODO Auto-generated 
method stub

adapter.getItem(positionToRemove);
Log.i("test", "test"+ 
adapter.getItem(positionToRemove)); 
  
adapter.notifyDataSetChanged();
}});
adb.show();
}
});



2011/9/1, TreKing :
> On Thu, Sep 1, 2011 at 8:17 AM, Tawisak Ruksuwan > wrote:
>
>> when i click for remove item in listview . it is show force close msg
>
>
> Use LogCat and your debugger to track down your problem. At the very least
> post a stack trace.
>
> -
> 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


[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
I am going to use multiple xml files with simple parsers or database.
In the back side of my mind I know that's bad. But I wanted to ask if
this is accepted.
I thought that maybe it is a feature that Google let it happen. That's
all.
Thanks again everyone.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Webview in Droiddraw?

2011-09-01 Thread bob
Am I missing something or is there really no Webview in Droiddraw?

Are there any decent alternatives to Droiddraw?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] volume control with videoview android

2011-09-01 Thread Naveen
i am using videoview android.accessing videoview id from xml file.

now i want  android volume control with android videoview .

help me.

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