[android-developers] google api demo question about drawBitmapMesh algorithm

2011-10-29 Thread a a
Hi all,

I'm not good at mathematics algorithm, so i can't undanstand the following
code

private void warp(float cx, float cy) {
final float K = 1;  // why it is 1 ??
float[] src = mOrig;
float[] dst = mVerts;
for (int i = 0; i < COUNT*2; i += 2) {
float x = src[i+0];
float y = src[i+1];
float dx = cx - x;
float dy = cy - y;
float dd = dx*dx + dy*dy;
float d = FloatMath.sqrt(dd);
float pull = K / (dd + 0.01f);

pull /= (d + 0.01f); // so it is pull = d * K /
(dd),what is it meaning ?

// let me take a example, there have a triangle, a, b, c

// pull is c/sqrt(a*a + b*b)  then * 1? what is the
result meaning?? maybe the c/sqrt(a*a + b*) is 1 or less 1 or more then 1.
can anyone tell me why  it * 1?
// and what it meaning about the result  d * K / (dd), ?


android.util.Log.d("skia", "index " + i + " dist=" + d + "
pull=" + pull);
if (pull >= 1) {
dst[i+0] = cx;
dst[i+1] = cy;
} else {
dst[i+0] = x + dx * pull;
dst[i+1] = y + dy * pull;
}
}
}

best regards, 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] Re: error message "Application has stopped unexpectedly please try again" in android

2011-10-29 Thread TreKing
On Fri, Oct 28, 2011 at 4:02 AM, Isham Mohamed Iqbal wrote:

> I corrected my code but the error message still coming


Use LogCat and your debugger to debug your app.

-
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] soap webservice(xml pull parser exception )

2011-10-29 Thread arun kumar
[image: In new window]
[image: Print all]
[image: Expand all]
[image: Collapse all]


[image: More]|




Hi ,
am getting xml pull parser exception while consuming webservice from the
sap server...PLZ  any one tell me where am making the mistake.thanks in
advance


static StringBuilder sb;

 private static final String SOAP_ACTION =
"urn:sap-com:document:sap:soap:functions:mc-style/zemptrack_overview";
 private static final String METHOD_NAME = "zemptrack_overview";
 private static final String NAMESPACE =
"urn:sap-com:document:sap:soap:functions:mc-style";
 private static String URL = "
http://tracking.dataaccess.eu/sap/bc/srt/wsdl/bndg_9ADFF19D0400221969C2CB/wsdl11/allinone/ws_policy/document
";

 TextView usernameEditText;

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

final String username = "arun";
final String password = "arun";

Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication
getPasswordAuthentication() {
  PasswordAuthentication pa = new
PasswordAuthentication (username, password.toCharArray());
   return pa;
  }
});
BufferedReader in = null;
StringBuffer sb = new StringBuffer();
try {
URL url = new URL(URL);
URLConnection connection = url.openConnection();
in = new BufferedReader(new InputStreamReader(connection
.getInputStream()));

String line;

while ((line = in.readLine()) != null) {
sb.append(line);
}
} catch (java.net.ProtocolException e) {
sb.append("User Or Password is wrong!");
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (in != null) {
in.close();
}
} catch (Exception e) {
System.out.println("Exception");
}
}

System.out.println("The Data is: " + sb.toString());



   Log.i("first", "track");
   final TextView usernameEditText = (TextView)
findViewById(R.id.textView1);
   final SoapObject request = new SoapObject(NAMESPACE,
METHOD_NAME);
 //  request.addProperty("ZemptrackEarnOview",
lblResult);
   request.addProperty("Userid","SRINIS");


   SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
   System.out.println("hell")  ;
   envelope.dotNet = true;
   envelope.setOutputSoapObject(request);
   HttpTransportSE androidHttpTransport = new
HttpTransportSE(URL);

  try {
  Log.i("fourth", "track");

  androidHttpTransport.call(SOAP_ACTION, envelope);
  androidHttpTransport.debug = true;
  SoapObject response = (SoapObject)envelope.getResponse();
  Log.i("third", "track");
  int MnthTotal = Integer.parseInt(response.toString());
  String Name = response.toString();
  Log.i("second", "track");
  return;
   }
  catch (XmlPullParserException ex) {
  ex.printStackTrace();
  }
  catch (Exception e) {
   e.printStackTrace();
   }

}

}


--






http://xml.sap.com/2006/11/esi/esp/binxml"; wsp:Optional="true"/>
http://www.w3.org/2004/08/soap/features/http-optimization";
wsp:Optional="true"/>




-

-




-

-




-

-









-

-

false

-

E0503D400221969C2CB


-

false
true
no
false

-

-

-

-




-

-




-

-






-


-

-

-





-

-

-








-



-



-

-



-

-







-

-



http://schemas.xmlsoap.org/soap/http";
style="document"/>
-


-



-





-

-

http://tracking.dataacess.eu/sap/bc/srt/rfc/sap/zemptrack_overview/800/zemptrack_overview/zemptrack_overview
"/>




 Reply

Forward



Reply
[image: More]|
arun kumar to android-develo.
show details Sep 16

  while debugging  the problem occured at the  namespace and
soapaction.can any one tell me how to solve this


 private static final String SOAP_ACTION =
"urn:sap-com:document:sap:soap:functions:mc-style/zemptrack_overview";
  private static final String METHOD_NAME = "zemptrack_overview";
 private stati

[android-developers] Re: How to obtain A-GPS data via Android phone

2011-10-29 Thread luca aliberti
You can try to take the database cachedgeolocation.db with pull
command.
Regards

On Oct 29, 6:16 am, Kenneth WON  wrote:
> Dear all,
>
> I am developing an android app, which want to obtain the A-GPS
> position.
> I tried searching in Google, it seems no any hint, and I just know
> how
> to obtain GPS position.
> What is the principle of A-GPS? And
> What do I need to do so the app can obtain A-GPS position?
>
> Thanks and Regards,
> Kenneth Won

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


[android-developers] splitbar between fragments

2011-10-29 Thread sourabh sahu
How to put SplitBar between fragments.I want to put a splitbar between two
layout.How to do this.

Thanks,
Sourabh

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

[android-developers] video stream using rtmp

2011-10-29 Thread mohana priya
Hello In my android application i need to publish the video file to
the server using rtmp client.I want to know whether it is possible to
do streaming in android using rtmp.If so how to do.Please give me the
code.Kindly 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] Android with Python

2011-10-29 Thread raduq
What do you guys think about Android applications developed with
Python? I'm going to start a mobiel applications training in a company
and i have received a few hours ago an email that told me to read
about Python before the first class.

I am very surprised because I thought Android apps were made only by
using Java and/or C#. Do any of you have developed Android apps with
Python?

If yes, please tell me how it is compared to Java, if you have any
experience with Java.. Is it easier, are the Python apps faster than
Java ones? I'm asking this because I would like to know the advantages
and disadvantages of developing apps in Python before I begin the
training.

Thanks in advance for your answers!

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


Re: [android-developers] How to get updated c2dm registration Id.

2011-10-29 Thread Manikandan M
Hi Steven,

Thanks for the reply.

I am using droid x and i am unable to get c2dm messages, registration is
fine even i also have response id from the c2dm server but message is not
delivered to the device. It works for all other devices.


Thanks
Manikandan

On Fri, Oct 28, 2011 at 8:20 PM, Studio LFP  wrote:

> I don't think the ID you get for the device expires.
>
> If you give the user the option of unregistering, then you would use the
> same register routine again to get a new ID. If the user uninstalls the
> application, it also unregisters and you would need to get a new ID if they
> reinstalled. If neither of these two happen, I believe you don't ever have
> to refresh the ID of the device.
>
> Are you running into a problem?
>
> Steven
> Studio LFP
> http://www.studio-lfp.com
>
>
>
> On Friday, October 28, 2011 9:33:05 AM UTC-5, Manikandan M wrote:
>
>> Hi All,
>>
>> Any ideas.
>>
>>
>> Thanks
>> Manikandan
>>
>> On Fri, Oct 28, 2011 at 3:50 PM, Manikandan M wrote:
>>
>>> Hi All,
>>>
>>> Is that any other way to do this without registering at particular
>>> interval.
>>>
>>>
>>> Thanks
>>> Manikandan
>>>
>>>
>>> On Fri, Oct 28, 2011 at 2:52 PM, Manikandan M wrote:
>>>
 Hi All,

 As i know c2dm registration id periodically refreshed, how do i get
 the refreshed c2dm registration id.

 Is i want to register again at particular interval?


 Thanks in Advance
 Manikandan.

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

 To unsubscribe from this group, send email to
 android-develop...@**googlegroups.com

 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=en

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

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

Re: [android-developers] Types of mobile application

2011-10-29 Thread Manikandan M
Hi

Any Ideas.


Thanks
Manikandan

On Tue, Oct 25, 2011 at 9:52 AM, Manikandan M wrote:

> Hi All,
>
> I am new android development i want to know what are the different
> ways to create mobile applications.
>
> 1. Native App
> 2. Using jquery mobile to create web app
> 3. Using webview
>
> is webview and jquery mobile are same and any other types we can
> create mobile app.
>
>
> Thanks
> Manikandan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] search hardware button

2011-10-29 Thread John Goche
Hello,

I was wondering whether I can rely on an android phone having
the search hardware button because I am thinking about hardcoding
some specific function to it in my application, but then if it is not
avaiable
on some smartphone models this would be a problem.

Any feedback welcome,

John Goche

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

[android-developers] SurfaceView no longer adjusts canvas to screen size?

2011-10-29 Thread Michael A.
I've run into a weird glitch.

Since the early versions of the SDK, I've been using a SurfaceView to
draw graphics, painting a bitmap into the canvas and then drawing/
painting on top of it, while adjusting the drawing dependent on the
density of the phone.

Since SDK14, however, this behavior seems to have changed.

Even though I run it on a 480x800 HDPI view, the SurfaceView returns
320x460 in the code for the dimensions of the view and the same for
the canvas in the code. This of course messes up everything, as I
still scale my drawing. If I remove the scaling, it works correctly
again, as the SurfaceView seems to be automatically scaled up
according to the density settings, but it looks terrible now (since
the graphics are scaled up 1.5 - before the SurfaceView used the hdpi
graphics, now it seems to use the mdpi graphics which are then scaled
up).

Is this intentional? Did I miss a memo somewhere?

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

2011-10-29 Thread Kostya Vasilyev
Sounds like compatibility mode scaling. If your manifest is properly set up
with minSdk set to 4 or above, I would think it's an emulator bug.
--
Kostya Vasilyev
29.10.2011 15:12 пользователь "Michael A." 
написал:

> I've run into a weird glitch.
>
> Since the early versions of the SDK, I've been using a SurfaceView to
> draw graphics, painting a bitmap into the canvas and then drawing/
> painting on top of it, while adjusting the drawing dependent on the
> density of the phone.
>
> Since SDK14, however, this behavior seems to have changed.
>
> Even though I run it on a 480x800 HDPI view, the SurfaceView returns
> 320x460 in the code for the dimensions of the view and the same for
> the canvas in the code. This of course messes up everything, as I
> still scale my drawing. If I remove the scaling, it works correctly
> again, as the SurfaceView seems to be automatically scaled up
> according to the density settings, but it looks terrible now (since
> the graphics are scaled up 1.5 - before the SurfaceView used the hdpi
> graphics, now it seems to use the mdpi graphics which are then scaled
> up).
>
> Is this intentional? Did I miss a memo somewhere?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: How to obtain A-GPS data via Android phone

2011-10-29 Thread lbendlin
The A-GPS location is the same as the GPS location. Either the augmentation 
is applied or not. What are you actually trying to achieve?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Should I use the same certifcate for all my apps or a different one per app?

2011-10-29 Thread Droid
Possible to use the same certificate for all of them and try very very
hard not to lose it :)



On Oct 28, 7:27 pm, Ricardo Amaral  wrote:
> I suppose the documentation recommends one certificate per developer, so
> all apps belonging to someone, are, somehow, associated to that one
> developer. But I'm wondering if there is anyone out there using one
> different certificate per app and what are the advantages of doing so? If
> any...
>
> But that's not really the question I want to make. I'll be releasing a free
> and paid versions of my app and I'm opting for the method where the paid
> app simply unlocks full functionality. I'll be using the process described
> in a thread around these groups. Where you check for the certificates of
> both packages and see if they match. If they do, then the user has unlocked
> the "pro version".
>
> My question is about this specific situation. Is there maybe any reason I
> should use a unique certificate for these 2 apps? And if I release another
> free/paid pair in the same unlock model, I would use another certificate
> for those 2. I could then have another different certificate from the
> previous 2 for all other apps that do not use this unlock method or that
> are simply free.
>
> Is there any advantage in doing so? Or there is none and I should just use
> a single certificate for everything?

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

2011-10-29 Thread Michael Banzon
My initial response was going to be something like: I can run Android
on everything - so don't rely on my fridge having a "Back"-button.

After considering it some more: If you are going to publish your app
on Android Market you should check the requirements for Android
Market. AFAIK it requires the handset maker to obtain a license from
Google which might put some restrictions/requirements on hardware.

On Sat, Oct 29, 2011 at 1:03 PM, John Goche  wrote:
>
> Hello,
>
> I was wondering whether I can rely on an android phone having
> the search hardware button because I am thinking about hardcoding
> some specific function to it in my application, but then if it is not
> avaiable
> on some smartphone models this would be a problem.
>
> Any feedback welcome,
>
> John Goche
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Michael Banzon
http://michaelbanzon.com/

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


[android-developers] Re: GPS filtering

2011-10-29 Thread lbendlin
yes. write your own logic to accept fix events or not

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

Re: [android-developers] Re: get first row from cursor

2011-10-29 Thread lbendlin
my bad. I was confusing itn with ADODB. Too many damn programming 
languages! :-)

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

2011-10-29 Thread Latimerius
I asked this question about a month ago - you might want to check this:

http://groups.google.com/group/android-developers/browse_thread/thread/cf312b4dd2fdb440/dd7c156d618e0bdb?lnk=gst&q=how+to+check+if+device+has+hardware+search+key#dd7c156d618e0bdb

TL;DR: you can't rely on pretty much anything being there and in
general, you can't even check.

It is workable but it still sucks because you have to rely on the user
being agile enough to set their own controls to get most of your app.

On Sat, Oct 29, 2011 at 1:03 PM, John Goche  wrote:
>
> Hello,
>
> I was wondering whether I can rely on an android phone having
> the search hardware button because I am thinking about hardcoding
> some specific function to it in my application, but then if it is not
> avaiable
> on some smartphone models this would be a problem.
>
> Any feedback welcome,
>
> John Goche
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Custom preference (slider) on a non-touchscreen device - how to convert left/right keys to slider change?

2011-10-29 Thread lbendlin
A number of my custom preferences are of the'"Seekbar" variety. They can be 
adjusted nicely on a touch screen device. However, our app is no also being 
used on the Parrot Asteroid which doesn't even have proper left/right keys 
(the scroll wheel emulated up/down).  
I can map the media keys prev/next  to left/right, so there is a hardware 
workaround. I just don't know how to catch these key events for my custom 
preference (without impacting the up/down paradigm) and convert them into 
slider changes. I guess worst case I could override the onClick event for 
the custom preference so that hitting the big button would cycle through a 
few discrete slider settings. 
 
Is it possible to override onKeyDown for a custom preference? 
 
 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Custom preference (slider) on a non-touchscreen device - how to convert left/right keys to slider change?

2011-10-29 Thread Kostya Vasilyev

I don't see anything in Preference that would do this out-of-the-box.

However, you could receive key events in your PreferenceActivity 
subclass and dispatch it to the current (that would need to be defined, 
too) preference.


Another way that comes to mind is using a dialog preference with a 
slider, instead of a slider directly in the preference list... which has 
the advantage of already having the concept of currently affected value. 
You'd then receive key events in the dialog (sub)class.


( Regarding the device - are there still cars that can use those 
DIN-sized radios? I thought this was a thing of the past, apparently not? )


-- Kostya

29.10.2011 17:15, lbendlin пишет:
A number of my custom preferences are of the'"Seekbar" variety. They 
can be adjusted nicely on a touch screen device. However, our app is 
no also being used on the Parrot Asteroid which doesn't even have 
proper left/right keys (the scroll wheel emulated up/down).
I can map the media keys prev/next to left/right, so there is a 
hardware workaround. I just don't know how to catch these key events 
for my custom preference (without impacting the up/down paradigm) and 
convert them into slider changes. I guess worst case I could override 
the onClick event for the custom preference so that hitting the big 
button would cycle through a few discrete slider settings.

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


--
Kostya Vasilyev

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

2011-10-29 Thread Michael A.
Seems like you were right. i was forced to reconstruct all of my projects 
due to the library problems with the new ADK/ADT, and apparently the 
manifest settings switching off the compatibility mode had somehow gotten 
lost in the transition.

Many thanks for the timely help. It's been so long since I last had to 
dabble with those settings that I had completely forgotten that they 
existed.

Regards,

Michael A.

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

[android-developers] Re: How to obtain A-GPS data via Android phone

2011-10-29 Thread Kenneth WON
Hi, lbendlin,

I just want to obtain a more accurate location (such as latitude and
longitude. etc) no matter it is in indoor or outdoor.
And how to implement it?

Thanks and Regards,
Kenneth Won



On 10月29日, 下午7時34分, lbendlin  wrote:
> The A-GPS location is the same as the GPS location. Either the augmentation
> is applied or not. What are you actually trying to achieve?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Should I use the same certifcate for all my apps or a different one per app?

2011-10-29 Thread Michael A.
I've only seen one good argument for having multiple keys, and that is if 
you - at some point - would want to sell off one of your apps to someone 
else. Because of the way the market works, the only really practicable way 
to do that (without recoding the thing and submitting it as a whole new app 
- not likely what a purchaser would be interested in) - is to transfer the 
key certificate to the buyer. Which is not ideal, of course, if you have a 
bunch of other apps using the same key.

It's worth remembering if one is building apps for others, but I can't see 
it being much of an issue for the majority of app developers.

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

[android-developers] Re: Add a link on a TextView

2011-10-29 Thread aru
thanx TreKing ... that way is seems easy to implement
I'll try it

On Oct 12, 9:39 pm, TreKing  wrote:
> On Tue, Oct 11, 2011 at 5:14 AM, aru  wrote:
> > do you guys know the other ways ?
>
> http://developer.android.com/reference/android/widget/TextView.html#a...
>
> -
> 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: Html-style links inside ListView items

2011-10-29 Thread nadam
I never found a solution. I think the only way is to skip ListView and
build your own list somehow.

On Oct 27, 11:45 pm, LS  wrote:
> Did you find any solution to this ?
> I'm also trying to havehtmlstylelinkswithin clickable list items. But only
> one click works - either the link or the list but havent found the solution 
> for
> both.

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

2011-10-29 Thread Kristopher Micinski
Not that this is a solution, but might this work:

http://developer.android.com/reference/android/text/util/Linkify.html

On Sat, Oct 29, 2011 at 10:55 AM, nadam  wrote:
> I never found a solution. I think the only way is to skip ListView and
> build your own list somehow.
>
> On Oct 27, 11:45 pm, LS  wrote:
>> Did you find any solution to this ?
>> I'm also trying to havehtmlstylelinkswithin clickable list items. But only
>> one click works - either the link or the list but havent found the solution 
>> for
>> both.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Where Does Android store the email

2011-10-29 Thread luca aliberti
Hello,
i would to know where does Android store the email.
In gmail.db you can see only 80 chars of the email in the column
snippet.
Where is the rest???

Thanks a lot
Kind Regards
Luca

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


Re: [android-developers] How to get updated c2dm registration Id.

2011-10-29 Thread Studio LFP
What type of response code are you getting from the C2DM server when you 
try to send a message to that specific device ID? It will let you know if 
there is any issues with your current device ID.

Steven
Studio LFP
http://www.studio-lfp.com


On Saturday, October 29, 2011 5:37:58 AM UTC-5, Manikandan M wrote:
>
> Hi Steven,
>
> Thanks for the reply.
>
> I am using droid x and i am unable to get c2dm messages, registration is 
> fine even i also have response id from the c2dm server but message is not 
> delivered to the device. It works for all other devices.
>
>
> Thanks
> Manikandan
>
> On Fri, Oct 28, 2011 at 8:20 PM, Studio LFP  wrote:
>
>> I don't think the ID you get for the device expires.
>>
>> If you give the user the option of unregistering, then you would use the 
>> same register routine again to get a new ID. If the user uninstalls the 
>> application, it also unregisters and you would need to get a new ID if they 
>> reinstalled. If neither of these two happen, I believe you don't ever have 
>> to refresh the ID of the device.
>>
>> Are you running into a problem?
>>
>> Steven
>> Studio LFP
>> http://www.studio-lfp.com
>>
>>
>>
>> On Friday, October 28, 2011 9:33:05 AM UTC-5, Manikandan M wrote:
>>
>>> Hi All,
>>>
>>> Any ideas.
>>>
>>>
>>> Thanks
>>> Manikandan
>>>
>>> On Fri, Oct 28, 2011 at 3:50 PM, Manikandan M  wrote:
>>>
 Hi All,

 Is that any other way to do this without registering at particular 
 interval.


 Thanks
 Manikandan


 On Fri, Oct 28, 2011 at 2:52 PM, Manikandan M wrote:

> Hi All,
>
> As i know c2dm registration id periodically refreshed, how do i get
> the refreshed c2dm registration id.
>
> Is i want to register again at particular interval?
>
>
> Thanks in Advance
> Manikandan.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to androi...@googlegroups.com
>
> To unsubscribe from this group, send email to
> android-develop...@**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-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-develop...@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] Where Does Android store the email

2011-10-29 Thread Kristopher Micinski
Whose email?

Kris

On Sat, Oct 29, 2011 at 11:04 AM, luca aliberti  wrote:
> Hello,
> i would to know where does Android store the email.
> In gmail.db you can see only 80 chars of the email in the column
> snippet.
> Where is the rest???
>
> Thanks a lot
> Kind Regards
> Luca
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Html-style links inside ListView items

2011-10-29 Thread nadam
Nope. Tried that already.

On Oct 29, 4:58 pm, Kristopher Micinski 
wrote:
> Not that this is a solution, but might this work:
>
> http://developer.android.com/reference/android/text/util/Linkify.html
>
>
>
>
>
>
>
> On Sat, Oct 29, 2011 at 10:55 AM, nadam  wrote:
> > I never found a solution. I think the only way is to skip ListView and
> > build your own list somehow.
>
> > On Oct 27, 11:45 pm, LS  wrote:
> >> Did you find any solution to this ?
> >> I'm also trying to havehtmlstylelinkswithin clickable list items. But only
> >> one click works - either the link or the list but havent found the 
> >> solution for
> >> both.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] How to play Youtube video on Java, Android?

2011-10-29 Thread andr
I have to code for playong video:

private void loadPlayer() {
Intent youtube=new Intent(Intent.ACTION_VIEW,
Uri.parse("http://www.youtube.com/watch?v=CES7xNy70hU";));
startActivityForResult(youtube, 100);
}

But when player finish showing of video, it won't close himself and
user need to press back button. I need that player will close himself
automatically after end of video. How can I do 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


Re: [android-developers] How to get updated c2dm registration Id.

2011-10-29 Thread Manikandan M
Hi Steven,

This is the response i am getting from the c2dm server.

id=0:1319892812710374%3421e3b10030



Thanks
Manikandan

On Sat, Oct 29, 2011 at 8:35 PM, Studio LFP  wrote:

> What type of response code are you getting from the C2DM server when you
> try to send a message to that specific device ID? It will let you know if
> there is any issues with your current device ID.
>
>
> Steven
> Studio LFP
> http://www.studio-lfp.com
>
>
> On Saturday, October 29, 2011 5:37:58 AM UTC-5, Manikandan M wrote:
>
>> Hi Steven,
>>
>> Thanks for the reply.
>>
>> I am using droid x and i am unable to get c2dm messages, registration is
>> fine even i also have response id from the c2dm server but message is not
>> delivered to the device. It works for all other devices.
>>
>>
>> Thanks
>> Manikandan
>>
>> On Fri, Oct 28, 2011 at 8:20 PM, Studio LFP  wrote:
>>
>>> I don't think the ID you get for the device expires.
>>>
>>> If you give the user the option of unregistering, then you would use the
>>> same register routine again to get a new ID. If the user uninstalls the
>>> application, it also unregisters and you would need to get a new ID if they
>>> reinstalled. If neither of these two happen, I believe you don't ever have
>>> to refresh the ID of the device.
>>>
>>> Are you running into a problem?
>>>
>>> Steven
>>> Studio LFP
>>> http://www.studio-lfp.com
>>>
>>>
>>>
>>> On Friday, October 28, 2011 9:33:05 AM UTC-5, Manikandan M wrote:
>>>
 Hi All,

 Any ideas.


 Thanks
 Manikandan

 On Fri, Oct 28, 2011 at 3:50 PM, Manikandan M wrote:

> Hi All,
>
> Is that any other way to do this without registering at particular
> interval.
>
>
> Thanks
> Manikandan
>
>
> On Fri, Oct 28, 2011 at 2:52 PM, Manikandan M wrote:
>
>> Hi All,
>>
>> As i know c2dm registration id periodically refreshed, how do i get
>> the refreshed c2dm registration id.
>>
>> Is i want to register again at particular interval?
>>
>>
>> Thanks in Advance
>> Manikandan.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to androi...@googlegroups.com
>>
>> To unsubscribe from this group, send email to
>> android-develop...@**googlegroup**s.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-d...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-develop...@**googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>>
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: How to obtain A-GPS data via Android phone

2011-10-29 Thread lbendlin
more accurate than what?  as you know GPS is not designed for indoor use. 

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

2011-10-29 Thread lbendlin
Didn't the latest Sony(/Ericsson)  devices come out without the search 
button?

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

2011-10-29 Thread lbendlin
yup... 
http://www.sonyericsson.com/cws/products/mobilephones/overview/xperiaarc?cc=ae&lc=en#view=overview

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

2011-10-29 Thread Manikandan M
Hi All,

It seems to me only native and webview  are the two types of mobile
application we can create. using mobile jquery we can create web
application that make effective UI in mobile devices.

Correct me if i am wrong, and another type of mobile app we can create in
android?

Thanks
Manikandan

On Sat, Oct 29, 2011 at 4:20 PM, Manikandan M wrote:

> Hi
>
> Any Ideas.
>
>
> Thanks
> Manikandan
>
>
> On Tue, Oct 25, 2011 at 9:52 AM, Manikandan M wrote:
>
>> Hi All,
>>
>> I am new android development i want to know what are the different
>> ways to create mobile applications.
>>
>> 1. Native App
>> 2. Using jquery mobile to create web app
>> 3. Using webview
>>
>> is webview and jquery mobile are same and any other types we can
>> create mobile app.
>>
>>
>> Thanks
>> Manikandan
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] search hardware button

2011-10-29 Thread Kostya Vasilyev

Yes they do.

Samsung Galaxy devices don't have a hw search button either.

-- Kostya

29.10.2011 20:56, lbendlin ?:
Didn't the latest Sony(/Ericsson)  devices come out without the search 
button? --

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


--
Kostya Vasilyev

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

[android-developers] GROUP_SOURCE_ID -> GROUP_ROW_ID caching issue

2011-10-29 Thread Jay
I'm not sure if this is a bug in Android, a bug in the emulator, or a
bug in my code. I have a syncadpter that creates a few groups and
populates them with raw contacts. The code works as expected on a
freshly booted emulator. If I delete the syncadapter's account the
groups and contacts are deleted as expected. However, if I then add
the account back, the groups and contacts are recreated just fine, but
are not linked together properly. Based on looking at the contacts db
with the adb shell, it seems that the GroupMembership data rows (which
were added with the GROUP_SOURCE_ID parameter) are using the
group_row_ids from when the groups were created the first time. So it
looks like there is a stale GROUP_SOURCE_ID -> GROUP_ROW_ID cache
being used somewhere. Does this look like a platform bug, or is there
an api for clearing such a cache I should be using?

Thanks,
Jay

This is the inner loop of my contact create code. The necessary groups
have already been created.

// Contact does not exist; create him
final int backRef = batch.size();
batch.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI)
.withYieldAllowed(true)
.withValue(RawContacts.ACCOUNT_TYPE, account.type)
.withValue(RawContacts.ACCOUNT_NAME, account.name)
.withValue(RawContacts.SOURCE_ID, serverId).build());
// Attach names
batch.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)
.withValueBackReference(Data.RAW_CONTACT_ID, backRef)
.withValue(Data.MIMETYPE, 
StructuredName.CONTENT_ITEM_TYPE)
.withValue(StructuredName.GIVEN_NAME, 
contact.getGiven())
.withValue(StructuredName.FAMILY_NAME,
contact.getFamily()).build());
// Attach groups
for (final long groupServerId : contact.getGroups()) {
batch.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)
.withValueBackReference(Data.RAW_CONTACT_ID, 
backRef)
.withValue(Data.MIMETYPE, 
GroupMembership.CONTENT_ITEM_TYPE)
.withValue(GroupMembership.GROUP_SOURCE_ID,
groupServerId).build());
}

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


Re: [android-developers] How to get updated c2dm registration Id.

2011-10-29 Thread Studio LFP
That should be a correct response. You may want to refresh your C2DM key on 
the device and then refresh the server with the updated one. You may want 
to call the unregister intent on device first with the following:

http://code.google.com/android/c2dm/index.html#unregistering

I would figure that unregistering a device would remove all previous 
entries if there is more than one entry. I'm not sure that there can be 
more than one ID for a device for the same app, but it is worth trying the 
unregister intent to see if it might help clear up your issue.

Steven
Studio LFP
http://www.studio-lfp.com


On Saturday, October 29, 2011 11:46:21 AM UTC-5, Manikandan M wrote:
>
> Hi Steven,
>
> This is the response i am getting from the c2dm server.
>
> id=0:1319892812710374%3421e3b10030
>
>
>
> Thanks
> Manikandan
>
> On Sat, Oct 29, 2011 at 8:35 PM, Studio LFP  wrote:
>
>> What type of response code are you getting from the C2DM server when you 
>> try to send a message to that specific device ID? It will let you know if 
>> there is any issues with your current device ID.
>>
>>
>> Steven
>> Studio LFP
>> http://www.studio-lfp.com
>>
>>
>> On Saturday, October 29, 2011 5:37:58 AM UTC-5, Manikandan M wrote:
>>
>>> Hi Steven,
>>>
>>> Thanks for the reply.
>>>
>>> I am using droid x and i am unable to get c2dm messages, registration is 
>>> fine even i also have response id from the c2dm server but message is not 
>>> delivered to the device. It works for all other devices.
>>>
>>>
>>> Thanks
>>> Manikandan
>>>
>>> On Fri, Oct 28, 2011 at 8:20 PM, Studio LFP  wrote:
>>>
  I don't think the ID you get for the device expires.

 If you give the user the option of unregistering, then you would use 
 the same register routine again to get a new ID. If the user uninstalls 
 the 
 application, it also unregisters and you would need to get a new ID if 
 they 
 reinstalled. If neither of these two happen, I believe you don't ever have 
 to refresh the ID of the device.

 Are you running into a problem?

 Steven
 Studio LFP
 http://www.studio-lfp.com



 On Friday, October 28, 2011 9:33:05 AM UTC-5, Manikandan M wrote:

> Hi All,
>
> Any ideas.
>
>
> Thanks
> Manikandan
>
>  On Fri, Oct 28, 2011 at 3:50 PM, Manikandan M wrote:
>
>> Hi All,
>>
>> Is that any other way to do this without registering at particular 
>> interval.
>>
>>
>> Thanks
>> Manikandan
>>
>>
>> On Fri, Oct 28, 2011 at 2:52 PM, Manikandan M wrote:
>>
>>> Hi All,
>>>
>>> As i know c2dm registration id periodically refreshed, how do i get
>>> the refreshed c2dm registration id.
>>>
>>> Is i want to register again at particular interval?
>>>
>>>
>>> Thanks in Advance
>>> Manikandan.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to andr...@googlegroups.com
>>>
>>> To unsubscribe from this group, send email to
>>> android-develop...@**googlegroup**s.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 androi...@googlegroups.com
 To unsubscribe from this group, send email to
 android-develop...@**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-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-develop...@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] finishActivity: (popping two activities simultaneously?)

2011-10-29 Thread John Goche
Hello,

I have come across the following scenario: I have an activity A which
needs to launch activity B to make a selection. The selected value
eventually needs to be passed back to A, but before that happens,
selecting the value from activity B launches another activity C. When
a selection is made on activity C both selected values from B and C
are passed back to A.

So now I am wondering what the best way to code this is. Do I use
finishActivity() or just call finish() in activity B when its
onActivityResult()
is called? Suggestions welcome. Basically I would like to rid myself of
both popup windows when a selection in the latter is made.

Thank you for your input,

John Goche

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

2011-10-29 Thread John Goche
Thank you all for your replies,

Your answers were helpful and made me decide not to
rely on the hardware button being there. I will have to go
by another approach.

Regards,

John Goche

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

[android-developers] Re: How to obtain A-GPS data via Android phone

2011-10-29 Thread Kenneth WON
Hi, lbendlin,

Yes, I know, the GPS is not designed for indoor use.

In some case, such in subway or tunnel, the GPS cannot functional, so
I need to use A-GPS to obtain the location instead of using GPS.
(Someone tell me that the A-GPS can be functional in indoor
environment. Please let me know if I am wrong).

The big point is I have no idea of obtaining the A-GPS position.


Thanks and Regards,
Kenneth Won




On 10月30日, 上午12時54分, lbendlin  wrote:
> more accurate than what?  as you know GPS is not designed for indoor use.

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

2011-10-29 Thread Kristopher Micinski
Python isn't usable for real application development, at least at this
point.  If you want to write production quality apps, you'll need to
use the sdk, in java.

Apps aren't written solely in Java, but they are not written in C#.
The reason apps are written in java is because the vm runs bytecode
translated from Java.  You can also use C/++, but it's not an excuse
for not learning the Java SDK.

While it is possible to write some simple things using SLA (python),
you won't get too far with it.

Kris

On Sat, Oct 29, 2011 at 5:57 AM, raduq  wrote:
> What do you guys think about Android applications developed with
> Python? I'm going to start a mobiel applications training in a company
> and i have received a few hours ago an email that told me to read
> about Python before the first class.
>
> I am very surprised because I thought Android apps were made only by
> using Java and/or C#. Do any of you have developed Android apps with
> Python?
>
> If yes, please tell me how it is compared to Java, if you have any
> experience with Java.. Is it easier, are the Python apps faster than
> Java ones? I'm asking this because I would like to know the advantages
> and disadvantages of developing apps in Python before I begin the
> training.
>
> Thanks in advance for your answers!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: How to obtain A-GPS data via Android phone

2011-10-29 Thread lbendlin
Sorry, A-GPS has nothing to do with indoor navigation. All it does is speed 
up the initial lock because it can tell the receiver which satellites to 
expect (normally the receiver has to listen and build up the ephemeris by 
itself).
 
what you probably want are alternative solutions like DGPS (very 
expensive), NorthStar, or WiFi, WiFi would be a good candidate but there is 
absolutely no standard, and you would have to come up with the solution 
yourself.

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

2011-10-29 Thread lbendlin
use startActivityforResult
 
and then listen to the resultCode in onActivityResult. for example "OK" 
could mean "stay on B when C has finished", and "Cancel" could mean "finish 
B too when C is done."

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

2011-10-29 Thread raduq
So, in the end for advanced development I will have to use the Java
SDK. I have started out to make some simple apps with the Java SDK but
now after being noticed in the e-mail to read about Python I started
looking up what Python can do for Android apps, but haven't found much
info. Have you developed apps for Android in Python?

On Oct 29, 10:46 pm, Kristopher Micinski 
wrote:
> Python isn't usable for real application development, at least at this
> point.  If you want to write production quality apps, you'll need to
> use the sdk, in java.
>
> Apps aren't written solely in Java, but they are not written in C#.
> The reason apps are written in java is because the vm runs bytecode
> translated from Java.  You can also use C/++, but it's not an excuse
> for not learning the Java SDK.
>
> While it is possible to write some simple things using SLA (python),
> you won't get too far with it.
>
> Kris
>
>
>
>
>
>
>
> On Sat, Oct 29, 2011 at 5:57 AM, raduq  wrote:
> > What do you guys think about Android applications developed with
> > Python? I'm going to start a mobiel applications training in a company
> > and i have received a few hours ago an email that told me to read
> > about Python before the first class.
>
> > I am very surprised because I thought Android apps were made only by
> > using Java and/or C#. Do any of you have developed Android apps with
> > Python?
>
> > If yes, please tell me how it is compared to Java, if you have any
> > experience with Java.. Is it easier, are the Python apps faster than
> > Java ones? I'm asking this because I would like to know the advantages
> > and disadvantages of developing apps in Python before I begin the
> > training.
>
> > Thanks in advance for your answers!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] Custom preference (slider) on a non-touchscreen device - how to convert left/right keys to slider change?

2011-10-29 Thread lbendlin
that's a bit grand for such a small user base. I ended up going with the 
inelegant but simple onClick solution iterating up and down the slider. 
Good enough as the preferences are not changed often.
 
(Yes, there are companies that provide adapters for all types of head units 
(built in car radio systems) so you can swap in a DIN or double DIN slot)

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

2011-10-29 Thread Kristopher Micinski
On Sat, Oct 29, 2011 at 4:11 PM, raduq  wrote:
> So, in the end for advanced development I will have to use the Java
> SDK. I have started out to make some simple apps with the Java SDK but
> now after being noticed in the e-mail to read about Python I started
> looking up what Python can do for Android apps, but haven't found much
> info. Have you developed apps for Android in Python?
>

I haven't "developed apps" but I have "played around with the SLA
(Scripting Layer for Android)."  In the end, if you want to play with
apps and maybe get something up and running prototype wise, it might
be a nice idea to use Python.  But for real production apps, and just
to learn about how the system *actually works* you would be remiss not
to get a fairly good understanding of the SDK.

Kris

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

2011-10-29 Thread Manikandan M
Hi,

Please help me. i am curios about this.

Thanks
Manikandan

On Sat, Oct 29, 2011 at 10:29 PM, Manikandan M wrote:

> Hi All,
>
> It seems to me only native and webview  are the two types of mobile
> application we can create. using mobile jquery we can create web
> application that make effective UI in mobile devices.
>
> Correct me if i am wrong, and another type of mobile app we can create in
> android?
>
> Thanks
> Manikandan
>
>
> On Sat, Oct 29, 2011 at 4:20 PM, Manikandan M wrote:
>
>> Hi
>>
>> Any Ideas.
>>
>>
>> Thanks
>> Manikandan
>>
>>
>> On Tue, Oct 25, 2011 at 9:52 AM, Manikandan M wrote:
>>
>>> Hi All,
>>>
>>> I am new android development i want to know what are the different
>>> ways to create mobile applications.
>>>
>>> 1. Native App
>>> 2. Using jquery mobile to create web app
>>> 3. Using webview
>>>
>>> is webview and jquery mobile are same and any other types we can
>>> create mobile app.
>>>
>>>
>>> Thanks
>>> Manikandan
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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] AOSP fails to repo sync KeyError: 'content-length'

2011-10-29 Thread DulcetTone
failure is immediate and inescapable it seems:


ad-3:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/threading.py", line 460, in __bootstrap
self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/threading.py", line 440, in run
self.__target(*self.__args, **self.__kwargs)
  File "/Users/tone/mydroid/.repo/repo/subcmds/sync.py", line 182, in
_FetchHelper
success = project.Sync_NetworkHalf(quiet=opt.quiet)
  File "/Users/tone/mydroid/.repo/repo/project.py", line 926, in
Sync_NetworkHalf
if alt_dir is None and self._ApplyCloneBundle(initial=is_new,
quiet=quiet):
  File "/Users/tone/mydroid/.repo/repo/project.py", line 1444, in
_ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst,
quiet)
  File "/Users/tone/mydroid/.repo/repo/project.py", line 1514, in
_FetchBundle
size = r.headers['content-length']
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/rfc822.py", line 384, in __getitem__
return self.dict[name.lower()]
KeyError: 'content-length'

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/threading.py", line 460, in __bootstrap
self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/threading.py", line 440, in run
self.__target(*self.__args, **self.__kwargs)
  File "/Users/tone/mydroid/.repo/repo/subcmds/sync.py", line 182, in
_FetchHelper
success = project.Sync_NetworkHalf(quiet=opt.quiet)
  File "/Users/tone/mydroid/.repo/repo/project.py", line 926, in
Sync_NetworkHalf
if alt_dir is None and self._ApplyCloneBundle(initial=is_new,
quiet=quiet):
  File "/Users/tone/mydroid/.repo/repo/project.py", line 1444, in
_ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst,
quiet)
  File "/Users/tone/mydroid/.repo/repo/project.py", line 1514, in
_FetchBundle
size = r.headers['content-length']
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/rfc822.py", line 384, in __getitem__
return self.dict[name.lower()]
KeyError: 'content-length'


Ideas?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Should I use the same certifcate for all my apps or a different one per app?

2011-10-29 Thread Ricardo Amaral
I think my whole question could have been resumed to:

"Is there any benefit in using multiple certificates in the context of 
security?"

And given all your answers, I assume the answer is "no". Thank you all.

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

[android-developers] Library srec_jni

2011-10-29 Thread DulcetTone
Where does this reside, in a format compatible with
System.loadLibrary() on the host computer (say, when it is being used
within the simulator)?

I see a libsrec_jni.so , but regular non-Dalvik Java code on my own
machine does not recognize it as something good for loadLibrary() or
load().

There MUST be a version of it somewhere, as it can be used from within
the simulator.  I am trying to figure out if that one is suitable for
use from normal Java apps, and -- if not -- how to build one that is.

tone

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

2011-10-29 Thread TreKing
On Wed, Oct 26, 2011 at 1:17 AM, JavaSrvcs  wrote:

> I want to do a number of things.  I have a Samsung Galaxy 10.1 Tablet
>
> 1) I want to make an image and save it on my local machine
> 2) I want to run that image under virtual box or an emulator (with
> Internet connectivity as if I were actually using the device)
> 3) I want to be able to install the latest version of Android and all
> necessary drivers for the device
>

This group is for SDK development - this is way off-topic. Try here maybe:
http://forum.xda-developers.com/

-
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] SMS delivered receiver

2011-10-29 Thread BearTi
Hi,

I´ve a SMS App which can send SMS. I also have a send and delivered
Broadcastreceiver...

Question:
Is it possible to find out from which SMS e.g. the delivered-receiver
was called, so that I can discern the SMS?

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] Ads on new Honeycomb's PreferenceActivity with headers

2011-10-29 Thread Joan Pujol
Hi,

It's possible to add ads for new PreferenceActivities? I tried solution on 
http://stackoverflow.com/questions/5443491/adding-a-header-to-a-preferenceactivity
 but 
it doesn't work.

Or at least is there the code for Honeycomb's PreferenceActivity browseable 
someplace? 
Becaus I'm not able to found it.

Cheers,

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

[android-developers] Camera autofocus

2011-10-29 Thread kypriakos

Hi all,

I am getting the famous Failure [INSTALL_FAILED_MISSING_FEATURE] on an
Optimus LG 350P running Froyo (2.2.1). Checking the logging I see the
following:

E/PackageManager( 1376): Package org.mortbay.ijetty requires
unavailable feature android.hardware.camera.autofocus; failing!

What ??? The phone does have the autofocus feature on the phone. And
the app works
fine on the G1 ... would this mean that the autofocus is not "enabled"
hardware wise
on the device? Or is something else missing from the app's point of
view?

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] How to play Youtube video on Java, Android?

2011-10-29 Thread TreKing
On Sat, Oct 29, 2011 at 11:28 AM, andr  wrote:

> I need that player will close himself automatically after end of video.
> How can I do it?


Wait for the user to press back to your app. You can't control an external
activity, any more than an external activity can control your app.

-
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: Camera autofocus

2011-10-29 Thread kypriakos

And I do think Froyo still has the autofocus avaliable in its API ...
hmm

On Oct 29, 9:44 pm, kypriakos  wrote:
> Hi all,
>
> I am getting the famous Failure [INSTALL_FAILED_MISSING_FEATURE] on an
> Optimus LG 350P running Froyo (2.2.1). Checking the logging I see the
> following:
>
> E/PackageManager( 1376): Package org.mortbay.ijetty requires
> unavailable feature android.hardware.camera.autofocus; failing!
>
> What ??? The phone does have the autofocus feature on the phone. And
> the app works
> fine on the G1 ... would this mean that the autofocus is not "enabled"
> hardware wise
> on the device? Or is something else missing from the app's point of
> view?
>
> 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] integrate a third party application in my application

2011-10-29 Thread sam jeck
can we integrate a third party application in our android application?
if possible how to use it?
for example: text to speech.(using any application )?

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


Re: [android-developers] Re: "\n" Does NOT work ?

2011-10-29 Thread adithya holla
try ""

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