[android-developers] Does 720p resolution is supported by VP8decoder in Gingerbread 2.3.3?

2011-05-02 Thread Pandi
Hi,

I am trying to play an WebM video file with 720p resolution , i am not
able to see the video of that file and audio is audible. The VP8
decoder supports the WebM file format in Gingerbread 2.3.3.
 I have an doubt on the limitations of the VP8 decoder. So, can anyone
tell me the limitations of VP8 decoder.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 720p resolution is supported by VP8decoder in Gingerbread 2.3.3?

2011-05-02 Thread Pandi
Hi,

I am trying to play an WebM video file with 720p resolution , i am not
able to see the video of that file and audio is audible. The VP8
decoder supports the WebM file format in Gingerbread 2.3.3.
 I have an doubt on the limitations of the VP8 decoder. So, can anyone
tell me the limitations of VP8 decoder.

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


[android-developers] Convert tamil unicode character to tamil text

2011-05-02 Thread subhashini alaguchokku
Hi!

How to convert the tamil unicode character into tamil text in android, this
is possible in android? if anyone know give me ideas.


Thanks and Regards,
suba

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

2011-05-02 Thread Zsolt Vasvari
What have you tried?

I know, you cannot e-mail me privately.

On May 2, 2:26 pm, subhashini alaguchokku
subhashini.andr...@gmail.com wrote:
 Hi!

 How to convert the tamil unicode character into tamil text in android, this
 is possible in android? if anyone know give me ideas.

 Thanks and Regards,
 suba

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

2011-05-02 Thread Knutsford Software


- Original Message - 
From: a a harvey.a...@gmail.com

To: android-developers@googlegroups.com
Sent: Monday, May 02, 2011 1:41 AM
Subject: Re: [android-developers] Books


in fact, i have never writed with java. (i writed c/c++ before)

but i can still good at android ^_^



If not Java then what do you use?



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


[android-developers] Re: Proguard and onClick attribute

2011-05-02 Thread Ted Hopp
Well, evidently it's already mentioned in passing in issue 16384. I
added my vote to the issue.


On May 1, 11:01 pm, Romain Guy romain...@android.com wrote:
 Methods referred by the XML onClick attributes are invoked by reflection,
 which is why Proguard believes they should be removed. You should file a
 feature request (enhancement) at b.android.com if you'd like the tools to
 keep these methods.





 On Sun, May 1, 2011 at 6:55 PM, Ted Hopp ted.h...@gmail.com wrote:
  Apparently proguard decides that it's an unused method because nothing
  in my code references it, and optimizes it away.

  On May 1, 9:10 pm, a a harvey.a...@gmail.com wrote:
   2011/5/2 Ted Hopp ted.h...@gmail.com:

For every new project, I always have to add the following lines to
proguard.cfg:

   -keepclassmembers class * extends android.app.Activity {
      public void *(android.view.View);
   }

Otherwise the onClick methods disappear when I publish the app. Is

   why?

there a way for us to change the default proguard.cfg file that's
created with a new project?

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

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them

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


Re: [android-developers] Books

2011-05-02 Thread Knutsford Software


- Original Message - 
From: Mark Murphy mmur...@commonsware.com

To: android-developers@googlegroups.com
Sent: Sunday, May 01, 2011 3:44 PM
Subject: Re: [android-developers] Books



On Sun, May 1, 2011 at 3:30 AM, Knutsford Software
i...@knutsford-software.co.uk wrote:

I had suspected there might not be any on php. I had had a quick look at
Amazon and hadn't spotted anything but thought I would ask anyway. I did
learn Java around 2000/2001. I expect there will have been changes since
then and I never used it in real life. Is it just a small subset of Java
that you need in which case I will go back to it?


I suppose that depends on how you define small. :-)

Here's a blog post of mine from last year that outlines the major Java
concepts that I think an Android developer needs to be comfortable
with:

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

--








Thanks - that looks very useful






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

2011-05-02 Thread subhashini alaguchokku
Hi!

Thanks Zsolt Vasvari , Now i do live web application(android). I want to
disply tamil news. so i now get response(unicode characters) from
server(using Json).

like this unicode characters get from server,

#2970;#3014;#2985;#3021;#2985;#3016;
#2986;#3015;#2999;#2985;#3021; #2999;#3019;

I need to convert this code to tamil font. this is  possible?

Thanks and Regards,
suba

On Mon, May 2, 2011 at 12:06 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 What have you tried?

 I know, you cannot e-mail me privately.

 On May 2, 2:26 pm, subhashini alaguchokku
 subhashini.andr...@gmail.com wrote:
  Hi!
 
  How to convert the tamil unicode character into tamil text in android,
 this
  is possible in android? if anyone know give me ideas.
 
  Thanks and Regards,
  suba

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Not able to write a file completely with fileinputstream and fileoutputstream?

2011-05-02 Thread Daniel Felix
Hi,

  You should set a buffet size of file and then read it all in one
time in that buffer. It will solved your problem.
   Once I was stuck such kind of problem and I tried different ways
and finally I used NDK for it but my problem
   was not same I was trying to read a file from the server and have
no idea what is the exact size of the file.
   The simple solution is buffer size of file type and read whole file
in one time.

Yours,


On Apr 28, 6:29 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com
wrote:
 hi,

 Below is my code that i am writing the file.

 FileOutputStream fileOutput = new FileOutputStream(filepath);

 InputStream inputStream = urlConnection.getInputStream();

 int[] key = {123,456};
                                                                               
           int totalRead = 0;
                                                                               
           int read = 0;

                                                                               
           do
                                                                               
           {
                                                                               
                   read =  inputStream.read(buffer);

                                                                               
                   fileOutput.write(read ^ key[totalRead % (key.length-1)]);

                                                                               
                   totalRead+=read;
 //totalRead++;

                                                                               
           }while (read0);

 i am able to write only some kbs from the inputstream.

 If i write the file byte by byte than it works but it takes to much
 time.
 like
 read= inputStream.read();
 totalRead++;

 can anyone help me what is the problem with above code?

 regards,
 hitendrasinh gohil

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


[android-developers] Activity with launchMode = singleTop is created again

2011-05-02 Thread Akshay Goel
Hello,

I have an application with a single activity, whose launchMode is set
to singleTop. My application is an image viewer/editor  hence a
user can go to the gallery, choose an image  select my application
from the share menu to launch my application.

Now, I am performing the following steps-

1) Launch my application using the launcher icon.
2) Press home.
3) Go to gallery  choose an image to share using my application.

After step 3, my application's onCreate() method hits again. As far as
I understand, the activity being the only activity in the stack, was
at the top, and should not have been created again. Observing the
gallery intent's flags, I see that the flag is set to 1 (perhaps
FLAG_GRANT_READ_URI_PERMISSION).

Is the declaration singleTop not sufficient to ensure a single
instance in this scenario?

Any help will be appreciated.

Thanks,
Akshay

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


[android-developers] Battery Log using service

2011-05-02 Thread Omkar
Hi,
I have created a activity to show battery information when
started, but I would preferably want to keep it constantly running in
the background as a service and make a log of when the charging
started, when it ended, how long the battery charge lasted etc etc.
If I keep it in activity, user must run this app when charging is
started, which isn't make it much useful. I am not sure how do I set
my app to trigger automatically when charging is started, disconnected
etc.
Btw, I have created a broadcastreceiver for catching
Intent.ACTION_BATTERY_CHANGED and its working fine, but only from the
activity.

Pls suggest what change should I be doing to my app, so that whenever
there is a charging / discharging change thru charger plugin / usb
plugin, my app shld log it in file.

Thanks
Omkar

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


[android-developers] Force Close on Click in Calendar after i delete all information set in it

2011-05-02 Thread Alok Kulkarni
Hi All,
 I am trying to remove all Calendar related entries from a phone(Galaxy tab)
Here is the code

/**
 * Deletes all calendar info
 */
private boolean _deleteCalendarInfo() {
try {

String uriPrefix;
if (Build.VERSION.SDK_INT = 
Build.VERSION_CODES.ECLAIR_MR1) {
uriPrefix = content://calendar/;
} else {
uriPrefix = content://com.android.calendar/;
}

int cnt = contentResolver.delete(Uri.parse(uriPrefix + 
events),
null, null);
Log.i(Data Wipe,Calendar events deleted Count +cnt);
contentResolver.delete(Uri.parse(uriPrefix + 
calendars), null,
null);
Log.i(Data Wipe,Calendars events deleted Count 
+cnt);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
Log.i(Data Wipe,Calendar delete 
failed+e.toString());
return false;
}
return true;
}


The code executes successfully, but after that when i go into calendar
manually and try to add an event, it is giving force close with
following error
android.database.CursorIndexOutOfBoundsException: Index 0 requested,
with a size of 0

Detailed stack trace:-

05-02 14:02:08.077: ERROR/AndroidRuntime(3412): Caused by:
android.database.CursorIndexOutOfBoundsException: Index 0 requested,
with a size of 0
05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214)
05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
android.database.AbstractWindowedCursor.getInt(AbstractWindowedCursor.java:84)
05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
android.database.CursorWrapper.getInt(CursorWrapper.java:123)
05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
com.android.calendar.EditEvent.setCalendarData(EditEvent.java:4098)
05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
com.android.calendar.EditEvent.onCreate(EditEvent.java:2333)
05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
05-02 14:02:08.077: ERROR/AndroidRuntime(3412): ... 11 more



I have probably found  what the problem is on Stack Overflow.It states
Query is returning 0 rows, which is why you are getting an error
attempting to use the 1st row of a 0-row Cursor

Is there any better way to Delete all calendar info ?
Thanks,
Alok

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Why did you chose this OS platform over other ones?

2011-05-02 Thread Theo Sam
Thanks for your advice is there anyone else that can give me their opinion??

On Fri, Apr 29, 2011 at 5:08 AM, Pent supp...@apps.dinglisch.net wrote:

 Google had a developer competition and I didn't have an Apple
 computer :-)

 If I was picking these days, I'd also pick Android because I believe
 it has the brightest future.

 Pent

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


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

[android-developers] TCP client force close

2011-05-02 Thread drg_c
Hi all devs,

I'm currently working on a tcp client in Android.
I want to connect my android device to a tcp server on my computer and
receive the data once every 2 seconds. The problem is that I'm
getting force close on my application because of the while loop that
I've implemented in the tcp client.
I've tried writing in different ways the loop that will make the tcp
client checking the server socket, but with no success.
How can I make a loop that will check the server socket without
getting the force close?

Here's my code that I'm currently using:


public class Connection implements Runnable {
@Override
public void run() {
try {
sk=new Socket(server,port);
viewsurface.setText(connected);
flag = true;
} catch (UnknownHostException e) {
viewsurface.setText(failed 1 socket);
flag = false;
} catch (IOException e) {
viewsurface.setText(failed 2 socket);
flag = false;
}

while (flag == true){
try {
checkin = sk.getInputStream();
checkint = checkin.available();

if (checkint  0){
try {
BufferedReader in = new 
BufferedReader(new
InputStreamReader(sk.getInputStream()));
received = in.readLine();
viewsurface.setText(received);

} catch (IOException e) {
viewsurface.setText(failed to 
receive);
}
}

Thread.sleep(2000);
} catch (IOException e) {
viewsurface.setText(checkin failed);

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

}
}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Why did you chose this OS platform over other ones?

2011-05-02 Thread Nikolay Elenkov
On Mon, May 2, 2011 at 6:21 PM, Theo Sam soccerw...@gmail.com wrote:
 Thanks for your advice is there anyone else that can give me their opinion??


Here are some reasons for Android in no particular order:

* uses a mainstream language (Java) with normal syntax
* I've been doing Java forever :)
* easy/cheap to get started: don't need to pay for the SDK,
pretty much any machine/OS will do for development, you
can get an Android phone for cheap as well
* easy/cheap to publish on the Android market: $25 and no
review process (it has other flaws though)
* it's Linux, so most things you know about *nix hold
* it's (mostly) open source, so you can get under the
hood if you need to

As for the others, Blackberry is pretty much dead as far
as apps go, Windows phone's future is uncertain, but
the app review process is said to be ridiculous. Apple
is here to stay, so it's a safe bet. If you want to be
serious about mobile development , you can't ignore it.
On the other hand the app store has been around for
a relatively long time, so it's harder to get 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] Filtering NFC intents, NDEF message external type

2011-05-02 Thread Gorka
Hi,

I am trying to work with NDEF and external message types.

I have defined my NDEF message as you can see there:
urn:nfc:ext:busInfo.company.com. I can see the message is correct
using some applications I have instaled in my PC.

When the Nexus detects the tag, I select the tagReader application and
it says the tag format is unknown, what I guess is correct. If I
choose my application, I use the getTNF and getID methods and I see
ExternalType and my company name, so it is working great.

What I want to do is to filter the application to be opened using the
NDEF message type. Rigth now I can filter text messages as I defined
in the documentation:

intent-filter
action android:name=android.nfc.action.NDEF_DISCOVERED/

data android:mimeType=text/* /

category 
android:name=android.intent.category.DEFAULT/
/intent-filter --

I would like to do something similar for unknown message type and
filter the application to be opened directly in my Manifest file. I
mean, change the data android:mimeType by something where I would set
the ID of my company, so that it would be opened without having to
select it from the dispatcher. Is that possible¿¿

By the way, I cannot filter smartposter and URI NDEF message types.
Could someone tell me how to do this??

Thanks a lot,
Gorka.

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

2011-05-02 Thread MOHIT SHARMA
From which college are u ? and what kind of help u want 

On Thu, Apr 28, 2011 at 15:53, arpit arpit2...@gmail.com wrote:

 this is about sending SMS.. so help me out now..this is regarding my
 college project..

 On Apr 27, 10:05 pm, Peter Webb r.peter.w...@gmail.com wrote:
  Messages?
 
  You mean email? You mean instant messaging? You mean SMS? You mean via
  bluetooth? You mean via direct sockets connections? You mean via
  Facebook/Twitter etc APIs ?
 
  These are all completely different problems, and would be solved in
  very different ways.
 
  What are you really trying to do, and why? If this is just some random
  problem you picked for fun, and you are new to applications
  development, my advice would be to find a simpler and better defined
  problem to start on.
 
  On Apr 28, 2:30 am, arpit arpit2...@gmail.com wrote:
 
 
 
   I am new in this app development field,
   I have decided to make a simple application regarding messaging, i.e.
   just send and receive messages..
   so can u help me out in this.. how the messages are sent from one
   device to another..?? or do i have to stay on sending message from one
   emulator to another.??
   what are the overall requirements??(i've fully installed eclipse and
   integrated android too)..
   any particular book having a vast information on messaging services
   and android Telephony package...

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

2011-05-02 Thread Ralf Schneider
I don't have an apple computer, so I decided for Android.
I'm considering a Windows Phone 7 or an IPhone for my next phone.
I'm not impressed by Android.

2011/4/28 Theo Sam soccerw...@gmail.com

 Hey guys,

 I am considering developing for a mobile OS and I am not sure which one to
 choose out of BlackBerry Windows phone 7 or Android. ( I know there are
 other ones including IOS but I don't want develop for them.)

 I was wondering if you could tell me why you guys have chosen Android over
 the other OSs.

 I have no experience in writing code and maybe you could also help me to
 find some courses that I could do to help me.

 Cheers :)

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: When exactly do you need to handle DeadObjectException with services?

2011-05-02 Thread MarcoAndroid
Ah, just assumed those exceptions were unchecked, didn't even check
for that :)

The fact I didn't come across them then is because I'm not creating
(nor needing) my own AIDL because I'm using a 'same-process' service.

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] Tabs inside a fragment

2011-05-02 Thread Stephen
Having read the post here: http://goo.gl/6xYBD (Android 3.0-Tabhost)
and based on the lack of a TabFragment it appears that the way to do
things in 3.0 (and I guess above) is to use tabs in the action bar.

My issue is that I'm writing an app that has the fairly standard
'listview on left, content on right' layout, and I'd like my content
on the right to have tabs.  I know I can change the right fragment
using the tabs in the action bar, but from a UI perspective, it just
looks wrong.  The tabs in the action bar look like they preside over
the *whole* application as they are above the left ListView as well.
For example, in the HoneycombGallery app, the Android/Balloons/
Bikes tabs change both the ListView fragment and the content
fragment.  Mine would only change which aspect of the content you're
looking at.

I tried inflating a TabHost into the fragment but I get
NullPointerExceptions when I run TabSpec.setContent (that may be me
doing something wrong - I'll have another run at debugging it but
figured I'd ask this anyway).

I hope that all makes sense.  If I need to explain better please let
me know.  I'm very interested in how others are solving this problem
since I think the 'listview | content' style is quite common.  At the
moment, my alternatives are either to fake tabs with buttons
(something I'd rather avoid) or to present menu buttons in the action
bar to change what you're looking at.

Thank you,

Stephen

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Why did you chose this OS platform over other ones?

2011-05-02 Thread Stephen
I agree with all of Nikolay's reasons.  I looked at iPhone development
and maybe it would've given me a bigger market, but I'd have to say
writing for Android has been great.  There's a lot more documentation
out there on Java.

As far as your question about courses and learning, I'd suggest
downloading Eclipse and finding a few Java tutorials on the web.
Write a Hello World program first.

Once you're even slightly acquanted with Java, install the Android SDK
and looking through the samples.  A lot of them are very complicated
so don't be scared if you don't understand them first time round.
Google for simple apps that show you how to use things like
ListViews.  You'll get the hang of it pretty quickly.

Stephen



On May 2, 11:07 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Mon, May 2, 2011 at 6:21 PM, Theo Sam soccerw...@gmail.com wrote:
  Thanks for your advice is there anyone else that can give me their opinion??

 Here are some reasons for Android in no particular order:

 * uses a mainstream language (Java) with normal syntax
 * I've been doing Java forever :)
 * easy/cheap to get started: don't need to pay for the SDK,
 pretty much any machine/OS will do for development, you
 can get an Android phone for cheap as well
 * easy/cheap to publish on the Android market: $25 and no
 review process (it has other flaws though)
 * it's Linux, so most things you know about *nix hold
 * it's (mostly) open source, so you can get under the
 hood if you need to

 As for the others, Blackberry is pretty much dead as far
 as apps go, Windows phone's future is uncertain, but
 the app review process is said to be ridiculous. Apple
 is here to stay, so it's a safe bet. If you want to be
 serious about mobile development , you can't ignore it.
 On the other hand the app store has been around for
 a relatively long time, so it's harder to get 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


Re: [android-developers] Force Close on Click in Calendar after i delete all information set in it

2011-05-02 Thread TreKing
On Mon, May 2, 2011 at 3:36 AM, Alok Kulkarni kulsu...@gmail.com wrote:

 Is there any better way to Delete all calendar info ?


Use the online Google Calendar API - this is not part of the Android SDK.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Activity Lifecycle Documentation Question

2011-05-02 Thread Jeff A Knaggs
Yes! Having mostly lurked over this list for the last year and half, I
see this thread come-up too frequently, and this area caused me a lot
of confusion. I don't want to change the thread, but want to emphasize
that to make intelligent suggestions, one has to understand the
process.  These questions actually seem to arise more from people with
a lot of experience to other programming environments and lacking in
Java depth rather than plain beginners and I think it is because
developers are fearful of making assumptions to fill in
documentation holes/conflicts because they KNOW that is where things
can  will break.  The whole scenario was even muddier for me because
I had constant questions in my mind as to the relationship of things
like Java static initializers to these life-cycle Objects (I knew
neither the framework (or similar frameworks and was new to Java
(still feel like a newbie)) - for instance when the process is killed
but the system decides to keep the Activitiy around, does the
framework re-do static initialization of the Objects if it re-uses the
killed activity?  Since the document doesn't say, the developer has to
black-box, then if the framework is every changed, unless you
programmed defensively (assume statics are not repeated) your
application may break. Clearer documentation would help a little (for
those that read it :-), saving Dianne,  Mark, and all the rest of you
very generous contributors (thank you!) time for other replies. I can
rock with documentation issues in most areas (I can always go peek at
the source), but activity life-cycle is the back-bone of every
application design; it deserves to be held to a higher standard, and
end-consumer developers need a high degree of confidence that the
process is accurately documented without having to look at the source
-- to me,  the documentation should be a contract between the
framework developers and the framework users (programmatically)...

thanks for all the replies and the people that are persistent in their
pursuit of definitive answers.

On Apr 28, 1:50 pm, Indicator Veritatis mej1...@yahoo.com wrote:
 Eric is not the first to observe that the documentation on these
 topics is too confusing. But where should he make this 'contribution'
 you suggest? Is the documentation somewhere under the Android Open
 Source project athttp://source.android.com/?

 On Apr 27, 10:23 pm, Dianne Hackborn hack...@android.com wrote:







  Yes if you call finish() you are saying you want to completely remove the
  activity from the stack.  The system can have the activity destroyed in the
  same way, but just not remove it from the stack it maintains.

  At the end of the day, it would be fundamentally broken if there was a way
  for an activity to stop being used in a process without being destroyed.
   This means it would be IMPOSSIBLE to write a correctly working application.
   I agree you can find parts of the documentation to help you convince
  yourself that there are cases this can happen, if that is what you are
  looking for.  But it won't.  Because it would be broken.  As I think is
  already obvious to you, since your original question was basically: if I
  read the documentation this way then there is nothing useful at all about
  onDestroy() or onStop() because they won't get called when they need to be.
   Right.  So don't try to read the documentation in a way that makes it
  broken.

  You are welcome to contribute changed to the documentation for people to
  review if there are things you think can be improved.

  On Thu, Apr 28, 2011 at 12:29 AM, Eric e...@alum.mit.edu wrote:

   On Apr 28, 12:21 am, Dianne Hackborn hack...@android.com wrote:
Asking it to finish means finishing the activity, which means
   destroying
it.  Politely asking it to finish isn't going to cause it to just not
cleanly exit.  It would be fundamentally broken if activities every just
stop being used in their process without actually going through the
lifecycle.

In other words asking to finish - Activity.finish() - does what you
expect.

   Ok, so when I 'finish' an Activity programmatically, never wanting it
   to show up in the Task stack again, how does the system know to remove
   my Activity from the back stack in that case, but it doesn't remove it
   from the stack when the system asks it to finish due to low memory
   conditions?

   Also, the documentation for onDestroy() adds to the confusion a bit:

   Called before the activity is destroyed. This is the final call that
   the activity will receive. It could be called either because the
   activity is finishing (someone called finish() on it), or because the
   system is temporarily destroying this instance of the activity to save
   space. You can distinguish between these two scenarios with the
   isFinishing() method.

   Note that it says if the Activity is being temporarily discarded to
   save space, then the 'isFinishing' method will return false.  If
   

Re: [android-developers] Force Close on Click in Calendar after i delete all information set in it

2011-05-02 Thread Dianne Hackborn
You can expect individual devices to behave differently when you are using
private APIs like these, regardless of platform version.  Writing code like
this is going to be a continual source of trouble for you.

On Mon, May 2, 2011 at 4:36 AM, Alok Kulkarni kulsu...@gmail.com wrote:

 Hi All,
  I am trying to remove all Calendar related entries from a phone(Galaxy
 tab)
 Here is the code

 /**
 * Deletes all calendar info
 */
private boolean _deleteCalendarInfo() {
try {

String uriPrefix;
if (Build.VERSION.SDK_INT =
 Build.VERSION_CODES.ECLAIR_MR1) {
uriPrefix = content://calendar/;
} else {
uriPrefix =
 content://com.android.calendar/;
}

int cnt = contentResolver.delete(Uri.parse(uriPrefix
 + events),
 null, null);
Log.i(Data Wipe,Calendar events deleted Count
 +cnt);
contentResolver.delete(Uri.parse(uriPrefix +
 calendars), null,
null);
Log.i(Data Wipe,Calendars events deleted Count
 +cnt);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
Log.i(Data Wipe,Calendar delete
 failed+e.toString());
return false;
}
return true;
}


 The code executes successfully, but after that when i go into calendar
 manually and try to add an event, it is giving force close with
 following error
 android.database.CursorIndexOutOfBoundsException: Index 0 requested,
 with a size of 0

 Detailed stack trace:-

 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): Caused by:
 android.database.CursorIndexOutOfBoundsException: Index 0 requested,
 with a size of 0
 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
 android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at

 android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214)
 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at

 android.database.AbstractWindowedCursor.getInt(AbstractWindowedCursor.java:84)
 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
 android.database.CursorWrapper.getInt(CursorWrapper.java:123)
 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
 com.android.calendar.EditEvent.setCalendarData(EditEvent.java:4098)
 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
 com.android.calendar.EditEvent.onCreate(EditEvent.java:2333)
 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
 05-02 14:02:08.077: ERROR/AndroidRuntime(3412): ... 11 more



 I have probably found  what the problem is on Stack Overflow.It states
 Query is returning 0 rows, which is why you are getting an error
 attempting to use the 1st row of a 0-row Cursor

 Is there any better way to Delete all calendar info ?
 Thanks,
 Alok

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] Tabs inside a fragment

2011-05-02 Thread Dianne Hackborn
You can certainly use a TabHost inside of a fragment.  TabHost is just a
view; it doesn't know anything about whatever is outside the view hierarchy
it is running in.

You haven't give the stack crawl of the exception, so it is hard to help
further.

On Mon, May 2, 2011 at 7:30 AM, Stephen stephen.wil...@gmail.com wrote:

 Having read the post here: http://goo.gl/6xYBD (Android 3.0-Tabhost)
 and based on the lack of a TabFragment it appears that the way to do
 things in 3.0 (and I guess above) is to use tabs in the action bar.

 My issue is that I'm writing an app that has the fairly standard
 'listview on left, content on right' layout, and I'd like my content
 on the right to have tabs.  I know I can change the right fragment
 using the tabs in the action bar, but from a UI perspective, it just
 looks wrong.  The tabs in the action bar look like they preside over
 the *whole* application as they are above the left ListView as well.
 For example, in the HoneycombGallery app, the Android/Balloons/
 Bikes tabs change both the ListView fragment and the content
 fragment.  Mine would only change which aspect of the content you're
 looking at.

 I tried inflating a TabHost into the fragment but I get
 NullPointerExceptions when I run TabSpec.setContent (that may be me
 doing something wrong - I'll have another run at debugging it but
 figured I'd ask this anyway).

 I hope that all makes sense.  If I need to explain better please let
 me know.  I'm very interested in how others are solving this problem
 since I think the 'listview | content' style is quite common.  At the
 moment, my alternatives are either to fake tabs with buttons
 (something I'd rather avoid) or to present menu buttons in the action
 bar to change what you're looking at.

 Thank you,

 Stephen

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] Activity with launchMode = singleTop is created again

2011-05-02 Thread Dianne Hackborn
A singleTop activity won't be re-created in this situation.  You can use
adb shell dumpsys activity to look at what is going on with the activity
stack, and look at the log to see what messages are printed.

That said, I *strongly* recommend you to not use singleTop for an activity
that is intended to be launched by other applications like this.  What is
required for your activity to actually get all of the UI flows right in such
a situations is significant.  This is just not how the framework is intended
to be used.  The other application is performing a share as part of its UI
flow; you should have a new activity instance running on the other
application's task taking care of its share operation rather than dragging
our application on top.

On Mon, May 2, 2011 at 4:00 AM, Akshay Goel xpectro...@gmail.com wrote:

 Hello,

 I have an application with a single activity, whose launchMode is set
 to singleTop. My application is an image viewer/editor  hence a
 user can go to the gallery, choose an image  select my application
 from the share menu to launch my application.

 Now, I am performing the following steps-

 1) Launch my application using the launcher icon.
 2) Press home.
 3) Go to gallery  choose an image to share using my application.

 After step 3, my application's onCreate() method hits again. As far as
 I understand, the activity being the only activity in the stack, was
 at the top, and should not have been created again. Observing the
 gallery intent's flags, I see that the flag is set to 1 (perhaps
 FLAG_GRANT_READ_URI_PERMISSION).

 Is the declaration singleTop not sufficient to ensure a single
 instance in this scenario?

 Any help will be appreciated.

 Thanks,
 Akshay

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

[android-developers] Re: Convert tamil unicode character to tamil text

2011-05-02 Thread Senthil ACS
Madam,

U need to have UTF16 font (Latha or Aksharamala) installed on the
device. The font typically tells how to draw on the screen. And every
character is associated with a unicode character. Hence, try to find
if u can place the font in the phone. If u have your android phone
rooted, u can play with the file system.

Regards
acs

On May 2, 11:54 am, subhashini alaguchokku
subhashini.andr...@gmail.com wrote:
 Hi!

 Thanks Zsolt Vasvari , Now i do live web application(android). I want to
 disply tamil news. so i now get response(unicode characters) from
 server(using Json).

 like this unicode characters get from server,

 #2970;#3014;#2985;#3021;#2985;#3016;
 #2986;#3015;#2999;#2985;#3021; #2999;#3019;

 I need to convert this code to tamil font. this is  possible?

 Thanks and Regards,
 suba



 On Mon, May 2, 2011 at 12:06 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
  What have you tried?

  I know, you cannot e-mail me privately.

  On May 2, 2:26 pm, subhashini alaguchokku
  subhashini.andr...@gmail.com wrote:
   Hi!

   How to convert the tamil unicode character into tamil text in android,
  this
   is possible in android? if anyone know give me ideas.

   Thanks and Regards,
   suba

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

2011-05-02 Thread Boozel
Hi
I'm trying to use a widget with a button which will change the value of a 
shared preference and show a toast when pressed?
How can i just implement a method when a button on a widget is pressed and 
not launch a new activity.
I can only find setOnClickPendingIntent
I would like the home screnn to stay open.

Thanks for any help.

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

[android-developers] Re: Cookies

2011-05-02 Thread Niall
I just looked at the logcat of my app and noticed a warning I hadn't noticed 
before. 

W/ResponseProcessCookies(  575): Invalid cookie header: Set-Cookie: 
USERNAME=user; expires=Mon, 02-May-2011 12:54:51 GMT; path=/; 
domain=domain.com. Unable to parse expires attribute: Mon

Not sure what that means. Any ideas? 

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

[android-developers] Re: Battery Log using service

2011-05-02 Thread lbendlin
Do you really need to know battery level with a once per second accuracy? 
Don't you think once every five minutes is enough?  Think about using an 
Alarm manager rather than a service.

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

2011-05-02 Thread Kostya Vasilyev
PendingIntent's come in several flavors: if you don't want to launch an 
activity, don't create one with PendingIntent.getActivity(). Rather, use 
PendingIntent.getBroadcast() to target a broadcast receiver (that 
doesn't have a UI).


-- Kostya

02.05.2011 17:55, Boozel пишет:

Hi
I'm trying to use a widget with a button which will change the value 
of a shared preference and show a toast when pressed?
How can i just implement a method when a button on a widget is pressed 
and not launch a new activity.

I can only find setOnClickPendingIntent
I would like the home screnn to stay open.

Thanks for any help.



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


[android-developers] Web development and a self-signed certificate

2011-05-02 Thread ddum...@gmail.com
Is there any way to import a self signed https certificate into
android so that I don't get warnings about the security of a website?
I am having an issue downloading files over https with a self-signed
cert that I am unable to accept via the browser.  I suspect the cert
is the issue, but would like to make 100% certain.

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

2011-05-02 Thread Sivaprakash
Hi

Please let me know if there is any good Open Source Chart Library for
Android ?

-- 
Siva

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

2011-05-02 Thread Boozel
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] Problems registering and unregistering a broadcastreceiver in a service.

2011-05-02 Thread Boozel
Hi i'm trying to use a widget to enable/disable a broadcastreceiver
my code is below. It registers the receiver fine when the widget is pressed 
(it starts this service) but it wont unregister the receiver.
What am i doing wrong? thanks for any help.

import android.app.Service;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;


public class SignalSpotWidgetService extends Service 
{ 
final String TAG = Debug Tag;
 @Override
public void onStart( Intent intent, int startId )
{ 
SharedPreferences sharedPreferences = 
getApplicationContext().getSharedPreferences(SignalSpot.SHARED_PREFS_NAME, 
0);
boolean enabled = sharedPreferences.getBoolean(enabled, false);
Log.i(TAG,Enabled: +enabled);
//
SharedPreferences.Editor editor = sharedPreferences.edit();
   Log.i(TAG,Just before if);
if (!enabled) {
try
{IntentFilter filter = new IntentFilter();
filter.addAction(android.net.conn.CONNECTIVITY_CHANGE);
SignalReceiver receiver = new SignalReceiver();
Log.i(TAG,Not enabled. Attempting to enable);
registerReceiver(receiver, filter);
Log.i(TAG,Registered reciver);
editor.putBoolean(enabled, true);
editor.commit();
Log.i(TAG,Commited value);
Toast.makeText(getApplicationContext(), Enabled, 
Toast.LENGTH_LONG).show();
Log.i(TAG,Toast);
}
catch (Exception e)
{
Toast.makeText(getApplicationContext(), Cannot Enable.\n +
It May already be enabled. Please Try Again, 
Toast.LENGTH_LONG).show();}
} else {
try{
SignalReceiver receiver = new SignalReceiver();
Log.i(TAG,Enabled. Attempting to disable);
unregisterReceiver(receiver);
Log.i(TAG,Unregistered receiver);
editor.putBoolean(enabled, false);
editor.commit();
Log.i(TAG,Commited value);
Toast.makeText(getApplicationContext(), Disabled, 
Toast.LENGTH_LONG).show();
Log.i(TAG,Toast);
}
catch (Exception e)
{Log.i(TAG,e.getMessage());
Toast.makeText(getApplicationContext(), Cannot disable.\n +
It May not yet be enabled. Please Try Again, 
Toast.LENGTH_LONG).show();}

}
 }

@Override
public IBinder onBind( Intent intent )
{ 
IBinder binder = null;
return binder;
}

@Override
public void onCreate() 
{ Log.i(TAG,onCreate);
//
}

@Override
public void onDestroy() 
{ 
} 
}
 

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

2011-05-02 Thread andrew
Hi Diane,

I just wanted to confirm what you are saying, as I have read this can
be done, then fought with it not working (has this been fixed to not
work in newer releases of the Android SDK??), and after searching for
solutions I see lots of posts from other people trying to do this,
that is: define our own custom scheme so we can send emails and html
pages that cause the app to open

I *suspect* I have seen (older?) Android documentation/examples that
suggests doing it, but as I don't have a solid reference handy I won't
insist on that point.

Just found this on my machine, under android API level 9 and level API
samples Android wicktionary sample code...
/android-sdk-mac_86/docs/resources/samples/Wiktionary/
AndroidManifest.html
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=wiktionary
android:host=lookup /
/intent-filter


 Please DO NOT use your own scheme.  That is 
 yourapplication://doaction?parameters is wrong.

We are trying to send emails to users with links that can cause the
app to be opened on Android AND iPhone, but it seems iPhone protects
the existing schemes and limits them to the built-in apps and does not
allow us to specify a url filter for the http scheme. so there is
no way to specify a link that will work on both platforms?

Aaaarrrggg

Andrew

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


[android-developers] Dear friend:

2011-05-02 Thread Rubén González Criado
Dear friend:
   We are an shoes bag wholesale .Our products are of high quality and low
price. If you want to do business , we can offer you the most reasonable
discount to make you get more profits. We are expecting for your business.
Please visit our WEBSITE: www.topbandclub.com

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

Re: [android-developers] Re: Cookies

2011-05-02 Thread Nikolay Elenkov
On Mon, May 2, 2011 at 10:58 PM, Niall twom...@gmail.com wrote:
 I just looked at the logcat of my app and noticed a warning I hadn't noticed
 before.
 W/ResponseProcessCookies(  575): Invalid cookie header: Set-Cookie:
 USERNAME=user; expires=Mon, 02-May-2011 12:54:51 GMT; path=/;
 domain=domain.com. Unable to parse expires attribute: Mon
 Not sure what that means. Any ideas?

Looks like a malformed cooke. Who is sending this? Values containing
spaces should be quoted.

BTW,  you don't need to add stuff to the cookie store, httpclient should
save received cookies and send them with the next request automatically.

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

2011-05-02 Thread Kostya Vasilyev
Don't mix networking and UI calls within the same thread.

The networking code should be run on its own thread, while the UI should
only be touched (calling setText, etc.) on the main thread.

These two threads can communicate using one of several available mechanisms,
e.g. by using a Handler...
 02.05.2011 14:00 пользователь drg_c tra...@gmail.com написал:
 Hi all devs,

 I'm currently working on a tcp client in Android.
 I want to connect my android device to a tcp server on my computer and
 receive the data once every 2 seconds. The problem is that I'm
 getting force close on my application because of the while loop that
 I've implemented in the tcp client.
 I've tried writing in different ways the loop that will make the tcp
 client checking the server socket, but with no success.
 How can I make a loop that will check the server socket without
 getting the force close?

 Here's my code that I'm currently using:


 public class Connection implements Runnable {
 @Override
 public void run() {
 try {
 sk=new Socket(server,port);
 viewsurface.setText(connected);
 flag = true;
 } catch (UnknownHostException e) {
 viewsurface.setText(failed 1 socket);
 flag = false;
 } catch (IOException e) {
 viewsurface.setText(failed 2 socket);
 flag = false;
 }

 while (flag == true){
 try {
 checkin = sk.getInputStream();
 checkint = checkin.available();

 if (checkint  0){
 try {
 BufferedReader in = new BufferedReader(new
 InputStreamReader(sk.getInputStream()));
 received = in.readLine();
 viewsurface.setText(received);

 } catch (IOException e) {
 viewsurface.setText(failed to receive);
 }
 }

 Thread.sleep(2000);
 } catch (IOException e) {
 viewsurface.setText(checkin failed);

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

 }
 }
 }

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

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

Re: [android-developers] Re: Cookies

2011-05-02 Thread Nikolay Elenkov
On Tue, May 3, 2011 at 12:52 AM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 On Mon, May 2, 2011 at 10:58 PM, Niall twom...@gmail.com wrote:
 I just looked at the logcat of my app and noticed a warning I hadn't noticed
 before.
 W/ResponseProcessCookies(  575): Invalid cookie header: Set-Cookie:
 USERNAME=user; expires=Mon, 02-May-2011 12:54:51 GMT; path=/;
 domain=domain.com. Unable to parse expires attribute: Mon
 Not sure what that means. Any ideas?

 Looks like a malformed cooke. Who is sending this? Values containing
 spaces should be quoted.


...at least when following RFC2109. If you need to deal with servers
that use the old format, try

httpClient.getParams().setParameter( ClientPNames.COOKIE_POLICY,
CookiePolicy.NETSCAPE );

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

2011-05-02 Thread Dianne Hackborn
This has been used in Android since 1.0 by apps like Market, YouTube, and
Gmail to allow the user to select to go to the app which clicking a link
from the browser.  The sample code I showed is the actual code in Market.
 This definitely does work, on every version of Android.

Re: using custom schemes -- it is fundamentally broken to randomly define
new schemes that appear on web pages, because schemes are a universal
namespace so it is extremely easy to have conflicting schemes with had
results.  This is why on Android we strongly recommend intercepting URIs
based on real web site URIs.  This also allows decent graceful fallback for
the case where there is not an app that knows how to intercept the URI --
the URI can still be shown as an actual web page, with whatever you want
including instructions on how to download and install your app.

If iOS doesn't support this...  well, I can't make them allow for a
non-broken way to do this. :}  Android *does* allow you to intercept just by
scheme, we just discourage this because it is fundamentally flawed.

On Mon, May 2, 2011 at 11:25 AM, andrew and...@mackenzie-serres.net wrote:

 Hi Diane,

 I just wanted to confirm what you are saying, as I have read this can
 be done, then fought with it not working (has this been fixed to not
 work in newer releases of the Android SDK??), and after searching for
 solutions I see lots of posts from other people trying to do this,
 that is: define our own custom scheme so we can send emails and html
 pages that cause the app to open

 I *suspect* I have seen (older?) Android documentation/examples that
 suggests doing it, but as I don't have a solid reference handy I won't
 insist on that point.

 Just found this on my machine, under android API level 9 and level API
 samples Android wicktionary sample code...
 /android-sdk-mac_86/docs/resources/samples/Wiktionary/
 AndroidManifest.html
 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=wiktionary
 android:host=lookup /
/intent-filter


  Please DO NOT use your own scheme.  That is
 yourapplication://doaction?parameters is wrong.

 We are trying to send emails to users with links that can cause the
 app to be opened on Android AND iPhone, but it seems iPhone protects
 the existing schemes and limits them to the built-in apps and does not
 allow us to specify a url filter for the http scheme. so there is
 no way to specify a link that will work on both platforms?

 Aaaarrrggg

 Andrew

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

[android-developers] Re: What exactly happens during an upgrade?

2011-05-02 Thread Leo

I get very few reports of crashes in the publisher console, but there
are reviews (some in other languages) that app crashed on their phone
and the inevitable 1 star :( The fact that you can do nothing about it
without information needs to be addressed.

Is there any way to include atleast some information on crashes. It is
humanly impossible for every developer to test their app on every
manufacturer's device in the market. Stack trace should be part of
android framework.

Am I missing something?


On May 1, 3:29 pm, Dianne Hackborn hack...@android.com wrote:
 Allowing applications to include any information is a really tricky subject.
  Even the stack crawls can been a concern -- for example there was an issues
 raised in the past about a health care about that could throw an exception
 that would have some user information in the exception message.

 People often don't realize just how complicated a lot of this stuff is
 outside of just writing some code and releasing it.









 On Sun, May 1, 2011 at 5:45 PM, TreKing treking...@gmail.com wrote:
  On Sun, May 1, 2011 at 4:14 PM, Dianne Hackborn hack...@android.comwrote:

  Just to be aware -- the logging information is pretty sensitive.

  Agreed. I should clarify - the logging information I collect is
  specifically for my own app, not the system log. In release mode I write to
  my own, internal log file and submit that if there is a crash. If I get a
  crash report and can't figure it out from the exception, I throw in some
  logging with the next update and am able to better investigate the problem
  next time it happens. After the issue is fixed, I just take out the logging
  for the next update.

  I do give the user the *option* to include the system log, though in
  retrospect I've never actually needed the extra information to fix any
  problems.

  We've found it hard enough to keep the platform and its apps clean about
  logging personal information (pretty much every release has had last-minute
  fixes for personal information being logged), and when you add in
  manufacturers and third party apps, it is just impossible. For example 
  there
  was the manufacturer who released devices whose soft keyboard logged each
  key pressed, and it is just scary what one sees various third party apps.

  Agreed again. I've debugged some apps by viewing the LogCat while I run
  them and it's fairly absurd what some apps leave in release mode.

  There has also been significant pressure to do something stronger, such as
  not allow third party apps access to the logs at all or only to the data
  they have written to the log.  I don't know if that will actually happen,
  but it is enough of a concern to be a possibility.

  That would be fantastic. If the system could direct each app's logs to it's
  own location and include only that to the developer in the Market console,
  it would be infinitely more useful.

  This is also why Android Feedback does not currently make the logs
  available, because of the kinds of personal information likely to be in
  them.

  Understood - but it does make them fairly unusable for all but the most
  obvious of crashes. This is why I opted for my own solution. I would never
  have identified and fixed the number of issues I have already by solely
  relying on the Market crash reports. (It also doesn't help that very few
  people actually report the issues and the ones that do provide little to no
  explanation).

  --- 
  --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

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


[android-developers] Re: Not able to write a file completely with fileinputstream and fileoutputstream?

2011-05-02 Thread Bob Kerns
No, this is a bad idea. This consumes memory -- and for large files, it can 
consume more memory than you have.

It is also completely unnecessary. The loop to do repeat over the buffer is 
just 3 lines of code, including the final '}'. That's actually easier than 
figuring out how big to make the buffer, and allocating it -- and for many 
types of streams, it is impossible to find how big to make the buffer.

Please look at my earlier message on the topic, and memorize that pattern. 
Once you understand it, it's not hard to just do it when needed -- and 
you'll find you need it often.

On Monday, May 2, 2011 12:51:36 AM UTC-7, Daniel Felix wrote:

 Hi,

   You should set a buffet size of file and then read it all in one
 time in that buffer. It will solved your problem.
Once I was stuck such kind of problem and I tried different ways
 and finally I used NDK for it but my problem
was not same I was trying to read a file from the server and have
 no idea what is the exact size of the file.
The simple solution is buffer size of file type and read whole file
 in one time.

 Yours,


 On Apr 28, 6:29 pm, Hitendrasinh Gohil hitendra@gmail.com
 wrote:
  hi,
 
  Below is my code that i am writing the file.
 
  FileOutputStream fileOutput = new FileOutputStream(filepath);
 
  InputStream inputStream = urlConnection.getInputStream();
 
  int[] key = {123,456};

   int totalRead = 0;

   int read = 0;
 

   do

   {

   read =  inputStream.read(buffer);
 

   fileOutput.write(read ^ key[totalRead % 
 (key.length-1)]);
 

   totalRead+=read;
  //totalRead++;
 

   }while (read0);
 
  i am able to write only some kbs from the inputstream.
 
  If i write the file byte by byte than it works but it takes to much
  time.
  like
  read= inputStream.read();
  totalRead++;
 
  can anyone help me what is the problem with above code?
 
  regards,
  hitendrasinh gohil



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

2011-05-02 Thread TreKing
On Mon, May 2, 2011 at 11:16 AM, Leo allway...@gmail.com wrote:

 Am I missing something?


Did you read this thread? You can implement your own solution (using or
based on ACRA) that sends you automatic crash reports including logs and
stack traces.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Help needed on porting Flixel Framework to Android. Current issue: switch from canvas draw to opengl es

2011-05-02 Thread Leonardo Zimbres
Hello Mario,

I saw you post on Flixel forum. Its good to hear from you. I do feel a
little crippled because I dont know muchjava, and opengl is very new to me.

First I will try to awser your questions.

- How much of the original Flixel API should be covered?

I dont know, but W. Eraser points out this necessity of using opengles
render instead of canvas render. Looks like a very good point to work on, as
some flixel visual functions dont work or are impossible on canvas.

- How much has been ported so far? I'd actually just rip out the
interfaces/class/method signatures and replace the implementations.

Sorry, cant help much. I saw about a guy, one year ago, ported somekind of
flixel to android, replacing the actionscript syntax with java, and working
only on render and other little issues. That version was a lot bugged, and
this new flixel2 was done by Wing Eraser. Looks like a as3 flixel, added a
d-pad and the canvas render.

The project page has more information. If its not bothering you, can you
point me some books/links to study and get a better idea of your work on
libgdx? Like, to know the roots of the thing? I've read about rendering
using bit blitting, like canvas render, but thats all I know so far.

Really thanks for your interest, if theres something I can do to help,
please ask.

Cheers, Zimbres.
Ps: sorry the late reply. I was working on some deadlines these days.

The more that is already available the better.

2011/4/28 Mario Zechner badlogicga...@gmail.com

 Neat, a Flixel Android port would indeed be a nice to have. I saw that
 the project is actually not an Actionscript 3 project but a Java based
 project. Might i suggest basing the Android Flixel port on libgdx [1]?
 Benefit: it would also run on the desktop (windows, linux, mac) and
 the nasty OpenGL ES stuff is pretty much hidden by the utility classes
 we offer on top of the GLES binding. I played around with Flixel a
 little bit a while ago and the port to libgdx should be very straight
 forward and painless.

 I might even have some time to do this myself. Could you answer me
 some questions?

 - How much of the original Flixel API should be covered?
 - How much has been ported so far? I'd actually just rip out the
 interfaces/class/method signatures and replace the implementations.
 The more that is already available the better.

 Ciao,
 Mario

 [1] http://code.google.com/p/libgdx/ (ignore the fugliness of the
 site, we are working on a dedicated one with super awesome images and
 ajax and web scale and all that jazz...)


 On 27 Apr., 16:59, Leonardo Zimbres leonardozimb...@gmail.com wrote:
  Hello Android Devs,
 
  WingEraser (its how I know him) has been porting Flixel to Android for a
  while.
 
  What is flixel? An actionscript 3.0 game framework. Its very well
 organized
  and have a lot of good stuff into it. Collisions, particles, nice use of
  bitmaps to tiles and sprite animations.
  If someone is curious about flixel, its homepage has some games:
 http://flixel.org/
 
  Abour the porting to android: Theres a lot of good done, but one issue is
  giving certain trouble: to convert the framework render pipeline, from
  canvas draw to opengl es.
 
  Theres someone up to work on that? Im lerarning what I can, but Im a
 little
  new on Java, Android and OpenGL.
 
  Ah, the last threads about flixel-android:
 http://flixel.org/forums/index.php?topic=2848.45
 
  And the project page:http://code.google.com/p/flixel-android/
 
  Thanks, Zimbres.

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




-- 
Leonardo Zimbres
http://zanardiliza.com

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

[android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Stephen
Thanks for the quick response Dianne.  Please find below the stack
trace, the fragment class' code and the layout XML.  I've tried using
either the default tabhost ID (android.R.id.tabhost) or an @+ ID.
Both result in the NullPointerException.

I'm sure it's a schoolboy error somewhere but if you (or anyone else)
can help I'd much appreciate it.

Stephen



-= Stack Trace =-

05-02 17:18:43.193: ERROR/AndroidRuntime(2446): FATAL EXCEPTION: main
05-02 17:18:43.193: ERROR/AndroidRuntime(2446):
java.lang.NullPointerException
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:615)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:610)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.widget.TabHost$TabSpec.setContent(TabHost.java:464)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
uk.co.esstec.android.fragmenttabtest.ContentPaneFragment.onCreateView(ContentPaneFragment.java:
20)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:730)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:921)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.BackStackRecord.run(BackStackRecord.java:578)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:
1221)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.FragmentManagerImpl$1.run(FragmentManager.java:375)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.os.Handler.handleCallback(Handler.java:587)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.os.Handler.dispatchMessage(Handler.java:92)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.os.Looper.loop(Looper.java:126)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.ActivityThread.main(ActivityThread.java:3997)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
java.lang.reflect.Method.invokeNative(Native Method)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
java.lang.reflect.Method.invoke(Method.java:491)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:841)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
dalvik.system.NativeStart.main(Native Method)

-= Layout XML =-

?xml version=1.0 encoding=utf-8?
TabHost xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/testtabhost1 android:layout_width=fill_parent
android:layout_height=fill_parent
LinearLayout android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
TabWidget android:id=@android:id/tabs
android:layout_width=fill_parent
android:layout_height=wrap_content /
FrameLayout android:id=@android:id/tabcontent
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView android:id=@+id/textview1
android:layout_width=fill_parent
android:layout_height=fill_parent 
android:text=this is a tab /

TextView android:id=@+id/textview2
android:layout_width=fill_parent
android:layout_height=fill_parent 
android:text=this is another
tab /
TextView android:id=@+id/textview3
android:layout_width=fill_parent
android:layout_height=fill_parent 
android:text=this is a third
tab /
/FrameLayout
/LinearLayout
/TabHost

-= Fragment Class Code =-

package com.test.fragtest;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TabHost;

public class ContentPaneFragment extends Fragment {

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup
container,
Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);

View v = inflater.inflate(R.layout.content_pane, container, 
false);

TabHost mTabHost = (TabHost) v.findViewById(R.id.testtabhost1);


mTabHost.addTab(mTabHost.newTabSpec(tab_test1).setIndicator(TAB
1).setContent(R.id.textview1));

mTabHost.addTab(mTabHost.newTabSpec(tab_test2).setIndicator(TAB
2).setContent(R.id.textview2));

mTabHost.addTab(mTabHost.newTabSpec(tab_test3).setIndicator(TAB
3).setContent(R.id.textview3));


Re: [android-developers] Re: Cookies

2011-05-02 Thread Niall
Thanks a lot. Got it working 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

[android-developers] Re: What exactly happens during an upgrade?

2011-05-02 Thread Leo

No, I hadn't. I only read the last post. I will read the whole post
now. I didn't know this solution existed. Thanks much.


On May 2, 9:29 am, TreKing treking...@gmail.com wrote:
 On Mon, May 2, 2011 at 11:16 AM, Leo allway...@gmail.com wrote:
  Am I missing something?

 Did you read this thread? You can implement your own solution (using or
 based on ACRA) that sends you automatic crash reports including logs and
 stack traces.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Stephen
(Please ignore the 'package com.test.fragtest' line.  I changed that
to paste it up here and just realised the actual packagename is in the
stack trace anyway)

On May 2, 5:50 pm, Stephen stephen.wil...@gmail.com wrote:
 Thanks for the quick response Dianne.  Please find below the stack
 trace, the fragment class' code and the layout XML.  I've tried using
 either the default tabhost ID (android.R.id.tabhost) or an @+ ID.
 Both result in the NullPointerException.

 I'm sure it's a schoolboy error somewhere but if you (or anyone else)
 can help I'd much appreciate it.

 Stephen

 -= Stack Trace =-

 05-02 17:18:43.193: ERROR/AndroidRuntime(2446): FATAL EXCEPTION: main
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):
 java.lang.NullPointerException
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:615)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:610)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.widget.TabHost$TabSpec.setContent(TabHost.java:464)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 uk.co.esstec.android.fragmenttabtest.ContentPaneFragment.onCreateView(Conte 
 ntPaneFragment.java:
 20)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl.moveToState(FragmentManager.java:730)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl.moveToState(FragmentManager.java:921)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.BackStackRecord.run(BackStackRecord.java:578)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:
 1221)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl$1.run(FragmentManager.java:375)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.os.Handler.handleCallback(Handler.java:587)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.os.Handler.dispatchMessage(Handler.java:92)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.os.Looper.loop(Looper.java:126)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.ActivityThread.main(ActivityThread.java:3997)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 java.lang.reflect.Method.invoke(Method.java:491)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:841)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 dalvik.system.NativeStart.main(Native Method)

 -= Layout XML =-

 ?xml version=1.0 encoding=utf-8?
 TabHost xmlns:android=http://schemas.android.com/apk/res/android;
         android:id=@+id/testtabhost1 android:layout_width=fill_parent
         android:layout_height=fill_parent
         LinearLayout android:orientation=vertical
                 android:layout_width=fill_parent
 android:layout_height=fill_parent
                 TabWidget android:id=@android:id/tabs
                         android:layout_width=fill_parent
 android:layout_height=wrap_content /
                 FrameLayout android:id=@android:id/tabcontent
                         android:layout_width=fill_parent
 android:layout_height=fill_parent
                         TextView android:id=@+id/textview1
 android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
 android:text=this is a tab /

                         TextView android:id=@+id/textview2
 android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
 android:text=this is another
 tab /
                         TextView android:id=@+id/textview3
 android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
 android:text=this is a third
 tab /
                 /FrameLayout
         /LinearLayout
 /TabHost

 -= Fragment Class Code =-

 package com.test.fragtest;

 import android.app.Fragment;
 import android.os.Bundle;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.TabHost;

 public class ContentPaneFragment extends Fragment {

         @Override
         public View onCreateView(LayoutInflater inflater, ViewGroup
 container,
                         Bundle savedInstanceState) {
                 super.onCreateView(inflater, container, savedInstanceState);

                 View v = inflater.inflate(R.layout.content_pane, container, 
 false);

                 TabHost mTabHost = (TabHost) 
 v.findViewById(R.id.testtabhost1);

                 
 

Re: [android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Mark Murphy
You need to call setup() on the TabHost before using it, if you are
not extending TabActivity. Do that before your first addTab() call.

On Mon, May 2, 2011 at 12:50 PM, Stephen stephen.wil...@gmail.com wrote:
 Thanks for the quick response Dianne.  Please find below the stack
 trace, the fragment class' code and the layout XML.  I've tried using
 either the default tabhost ID (android.R.id.tabhost) or an @+ ID.
 Both result in the NullPointerException.

 I'm sure it's a schoolboy error somewhere but if you (or anyone else)
 can help I'd much appreciate it.

 Stephen



 -= Stack Trace =-

 05-02 17:18:43.193: ERROR/AndroidRuntime(2446): FATAL EXCEPTION: main
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):
 java.lang.NullPointerException
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:615)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:610)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.widget.TabHost$TabSpec.setContent(TabHost.java:464)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 uk.co.esstec.android.fragmenttabtest.ContentPaneFragment.onCreateView(ContentPaneFragment.java:
 20)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl.moveToState(FragmentManager.java:730)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl.moveToState(FragmentManager.java:921)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.BackStackRecord.run(BackStackRecord.java:578)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:
 1221)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl$1.run(FragmentManager.java:375)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.os.Handler.handleCallback(Handler.java:587)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.os.Handler.dispatchMessage(Handler.java:92)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.os.Looper.loop(Looper.java:126)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.ActivityThread.main(ActivityThread.java:3997)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 java.lang.reflect.Method.invoke(Method.java:491)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:841)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 dalvik.system.NativeStart.main(Native Method)

 -= Layout XML =-

 ?xml version=1.0 encoding=utf-8?
 TabHost xmlns:android=http://schemas.android.com/apk/res/android;
        android:id=@+id/testtabhost1 android:layout_width=fill_parent
        android:layout_height=fill_parent
        LinearLayout android:orientation=vertical
                android:layout_width=fill_parent
 android:layout_height=fill_parent
                TabWidget android:id=@android:id/tabs
                        android:layout_width=fill_parent
 android:layout_height=wrap_content /
                FrameLayout android:id=@android:id/tabcontent
                        android:layout_width=fill_parent
 android:layout_height=fill_parent
                        TextView android:id=@+id/textview1
 android:layout_width=fill_parent
                                android:layout_height=fill_parent 
 android:text=this is a tab /

                        TextView android:id=@+id/textview2
 android:layout_width=fill_parent
                                android:layout_height=fill_parent 
 android:text=this is another
 tab /
                        TextView android:id=@+id/textview3
 android:layout_width=fill_parent
                                android:layout_height=fill_parent 
 android:text=this is a third
 tab /
                /FrameLayout
        /LinearLayout
 /TabHost

 -= Fragment Class Code =-

 package com.test.fragtest;

 import android.app.Fragment;
 import android.os.Bundle;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.TabHost;

 public class ContentPaneFragment extends Fragment {

        @Override
        public View onCreateView(LayoutInflater inflater, ViewGroup
 container,
                        Bundle savedInstanceState) {
                super.onCreateView(inflater, container, savedInstanceState);

                View v = inflater.inflate(R.layout.content_pane, container, 
 false);

                TabHost mTabHost = (TabHost) v.findViewById(R.id.testtabhost1);

                
 

[android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Stephen
As I said, schoolboy error, especially since I've had to do
the .setup() call before.

Many thanks to both you and Dianne,

Stephen :-)



On May 2, 5:56 pm, Mark Murphy mmur...@commonsware.com wrote:
 You need to call setup() on the TabHost before using it, if you are
 not extending TabActivity. Do that before your first addTab() call.









 On Mon, May 2, 2011 at 12:50 PM, Stephen stephen.wil...@gmail.com wrote:
  Thanks for the quick response Dianne.  Please find below the stack
  trace, the fragment class' code and the layout XML.  I've tried using
  either the default tabhost ID (android.R.id.tabhost) or an @+ ID.
  Both result in the NullPointerException.

  I'm sure it's a schoolboy error somewhere but if you (or anyone else)
  can help I'd much appreciate it.

  Stephen

  -= Stack Trace =-

  05-02 17:18:43.193: ERROR/AndroidRuntime(2446): FATAL EXCEPTION: main
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):
  java.lang.NullPointerException
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:615)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:610)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.widget.TabHost$TabSpec.setContent(TabHost.java:464)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  uk.co.esstec.android.fragmenttabtest.ContentPaneFragment.onCreateView(Conte 
  ntPaneFragment.java:
  20)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:730)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:921)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.BackStackRecord.run(BackStackRecord.java:578)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:
  1221)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.FragmentManagerImpl$1.run(FragmentManager.java:375)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.os.Handler.handleCallback(Handler.java:587)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.os.Handler.dispatchMessage(Handler.java:92)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.os.Looper.loop(Looper.java:126)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.ActivityThread.main(ActivityThread.java:3997)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  java.lang.reflect.Method.invokeNative(Native Method)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  java.lang.reflect.Method.invoke(Method.java:491)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:841)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  dalvik.system.NativeStart.main(Native Method)

  -= Layout XML =-

  ?xml version=1.0 encoding=utf-8?
  TabHost xmlns:android=http://schemas.android.com/apk/res/android;
         android:id=@+id/testtabhost1 android:layout_width=fill_parent
         android:layout_height=fill_parent
         LinearLayout android:orientation=vertical
                 android:layout_width=fill_parent
  android:layout_height=fill_parent
                 TabWidget android:id=@android:id/tabs
                         android:layout_width=fill_parent
  android:layout_height=wrap_content /
                 FrameLayout android:id=@android:id/tabcontent
                         android:layout_width=fill_parent
  android:layout_height=fill_parent
                         TextView android:id=@+id/textview1
  android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
  android:text=this is a tab /

                         TextView android:id=@+id/textview2
  android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
  android:text=this is another
  tab /
                         TextView android:id=@+id/textview3
  android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
  android:text=this is a third
  tab /
                 /FrameLayout
         /LinearLayout
  /TabHost

  -= Fragment Class Code =-

  package com.test.fragtest;

  import android.app.Fragment;
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TabHost;

  public class ContentPaneFragment extends Fragment {

         @Override
         public View onCreateView(LayoutInflater inflater, ViewGroup
  container,
                         Bundle savedInstanceState) {
                 

[android-developers] Re: opengles question (to change content of vertexbuffer used in gldrawarrays)

2011-05-02 Thread Adam Hammer
Just use get and put on the buffer with your data.memory layout can
vary but typically is xyzxyzxyz which would be the 9 floats that
define your 3 vertices.

Adam

On May 1, 12:27 pm, emre onal emr...@gmail.com wrote:
 I have some triangle polygons and drawing them in a traditional way:
 (android-java code)

 gl.glDrawArrays(GL10.GL_TRIANGLES, i, j);

 I want to update the vertex coordinates of the triangles. All of the
 tutorials I've found use an initial vertex data then only apply
 transformations to them. I need to change each vertex coordinate
 independently.

 I change the content of the array which is used to create the related
 vertexbuffer but it doesn't make any change on the screen. Rebuilding the
 vertexbuffer on eachframe doesn't seem to be right way I guess.

 Can you point out any example source code at least, if you know any?

 --

 Emre

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

2011-05-02 Thread Adam Hammer
You need to read up on intents.

On May 1, 12:30 am, crajesh crajesh2...@gmail.com wrote:
 HI,

 I have two apk in /data/app which are a.apk and b.apk, and I want to
 invoke b.apk from a.apk... May, i know code for  invoke b.apk from
 a.apk

 thanks
 C.Rajesh

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


[android-developers] Re: Activity with launchMode = singleTop is created again

2011-05-02 Thread Akshay Goel
Thanks a lot Dianne!

On May 2, 6:41 pm, Dianne Hackborn hack...@android.com wrote:
 A singleTop activity won't be re-created in this situation.  You can use
 adb shell dumpsys activity to look at what is going on with the activity
 stack, and look at the log to see what messages are printed.

 That said, I *strongly* recommend you to not use singleTop for an activity
 that is intended to be launched by other applications like this.  What is
 required for your activity to actually get all of the UI flows right in such
 a situations is significant.  This is just not how the framework is intended
 to be used.  The other application is performing a share as part of its UI
 flow; you should have a new activity instance running on the other
 application's task taking care of its share operation rather than dragging
 our application on top.





 On Mon, May 2, 2011 at 4:00 AM, Akshay Goel xpectro...@gmail.com wrote:
  Hello,

  I have an application with a single activity, whose launchMode is set
  to singleTop. My application is an image viewer/editor  hence a
  user can go to the gallery, choose an image  select my application
  from the share menu to launch my application.

  Now, I am performing the following steps-

  1) Launch my application using the launcher icon.
  2) Press home.
  3) Go to gallery  choose an image to share using my application.

  After step 3, my application's onCreate() method hits again. As far as
  I understand, the activity being the only activity in the stack, was
  at the top, and should not have been created again. Observing the
  gallery intent's flags, I see that the flag is set to 1 (perhaps
  FLAG_GRANT_READ_URI_PERMISSION).

  Is the declaration singleTop not sufficient to ensure a single
  instance in this scenario?

  Any help will be appreciated.

  Thanks,
  Akshay

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

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


[android-developers] Fragments Map Support in Honeycomb

2011-05-02 Thread Varun Tewari
Hey Guys,

I saw many blogs and forums for this. Their are no updates after mid April
on this. Have we reached any conclusion ? Are there any upgrades provided by
Android Native itself ?
My app's minSdkVersion is 11, having List Frag in Left Panel and Details
Frag in Right Panel which contains Maps.
Is it possible to achieve with current Fragment Support ?

Thanks  Reg,
Varun

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

2011-05-02 Thread TreKing
On Mon, May 2, 2011 at 12:54 PM, Varun Tewari varuntewari2...@gmail.comwrote:

 Is it possible to achieve with current Fragment Support ?


http://groups.google.com/group/android-developers/browse_thread/thread/b705bbd72d28d000

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] How to exclude test resources from generated APK?

2011-05-02 Thread Greg Brown
Maybe it would help to ask this question another way. Does anyone know how the 
Android plugin for Eclipse generates an APK file, and if this process is 
configurable in any way?
Thanks,
Greg

On Apr 30, 2011, at 12:40 PM, Greg Brown wrote:

 I actually don't want them in my .apk file at all. I have been trying to 
 figure out how to filter them out but I haven't found a way to do so.
 
 Greg
 
 On Apr 30, 2011, at 10:50 AM, Dianne Hackborn wrote:
 Do they actually need to be in your main .apk?  Generally we like to keep 
 all test related code (and resources) in a separate .apk that has the 
 Instrumentation components.
 
 On Apr 30, 2011 9:48 AM, Greg Brown gk_br...@verizon.net wrote:
  Hi all,
  
  I'm using Eclipse to develop an Android application. I have a number
  of resource files in my project that are used for unit testing. When I
  generate an APK file for my app using Android Tools  Export Unsigned
  Application Package, the generated file includes these data files. I
  have not been able to find a way to filter them out.
  
  Is there a configuration file somewhere that I can modify to exclude
  these files?
  
  Thanks for your help,
  Greg
  
  -- 
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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

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

[android-developers] INJECT_EVENT permission while instrumenting search

2011-05-02 Thread Jose Espinosa
Hi all,

I am unit testing the search functionality on my application but when
I run it on the simulator I get a java.lang.SecurityException:
Injecting to another application requires INJECT_EVENT permission
exception.

I develop the search following this tutorial
http://developer.android.com/guide/topics/search/search-dialog.html.
My application is a WebView; when I perform the search I call the
loadUrl with the corresponding URL.

My test case is like follow:

  public void testSearch() {
Log.i(TAG, Entering testSearch);
   final Instrumentation instrumentation = getInstrumentation();
   instrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_SEARCH);
   instrumentation.sendCharacterSync(KeyEvent.KEYCODE_S);
   instrumentation.sendCharacterSync(KeyEvent.KEYCODE_E);
   instrumentation.sendCharacterSync(KeyEvent.KEYCODE_A);
   instrumentation.sendCharacterSync(KeyEvent.KEYCODE_R);
   instrumentation.sendCharacterSync(KeyEvent.KEYCODE_C);
   instrumentation.sendCharacterSync(KeyEvent.KEYCODE_H);

   // Assert that the correct page is loaded.
 }

But when I run the test I get the following exception:

05-02 11:43:28.329: INFO/TestRunner(667): failed:
testSearch(com.myapp.test.TestWebView)
05-02 11:43:28.329: INFO/TestRunner(667): - begin exception -
05-02 11:43:28.340: INFO/TestRunner(667): java.lang.SecurityException:
Injecting to another application requires INJECT_EVENT permission
05-02 11:43:28.340: INFO/TestRunner(667): at
android.os.Parcel.readException(Parcel.java:1218)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.os.Parcel.readException(Parcel.java:1206)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.view.IWindowManager$Stub
$Proxy.injectKeyEvent(IWindowManager.java:754)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.app.Instrumentation.sendKeySync(Instrumentation.java:935)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.app.Instrumentation.sendCharacterSync(Instrumentation.java:
961)
05-02 11:43:28.340: INFO/TestRunner(667): at
com.myapp.test.TestWebView.testSearch(TestWebView.java:234)
05-02 11:43:28.340: INFO/TestRunner(667): at
java.lang.reflect.Method.invokeNative(Native Method)
05-02 11:43:28.340: INFO/TestRunner(667): at
java.lang.reflect.Method.invoke(Method.java:521)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:
191)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:
181)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:
175)
05-02 11:43:28.340: INFO/TestRunner(667): at
junit.framework.TestCase.runBare(TestCase.java:127)
05-02 11:43:28.340: INFO/TestRunner(667): at
junit.framework.TestResult$1.protect(TestResult.java:106)
05-02 11:43:28.340: INFO/TestRunner(667): at
junit.framework.TestResult.runProtected(TestResult.java:124)
05-02 11:43:28.340: INFO/TestRunner(667): at
junit.framework.TestResult.run(TestResult.java:109)
05-02 11:43:28.340: INFO/TestRunner(667): at
junit.framework.TestCase.run(TestCase.java:118)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:164)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:151)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:
425)
05-02 11:43:28.340: INFO/TestRunner(667): at
android.app.Instrumentation
$InstrumentationThread.run(Instrumentation.java:1520)
05-02 11:43:28.340: INFO/TestRunner(667): - end exception -

This only happen when I run the test on the simulator, but not when I
run it on a real phone.  The simulator is running on a Mac OS 1.6 and
the phone is a Droid2.

Can someone give me some pointers on how to solve this issue?

Thanks,
Jose Espinosa

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


[android-developers] Looking for developer for project

2011-05-02 Thread Rohan
I am looking for a developer who can help me build a call waiting app
which will play sound file which i select in the 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] what happens to 'HttpURLRequest' when switching from 3G to network or vice versa

2011-05-02 Thread Haifeng Li
I have a 'HttpURLRequest' sent out using 'DefaultHttpClient' in 3G network. 
Since it takes more around 2 minutes to execute in background thread, I turn 
on the WIFI on in the middle so the internet will be accessed through WIFI 
now. The result does come back finally without exception. What confuses me 
is that some people mentions that the connection will drop or time out in 
such case. What's the expected behavior?


Thanks. (BTW, device is SPRINT HTC EVO)

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

2011-05-02 Thread joseph bashkar
http://123maza.com/65/rings780/http://123maza.com/65/rings780/
http://123maza.com/65/rings780/http://123maza.com/65/rings780/
http://123maza.com/65/rings780/http://123maza.com/65/rings780/

On Apr 30, 1:24 am, Jiejing.Zhang  kzj...@gmail.com wrote:
 Hi All,

 Hi Chia-CHi Yeh, I cc you since I found your kernel commit which is enable
 VPN stuff.

 I'm doing enable VPN function in an android froyo/gingerbread porting.
 After apply android pppol2tp, pppopptp related patch in android/common.git,
 I can success enable PPTP protocol, but I meet problem with L2TP profile.

 My error is:
 mtpd is keeping print error like this, then the connection will timeout

 D/mtpd    ( 3020): Timeout - Sending SCCRQ
 D/mtpd    ( 3020): Timeout - Sending SCCRQ

 but SCCRQ in PPTP profile in return quite fast,
 (I tested in Samsung 's Galax tab with same account and website, it works
 with L2TP profile)

 So, I'm suspecting maybe I missed some patch in kernel or some patch needed,
 can anyone give some suggestion ?

 Below is full vpn enable log:

 D/VpnManager( 2336): succeeded to connect to VPN service
 I/SProxy_mtpd( 2603): Stop VPN daemon: mtpd
 D/SProxy_mtpd( 2603): mtpd is stopped after 0 msec
 D/SProxy_mtpd( 2603): stopping mtpd, success? true
 I/SProxy_racoon( 2603): Stop VPN daemon: racoon
 D/SProxy_racoon( 2603): racoon is stopped after 0 msec
 D/SProxy_racoon( 2603): stopping racoon, success? true
 D/VpnService( 2603):   Local IP: 172.21.229.212, if: ppp0
 D/VpnService( 2603):        VPN UP: down
 I/SProxy_mtpd( 2603): Start VPN daemon: mtpd
 D/mtpd    ( 3022): Waiting for control socket
 D/com.android.settings.vpn.AuthenticationActor( 2336): ~~ connect()
 succeede
 d!
 D/VpnSettings( 2336): received connectivity: S2lt: connected? CONNECTING
 err=0
 D/SProxy_mtpd( 2603): mtpd is running after 200 msec
 D/mtpd    ( 3022): Received 19 arguments
 I/mtpd    ( 3022): Using protocol l2tp
 I/mtpd    ( 3022): Connecting to 178.18.17.149 port 1701
 I/mtpd    ( 3022): Connection established (socket = 11)
 D/mtpd    ( 3022): Sending SCCRQ (local_tunnel = 10642)
 I/SProxy_mtpd( 2603): got data from control socket: 19
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/dalvikvm( 2603): GC_EXPLICIT freed 1251 objects / 62352 bytes in 29ms
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 E/VpnService( 2603): onError()
 E/VpnService( 2603): java.io.IOException: Connecting timed out
 E/VpnService( 2603):    at
 com.android.server.vpn.VpnService.waitUntilConnectedO
 rTimedout(VpnService.java:206)
 E/VpnService( 2603):    at
 com.android.server.vpn.VpnService.onConnect(VpnServic
 e.java:136)
 E/VpnService( 2603):    at
 com.android.server.vpn.VpnServiceBinder$2.run(VpnServ
 iceBinder.java:114)
 E/VpnService( 2603):    at java.lang.Thread.run(Thread.java:1096)
 I/VpnService( 2603): disconnecting VPN...
 I/SProxy_mtpd( 2603): Stop VPN daemon: mtpd
 D/mtpd    ( 3022): Timeout - Sending SCCRQ
 I/mtpd    ( 3022): Received signal 15
 D/mtpd    ( 3022): Sending STOPCCN
 I/mtpd    ( 3022): Mtpd is terminated (status = 6)
 D/VpnSettings( 2336): received connectivity: S2lt: connected?
 DISCONNECTING   er
 r=0
 D/SProxy_mtpd( 2603): mtpd is stopped after 200 msec
 D/SProxy_mtpd( 2603): stopping mtpd, success? true
 I/SProxy_racoon( 2603): Stop VPN daemon: racoon
 D/SProxy_racoon( 2603): racoon is stopped after 0 msec
 D/SProxy_racoon( 2603): stopping racoon, success? true
 D/VpnService( 2603): onFinalCleanUp()
 I/VpnService( 2603): restore original suffices -- null
 D/VpnSettings( 2336): received connectivity: S2lt: connected? IDLE   err=101

 Thank you in advance!!!

 BR,
 Jiejing

 Best regards,
 Zhang Jiejing

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

2011-05-02 Thread joseph bashkar

http://123maza.com/65/rings780/ http://123maza.com/65/rings780/
http://123maza.com/65/rings780/ http://123maza.com/65/rings780/
http://123maza.com/65/rings780/
On Apr 30, 1:54 am, a a harvey.a...@gmail.com wrote:
 I'm modifying the app Gallery3D on android. Meet an issue about thread.

 There have a DataSouce class which child class object hold the datasouce.

 MediaFeed is implement the Runnable, and also have a datasouce object.

 Now, a create a new thread in the datasouce which i wan't to get other
 data like comment, tag, note.

 But when datasouce thread is stopped by MediaFeed, my new thead in the
 datasouce also be stopped.

 So, How can my new thread is not stopped either? Can my new thead in
 the datasouce escape the thead group?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 ADT plugin for eclipse determine if application do not need to be reinstalled

2011-05-02 Thread gumis
Hi,

If ADT plugin for eclipse detects that application to install is the
same as the one installed it shows the message Application already
deployed. No need to reinstall..
How it detects that application don't need to be reinstalled?
My problem is that once application is installed on emulator it will
never be reinstalled again even if there were some changes in the
code.
I use ADT for installing the apk package but I prepare package itself
with custom eclipse builder using sbt.

Thanks,
Marcin

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


[android-developers] Re: Update Contacts

2011-05-02 Thread joseph bashkar
http://123maza.com/65/rings780/http://123maza.com/65/rings780/
http://123maza.com/65/rings780/http://123maza.com/65/rings780/
http://123maza.com/65/rings780/ http://123maza.com/65/rings780/
http://123maza.com/65/rings780/

On Apr 26, 10:42 pm, Stefan S shogu...@gmail.com wrote:
 Hi
 I've got the following problem:
 I want to update my contacts from a XML-File with the following lines
 of code
 ContentValues werte = new ContentValues();
 werte.put(ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME,
 _sFamilyName);
 werte.put(ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME,
 _sGivenName);
 werte.put(ContactsContract.CommonDataKinds.StructuredName.MIDDLE_NAME,
 _sMiddleName);
 werte.put(ContactsContract.Data.MIMETYPE,
 ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE);

 ContentResolver contacts = _context.getContentResolver();

 int nRows = contacts.update(ContactsContract.Contacts.CONTENT_URI,
 werte, ContactsContract.Data._ID + =?, new String[]
 {String.valueOf(_nContactID)});

 the RowCount is 1, so it seems that it's updating something. But when
 I check the Contact nothing happend.

 What do I make wrong?

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


[android-developers] Re: Android renders RGB values wrong.

2011-05-02 Thread Andrew Huang
Actually that didn't went well.

I downsampled my images to 256 colors in gimp, and they displayed
correctly afterwards. Even 4096 colors was giving me trouble.

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

2011-05-02 Thread joseph bashkar
http://123maza.com/65/rings780/   http://123maza.com/65/rings780/
http://123maza.com/65/rings780/http://123maza.com/65/rings780/

On Apr 30, 2:14 am, Akshay Goel xpectro...@gmail.com wrote:
 Hello,

 I have declared the launch mode of my activity to be singleTask. If I
 launch my application, press the home button, go to an email client
 (gmail in this case)  preview an attachment using my application, I
 am experiencing a security exception on Android versions 2.3  later,
 which says that I do not have the permissions to access gmail
 attachments. The exception does not occur on prior versions  if I do
 not use singleTask as the launchMode.

 Is this a known issue?

 Any help will be really appreciated.

 Thanks,
 Akshay

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

2011-05-02 Thread Alexei Serov
If you really want to develop web applications in the android OS then
probably the only way for you is going Java way, Installing i-Jetty on
Android and using HybridJava technology. Let folks correct me if there
are other possibilities.

On Mar 23, 11:56 am, rishabh agrawal android.rish...@gmail.com
wrote:
 In the android O.S,I want develope web bassed apps.i am a beginner in
 this field.so plz suggest mePHPis give me help when i create web
 based apps.

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

2011-05-02 Thread Nick
That fixes it sometimes.  Another way I figured out is if I just smudge the 
corners of the N1 it goes away sometimes.  

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

[android-developers] design patterns to develop Android

2011-05-02 Thread Marcelo Lima
Guys, good night!
I wonder if you know some material about design patterns to develop
Android?
I will make a final post-graduate course on the subject.
Thanks
Marcelo

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


[android-developers] Add context Menu to private class View

2011-05-02 Thread craigyg121
Hi all,

First post and just getting into Android development so please be
patient with me. I would like to implement a context menu / menu of
some kind when a long click is done on the screen. I can do this under
a normal class when it extends the Activity but i am unsure how to do
this under a private class.

I create a new private class to draw certain shapes etc and use the
onDraw method to draw the items. Very similar to
http://bestsiteinthemultiverse.com/2008/11/android-graphics-example/

Once i call the private class i do not see any events in my main class
as expected.

Any help on this would be appreciated.

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


[android-developers] I am trying to get power consumption trend of my Wifi, GPS and Bluetooth

2011-05-02 Thread Prabhu Shrestha
Hi guys,

I am trying to study power consumption trend of my android device(SE
x10 mini) about Wifi, GPS or Bluetooth at certain interval of time.
After googling about it for a while, I couldnt get into anything yet.
So, I am trying my luck in this group of experts. It might be helpful
if anyone has tried the same before or tools alrady available in the
market.
Any reply would be appreciated.

Thank You,
Prabhu

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


[android-developers] Free Hosting for Developers

2011-05-02 Thread Jimmy
Hi,

Just trying to get the word out to developers of ROMs for Android
Devices. We opened a site last week that offers totally free ROM
hosting. We are aiming at replacing the popup, malicious ad, and wait
time filled file hosting that developers currently use and at the same
time, build the biggest ROM library on the web.

We are not competing with anyone, just simply a supplement to the
Android community, 100% free of charge.

Check it out www.androidrtk.com

Thanks for your time,
Jimmy

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


[android-developers] Mind Rattling Logical Game ‘Twitty’ Now Available In The Android Market

2011-05-02 Thread dumadu games
Hi All,

Twitty a thrilling puzzle game with exciting levels to beat. This logic game
will give a tug to your brain. Take up the challenge and become the ultimate
savior of the cute little birds waiting to get into their respective
destination. Twitty will definitely keep you amused throughout the game.

Twitty is now available for all Android devices. The game can be download
through the Android Market or online at
https://market.android.com/details?id=com.dumadu.twitty.

Regards,
Dumadu Games.

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

[android-developers] Any good answer to: No subject alternative DNS name matching android.apis.google.com found

2011-05-02 Thread MikeG.
Sorry to bother but does anybody know if there is an answer to:

CertificateException: No subject alternative DNS name matching
android.apis.google.com found

Thanks a lot,

-Michael

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


[android-developers] C2DM server

2011-05-02 Thread waltz
As far as I know, Google C2DM servers gives notifications from third
party server. Is it possible to make Google C2DM servers your host for
data. Can one send data from an android application to Google C2DM
servers for other users of the same application to receive
notification of the 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


Re: [android-developers] How to connect to Internet with Wifi when no Cellular Service is present

2011-05-02 Thread M.Nasir Aftab
For this you can use ststic ip for your server..hope it works
On Apr 29, 2011 11:37 PM, Avinash M avinash@gmail.com wrote:
 Hello,

 I am developing an application where my application needs to
 communicate to local college server which can be connected only
 through college local network and not possible through cellular 2G/3G
 connectivity.

 I am connected to College Network through Wifi and have disabled
 Cellular service by removing the SIM.
 With this setup, Google applications like GMail,Gtalk, browser is
 working fine.
 But i m unable to send request to my college network in my
 application.
 Need help in how to connect to server through Wifi Connection.

 Your help is appreciated.

 Thanks,
 Avinash Mohan

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

2011-05-02 Thread joseph bashkar

http://123maza.com/65/rings780/
http://123maza.com/65/rings780/http://123maza.com/65/rings780/http://123maza.com/65/rings780/

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


[android-developers] Internet not working via adhoc network connection in galaxy ace GT-S5830

2011-05-02 Thread Jitter
Always include:

Device:Samsung Galaxy ACE GT-S5830
Carrier:
Country / Language:
Android version: 2.2.1
OS / Browser / build number (if applicable): FROYO.DDKC1
Kernel Version: 2.6.32.9-perf root@SE-S605#1

Issue: I have internet connection on ethernet network which i have
shared for use on other network(wifi). Also i have wifi adhoc network
connection with WEP security.I am able to connect to adhoc wifi
network from my android device with the settings provided below but
unable to access internet in android device browser.I can connect to
my wifi adhoc network via laptop using the same settings and can
access shared internet.

Lan adapter Setting which is sharing internet:
IP address: 192.168.1.2
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DNS: 172.37.7.197

Wifi adapter network setting:
IP Address: 192.168.0.1
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.2
DNS: 172.31.7.197

Android device Manual IP Setting:
IP Address: 192.168.0.3
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS1:192.168.0.1

Also when i ping my device IP using command:
adb shell ping 192.168.0.3
packets received successfully

but when i execute the following command:
adb shell ping 192.168.0.1
Error message: Destination Host Unreachable

Searched all possible options but no help.
please help as i am yet to access internet in my android device using
Wifi.

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

2011-05-02 Thread Fadil Kamal
how to accelerate the performance of my phone?
sometimes my phone lags even force close
how to fix it?

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


[android-developers] StackView example as a non-widget application

2011-05-02 Thread Kelly
I see that there is sample code in the Android SDK for using StackView
as a widget here:

http://developer.android.com/resources/samples/StackWidget/index.html

Does anyone know of any samples for using StackView in a non-widget
application (i.e. inside an Activity and populating it with drawables
instead of from Remote resources)?

Thank you very much,
-Kelly

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


[android-developers] Animating an Updating TextView

2011-05-02 Thread Misc Ventura
Animated TextView Not Updating..

Ok. Here is my problem.. I am a little new to android dev.. I'm having
a hard time understanding 2D graphics..

I was able to make my Layout rotated like iPhone's LandscapeLeft to
LandscapeRight.. It has a TextView that updated with accelerometer
values...
The problem is that after the animation the TextView stops updating..

I have read that this type of animation only moves the view.. and that
everything else is still in it's previous position... Can someone help
me understand. I have attached my project in case somebody wanted to
look at it..

ANY suggestions would be much appreciated.. Thanks..

The project is also in Github 
https://github.com/miscventura/AnimatingUpdatingTextView

Here is the code..

package org.example.hello;

import android.app.Activity;
...
import android.widget.TextView;


public class Hello extends Activity implements SensorEventListener {
/** Called when the activity is first created. */

Camera camera;
SurfaceView surfaceView;
SurfaceHolder surfaceHolder;
boolean previewing = false;
LayoutInflater controlInflater = null;

TextView numbersView;
TextView numbersView2;

// for orientation change
OrientationEventListener mOrientationEventListener;
int mDeviceOrientation;
public SensorManager sensorManager = null;
float accelerationX;
float accelerationY;

// ///Orientation//
static final int lanscapeLeft = 2;
static final int lanscapeRight = 1;
int orientation = 2;

View viewControl;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// ***
// full screen mode
// ***
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FL AG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
// ***
sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);

//sets a floating layer
viewControl = getLayoutInflater().inflate(R.layout.mainview, null);
setContentView(viewControl);

numbersView = (TextView) findViewById(R.id.numbersview);
numbersView2 = (TextView) findViewById(R.id.numbersview2);



mOrientationEventListener = new OrientationEventListener(this,
SensorManager.SENSOR_DELAY_NORMAL) {
@Override
public void onOrientationChanged(int orientation) {
mDeviceOrientation = orientation;
}
};

if (mOrientationEventListener.canDetectOrientation()) {
mOrientationEventListener.enable();
}
}

// 
///
// /ACCELEROMETER SET
// UP/
// 
/
@Override
protected void onResume() {
super.onResume();
// Register this class as a listener for the accelerometer sensor
sensorManager.registerListener(this,
sensorManager.getDefaultSensor(Sensor.TYPE_ACCELER OMETER),
SensorManager.SENSOR_DELAY_GAME);

}

public void onAccuracyChanged(Sensor arg0, int arg1) {
// TODO Auto-generated method stub

}

public void onSensorChanged(SensorEvent event) {
// TODO Auto-generated method stub
synchronized (this) {
if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {

// high-pass filter to eliminate gravity
accelerationX = event.values[0];
accelerationY = event.values[1];
String accValue = String.format(%.1f, accelerationX);
String accValue2 = String.format(%.1f, accelerationY);

if (mDeviceOrientation = 300  mDeviceOrientation = 240) {
animateRootViewToLanscapeLeft(viewControl);
}
if (mDeviceOrientation = 60  mDeviceOrientation = 120) {
animateRootViewToLanscapeRight(viewControl);
}


numbersView.setText(accValue);

numbersView2.setText(accValue2);
}
}
}

public void animateRootViewToLanscapeLeft(View view) {
if (orientation == lanscapeRight) {
Animation spin = AnimationUtils.loadAnimation(
getApplicationContext(), R.anim.tolandscapeleft);
view.setAnimation(spin);
spin.setFillAfter(true);
spin.start();
orientation = lanscapeLeft;
}
}

public void animateRootViewToLanscapeRight(View view) {
if (orientation == lanscapeLeft) {
Animation spin = AnimationUtils.loadAnimation(
getApplicationContext(), R.anim.tolandscaperight);
view.setAnimation(spin);
spin.setFillAfter(true);
spin.start();
orientation = lanscapeRight;
}
}


}

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


[android-developers] About JSONArray exception on Android

2011-05-02 Thread j0nSn0w
Hi guys, I'm developing an Android (2.2) application in which I get
from a web service a string containing the JSON serialized version of
a list of custom objects, which results in a JSONArray string of
JSONObject. The received string is well formed, as I can see at
eyesight and as I can prove with online validator. At one point in the
Android application, I pass this string to a JSONArray constructor, to
get an array of JSONObject. Here's the problem: the JSONArray
constructor throws an exception, stating that at some point the string
ends with a invalid terminator: but the point indicated in the
exception is far from the real end of the string. The fact is that the
string in question is huge (about 16 chars): does anyone know if
there's a limit to the length of a string when passed to the JSONArray
constructor? The string variable held in memory is full-length, so it
seems to me that the JSONArray constructor kindof truncates it. Is it
possible?

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


[android-developers] how to use android-2.3.3_r1 for development

2011-05-02 Thread papananasya
dear all,
I've been developing android application using NFC technology. On SDK,
android 2.3.3 api 10, package android.nfc class NfcAdapter i can not
find method getLocalNdefMessage. I see this method on android source
release branch android-2.3.3_r1. My question is how to use it for
development, with or without eclipse?
thank you

papa

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


[android-developers] Access Androidify avatar from another app

2011-05-02 Thread Robert Jenks
I had fun using the Androidify app to create avatars for myself and
family.  I am currently writing a multiplayer card game and was
wondering if it is possible to access the saved My Androids and
offer my users a way to use one of their androidify icons to represent
them in my game.  This would be similar to Avatar games available in
the XBOX 360 arcade market.

Thanks,
-Robert

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


[android-developers] Problem with intent

2011-05-02 Thread qw1
Hello. I have some problem with a programming simple widget. I have 2
buttons (b0, b1) and 1 TextView (tv1). I want that: text in tv1
changes to value, witch is given in intent.putExtra, on buttons
press. In other words, after b0 pressed, text is b0, after b1
pressed - b1. But always I have b1 in tv1. I have no idea, how it
can be.

My code:

public class WidgetProvider extends AppWidgetProvider {
public static String ACTION_WIDGET_CONFIGURE = ConfigureWidget;
public static String ACTION_WIDGET_RECEIVER =
ActionReceiverWidget;
@Override
public void onReceive(Context context, Intent intent) {
super.onReceive(context, intent);
}
@Override
public void onUpdate(Context context, AppWidgetManager
appWidgetManager,
int[] appWidgetIds) {
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.main);

Intent tent = new Intent(context, MainBR.class);
tent.setAction(ACTION_WIDGET_RECEIVER);
tent.putExtra(button, b1);
PendingIntent ptent = PendingIntent.getBroadcast(context, 0,
tent, 0);
views.setOnClickPendingIntent(R.id.b1, ptent);

Intent tent2 = new Intent(context, MainBR.class);
tent2.setAction(ACTION_WIDGET_RECEIVER);
tent2.putExtra(button, b0);
PendingIntent ptent2 = PendingIntent.getBroadcast(context, 0,
tent2, 0);
views.setOnClickPendingIntent(R.id.b0, ptent2);

   appWidgetManager.updateAppWidget(appWidgetIds[0], views);
}
}

RECEIVER:

public class MainBR extends BroadcastReceiver {
/**
 * @see
android.content.BroadcastReceiver#onReceive(Context,Intent)
 */
@Override
public void onReceive(Context context, Intent intent) {
AppWidgetManager appWidgetManager =
AppWidgetManager.getInstance(context);
RemoteViews remoteViews = new
RemoteViews(context.getPackageName(), R.layout.main);
ComponentName thisWidget = new ComponentName(context,
WidgetProvider.class);
final String msg = intent.getStringExtra(button);
remoteViews.setTextViewText(R.id.tv1, msg);
appWidgetManager.updateAppWidget(thisWidget, remoteViews);
}
}

P.S. I'm sorry for my not good English, it isn't my native language,
and I ask You to write simple, if it is possible. Thank you!

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


[android-developers] Lag problem

2011-05-02 Thread Fadil Kamal
how to accelerate the performance of my phone?
sometimes my phone lags
how to fix it?

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


[android-developers] Question I would hope some of the more experienced programers could help answer...

2011-05-02 Thread Clintano
I would like to develop and app for the android operating system that
would allow the proper functioning of the 3-way conferencing process.
specifically slitting merged calls and ending the call for just one
person of the 2 you have on the 3-way call. Is this possible with the
current tools that the android market has available?

Thanks,
Clint

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


[android-developers] SIP API in Android 2.3 with IP/Port problems

2011-05-02 Thread Sebastian
Hello everyone,

for a while now I've been playing around with the SipDemo in the 2.3
SDK.
The documentation on Android's developer page is nicely written, but
not a lot.
It does not explain anything about IPs, ports, NAT and STUN.
I know how this stuff is supposed to work, but it doesn't say how
Android's SIP API handles it. Or does it handle NATs at all...

Here, someone mentioned that the API does do some tests for public IP
and port, but it's the first time I read it:
http://code.google.com/p/android/issues/detail?id=14043can=1q=sip%20ipcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars

But now to my problem:
When I deploy the SipDemo as-is either to my device connected to WiFi
or to the emulator, provide my credentials (I know they work with
SipDroid and other SIP apps) the SipDemo displays registration
failed.
I did some sniffing and found out the packets sent to the SipServer
all include the devices or emulators local IP, not my NAT's public
one.
The server replies correctly that RFC1918 IPs are not allowed.

I added a STUN test to the SipDemo and successfully retrieved my
public IP and port. But I can't find a way how to pass it on to my
created SipProfile or the SipManager.


My question:
Has anyone ever made an application working with the SIP API behind a
NAT?
How does the API handle NATs? How can I pass the information I got
from my own STUN client to the SIP API?

Any help is appreciated.

PS: I know SipDroid and a lot of other SIP implementations, but they
all do not use the built-in API.

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


[android-developers] In-App and contents server

2011-05-02 Thread Mika Nako
Hi everyone,
I am examining In-App and the contents server.

I want to know payment information on In-App from the contents
server.
How should I do?

I think whether something can be done by using the order number.


Thanks for reading and your possible help,
Mika

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


[android-developers] Anyone know if there is a charge limit setting in android phones?

2011-05-02 Thread ulao
I'm attempting to use an extended battery for my galaxy indulge phone.
An external charger will charge it where the phone will not. This is a
3600 mah battery and the oem battery is a 1500 mah. My guess is this
is hard coded in the android 2.2 software somewhere.

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


[android-developers] Make the virtual keyboard visible without widgets

2011-05-02 Thread Saimazoom
Hi

 I'm a beginner developer for Android and I'm trying to write a very
simple application. What I'm trying to achieve is an activity composed
by a Bitmap and a virtual Keyboard. I've tried to show the keyboard in
the onCreate method of the activity and also in the constructor of the
View but without a positive result. At this point I suppose I don't
need to write a softKeyboard and the default one will be enought for
my purposes.

Thanks.


public class TC extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
   engine mainWidget = new engine(this);
   super.onCreate(savedInstanceState);
   setContentView(mainWidget);
/*
InputMethodManager mgr = (InputMethodManager)
getSystemService(context.INPUT_METHOD_SERVICE);
mgr.showSoftInput(mainWidget, InputMethodManager.SHOW_FORCED);
*/

}

}

class engine extends View {

private Bitmap mBitmap;
private long mStartTime;


   public engine(Context context) // Constructor...
{
super(context);

final int W = 200;
final int H = 200;

mBitmap = Bitmap.createBitmap(W, H, Bitmap.Config.RGB_565);

InputMethodManager mgr = (InputMethodManager)
context.getSystemService(context.INPUT_METHOD_SERVICE);
mgr.showSoftInput(this, InputMethodManager.SHOW_FORCED);

}

@Override protected void onDraw(Canvas canvas)
{
canvas.drawColor(0xFFCC);
//renderPlasma(mBitmap, System.currentTimeMillis() -
mStartTime);
canvas.drawBitmap(mBitmap, 0, 0, null);
// force a redraw, with a different time-based pattern.
invalidate();
}
}

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


[android-developers] Abrir un fichero html desde aplicación android

2011-05-02 Thread Javier
Hola, estoy programando un aplicación en Android y tengo el siguiente
problema:

La idea es generar una página html de inicio y a partir de ella
navegar por página de internet. La página html de inicio la creo yo y
la guardo en un fichero de texto. La página está bien creada ya que si
la abro con mozilla, chrome o explorer funciona perfectamente.

Bien, mi problema es el siguiente, al lanzar el navegador desde mi
aplicación me da error ya que no le estoy pasando una URI si no
localización de donde esta el fichero, de la siguiente manera:

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(/data/data/
HelloAndroid/files/pagina.html)));

Es posible hacer lo que quiero o desde una aplicación sólo puedo abrir
el navegador de Android pasándole una página de internet?

Muchas gracias de antemano.

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

2011-05-02 Thread joseph bashkar
http://123maza.com/65/rings780/http://123maza.com/65/rings780/

http://123maza.com/65/rings780/http://123maza.com/65/rings780/

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


[android-developers] seat chart

2011-05-02 Thread raj singhania
Hi,
I want to show a seating plan on android . We should be able to see a
seating plan, with the available seats in  a certain colour and the
unavailable ones in another colour, and should be able to select a
seat or set of seats which will then be stored and will be unavailable
the next time that seating plan is checked.
 I had initially used custom adapter for displaying 7 rows of seats
with 4 seats in each row by giving the count value as 7.But the
problem with custom adapter is that the id of each button(seats)is
becoming same for the entire column so cant assign the colours and
store as to which seat the user is choosing.
I am currently doing by the table row method and trying to locate the
unique position of the cells but still didnt find mch help!!I am
trying if you have some time it wl be of gr8 help!!please reply in
rajsinghis123@gmail.
the requirement is something like this.
1  A  B  C  D
2  A  B  C  D
3  A  B  C  D
4  A  B  C  D
5  A  B  C  D
6  A  B  C  D
7  A  B  C  D
Enter seat no: 1 A
Seat 1A is reserved
1  X  B  C  D
2  A  B  C  D
3  A  B  C  D
4  A  B  C  D
5  A  B  C  D
6  A  B  C  D
7  A  B  C  D
the plain and simple java code is something like this.I am not getting
how to get this by android
import java.util.*;

class Passenger {
public int no;
public String seatA;
public String seatB;
public String seatC;
public String seatD;

public Passenger() {
}

public Passenger(int no, String seatA, String seatB, String
seatC,
String seatD) {
this.no = no;
this.seatA = seatA;
this.seatB = seatB;
this.seatC = seatC;
this.seatD = seatD;
}

public int getNo() {
return no;
}

public void setNo(int no) {
this.no = no;
}

public String getSeatA() {
return seatA;
}

public void setSeatA(String seatA) {
this.seatA = seatA;
}

public String getSeatB() {
return seatB;
}

public void setSeatB(String seatB) {
this.seatB = seatB;
}

public String getSeatC() {
return seatC;
}

public void setSeatC(String seatC) {
this.seatC = seatC;
}

public String getSeatD() {
return seatD;
}

public void setSeatD(String seatD) {
this.seatD = seatD;
}
}

public class air4 {
public static void main(String[] args) throws Exception {
ListPassenger list = new ArrayList();
list.add(new Passenger(1, A, B, C, D));
list.add(new Passenger(2, A, B, C, D));
list.add(new Passenger(3, A, B, C, D));
list.add(new Passenger(4, A, B, C, D));
list.add(new Passenger(5, A, B, C, D));
list.add(new Passenger(6, A, B, C, D));
list.add(new Passenger(7, A, B, C, D));

for (Passenger s : list) {
System.out.println(s.getNo() ++
s.getSeatA() +   
+ s.getSeatB() ++
s.getSeatC() ++ s.getSeatD());
}
for (int i = 1; i = 5; i++) {
System.out.print(Enter seat no: );
Scanner input = new Scanner(System.in);
int num = input.nextInt();
String sn = input.next();
for (Passenger s : list) {
if (num == s.getNo()) {
if (sn.equals(s.getSeatA())) {
s.setSeatA(X);
System.out.println(Seat +num++sn+ is
Reserved);
} else if (sn.equals(s.getSeatB())) {
s.setSeatB(X);
System.out.println(Seat +num++sn+ is
Reserved);
} else if (sn.equals(s.getSeatC())) {
s.setSeatC(X);
System.out.println(Seat +num++sn+ is
Reserved);
} else if (sn.equals(s.getSeatD())) {
s.setSeatD(X);
System.out.println(Seat +num++sn+ is
Reserved);
} else {
System.out.println(Not Available);
}
}
System.out.println(s.getNo()+  +s.getSeatA()+  
+s.getSeatB()+   +s.getSeatC()+  + s.getSeatD());
}
}
}
}

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


[android-developers] Obtaining application icons.

2011-05-02 Thread Dan Jin
I have an activity that displays various statistics about installed/
running applications. I would like to obtain the icons of various
installed/running applications to display along side these statistics.
Could someone direct me to the proper classes/methods to research
within the API?

Thanks in advance,

Dan

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


[android-developers] In-App and contents server

2011-05-02 Thread Mika Nako
Hi everyone,
I am examining In-App and the contents server.

I want to know payment information on In-App from the contents
server.
How should I do?

I think whether something can be done by using the order number.


Thanks for reading and your possible help,
Mika

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


[android-developers] New to Android

2011-05-02 Thread sudharsanan
Hello Guys
   I am new to android application development,can you
people help to me to develop the application?and also where i can get
the sample application?

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] MODIFYING OSMAND'S ROUTING ALGORITHMS

2011-05-02 Thread Wernher2
Hi everyone!
I'm new to this group.
Since i'm going to start a thesis work concerning the modification of
osmand's routing algorithm  according to environmental parameters
(that's to say for example :CO2 pollution) i would like to ask some
questions.
Actually i do not own an android  smartphone, so i'm using the Android
SDK and Eclipse IDE as to develop an android project for the thesis
work. Thus I'm going to use Android SDK's smartphone emulator to test
my application.
My goal is to implement a routing algorithm based on the air pollution
level acquired by a CO2 sensor.
So the sensor acquires pollution data related to a certain amount of
streets which are used as sample for the project.
The sensor also has to transfer these data to the android smartphone
that will have to calculate the new route in order to determine
streets with the lowest pollution level.
But data acquisition is not the point, because it's not important for
data to be acquired in real time. I can use previously acquired data.
The problem is that i don't know how i should enbed osmand's basic
application in the android sdk emulator and how to use it as the basis
to implement my algorithm.
To express this In a few words, i should work offline, select a
relatively narrow part of a town and use the data coming from the
sensor  to implement my algorithm.
So first of all the problem is:
1) to embed osmand's app in the android sdk ( i don't know how to do
it);
2) later i should  communicate with osmand's offline navigator in
order to apply my routing algorithm but still i don't have any ideas
how can i solve this.


Thanks in advance for the attention. I look forward to your
responses.

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


[android-developers] Unable to install latest Android SDK on Ubuntu 10.10

2011-05-02 Thread Scott
Hi folks,

I've been trying in vein for a few days to get the latest Android SDK
to install on Ubuntu 10.10.  Here's what I'm up to:

1) Grabbed and unpacked the starter package
2) Ran tools/android
3) Clicked Available Packages
4) Selected all under Android Repository
5) Clicked Install selected packages

And kaboom (below).

I've tried it with both OpenJDK (1.6) and Sun JDK (1.6), but no dice.
I've also tried as root, although it was my understanding that that
shouldn't be necessary.

Any suggestions would be greatly appreciated.

Scott

Error log:
*** glibc detected *** java: malloc(): memory corruption:
0x7f6968b12300 ***
=== Backtrace: =
/lib/libc.so.6(+0x774b6)[0x7f69720f84b6]
/lib/libc.so.6(+0x7b55f)[0x7f69720fc55f]
/lib/libc.so.6(__libc_malloc+0x6e)[0x7f69720fd38e]
/usr/lib/libpixman-1.so.0(+0x1724b)[0x7f69629c624b]
/usr/lib/libpixman-1.so.0(pixman_image_create_solid_fill+0x9)
[0x7f69629e78b9]
/usr/lib/libpixman-1.so.0(pixman_image_fill_boxes+0x23a)
[0x7f69629e163a]
/usr/lib/libcairo.so.2(+0x27c68)[0x7f6964830c68]
/usr/lib/libcairo.so.2(+0x48848)[0x7f6964851848]
/usr/lib/libcairo.so.2(+0x4b885)[0x7f6964854885]
/usr/lib/libcairo.so.2(+0x48861)[0x7f6964851861]
/usr/lib/libcairo.so.2(+0x4cac7)[0x7f6964855ac7]
/usr/lib/libcairo.so.2(+0x4cc92)[0x7f6964855c92]
/usr/lib/libcairo.so.2(+0x4d8d9)[0x7f69648568d9]
/usr/lib/libcairo.so.2(+0x4a191)[0x7f6964853191]
/usr/lib/libcairo.so.2(+0x2282a)[0x7f696482b82a]
/usr/lib/libcairo.so.2(cairo_stroke_preserve+0x1b)[0x7f696482249b]
/usr/lib/libcairo.so.2(cairo_stroke+0x9)[0x7f69648224c9]
/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so(murrine_draw_focus+0x5e)
[0x7f696192815e]
/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so(+0xf724)[0x7f6961918724]
/usr/lib/libgtk-x11-2.0.so.0(+0x240008)[0x7f6966d70008]
/usr/lib/libgtk-x11-2.0.so.0(+0x240115)[0x7f6966d70115]
/usr/lib/libgtk-x11-2.0.so.0(+0x13a9d8)[0x7f6966c6a9d8]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7f6963550a6e]
/usr/lib/libgobject-2.0.so.0(+0x24a30)[0x7f6963566a30]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x62b)
[0x7f69635680eb]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7f6963568863]
/usr/lib/libgtk-x11-2.0.so.0(+0x2536df)[0x7f6966d836df]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x556)[0x7f6966c641b6]
/tmp/swtlib-64/libswt-pi-
gtk-3550.so(Java_org_eclipse_swt_internal_gtk_OS__1gtk_1main_1do_1event
+0xc)[0x7f6967192a9d]
[0x7f696d02dca8]
=== Memory map: 
0040-00409000 r-xp  08:01
16385929   /usr/lib/jvm/java-6-openjdk/jre/bin/
java
00608000-00609000 r--p 8000 08:01
16385929   /usr/lib/jvm/java-6-openjdk/jre/bin/
java
00609000-0060a000 rw-p 9000 08:01
16385929   /usr/lib/jvm/java-6-openjdk/jre/bin/
java
02448000-02c41000 rw-p  00:00
0  [heap]
e5a0-e6ec rw-p  00:00 0
e6ec-f000 rw-p  00:00 0
f000-f295 rw-p  00:00 0
f295-faab rw-p  00:00 0
faab-fbf5 rw-p  00:00 0
fbf5-1 rw-p  00:00 0
7f695ece-7f695ecf5000 r-xp  08:01
59113551   /lib/libgcc_s.so.1
7f695ecf5000-7f695eef4000 ---p 00015000 08:01
59113551   /lib/libgcc_s.so.1
7f695eef4000-7f695eef5000 r--p 00014000 08:01
59113551   /lib/libgcc_s.so.1
7f695eef5000-7f695eef6000 rw-p 00015000 08:01
59113551   /lib/libgcc_s.so.1
7f695eef6000-7f695ef4d000 r--p  08:01
15597650   /usr/share/fonts/truetype/ubuntu-font-
family/Ubuntu-BI.ttf
7f695ef4d000-7f695efaa000 r--p  08:01
15597651   /usr/share/fonts/truetype/ubuntu-font-
family/Ubuntu-I.ttf
7f695efaa000-7f695effc000 r--p  08:01
15597649   /usr/share/fonts/truetype/ubuntu-font-
family/Ubuntu-B.ttf
7f695effc000-7f695efff000 ---p  00:00 0
7f695efff000-7f695f0fd000 rw-p  00:00 0
7f695f0fd000-7f695f10 ---p  00:00 0
7f695f10-7f695f1fe000 rw-p  00:00 0
7f695f1fe000-7f695f203000 r-xp  08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f203000-7f695f402000 ---p 5000 08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f402000-7f695f403000 r--p 4000 08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f403000-7f695f404000 rw-p 5000 08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f404000-7f695f406000 r-xp  08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f406000-7f695f605000 ---p 2000 08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f605000-7f695f606000 r--p 1000 08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f606000-7f695f607000 rw-p 2000 08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f607000-7f695f61c000 r-xp  08:01
16385948   

[android-developers] Re: Android Web Solutions

2011-05-02 Thread Shibu S R
Thank you TreKing,

   Could you please send me a sample code?

Regrads
Shibu

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