[android-developers] major problem with network location fixes and their timestamps

2011-10-13 Thread Mathias
Hi, if someone could bear with me on this one i'd be most happy since
i'm really disillusioned right now.

BOTTOM LINE (to be detailed further down):
It seems as though the Location.getTime() sometimes isn't accurate, in
that the system under certain circumstances just updates the time of
an old fix and passes it on as though it was new. For us, this is very
unfortunate.
I think it has something to do with this logline (again in more detail
below):
10-12 16:34:47.186: DEBUG/LocationMasfClient(1188):
getNetworkLocation(): Returning cache location with accuracy 1072.0

From what i can see, the same location is returned over and over
again, just with its timestamp overwritten...



EXPLANATION:
Have an app that queries location. I register both network and gps,
wait for a certain time and takes what comes back from either one and
unregister both. Before i register i check the latestknown location
and use that if it's not too old.

All works fine, process wise, but there's one major issue. I *need*
recent fixes, and for that i need to know how old the fix is. I
therefore utilize location.getTime() against the
system.currenttimillis to see how old it is.

However, we see in certain scenarios, that the fix coming back, with a
recent timestamp (often under a second!) is for a location where we
know that the phone hasn't been at for over 30 minutes!




LOCATION PROCESS EXPLANATION WITH LOG DETAILS:

One VERY interesting thing can be seen by examining the debug log of a
typical positioning process in my app:

1. first we check the latest known location:
10-12 16:34:47.166: DEBUG/nubaLocationService(6774):
getLastKnownLocationForProviderWithinTimeSpan;now;1318430087165;time;
1318429486221;nowDate;Wed Oct 12 16:34:47 Europe/Stockholm
2011;timeDate;Wed Oct 12 16:24:46 Europe/Stockholm 2011;age;
600944;TooOld;true;tooBadAccuracy;true;lat;59.3267657;lon;
18.0428283;accuracy;1072.0

here you can see that the age about 60 seconds, my upper limit is 30
seconds, so i will discard it and register for live updates:

2. register for location listening:
10-12 16:34:47.166: DEBUG/nubaLocationService(6774): requesting
network updates
10-12 16:34:47.166: DEBUG/NetworkLocationProvider(1188):
addListener(): com.karpet.nuba.android
10-12 16:34:47.166: DEBUG/NetworkLocationProvider(1188): setMinTime: 0

3 NetworkLocationProvider log entries and onLocationChanged callbacks:
Now HERE is something very interesting:
10-12 16:34:47.186: DEBUG/LocationMasfClient(1188):
getNetworkLocation(): Returning cache location with accuracy 1072.0
10-12 16:34:47.196: DEBUG/NetworkLocationProvider(1188):
onCellLocationChanged [142,9307015]
10-12 16:34:47.216: DEBUG/nubaLocationService(6774):
onLocationChanged();new bestLocation! now;1318430087220;time;
1318430087178;nowDate;Wed Oct 12 16:34:47 Europe/Stockholm
2011;timeDate;Wed Oct 12 16:34:47 Europe/Stockholm 2011;age;42;lat;
59.3267657;lon;18.0428283;accuracy;1072.0;oldnull?;true

It says returning cache location, with the exact same accuracy, lon,
lat, but CHANGED time!

4. We listen for 25-30 secs, but nothing more comes back, so eventually we 
unregister:
10-12 16:35:14.216: DEBUG/LocationManager(6774): removeUpdates:
listener = com.karpet.nuba.android.service.LocationService
$NubaLocationListener@4582cb78



I have no idea why this happens, but sometimes we can start and stop
our listening for quite a while, 20-30 times when we've travelled
quite far, to another cell tower, but still get old fixes as new
callbacks!


Help/Pointers would be extremely appreciated!

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


[android-developers] Contact lookup by phone does not work

2011-10-13 Thread Ricardo Granados
Hi Folks
im trying to build an app that among other things reads the contact
information stored in my contacts based on the phone number received
in an sms.
This is the code im using for the search that is currently not working
for me

package SMS_Listener;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
//import android.provider.Contacts;
import android.provider.Contacts;
import android.provider.Contacts.People;
import android.provider.ContactsContract.PhoneLookup;
import android.telephony.SmsMessage;
import android.view.Gravity;
import android.widget.Toast;

public class SmsReceiver extends BroadcastReceiver
{

@Override
public void onReceive(Context context, Intent intent)
{
//---get the SMS message passed in---
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
String str = ;
String numero = ;
if (bundle != null)
{
//---retrieve the SMS message received---
Object[] pdus = (Object[]) bundle.get(pdus);
msgs = new SmsMessage[pdus.length];

for (int i=0; imsgs.length; i++){
msgs[i] =
SmsMessage.createFromPdu((byte[])pdus[i]);
str += SMS from  + msgs[i].getOriginatingAddress();
numero += msgs[i].getOriginatingAddress();
str +=  :;
str += msgs[i].getMessageBody().toString();
str += \n;
}

System.out.println(Su Numero es:  + numero);
//--Get the name of the contact from contact list based on
the phone number

//change numero to an int value
int numeroi = Integer.parseInt(numero);
//

// This is where the program fails i have commented out in my code to
make it work for the moment

Uri lookupUri  =
Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI,
Uri.encode(numero));
/*if (lookupUri != null) {
Cursor c=context.getContentResolver().query(
lookupUri,new String[]
{PhoneLookup.DISPLAY_NAME},null,null,null);

while(c.moveToNext()){
String name=c.getString(0);
System.out.println(name=+name);
 }
c.close();
}

else  if (lookupUri == null){
System.out.println(No existe el numero en los
contactos);
}
*/
// end get contact info


//---display the new SMS message---
Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
}
}
}


All your help will be highly appreciated,
Thanks people,
rgv

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


[android-developers] Decreasing double tap timeout in GestureDetector

2011-10-13 Thread anusha r
Hi,
This is for an application listening to both single and double tap events.
Android's GestureDetector has a 300 ms [1] timeout to distinguish betweens
single and double taps. If the second tap has not occurred for 300ms,
onSingleTapConfirmed is called [2].

Whats the best way to reduce this timeout to something lesser, say 200ms?

I looked at the code and found that GestureDetector posts and empty message
to be delivered after 300ms. And onSingleTapConfirmed() is called when that
message is delivered to GestureDetector's handler.
Would I be able to post the same message but with a lesser delay from my
gesture detector's onTouchEvent method?

Thanks.

  [1]:
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.5_r1/android/view/ViewConfiguration.java#ViewConfiguration.0DOUBLE_TAP_TIMEOUT
  [2]:
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.5_r1/android/view/GestureDetector.java#271

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

[android-developers] NFC device interface

2011-10-13 Thread Godborg
Please provide info about the device interface for NFC in Android.
Im not interested in the highlevel Java interface (have seen that), but  
need to know how to add our own NFC reader device to the NFC stack in 
Android.
At least I'd like to know details of the current NFC device support - which 
devices are supported, and associated api's.

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] Creating an onClick event

2011-10-13 Thread Stefan Reaney
Hi guys,

Im pretty new to this android development, I am trying a to create a
button which will change the layout of the app to a different pre-made
xml layout.. I'm just unsure how to do this? Any pointers?

thanks

Stefan

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


[android-developers] DeviceMonitor]Failed to start monitoring DeviceSN

2011-10-13 Thread dare777
make sure that the distance between usbport and phone is  ~1meter
do not use any usb extentionwires

ive resolved this error for my samsung galaxy s2 by removing 1.5m
extention wire and plug my samsung usb cable directly into a backside
usb port

ym2c dare

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


[android-developers] Re: SQLite slow

2011-10-13 Thread Maxx57
Are you saying the data being returned should be faster, or the UI
blocks until your data is returned?
If you are saying the query should be faster, see all the above
replies, Since your data has the possibility to grow and queries might
really become slow, you need to make sure your UI does not halt until
the data is returned.  This class should be invoked in a new AsyncTask
and the activity you are running your UI in should display some sort
of wait graphic or progress bar.  This will at least tell your user
that you app is doing something.  I hope I understood what you are
asking.  I think I'm understanding it the same way everyone else is,
but you don't seem to be replying to the fact that your db calls
should be made on a separate thread because there will always be
potential for the query to be slow, even if you've got the fastest
query possible.

I just wish SQLite would implement stored procedures...

On Oct 12, 1:29 pm, John Goche johngoch...@googlemail.com wrote:
 On Wed, Oct 12, 2011 at 5:38 PM, Christopher Van Kirk 

 christopher.vank...@gmail.com wrote:
   You haven't provided enough information to help you.

  The question you need to ask is why is it slow? Are you opening and closing
  the connection many time? Too many records? Complex joins? Inefficient
  query? Lack of indexing? Unintentionally cartesianing?

 I don't have a lot of data. Just the following class accessed from every
 activity in my application and the storeAndRetrieve method called (which
 calls insert and delete sql statements on a handful of tables each having
 around just 60 rows each at the moment).

 class DB {

   private DB(Context ctx) {

     dbHelper = new DBHelper(ctx);
     database = dbHelper.getWritableDatabase();

   }

   public static DB db(Context ctx) {
     if (db == null)
       db = new DB(ctx);
     return db;
   }

   // store and retrieve data

   public Data storeAndRetrieve(Data data) {

     putData(data);

     Data retData = getData();

     return retData;

   }

  // ... data getters and setters

   private static DB db = null;
   private DBHelper dbHelper;
   private SQLiteDatabase database;

 }

 Yes when I run sqlite3 from adb shell it is fast, but for some
 reason when an activity is pushed and reads the data once
 opened it takes more than half a second which really slows
 down the user experience.

 Thanks for your help,

 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] adopting android touch pad for people with limited motor disabilities (using track ball mouse as input)

2011-10-13 Thread Horace Ho
HI Guys,

I am wondering if android as a touch based system supports mouse
operation.

It may sound a bit wired using a mouse on a touch pad. The situation
is that I am looking for a computer aided communication solution for
my Grandpa, who has lost his voice due to Parkinson's disease and can
hardly move either.

I am thinking about mounting a display above his head in lying
position (the lightness  small size of a touch pad makes it perfect
for that purpose). In this position, it would be too much an effort
for him to reach for the touch screen and do accurate operation. The
idea is to use the touch pad device as display and processing unit and
a trackball mouse (fixed to the side of his bed) as input. If this
hardware configuration is possible, I am also considering developing
specialized software for him (another reason why I am considering
android based system).

It would be great if I can get some feed back on the feasibility of
this configuration as well as advice on alternative possibilities. I
really appreciate the help from Android Developers community.

Thanks

Best
Horace Ho

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


[android-developers] Http Live Streaming

2011-10-13 Thread bhargavi
HI, i have found in net that Honey comb supports Http Live
Streaming.Has any one tried on this, how to test the HLS on Honey
Comb,Please Help me out how to test the HLS,

Thanks in Advance,
Bhargavi.

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


[android-developers] Re: Is it possible to create a app that's connected to a desktop client.

2011-10-13 Thread SENAMAS
Hi
I did it with Chilkat for Android (Socket lib)
It was Great!
Open a port in your client and make sure you can see your device over
the net by pinging its ip address.
add firewall exception on that port which is being used by your client
app
use sample code for c# cause it can be easily converted to Java.
www.example-code.com/android/default.asp
its free for 30 days.
kind regards
senamas


On Oct 11, 6:08 pm, Jin eeyc...@gmail.com wrote:
 Hi I've been doing a bit of research and am wondering if its possible
 to connect a android made application to a program on a PC.

 For example User 1 on the Desktop PC, User 2 on the mobile device.

 User 1 asks for user locations,User 2 gets notification to requesting
 location they accept and it sends details to user 1.

 User 1 program gets updated and a icon appears on a map where the user
 2 is. User 1 places a icon on the map

 User 2's own map gets update with icon where user 1 placed it.

 Regards

 Jin.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Stored files on sdcard deleted during uninstall or update

2011-10-13 Thread Llanox
That is a bad idea too?
No, If you don't need store private data there.

 Should I use /companyname on sdcard
directly?

In API Level 8 or greater, you could use
getExternalStoragePublicDirectory(companyname) in order to create a
directory which will not be erased when you
uninstall or update your app.


On Oct 12, 1:30 am, Yves Liu yves...@gmail.com wrote:
 I put data on the /data folder directly on sdcard. Not internal
 memory. That is a bad idea too? Should I use /companyname on sdcard
 directly?







 On Tue, Oct 11, 2011 at 9:54 PM, Chris crehb...@gmail.com wrote:

  On Tuesday, October 11, 2011 11:34:37 PM UTC-4, Nikolay Elenkov wrote:

  The real problem is that it gets deleted on *update* as well in some
  early Froyo versions. So it's not safe to use prior to 2.3.

  Eeesh.  I've had test devices with every Android version up to (but not
  including 3.x) and I've never come across this.  I don't use this path
  because it doesn't help me at all, but man ... considering the suggestion on
  d:

  You should then write your data in the following directory:

  /Android/data/package_name/files/

  ...this sounds like a bad misdirection.

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

2011-10-13 Thread dare777


make sure that the distance between usbbacksideport and phone is ~ 1 
meter, 

do not use any usb extentionwires (voltage drop) if u need a longer distance 
use a active usb hub with own psu

ive resolved this error for my samsung galaxy s2 by removing the 1.5m 
extention wire and plug my samsung usb cable directly into a backside 
usbport

ym2c dare

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 can i mount a yaffs2 image on Linux Ubuntu 11.04

2011-10-13 Thread Per
You would need to compile am yaffs2 driver module for your kernel to
do that,
it would proberly be easier to get the program unyaffs, then you can
unpack the
image to a directory. You should be able to find that program with a
little google
search.

Per

On Oct 11, 4:35 pm, luca aliberti lucal...@gmail.com wrote:
 I have extracted a yaffs2 image of my android phone situated in /dev/
 mtd/mtd0, for forensics purpose.

 I would know how can I mount it in ubuntu 11,04 to exploore the
 contents, because yaffs2 is not supported.

 Thanks to 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] Http Live Streaming

2011-10-13 Thread kiranmai
Hi ,
 Can you please help me on how to test HLS on android as HLS
supports for Android 3.0. Please reply me ASAP.

Thank you,
kiranmai. P

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

2011-10-13 Thread CelloHan
Hello,

I'm trying to install Android Development Tools (ADT).

I'm in the phase 6 of

Downloading the ADT Plugin in

http://developer.android.com/sdk/eclipse-adt.html .



I selected Developer Tools and clicked Next.

However, in the next phase,

I got stuck.

I would like to ask you help me solve this problem.

Currently, I'm using Windows Vista x86, jdk7,

and Eclipse IDE for Java Developers (Indigo).







The Install wizard says,

The operations cannot be completed.  See the details.

The Details says,

Cannot complete the install because one or more required items could
not be found.
  Software currently installed: Shared profile 1.0.0.1316138460759
(SharedProfile_epp.package.java 1.0.0.1316138460759)
  Missing requirement: Shared profile 1.0.0.1316138460759
(SharedProfile_epp.package.java 1.0.0.1316138460759) requires
'org.maven.ide.eclipse [1.0.100.20110804-1717]' but it could not be
found.



I'm searching in Google to solve this problem.

I found some candidates to solve this problem:

1. to install maven plugin,

2. to install m2e(is m2e equal to maven plugin?), and

3. to install com.collabnet.subversion.merge.feature.feature.group,
2.2.4.



However, I have no idea of what they are

and how to install them.

I tried to install m2e - Maven Integration for Eclipse

on http://download.eclipse.org/releases/indigo,

but it also failed by the same reason above.



Thank you in advance of your help.

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


[android-developers] Re: ebook for android

2011-10-13 Thread Sambhav
Good to see a head first fan.

I think the Android Developer site is best place to get started.
Tutorials are very well organised and precise.
Doing hands on these  is the best way to learn. In my opinion a book
wont help much.

You can also find good tutorials on vogella site.

On Oct 9, 6:42 am, shweta sonalaggrawal2...@gmail.com wrote:
 Hello,

 Plz tell me best book for android which has basic concept .the book
 should be like head first in java.

 Thanks
 shweta

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


[android-developers] Open Accessory Bluetooth support

2011-10-13 Thread david234589
Has anyone heard any hints as to how far away bluetooth support for
Android Open Accessory is?

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] plz help....

2011-10-13 Thread Kim Brorsson
Someone making malware, aye?

Den 12 okt 2011 13.06 skrev Divyata Panchal panchal.divyat...@gmail.com:

 how to stop uninstallation of any application in android...?

 plz help..

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

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

Re: [android-developers] i want to unsubcribe

2011-10-13 Thread Kim Brorsson

ohh my god man, read the signature of the email.
it simply CAN'T be more clear.

On 2011-10-11 11:11, guru moorthy wrote:

i want to unsubcribe
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] apk file size for uploading in android market.

2011-10-13 Thread prashant shrivastav
what is the exact size limit for publishing apps in the Android
Market??
It is still 50 MB or Google has raised this limit to 4 GB ???

Please let me know if anybody know this exactly...
Your help will be appreciable...


Thanks  Regards,
Prashant

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


[android-developers] SeekBar jumps ahead initially while playing short media files

2011-10-13 Thread ganesh
Hi All,

I am implementing a media player with seekbar controls.
I am using AsyncTask to update the seekbar progress.

I am facing one issue with seekbar when media player plays short media
files( 15 sec duration).
The issue is that seekbar suddenly jumps to around 2 seconds forward
at the start and then it is normal after this jump.
I mean, the seekbar does not start at the far left. Instead, it seems
to jump ahead initially.

Below is the Asynctask code for this



@Override
protected String doInBackground(Context... params) {

while (mCurrentPosition  mTotalDuration) {
try {
mCurrentPosition = mPlayer.getCurPosition();

if (mCurrentPosition  0) {
this.publishProgress(mTotalDuration);
} else {
this.publishProgress(mCurrentPosition);
}

Thread.sleep(20);
} catch (InterruptedException e) {
return null;
} catch (Exception e) {
return null;
   }

if (this.isCancelled()) {
return null;
}
}


 @Override
protected void onProgressUpdate(Integer... progress) {
mSeekbar.setProgress(progress[0]);
mDurationView.setText(ConvertToTimeString(progress[0]));
 }
///


Could anybody give some pointers to resolve this issue.


Thanks,
Ganesh

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

2011-10-13 Thread prashant shrivastav
Hi shweta,

First go through the developer.android.com -- DevGuide Section,
side by side u can follow below books which are freely available on net.

1.Android programming--  written By Nicolas 
Gamlich
2.The Busy Coder's Guide to Android Development-- By Mark L.Murphy.
3.Hello Android-- By-  Anthony Stevens

If you cant find the link then let me know. 
Take care...:-)

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

2011-10-13 Thread Sumedh Jiwane
Simple way to test HLS is to type the HLS link on web-browser and check
whether it plays. Normally HLS link ends with .m3u8 extension.
Also you can check whether link is up or not by running it on VLC or
Quicktime player.

Regards,

Sumedh

On Wed, Oct 12, 2011 at 5:29 PM, bhargavi bhargavi1...@gmail.com wrote:

 HI, i have found in net that Honey comb supports Http Live
 Streaming.Has any one tried on this, how to test the HLS on Honey
 Comb,Please Help me out how to test the HLS,

 Thanks in Advance,
 Bhargavi.

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

2011-10-13 Thread prashant shrivastav
what is the exact size limit for publishing apps in the Android
Market??
It is still 50 MB or Google has raised this limit to 4 GB ???

Please let me know if anybody know this exactly...
Your help will be appreciable...


Thanks  Regards,
Prashant

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

2011-10-13 Thread bhargavi
Hi,
Thanks for the response,i wanted to test HLS on Android 3.0 using
serve stream apk,but i dint find any m3u8 playlist.Can you send me  a
sample playlist so that i can test. Also is there any other  apk which
supports HLS. Please respond ASAP.

Regards,
Bhargavi.

On Oct 13, 11:16 am, Sumedh Jiwane sumed...@gmail.com wrote:
 Simple way to test HLS is to type the HLS link on web-browser and check
 whether it plays. Normally HLS link ends with .m3u8 extension.
 Also you can check whether link is up or not by running it on VLC or
 Quicktime player.

 Regards,

 Sumedh







 On Wed, Oct 12, 2011 at 5:29 PM, bhargavi bhargavi1...@gmail.com wrote:
  HI, i have found in net that Honey comb supports Http Live
  Streaming.Has any one tried on this, how to test the HLS on Honey
  Comb,Please Help me out how to test the HLS,

  Thanks in Advance,
  Bhargavi.

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

2011-10-13 Thread kiranmai
Hi,

I wanted to know testing HLS between Windows/Linux PC and Android
emulator/phone. I tried with ServeStream apk on android phone but it
didn't work. Can you please tell the steps on how to test HLS.

Regards,
Kiranmai.



On Oct 13, 11:16 am, Sumedh Jiwane sumed...@gmail.com wrote:
 Simple way to test HLS is to type the HLS link on web-browser and check
 whether it plays. Normally HLS link ends with .m3u8 extension.
 Also you can check whether link is up or not by running it on VLC or
 Quicktime player.

 Regards,

 Sumedh







 On Wed, Oct 12, 2011 at 5:29 PM, bhargavi bhargavi1...@gmail.com wrote:
  HI, i have found in net that Honey comb supports Http Live
  Streaming.Has any one tried on this, how to test the HLS on Honey
  Comb,Please Help me out how to test the HLS,

  Thanks in Advance,
  Bhargavi.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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: What is the use of Handler object in the constructor of the ContentObserver class?

2011-10-13 Thread skink


On Oct 12, 7:07 pm, Dinesh Bajaj dinesh.bajaj...@gmail.com wrote:
 Hi,

 I have read the Android doc on the 
 ContentObserverhttp://developer.android.com/reference/android/database/ContentObserv...class,
  but am not able to understand what is its use? What will be the
 difference if null instead is passed to the constructor?

 My understanding is that a Handler object is used to pass a message to the
 thread on which it is created, but I can't understand its use in the context
 of passing it to the ContentObserver.

 I would be grateful if someone could throw light on this.

 Thanks,
 Dinesh

Luke at the ContentObserver sources Luke.

And you will see that you can pass null in the ctor.

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: Is it possible a nested JAR in JAR?

2011-10-13 Thread Doug
It sounds like you need an ant build script or something to do stuff
prior to the final packaging of your app.  Jars don't ship with
android (if you want them to contain code you want run).  All classes
need to be dex'ed by the Android build tools before the final apk is
built.

Doug

On Oct 10, 2:56 pm, Build account newandroi...@gmail.com wrote:
 Hello.

 Is it possible repackage a my custom JAR with another JAR(which may
 came from others)
 for only another developer's convienence. Not the illegal purpose.

 Possible? then how?

 Please comment 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: Camera application

2011-10-13 Thread Fina Perez
Can you provide some logcat or some code? What's the error you get on
htc?

On Oct 12, 10:29 am, nageswara rao rajana nagu.raj...@gmail.com
wrote:
 Hi,

     I developed an application on 2.1, i integrated built-in camera app in
 my application.
     Its working perfectly on Samsung pop device but not working on HTC
 mobile.
     Can any one suggest me what might be the issue.

    Thanking you,
    Nagu.

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

2011-10-13 Thread Doug
Your XML parser should be doing this for you automatically.  Is that
not the case?  Normally developers don't need to write code to handle
things like this.  They are handled in the libraries that serialize
and deserialize data.  Doing all that yourself would be silly.

Doug

On Oct 11, 11:43 pm, ndiiie 90 rnd...@gmail.com wrote:
 Hi all,

 how to escape ampersand, such as lt; gt; quot; amp;
 And change it to proper character?

 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]

2011-10-13 Thread RAHUL PAWAR
hi friends
please anyone tell me is there any way as such database?if yes,how it can be
used?

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

2011-10-13 Thread Muthu S
Hi Friends


  How to play the remote Url videos.using intent or any otherway

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

2011-10-13 Thread Muthu S
Hi friends

 How to create a video players in android app.

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

2011-10-13 Thread RAHUL PAWAR
it is available at developers.android.com-reference,from where u can get
complete code.

On Thu, Oct 13, 2011 at 1:38 PM, Muthu S mu...@contus.in wrote:

 Hi friends

 How to create a video players in android app.

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

2011-10-13 Thread arun kumar
yes. SQLite plz check in www.developers.android.com


On Thu, Oct 13, 2011 at 1:33 PM, RAHUL PAWAR pawarrb...@gmail.com wrote:

 hi friends
 please anyone tell me is there any way as such database?if yes,how it can
 be used?

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

2011-10-13 Thread Muthu S
Hi Rahul

am not able to find out that code ,could you please help me.And
also exactly i want this information.

Please check this link .
http://www.androiddevelopers.info/android-discussions/how-play-the-remote-url-videos-2/
The above url link explain my problem its very urgent please help me.

On Thu, Oct 13, 2011 at 1:43 PM, RAHUL PAWAR pawarrb...@gmail.com wrote:

 it is available at developers.android.com-reference,from where u can get
 complete code.

 On Thu, Oct 13, 2011 at 1:38 PM, Muthu S mu...@contus.in wrote:

 Hi friends

 How to create a video players in android app.

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




-- 
*Thanks  and Regards
S.MUTHU MCA
Web Developer in Contus Support *
*Think-Operate-Prove   *

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

2011-10-13 Thread Muthu S
Hi mkhays


 The second one working i know that but its working some device  only
thats the problem its  show the video can't played error.Its  very
urgent kindly help me.Otherwise could you please tell me how to
integrate the youtube player in android app.How to integrate html5
player in android app.Please help me

On Oct 12, 4:32 pm, mkhays kakande...@gmail.com wrote:
 Hi, the second one works if you have any video player installed on
 your device.i have
 tried it with .3gp links.
 for the first one you may need to create your own player application
 ebeded into
 your application code so that you just pass the videos files to
 it(using intents)
 hope it helps

 On Oct 11, 10:38 am, Muthu S mu...@contus.in wrote:







  Hi

     Anybody Know the solution for my issue please help me.

  Issue:

   How play the remote url videos in android app .Am try two kind of way
  but is not working correctly please find my two kind of codes.

             vid=http://www.tamilclips.net/components/
  com_contushdvideoshare/videos/24_hd.mp4

       1.                    VideoView videoView = new VideoView(this);
                           setContentView(videoView);
                           MediaController mc = new MediaController(this);
                           mc.setAnchorView(videoView);
                           mc.setMediaPlayer(videoView);

                           videoView.setMediaController(mc);
                           videoView.setKeepScreenOn(true);

                           videoView.setVideoPath(vid);
                           videoView.start();

    2.               Uri uri = Uri.parse(vid);
                          Intent intent = new Intent(Intent.ACTION_VIEW, uri);
                          intent.setDataAndType(uri, video/mp4);
                          startActivity(intent);

   The first one not working but the second one is working but the
  android phone having streaming player option otherwise its show the
  video can't played error.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: What is the use of Handler object in the constructor of the ContentObserver class?

2011-10-13 Thread Dinesh Bajaj
@Indicator Veritatis:  Thank you for very much for your detailed responses.
Though I have not read the Notepad tutorial that you mentioned, I am
reasonably comfortable with Content Providers (as there are numerous
examples of it in the Internet). It is the Content Observer I found a little
difficult to understand as I couldn't found any realistic example of it on
the net.
So, I understand that the *OnChange* method of the ContentObserver will be
called on the thread to which the passed Handler object belongs to. Right?

-Dinesh

On Thu, Oct 13, 2011 at 12:43 PM, skink psk...@gmail.com wrote:



 On Oct 12, 7:07 pm, Dinesh Bajaj dinesh.bajaj...@gmail.com wrote:
  Hi,
 
  I have read the Android doc on the ContentObserver
 http://developer.android.com/reference/android/database/ContentObserv...class,
 but am not able to understand what is its use? What will be the
  difference if null instead is passed to the constructor?
 
  My understanding is that a Handler object is used to pass a message to
 the
  thread on which it is created, but I can't understand its use in the
 context
  of passing it to the ContentObserver.
 
  I would be grateful if someone could throw light on this.
 
  Thanks,
  Dinesh

 Luke at the ContentObserver sources Luke.

 And you will see that you can pass null in the ctor.

 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


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

2011-10-13 Thread Perry168
Who can give a hints for me?
Thanks a lot!

On 10月11日, 下午4時00分, Perry168 perry...@gmail.com wrote:
 Hi,

 How can I  backup the current wallpaper? Also, does any method to
 check the wallpaper is a livewallpaper or not?

 Thanks a lot!

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


[android-developers] Re: What is the use of Handler object in the constructor of the ContentObserver class?

2011-10-13 Thread skink


On Oct 13, 10:36 am, Dinesh Bajaj dinesh.bajaj...@gmail.com wrote:
 @Indicator Veritatis:  Thank you for very much for your detailed responses.
 Though I have not read the Notepad tutorial that you mentioned, I am
 reasonably comfortable with Content Providers (as there are numerous
 examples of it in the Internet). It is the Content Observer I found a little
 difficult to understand as I couldn't found any realistic example of it on
 the net.
 So, I understand that the *OnChange* method of the ContentObserver will be
 called on the thread to which the passed Handler object belongs to. Right?

 -Dinesh



 On Thu, Oct 13, 2011 at 12:43 PM, skink psk...@gmail.com wrote:

  On Oct 12, 7:07 pm, Dinesh Bajaj dinesh.bajaj...@gmail.com wrote:
   Hi,

   I have read the Android doc on the ContentObserver
 http://developer.android.com/reference/android/database/ContentObserv...class,
  but am not able to understand what is its use? What will be the
   difference if null instead is passed to the constructor?

   My understanding is that a Handler object is used to pass a message to
  the
   thread on which it is created, but I can't understand its use in the
  context
   of passing it to the ContentObserver.

   I would be grateful if someone could throw light on this.

   Thanks,
   Dinesh

  Luke at the ContentObserver sources Luke.

  And you will see that you can pass null in the ctor.

  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

See sources, e.g. 
http://www.netmite.com/android/mydroid/1.0/frameworks/base/core/java/android/database/ContentObserver.java
and take a look on dispatchChange at the very bottom

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] integrate the youtube player in android app

2011-10-13 Thread Muthu S
Hi all

If anybody knows how to integrate the youtube player in
android app.

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


[android-developers] Please give the solution for my videos

2011-10-13 Thread Muthu S
Hi All

Please give the solution for queries .Its really help for me very very
urgent .If anybody knows tell me.


1.Play the remote URl videos using intent

2.How to create a video player.

3.How to integrate the HTML5 player in android app.

4.How integrate the YouTube player in android app.

Exactly i want to play the mp4 videos and YouTube videos  within
the android app.If any body know please 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] Can I use device height in layout XML file?

2011-10-13 Thread limtc
Hi,

I am doing a drawing program which I have a palette height which is
exactly 1/5 of the device height. The question is: how do I specified
it in android:layout_height?

What I am doing now is stupid: I create a layout XML file for each
device size and change the layout_height. Is there a more elegant
solution? 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] Open media file in web server

2011-10-13 Thread Sunil Mishra
Hi,

I am currently developing a web server, and i want to play the content on 
phone in the browser of PC.

Is there any way to do this?

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

[android-developers] Hi this is basha

2011-10-13 Thread johny basha
hi can any help me

i am new android developer. i want to display a chart that should be updated
at run time with the user's data

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

[android-developers] Regarding WAP

2011-10-13 Thread nageswara rao rajana
Hi,

 I need to develop a WAP app, so any one please send information related
link.


 Thanking you,
 Nagu.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: major problem with network location fixes and their timestamps

2011-10-13 Thread lbendlin
you haven't explained your problem yet. What if I say So what, only use 
live GPS locations in your app? ?

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

[android-developers] how to use menu for full screen apps on honeycomb?

2011-10-13 Thread Changzhi Wang
thanks in advance!

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


Re: [android-developers] Re: What is the use of Handler object in the constructor of the ContentObserver class?

2011-10-13 Thread Dinesh Bajaj
@pskink@ : I was initially loathe to look at the source code, but after the
checking the link that you provided, I got the answer to my query. :-)

On Thu, Oct 13, 2011 at 3:01 PM, skink psk...@gmail.com wrote:



 On Oct 13, 10:36 am, Dinesh Bajaj dinesh.bajaj...@gmail.com wrote:
  @Indicator Veritatis:  Thank you for very much for your detailed
 responses.
  Though I have not read the Notepad tutorial that you mentioned, I am
  reasonably comfortable with Content Providers (as there are numerous
  examples of it in the Internet). It is the Content Observer I found a
 little
  difficult to understand as I couldn't found any realistic example of it
 on
  the net.
  So, I understand that the *OnChange* method of the ContentObserver will
 be
  called on the thread to which the passed Handler object belongs to.
 Right?
 
  -Dinesh
 
 
 
  On Thu, Oct 13, 2011 at 12:43 PM, skink psk...@gmail.com wrote:
 
   On Oct 12, 7:07 pm, Dinesh Bajaj dinesh.bajaj...@gmail.com wrote:
Hi,
 
I have read the Android doc on the ContentObserver
  http://developer.android.com/reference/android/database/ContentObserv..
 .class,
   but am not able to understand what is its use? What will be the
difference if null instead is passed to the constructor?
 
My understanding is that a Handler object is used to pass a message
 to
   the
thread on which it is created, but I can't understand its use in the
   context
of passing it to the ContentObserver.
 
I would be grateful if someone could throw light on this.
 
Thanks,
Dinesh
 
   Luke at the ContentObserver sources Luke.
 
   And you will see that you can pass null in the ctor.
 
   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

 See sources, e.g.
 http://www.netmite.com/android/mydroid/1.0/frameworks/base/core/java/android/database/ContentObserver.java
 and take a look on dispatchChange at the very bottom

 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


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

[android-developers] switching between activities

2011-10-13 Thread vani reddy
Hi friends,

How to switch to different activity without  calling
Intent intent = new Intent(CurrentActivity.this,NewActivity.class);
startActivity(intent);
I dont want to call oncreate at all?
-- 
Regards,
Vani Reddy

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

[android-developers] Re: How to use a OnClickListener in Fragment

2011-10-13 Thread Daniel Rindt
No ability for using the ClickListener in a Fragment?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: The file is invalid: W/ResourceType( 9654):

2011-10-13 Thread cellurl
I figured it out.

I renamed   res/values-en to res/values

cellurl

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


[android-developers] Using Dreamweaver Android SDK extension to develop?

2011-10-13 Thread Boyd Speer
Is anyone using Adobe Dreamweaver Android SDK extension to develop? 
Is it any better than Eclipse?

How about developing in Adobe Flash CS5 to compile the .apk

thanks for sharing any experiences...

-Boyd

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

2011-10-13 Thread Oli Wright
Seconded both on the recommendation of Mario's book and the usefulness of 
the site.  Consider it added to my feeds :)

As well as using Mario's book, I can recommend giving libgdx a look in 
(Google is your friend).  There are some great examples to get you started 
in the repository as well as a growing community wiki (link is somewhere in 
their forums).

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

[android-developers] Vibrate Trigger on Android Device

2011-10-13 Thread cipher_neo
Is it at all possible to trigger the phones vibration from a web app in 
android?

I know it is a long shot, and I am looking for any solution, however 
lengthy!

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] Android game programming

2011-10-13 Thread Mohammed Hossain Doula
BTW... AndEngine is also nice...

On Thu, Oct 13, 2011 at 6:57 PM, Oli Wright oli.wri...@gmail.com wrote:

 Seconded both on the recommendation of Mario's book and the usefulness of
 the site.  Consider it added to my feeds :)

 As well as using Mario's book, I can recommend giving libgdx a look in
 (Google is your friend).  There are some great examples to get you started
 in the repository as well as a growing community wiki (link is somewhere in
 their forums).

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




-- 
*--
Mohammed Hossain Doula
Software Engineer
desme INC.*
*www: http://www.hossaindoula.com
@: ron...@desme.com*
*facebook: http://www.facebook.com/ROnyWorld*
*twitter: http://www.twitter.com/hossaindoula*
*blogspot: hossaindoula.blogspot.com
GSM: 00880-167-4347101*

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

[android-developers] Re: How to use a OnClickListener in Fragment

2011-10-13 Thread Streets Of Boston
In your onCreateView callback of your fragment, you could do something like 
this:

*Button myButton = (Button)view.findViewByid(R.id.mybutton);*
*myButton.setOnClickListener(new OnClickListener() {*
*  public void onClick(View view) {*
*// put some code here that handles the click event.*
*...*
*  }*
*});*

Just like you could do in an Activity. Registering onClickListeners in 
Fragments is no different.

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

2011-10-13 Thread KK
Hi All,
I was trying to download the android source code and play around with
things. I'm trying to use this like
   http://source.android.com/source/downloading.html

to get the source code. It seems the URL is unavailable and the 404 page
comes up . I also tried to access the page manually at @
https://android.git.kernel.org/repo
but the page is not available. Is there any alternative for the same.

Would appreciate if someone can point me in the right direction to get the
(latest)android source code. Thanks a ton.


--KK

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

[android-developers] How can I import Facebook to my Android app?

2011-10-13 Thread Zwiebel
I have an app which in I want to import Facebook login and publish
possibilities. I got a source code facebook hackbook which has source
code about the things. But I have a problem. I can't get the android
hash code from the debug.keystore. I have an E drive instead of C so I
copy/pasted the code from the android facebook developer site, and
then changed the keystore's path to my path. But it writes that it
can't find the openssl. Could you help me please, how I can solve this
problem, please? 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: Android source code not available at official site

2011-10-13 Thread Chris


On Thursday, October 13, 2011 9:35:46 AM UTC-4, KK wrote:


 Would appreciate if someone can point me in the right direction to get the 
 (latest)android source code. Thanks a ton.


Its been unavailable roughly the past five weeks since kernel.org was 
hacked.  There's no official word on when the Android source will be 
available again even thought kernel.org itself is back up and running.  
There are some unofficial mirrors out there, try searching around.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 use menu for full screen apps on honeycomb?

2011-10-13 Thread Mark Murphy
On Thu, Oct 13, 2011 at 7:58 AM, Changzhi Wang changzhi2...@gmail.com wrote:
 thanks in advance!

Either don't make it full-screen, or roll your own menu as part of your UI.

Usually a full-screen tablet app will be some sort of game that would
not use an options menu even on a phone, preferring instead to
integrate some sort of menu system that is graphically integrated into
the game environment.

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

_Android Programming Tutorials_ Version 4.0 Available!

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


[android-developers] APK must be signed with the same certificates as the previous version

2011-10-13 Thread MobileVisuals
I try to upload new versions of 2 of my apps on Android market,but I
get the message apk must be signed with the same certificates as the
previous version. My old development environment crashed and I can't
find the certificate that I used before. How can I solve this problem?
Is there no possibility to update these apps now?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 I use device height in layout XML file?

2011-10-13 Thread Mark Murphy
On Thu, Oct 13, 2011 at 6:46 AM, limtc thyech...@gmail.com wrote:
 I am doing a drawing program which I have a palette height which is
 exactly 1/5 of the device height. The question is: how do I specified
 it in android:layout_height?

You can't, per se. You can put the palette inside of a LinearLayout
with android:layout_height=fill_parent and use android:layout_weight
on all the LinearLayout children to arrange to have the palette wind
up with 20% of the device height.

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

_Android Programming Tutorials_ Version 4.0 Available!

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


Re: [android-developers] APK must be signed with the same certificates as the previous version

2011-10-13 Thread Mark Murphy
On Thu, Oct 13, 2011 at 10:07 AM, MobileVisuals
eyv...@astralvisuals.com wrote:
 I try to upload new versions of 2 of my apps on Android market,but I
 get the message apk must be signed with the same certificates as the
 previous version. My old development environment crashed and I can't
 find the certificate that I used before. How can I solve this problem?

Restore your keystore from your backup. If you do not have a backup of
your keystore, AFAIK you are permanently screwed.

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

_Android Programming Tutorials_ Version 4.0 Available!

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


[android-developers] Re: Creating an onClick event

2011-10-13 Thread asdf
I think you can get the root view from the activity. And then remove
its child view then inflate the layout you want to added using
LayoutInflater. And add the view to the root view finally. Maybe it
will work.

On 10月12日, 下午9时38分, Stefan Reaney stefanrea...@gmail.com wrote:
 Hi guys,

 Im pretty new to this android development, I am trying a to create a
 button which will change the layout of the app to a different pre-made
 xml layout.. I'm just unsure how to do this? Any pointers?

 thanks

 Stefan

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


[android-developers] Does anyone completely using test-driven development strategy in android development?

2011-10-13 Thread hongbosb
I found TDD is quit a good stuff recently. But i think android`s testing 
framework isn't mature enough. For example, when i was going to use a mock 
framework, there is only android-mock can help me. And make it work out is 
quit tough thing. And when i was using robotium to automatic testing, 
emulator`s speed is quit slow. A test always run for 25s. And i still don't 
know how to test android's database because somebody in stackoverflow tells 
me they never test database.
I am new to android. So do you writing test before coding in android 
development? If not, how do you use unit test in android.
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: plz help....

2011-10-13 Thread hongbosb
You can push your apk file into /system/app. Then this app won't be 
uninstall in usual way.
ps: You mush root your phone and remount your device using adb remount.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: الانظمام الي هذا المجموعة

2011-10-13 Thread hongbosb
欢迎加入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: الانظمام الي هذا المجموعة

2011-10-13 Thread ourunix
同秀伟大美丽的方块字

From: hongbosb 
Sent: Thursday, October 13, 2011 10:58 PM
To: android-developers@googlegroups.com 
Cc: mohammed@hotmail.com 
Subject: [android-developers] Re: الانظمام الي هذا المجموعة

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

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

[android-developers] please help: broadcast receiver does not execute code

2011-10-13 Thread John Goche
Hello,

I am having the following problem and was wondering whether
anyone here could be so kind so as to help me. I am having a
broadcast receiver in my code that opens a database and sets
an alarm. However the code that sets the alarm is never called
as shown in the adb logcat output. What is interesting is that the
application does not crash but the intent that is called after the
alarm setter was supposed to be called is run. So the intent
that is launched after the alarm was supposed to be set is
called even though I see no debug output telling me that
the alarm setter function is called.

Any ideas as to what is going on?

(please see code below)

Thanks,

John Goche

public class AlarmReceiver extends BroadcastReceiver {

  @Override
  public void onReceive(Context context, Intent intent) {

Log.d(AlarmReceiver, received);

// retrieve database handle

DB db = DB.db(context);

// retrieve data from database

Globals.data = db.getData();

// reset alarms (seems like this does not get called)

Log.d(AlarmReceiver, Calling alarm setter...);
AlarmSetter.doSetupAlarm(context);
Log.d(AlarmReceiver, Done.);

// start new intent (this actually starts up for real)

Intent i = new Intent(context, AlarmExpiredActivity.class);
i.putExtra(alarmMessages, intent.getBundleExtra(alarmMessages));
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);

  }

}

class AlarmSetter {

  public static void doSetupAlarm(Context ctx) {

Log.d(AlarmSetter, doSetupAlarm called.);

   // ...

}

D/AlarmReceiver( 3805): received
I/ActivityManager(   61): Starting: Intent { flg=0x1000
cmp=com.bar.foo/.AlarmExpiredActivity (has extras) } from pid 3805

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

2011-10-13 Thread Divyata P
nope.. not malware!! jus to make an app for security purpose..

On Thu, Oct 13, 2011 at 3:23 AM, Kim Brorsson zhoo...@gmail.com wrote:

 Someone making malware, aye?

 Den 12 okt 2011 13.06 skrev Divyata Panchal panchal.divyat...@gmail.com
 :

 how to stop uninstallation of any application in android...?

 plz help..

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

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 insert image into listview and text also in list view

2011-10-13 Thread shital suryawanshi
hi
 if any one have information about that pls send me

thanks
shital

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

2011-10-13 Thread Darren K
I have this exact same problem. Pressing the on in the system bar expands 
the one on the action bar. I have set targetSdkVersion to 11. Also tried it 
with 13.

There must be some exception that both of us have found to the rule not to 
show the system bar legacy menu button when targeting 11.  Hoping someone 
from Google can help, since the Honeycomb source isn't open for us to find 
the solution.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 want to know how can I make the cell take input from the soft keypad ?

2011-10-13 Thread sunny
Hi,

I am a newbie to Android development.

I have created a grid of rows x columns by creating a class which
extends a View and then painting the grid lines on the canvas. Then I
was able to pop up the soft keypad when a user touches any cell on the
grid.

1) I want to know how can I make the cell take input from the
displayed soft keypad. eg :- I type 'A' on the soft keypad, then the
alphabet 'A' should be shown in the selected cell. I am unable to
achieve this.

2) How can I achieve horizontal fling on the grid so that I can scroll
horizontally ?

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] Where could I download CTS 2.3_r9 source code?

2011-10-13 Thread Enrico
ATT

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


[android-developers] Fragment visibility after transaction

2011-10-13 Thread Nick Parker
Hello,

I am using the fragment compatibility library and have a question
about fragment transactions.  I am using a third-party action bar and
two fragments in this scenario.  Each fragment updates the user
interface of the outside action bar when they are displayed.  When
displaying the first fragment, I add a button to the action bar which
when clicked performs a fragment transaction replace operation to
display the second fragment.  The second fragment updates the display
of the action bar accordingly.

The problem I am seeing is when the user presses back, or I need to
manually remove the second fragment via a popBackStack operation, I
need to be able to update the view of the newly visible initial
fragment.  At first I thought that OnBackStackChangedListener would be
the solution, however when that gets triggered during the replace
going from one fragment to another it causes the initial first
fragment to update the state of the action bar when the second
fragment is actually visible.  I tried to check for visibility within
onBackStackChanged of the first fragment, but the fragment always
comes back as being visible even when it shouldn't in the scenario of
loading the new fragment.  Does anyone have any suggestions for this
type of situation?  Any thoughts to what I might be missing?  Thanks!

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


[android-developers] terminating the application in android issue

2011-10-13 Thread Uberall, Android

Dear All Experts,


I have developed my own application but I am unable to close it through 
coding.

I have  tried following ways
(a) System.exit(0)
(b) android.os.Process.killProcess(android.os.Process.myPid());
(c) super.destroy()
(d) this.finish();
(e) Mycurrentactivityclassname.this.getParent().finish();


but these all code restarts my application.  Anybody's help will be 
appreciated.
If I press the back button it seems that it has closed but again it is 
started after a fraction of seconds.
If I press home key , it got the android deskop screen but when I see it 
is in task manager list,
 but it does not appear in the running process setting menu of 
mobile. But whenever I run the application again it appears in the same 
state when I had pressed home button.





Thanks  Regards
Prashant B Lal

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

[android-developers] Robotium Vs Monkeyrunner

2011-10-13 Thread Mahendran
I'm new to Android and I'm trying to understand
1. Which is better tool for testing both Native app. and Web based
application?
2. MonkeyRunner code can be run in mobile device or can be done only
in the SDK?


Thanks,
Mahendran

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


[android-developers] My app is on market but any device can install it

2011-10-13 Thread deloupy jp
Hi,

1) We can't find our appli  in  android market, only in our developer
account .

It has been developed on eclipse and tested successfully on samsung galaxy 2
We can't find  any relevant reason for dysfunction of our application.

When i want to install on my mobile, it's not OK too.


Thanks for yours responses

JPWens

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en?xml version=1.0 encoding=UTF-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.confianceo.mobile.google.zxing.client.android
  android:versionName=1.2
  android:versionCode=5
  android:installLocation=preferExternal
  
!-- We require Cupcake (Android 1.5) or later, but are really targeting Donut. --
		uses-sdk android:minSdkVersion=4 android:targetSdkVersion=8/
 !-- pour tablette	uses-sdk android:minSdkVersion=4 android:targetSdkVersion=11 /--


  !-- Donut-specific flags which allow us to run on any dpi screens. 

		supports-screens 
			android:normalScreens=true
			android:smallScreens=true
			android:largeScreens=true 
			android:xlargeScreens=true 
			android:anyDensity=true--
		
  
	compatible-screens
!-- all small size screens --
screen android:screenSize=small android:screenDensity=ldpi /
screen android:screenSize=small android:screenDensity=mdpi /
screen android:screenSize=small android:screenDensity=hdpi /
screen android:screenSize=small android:screenDensity=xhdpi /
!-- all normal size screens --
screen android:screenSize=normal android:screenDensity=ldpi /
screen android:screenSize=normal android:screenDensity=mdpi /
screen android:screenSize=normal android:screenDensity=hdpi /
screen android:screenSize=normal android:screenDensity=xhdpi /
		 !-- all large size screens --
screen android:screenSize=large android:screenDensity=ldpi /
screen android:screenSize=large android:screenDensity=mdpi /
screen android:screenSize=large android:screenDensity=hdpi /
screen android:screenSize=large android:screenDensity=xhdpi /
		 !-- all xlarge size screens --
screen android:screenSize=xlarge android:screenDensity=ldpi /
screen android:screenSize=xlarge android:screenDensity=mdpi /
screen android:screenSize=xlarge android:screenDensity=hdpi /
screen android:screenSize=xlarge android:screenDensity=xhdpi /
		/compatible-screens
		supports-screens 	android:resizeable=true/supports-screens	
	
  !--  android:largestWidthLimitDp=integer
  For Donut and above we must specify that we use the camera, but intentionally omit the
  autofocus feature in order for the app to appear in Market for non-AF devices. While it's true
  that 1D barcodes will not be scannable, QR Codes will work. Ideally we'd show users a message
  to this effect on first launch. --
		


  application
   
   android:debuggable=false
   android:icon=@drawable/launcher_icon
android:label=@string/app_name  
service android:name=com.confianceo.mobile.Service_notification_geoloc/
uses-library android:name=com.google.android.maps /
activity android:name=.CaptureActivity
  android:screenOrientation=landscape
  android:configChanges=orientation|keyboardHidden
  android:theme=@android:style/Theme.NoTitleBar.Fullscreen
  android:windowSoftInputMode=stateAlwaysHidden
!--  
  intent-filter
action android:name=android.intent.action.MAIN/
category android:name=android.intent.category.LAUNCHER/
  /intent-filter
--
  intent-filter
action android:name=com.confianceo.mobile.google.zxing.client.android.SCAN/
category android:name=android.intent.category.DEFAULT/
  /intent-filter
  !-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. --
  intent-filter
action android:name=android.intent.action.VIEW/
category android:name=android.intent.category.DEFAULT/
category android:name=android.intent.category.BROWSABLE/
data android:scheme=http android:host=zxing.appspot.com android:path=/scan/
  /intent-filter
  !-- We also support a Google Product Search URL. --
  intent-filter
action android:name=android.intent.action.VIEW/
category android:name=android.intent.category.DEFAULT/
category android:name=android.intent.category.BROWSABLE/
data android:scheme=http android:host=www.google.com android:path=/m/products/scan/
  /intent-filter
  !-- And the UK version. --
  intent-filter
action 

[android-developers] Do I need to buy Google Maps license for Android?

2011-10-13 Thread elFerZur
I want to develop an Adroid App (for internal use, not for Android
Market) that uses Google Maps Api to view vehicles position in real
time over maps. The application is not for comercial use, only for few
users that have android phones, and want to know the position of
vehicles over Google Maps.
Do I need license for that app?.
What kind of license, and where can I buy?

Regards:
elFerZur

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

2011-10-13 Thread ramya
Hi,
1)I am converting an ipad project to android.In doing so,in ipad
version ,I can save the internal files in bundle (called Bundle
directory) and all the files are stored under documents which is
internal to app.

In android we have /data/data/{package name}/files

My Question is I should be able to store large data inside the
internal storage.Does tablet have large internal space ?I dont want to
save the files in sdcard either because it can be replaced or
something.

Is the device RAM used for internal storage of files?I am facing a
memory problem where as in ios we can have sufficient data stored in
sandbox...I need to copy files from assets to in internal storage
during run time(by files I mean large files).

Can somebody throw light on this.

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


[android-developers] Gingerbread boot time page fault

2011-10-13 Thread Christian Pinto
Hello everybody,

i'm working on the porting of Android gingerbread on an ARM based
virtual platform, based on ARM Fast Models Emulator (Cortex-a9 is the
target architecture). I was able to patch a Linux-2.6.38 kernel which
works pretty good with some releases of Android and the virtual
platform described above.
While trying to boot gingerbread i get an unhandled page fault error
at boot time, before even getting a command line session.
The init is executed and the error appears while starting services and
commands specified in init.rc. Gingerbread has been compiled
specifying armv7-a as TARGET_ARCH_VARIANT.

Following an extract of the error:

[5.68] debuggerd: unhandled page fault (11) at 0x000c,
code 0x017
[5.68] pgd = cb13c000
[5.68] [000c] *pgd=8d0a2831, *pte=, *ppte=
[5.68]
[5.68] Pid: 469, comm:debuggerd
[5.68] CPU: 1Not tainted  (2.6.38.5-00257-g3dd46ed-dirty
#2)
[5.68] PC is at 0xafd14d88
[5.68] LR is at 0xb00037b5
[5.68] pc : [afd14d88]lr : [b00037b5]psr: 4030
[5.68] sp : bed29ba0  ip : afd0a454  fp : b000fc94
[5.68] r10: b00094c4  r9 : b0010524  r8 : b00102d0
[5.68] r7 : 8c65  r6 : 0004  r5 : 0004  r4 :
afd40004
[5.68] r3 :   r2 :   r1 : 0004  r0 :
0ff0
[5.68] Flags: nZcv  IRQs on  FIQs on  Mode USER_32  ISA Thumb
Segment user
[5.69] Control: 10c5387d  Table: 8d13c04a  DAC: 0015
[5.69]
[5.69] R0: 0x0f70:
[5.69] 0f70      
 000 
[5.69] 0f90      f57ff05f
e12fff1e e32 e320f000
[5.69] 0fb0  e320f000 e320f000 e320f000 e320f000 f57ff05f
e1923f9f e053000 01823f91
[5.69] 0fd0  03330001 0afa e273 eaef


Does anyone knows the source of this problem??? I can't figure out
what is happening.

Thanks in advance

Best Regards,

Christian

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


[android-developers] Service BroadcastReceiver and Activity

2011-10-13 Thread Diego Fernandez
Hello to all, I have read something about how to launch a
Activity from BroadcastReceiver, hence now I am reached the point
where I really cant not find the answer to... why is closing my
application?.

I will explain the idea of ​​the application:

It consists of a main screen main that has only one
ToggleButton, when it changes state to On begins my
service, when go to Off does the same and stops it.
This all works fine, I can close the application and
service continue running smoothly. I can stop this service when I
want, reopening the application and changing the button to OFF.
Now the service MyService is waiting any
change of your phone, for each change It send a message like a Toast,
it helps me to know and
check if my service is active, it works
perfectly except when you add the code lines to run an Activity that
contains
simply an image that is where the application is closed, if I leave
only the Toast, it is going great, tells me that
the phone are ringing and informs the incoming phone number.

I create a class that receives the
context and try to launch the Activity in question NewScreen

Here I leave the application code, Any idea?
It took me several days and I dont reach any breakthrough.

Thanks for advance

--

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=xx.com.x.myservice
android:versionCode=1
android:versionName=1.0
uses-sdk android:minSdkVersion=4 /
uses-permission android:name=android.permission.VIBRATE/uses-
permission
uses-permission
android:name=android.permission.READ_PHONE_STATE/uses-permission

application
android:icon=@drawable/icon
android:label=@string/app_name

activity
android:label=@string/app_name
android:screenOrientation=portrait android:name=Main
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

activity
android:screenOrientation=portrait
android:name=NewScreen
/activity

service
android:label=My Service
android:enabled=true
android:name=MyService
/service
/application
/manifest

--

public class Main extends Activity{

ToggleButton buttonStatus;
ActivityManager ActivityMan;
ListRunningServiceInfo RunningServices;
boolean isMyServiceRunning = false;

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

ActivityMan = (ActivityManager) this.getSystemService
(ACTIVITY_SERVICE);
RunningServices =
ActivityMan.getRunningServices(Integer.MAX_VALUE);

buttonStatus = (ToggleButton) findViewById(R.id.buttonStatus);
buttonStatus.setOnCheckedChangeListener(listener);

checkServiceRuning();
showStatusService();
}

OnCheckedChangeListener listener = new OnCheckedChangeListener() {
public void onCheckedChanged(CompoundButton buttonView,
boolean isChecked) {
showStatusService();
MyService(isChecked);
}
};

public void checkServiceRuning(){
for (RunningServiceInfo runningServiceInfo : RunningServices)
{
if
(runningServiceInfo.service.getClassName().equals(MyService.class.getName()))
{
isMyServiceRunning = true;
buttonStatus.setChecked(true);
}
}
}

public void MyService(boolean status){
if (status)
startService(new Intent(getApplicationContext(),
MyService.class));
else
stopService(new Intent(getApplicationContext(),
MyService.class));
}

public void showStatusService(){
if(buttonStatus.isChecked()) {
Toast.makeText(Main.this, Service ON,
Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(Main.this, Service OFF,
Toast.LENGTH_SHORT).show();
}
}
}

--

public class MyService extends Service {

BroadcastReceiver phoneStateChangeReceiver;
Bundle extras;
String phoneNumber;

@Override
public void onCreate() {

phoneStateChangeReceiver = new PhoneStateChangeReceiver();
registerReceiver(phoneStateChangeReceiver, new
IntentFilter(android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED));
}

public void onDestroy() {
unregisterReceiver(phoneStateChangeReceiver);
}

public class PhoneStateChangeReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String newState = intent.getStringExtra(state);
Toast.makeText(getApplicationContext(), Phone state:  + newState,
Toast.LENGTH_SHORT).show();

if
( android.telephony.TelephonyManager.EXTRA_STATE_RINGING.equals(newState) )
{
extras = intent.getExtras();
phoneNumber =
extras.getString(TelephonyManager.EXTRA_INCOMING_NUMBER);
Toast.makeText(getApplicationContext(), Phone number:  +
phoneNumber, Toast.LENGTH_SHORT).show();
showScreen(getApplicationContext());
}
}
}

public void showScreen(Context context){
Intent NewScreen = 

[android-developers] Finding the Users Nearest Places

2011-10-13 Thread Murali
I finished the code for user curretn location .i done json parsing to
get nearest places but i get only users current location only ..what
can i do..?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] My app is on market but any device can install it

2011-10-13 Thread Appaholics
Could you tell us the name?

Thanks

On Thu, Oct 13, 2011 at 7:57 PM, deloupy jp jpdelo...@gmail.com wrote:

 Hi,

 1) We can't find our appli  in  android market, only in our developer
 account .

 It has been developed on eclipse and tested successfully on samsung galaxy
 2
 We can't find  any relevant reason for dysfunction of our application.

 When i want to install on my mobile, it's not OK too.


 Thanks for yours responses

 JPWens



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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

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

[android-developers] SoftPhone

2011-10-13 Thread papar
Hallo allemaal,
Ik wil graag weten hoe kan ik een softphone voor android maken?
Is er een tutorial of gids of example?
Is er een opleiding in dit richting?

Groetjes,
Papar.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Do I need to buy Google Maps license for Android?

2011-10-13 Thread Appaholics
It is free for any use as long as you leave their logo intact and visible.
AFAIK.

Thanks

On Thu, Oct 13, 2011 at 1:55 PM, elFerZur fzuri...@gmail.com wrote:

 I want to develop an Adroid App (for internal use, not for Android
 Market) that uses Google Maps Api to view vehicles position in real
 time over maps. The application is not for comercial use, only for few
 users that have android phones, and want to know the position of
 vehicles over Google Maps.
 Do I need license for that app?.
 What kind of license, and where can I buy?

 Regards:
 elFerZur

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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

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

[android-developers] Re: How to get class file from APK

2011-10-13 Thread ven
http://stackoverflow.com/questions/3593420/android-getting-source-code-from-an-apk-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: Http Live Streaming

2011-10-13 Thread zafera
Here is a test stream link from microsoft you can type this to android
device's web browser and see if it plays the video.

httplive://mediadl.microsoft.com/mediadl/IISNET/SmoothMedia/iPhone/bbb/output/test.m3u8

Zafer

On 13 Ekim, 10:04, bhargavi bhargavi1...@gmail.com wrote:
 Hi,
     Thanks for the response,i wanted to test HLS on Android 3.0 using
 serve stream apk,but i dint find any m3u8 playlist.Can you send me  a
 sample playlist so that i can test. Also is there any other  apk which
 supports HLS. Please respond ASAP.

 Regards,
 Bhargavi.

 On Oct 13, 11:16 am, Sumedh Jiwane sumed...@gmail.com wrote:







  Simple way to test HLS is to type the HLS link on web-browser and check
  whether it plays. Normally HLS link ends with .m3u8 extension.
  Also you can check whether link is up or not by running it on VLC or
  Quicktime player.

  Regards,

  Sumedh

  On Wed, Oct 12, 2011 at 5:29 PM, bhargavi bhargavi1...@gmail.com wrote:
   HI, i have found in net that Honey comb supports Http Live
   Streaming.Has any one tried on this, how to test the HLS on Honey
   Comb,Please Help me out how to test the HLS,

   Thanks in Advance,
   Bhargavi.

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

2011-10-13 Thread amjad yoosuf
Dear

Am using new Samsung Galaxy S i9000 Phone But i cant create my Android
Account I just try to download some applications But that time see in
this message

*There are no Android phones associated with this account. Please sign in
with a different account.*



-- 
*
Amjath Yoosuf*

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

[android-developers] Get Application Context After Force closed

2011-10-13 Thread Manikandan M
Hi

I integrated c2dm in my application its working fine. once c2dm
notification came i do some database operation so i need the context
to create OrmLiteSqliteOpenHelper object.

OrmLiteSqliteOpenHelper lDatabaseHelper =
OpenHelperManager.getHelper(context.getApplicationContext());

This is fine in normal cases.

Suppose if i force stop my application manually from settings-
application-manageapplication. if any c2dm message came after i am
unable to create OrmLiteSqliteOpenHelper object. it seems application
context getting null.

Exception :
java.lang.IllegalStateException: Could not find OpenHelperClass
because none of its generic parameters extends
OrmLiteSqliteOpenHelper: null

How do i get the application context after force stopping the
application.

Please 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


[android-developers] OpenGL reinitialization in Android

2011-10-13 Thread Jigar
We are trying to re-initialize OpenGL instance on Android in the
SurfaceFlinger. For this, I am calling an API in SurfaceFlinger
implemented by us. This API inturn speaks with OpenGL through
DisplayHardware.

Now, to re-initialize OpenGL, first I flush the existing OpenGL
instance  then recreate a new one. Following steps are followed to
flush the existing OpenGL instance:

eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE,
EGL_NO_CONTEXT);
eglDestroySurface(mDisplay, mSurface);
eglDestroyContext(mDisplay, mContext);

eglTerminate(mDisplay);

Then to re-initialize:
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
eglInitialize(display, NULL, NULL);
eglGetConfigs(display, NULL, 0, numConfigs);
surface = eglCreateWindowSurface(display, config,
mNativeWindow.get(), NULL);
context = eglCreateContext(display, config, NULL,
contextAttributes);

The flushing thing works fine. But the problem comes when we
reinitialize OpenGL. The call to eglCreateWindowSurface() returns a
NULL Surface with an error code 0x3003 (EGL_BAD_ALLOC).

Any idea where am I doing anything wrong??

OR

Can you please tell me a sequence through which I can recreate a
OpenGL instance.

OR

Is there anything which I need to take care while deleting the OpenGL.

Thanks in advance. -Jigar

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

2011-10-13 Thread apalsson
Actually http://android.git.kernel.org/ is up again, but still dreams of 
electric sheep. No repo yet available.
But it's a promising start and hopefully we'll see some sources again in a 
week or two. :)

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

[android-developers] Apply custom effect to camera preview

2011-10-13 Thread Jordi Puigdellívol
Hi guys,
I want to add some effects to the camera preview, I found out that the
best way is to pass it to a opengl texture and display it over the
Surface,

I found an example that gets the luminance and displays it, however I
want to use the RGB image to apply my efects, is there an easy way to
achieve that?

I found a function that converts the YUV image into a int[] array,
with the HEX values,
Then, I think  a good solution is to create the gltexture from this
int[] array, but I couldn't achieve that...

Any idea or solution?

It would be really help!
Thanks!

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


[android-developers] Re: Android game programming

2011-10-13 Thread Jordi Puigdellívol Hernández
You can try andengine, it has some samples that may help 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] Registering Intent for Sending a link / web page

2011-10-13 Thread Markus Wolff
Hi,

I'm trying to register an intent so that my app pops up as a possible
choise when choosing Share link from the browser's context menu or
More - Share page from the browser's application menu.

To do this, I have so far created a new activity called
ShareActivity and updated the manifest like this:

activity android:label=@string/app_name
android:name=SendActivity
  intent-filter
   action android:name=android.intent.action.SEND /
   category android:name=android.intent.category.DEFAULT /
   data android:scheme=http / --
  /intent-filter
/activity

Sadly, this doesn't work. The browser (in a default Android 2.3.3
image running in the emulator) does not offer any choice when tapping
Share link - instead, it goes straight to the SMS app and wants to
send it this way.

When I use android.intent.action.VIEW instead of .SEND, my activity is
actually called when I just tap a link - a dialog is displayed,
allowing to choose between the default browser and my app. However,
that's not what I want.

I've tried any combination of activity and category that seemed
somewhat logical (and yes, even seemingly illogical choices), but to
no avail.

Can anyone offer any pointers to what I'm doing wrong?

Much appreciated!

Regards,
Markus

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

2011-10-13 Thread Appaholics
This is an SDK support list. For your phone support please use other forums.

Thanks

On Thu, Oct 13, 2011 at 4:29 PM, amjad yoosuf amjathyoo...@gmail.comwrote:

 Dear

 Am using new Samsung Galaxy S i9000 Phone But i cant create my Android
 Account I just try to download some applications But that time see in
 this message

 *There are no Android phones associated with this account. Please sign in
 with a different account.*



 --
 *
 Amjath Yoosuf*

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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

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

2011-10-13 Thread Alfdevel
Hi, you could use AChartEngine :http://www.achartengine.org/



On 13 oct, 13:16, johny basha visitba...@gmail.com wrote:
 hi can any help me

 i am new android developer. i want to display a chart that should be updated
 at run time with the user's data

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Graphical anomaly with hints disappearing. Can anyone explain?

2011-10-13 Thread darrinps
It did for me as well. If you remove top though, it goes away. This is
a bug, albeit a lesser one than I thought at first as long as someone
knows the work around.

On Oct 8, 11:00 am, Studio LFP studio@gmail.com wrote:
 I tested the following code:

 EditText android:id=@+id/etMessage android:layout_width=fill_parent
 android:layout_height=fill_parent android:layout_weight=1
 android:hint=Compose text message... android:maxLines=3
 android:capitalize=sentences android:autoText=true
 android:inputType=textShortMessage|textAutoCorrect|textCapSentences|textMultiLine
 android:imeOptions=flagNoExtractUi
 android:gravity=top|right /

 On the following devices:

 Motorola Droid (2.2.2)
 HTC Hero (2.1-update 1)
 Samsung Galaxy Tab (2.2)
 Sony Xperia Play (2.3.2)

 They all worked fine. Maybe adding the top to it corrected it.

 Steven
 Studio LFPhttp://www.studio-lfp.com







 On Saturday, October 8, 2011 10:42:59 AM UTC-5, Kostya Vasilyev wrote:

   FWIW: I just tried it on an HTC Incredible S (official firmware, 2.3.3)
  and got the same result as the OP:

  Setting android:gravity=right made android:hint disappear.

  Previews as rendered by a special library, which, AFAIK, does not use the
  same exact code as a real runtime (device or emulator) does.

  -- Kostya

  08.10.2011 19:20, Studio LFP пишет:

  There is definitely something wrong in the code.

  The first time I tested was on a Samsung Galaxy Tab (2.2) and I just tested
  it again on the Xperia Play (2.3.2) and it worked just fine.

  If you want to post the XML that contains the layout, that would be
  helpful.

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

  On Saturday, October 8, 2011 10:11:33 AM UTC-5, darrinps wrote:

  I have tried it out on a 2.2 device (Samsung Galaxy) and using the 2.3
  emulator. Same thing on both.  What is odd though is that is shows up
  in the preview just fine!

  I know, you would think that there is something shifting it in the
  code but the just isn't.

  This is very frustrating.

  On Oct 7, 4:04 pm, Studio LFP stud...@gmail.com wrote:
   I just tested this on an application I had in front of me and it worked
   well.

   Which version of Android are you testing on (and what hardware)? Are
  there
   any other settings on the view that might be causing a conflict? Or
  maybe
   there is another view overlapping that is causing an issue?

   Steven
   Studio LFPhttp://www.studio-lfp.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-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

  --
  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] Re: working with tabs (tabhost)

2011-10-13 Thread Kristoffer
Hello.

Thanks for a good answer.
Have a nice day.

On 12 Okt, 05:21, Subin Sebastian subinsebast...@gmail.com wrote:
 Hi Kristoffer,

 Hope you were following the tutorial I've posted in the last response. I've
 figured out a way to do your requirement. The idea is to clear all the tabs
 which is loaded before in onClick of the button inside one of the view. You
 can move that code into yout on_preference_change (or what ever you are
 using). Anyway, I'm not sure this is the optimal way to do the same, but it
 works!

 Thanks

 public class HelloTabActivity extends TabActivity {
     int verified = 1;
     TabHost mTabHst;
     View view1,view2;
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         mTabHst = getTabHost();
         view1 =
 ((LayoutInflater)getApplicationContext().getSystemService(getApplicationCon­text().LAYOUT_INFLATER_SERVICE)).inflate(R.layout.layout_one,(ViewGroup)
 mTabHst.getChildAt(2));
         view2 =
 ((LayoutInflater)getApplicationContext().getSystemService(getApplicationCon­text().LAYOUT_INFLATER_SERVICE)).inflate(R.layout.layout_two,(ViewGroup)
 mTabHst.getChildAt(2));
         view1.findViewById(R.id.button1).setOnClickListener(new
 OnClickListener()    {
             @Override
             public void onClick(View arg0) {
                 verified = 0;
                 setTabs();
             }
         });
         setTabs();
         mTabHst.setCurrentTab(0);
     }
     private void setTabs()    {
         Resources res = getResources();
         mTabHst.clearAllTabs();

 mTabHst.addTab(mTabHst.newTabSpec(tab_test1).setIndicator(One,res.getDr­awable(R.drawable.one)).setContent(new
 TabContentFactory() {
             @Override
             public View createTabContent(String tag) {
                 //int verified = pref.getInt(verified, 0);
                 if (verified == 1)
                     return view1;
                 else
                     return view2;
             }
         }));
     }

 }

 --
 Subin 
 Sebastianwww.nintriva.comhttp://in.linkedin.com/in/subinsebastienhttps://plus.google.com/subinhttps://plus.google.com/118262481642737404812

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