[android-developers] Re: Getting the right highlighting behavior in a ListView

2010-09-21 Thread jamesc
Are you asking the same question that I posed (there's an answer from
Mark) here?: 
http://stackoverflow.com/questions/3599234/recommendations-for-a-permanent-selector-in-listview

On Sep 20, 7:44 pm, Bret Foreman  wrote:
> This could just as well be a big list of radio buttons, but there's a
> lot of choices so I think a ListView makes more sense.

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


[android-developers] Re: How to install the files in the file system on android phone (samsung galaxy 5)

2010-09-21 Thread sameer kamble
Dear Sir,
  Thanks for your reply.

1) Does this means that if i create the folder "raw" inside "res"
folder , put some files in it and in my program give the path to open
and read a file as ""/data/data/mypackage/filename". Will it read the
file from "raw" folder at run time on the device.

2) I mean to say that is the path /res/raw/ equivalent to "/data/data/
mypackage/" folder.

3) I also intend to read/write and create some files at run time in my
internal memory "/data/data/mypackage/" folder. When i do these
operation in my Emulators "/data/data/mypackage/" folder, i don't face
any problem i.e the original files are read and written as well as
some new files are also created. But as you say i will add my files
in /res/raw folder. But will i be able to write in the files present
at raw folder

4) Will it be possible by adding files,subfolders in raw folder OR
will it be possible by adding files , subfolders in the "assets"
folder. will my problem solve by using "assets" folder.

Please help me on this

regards,
Sameer Kamble


On Sep 20, 8:07 pm, Bret Foreman  wrote:
> You can store files in /res/raw. Just create the folder, import the
> files, and they'll get installed with your package. They will be read-
> only, though, so you'll need to move them at runtime if you plan to
> change them. I do this with certain geographical information for
> location based services and it works great.
>
> On Sep 20, 7:08 am, sameer kamble  wrote:
>
> > Dear Sir,
>
> > 1) I am using Eclipse IDE and Android SDK 2.1 for my application. My
> > application reads some data files from the File System, so using DDMS
> > i push all the files in "/data/data/com.mypackage/" folder and run my
> > application on emulator. I am able to see my desired output properly
> > on the emulator.
>
> > 2) Now i have Android device and i don't know how to push the files in
> > the Internal memory of the phone. I have installed driver CD. But it
> > only shows me the SD card directory.
>
> > 3) Actually what i want is that the moment my application is installed
> > and run it should read the data files from the file system. So there
> > should be no added efforts to push the files in the file system.
>
> > 4)Means can i pack my data files with my .apk file and when the apk is
> > getting installed can the data files be placed directly in the
> > internal memory(file system) i.e. "/data/data/com.mypackage/" folder.
> > Is this possible ??
> > if yes can you please tell me how to do it.
>
> >  5) Can you please help me on this issue.
>
> > regards,
> > Sameer Kamble

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


[android-developers] Android market publishing from India

2010-09-21 Thread Sudeep Jha
Hi All,
 I have developed a mobile banking product application and want
to publish it to Android Market as a free app.
 I am unable to create my *developer profile *on android market
publish.
 I am always getting error as  wrong phone number entered .I
think it is not accepting India country code.
 Has anybody faced the same problem?


Warm Regards,
Sudeep

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

2010-09-21 Thread String
On Sep 21, 1:19 am, Dianne Hackborn  wrote:

> And yes: the platform does this for you when done dispatching a message, so
> when you handler, you no longer own the message and should not touch that
> object any more.

That point isn't entirely clear in the docs, but it's definitely true
in practice. Just to clarify, you can READ the message that's passed
into the handler (at least for the duration of the handleMessage()
method), but you can't re-send it. If you need to re-send a message
from within a handler - something I find myself doing with surprising
frequency - you need a construct something like this:

public void handleMessage(Message msg) {
if (notReadyYet) {
Message newMsg = Message.obtain(msg);
sendMessageDelayed(newMsg, 100);
return;
}

... real handler code here
}

That'll make a copy of your original message and re-send it after a
delay of 100ms, and keep doing it until conditions (defined elsewhere)
are ready for the handler to do its work.

To relate this back to the original post :^), the original message
gets recycled after handleMessage() by the system, but you never need
to call recycle() yourself.

String

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


[android-developers] Video Streaming in Android Emulator Possible ?.

2010-09-21 Thread Ajmer Singh
Hi All

I am new to android, I have a simple question "*Is Video Streaming possible
in Android Emulator*",I am using the example in Android SDK but it give me
message "*Sorry Can't play this Video*".I am using Youtube Video to stream
in android Emulator.


Pls respond.
-- 
Thanks and Regards
Ajmer Singh

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

[android-developers] Re: how to send data to server while recording

2010-09-21 Thread ko5tik


On Sep 21, 8:13 am, cindy  wrote:
> Hi all,
>
> My application needs to record audio and send audio data to server
> while recording. If User stops audio input, we will stop sending.

Give media recorder file descriptor of server socket instead a real
file.

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


[android-developers] what is wrong with AppWidgetManager.getAppWidgetIds()?

2010-09-21 Thread Jerome Deng
Hi guys,
I have searched many topics about AppWidgetManager.getAppWidgetIds().
But I don't get any compellent answers. In my code, I first get all
widget ids by
AppWidgetManager.getAppWidgetIds(provider), and then do a for loop as
below:
for (int id : ids) {...}
However, I see the for loop never executed. And if I call ids.length,
the sentence never executed yet.

Some people said getAppWidgetIds() can not return the right id set,
that is because the some widgets were deleted but their ids are still
there.

My target is to know how many widgets are created by the specified
widget provider, so I think getAppWidgetIds() can meet this. But it
fails now.

I think getAppWidgetIds() has something wrong, and the widget
framework should fix this. Also, in widget provider, if it can
distinguish which widget instance is coming, that means the current
widget id can be passed in, then all things will be better. Why not do
this in widget framework?

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

2010-09-21 Thread Kostya Vasilyev
 This limitation affects applications trying to make screenshots of one 
another.


DDMS is another story, assuming the user doesn't enable adb and plug in 
their phone by accident.


-- Kostya

21.09.2010 1:54, DanH пишет:

It was said elsewhere that there's no way in Android to get a full
screen shot, for "integrity/security" reasons.  Is this not true?

On Sep 20, 4:46 pm, Chris Stratton  wrote:

I think there is a tool for doing this via the pc based on the ddms
screenshot capability, but the update rate isn't great.  You can also
run in the emulator.

On Sep 20, 1:32 pm, DanH  wrote:


Some Nokia phones let you plug a special adapter into the audio port
and get a VGA output.  I suppose it's purely a matter of the phone
mfgr being motivated to provide the facility.
On Sep 20, 11:20 am, Bret Foreman  wrote:

I have a Motorola Droid phone and I want to demo an app on it. The
demo will be to a largish group so I'd like to connect the phone to an
inFocus or similar SVGA projector. Does anyone know of a USB dongle to
do this?



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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


[android-developers] Re: How to set permission in content providers

2010-09-21 Thread Jerome Deng
Try to add below lines to your app2's manifest file:



On Sep 21, 2:57 pm, Sohan badaya  wrote:
> Hi All,
>
> I have a doubt regarding content provider.My doubt is
> I create a app1 that creates ContentProvider and in second
> application(app2) i am using app1's contentprovider methods(like
> insert, update etc). It's working fine
> but i want to set some permissions in app1, so that if any other app
> wants to use that provider it must have to get this permissions( permissions) then only it should be able to use providers.
>
> But when i write
>                          android:name="MyContactsProvider"
>                         android:authorities="com.permission.test"
>                         android:readPermission="android.permission.permRead"
>                         
> android:writePermission="android.permission.permWrite"/>
>
> in app1, other applications are not being able to use provider. I want
> to know what is the tag that i have to write in other application to
> use provider.
>
> Please help me for the same.
>
> Thanks and Regards,
> Sohan Badaya

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

2010-09-21 Thread Ramaraju naga
It is possible...using Mediaplayer classs.

see this code

MediaPlayer video;

setContentView(R.layout.main);
VideoView video = (VideoView) findViewById(R.id.video);
// Load and start the movie
video.setVideoPath("/data/samplevideo.3gp" );
video.start();



main layout file


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent" >




On Tue, Sep 21, 2010 at 1:07 PM, Ajmer Singh  wrote:

> Hi All
>
> I am new to android, I have a simple question "*Is Video Streaming
> possible in Android Emulator*",I am using the example in Android SDK but
> it give me message "*Sorry Can't play this Video*".I am using Youtube
> Video to stream in android Emulator.
>
>
> Pls respond.
> --
> Thanks and Regards
> Ajmer Singh
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Apps running cuncurrently

2010-09-21 Thread Jerome Deng
If there is less memory available, the resource used by the paused
apps will be recycled by Davilk VM.
When you open the first app again, it will be relaunched. But not all
previously opened apps must restarted, as they may be still in paused
state.

On Sep 21, 2:10 pm, parag  wrote:
> hi folks,
>
> i have a situation, i want to know that following,
>
> suppose I have opened 9 apps,  i want to open the 10th one,
> The previous opened apps are in background,
>
> if there is less memory available, will some of the earlier opened app
> be closed without notification or the state will be saved , so that
> when i open the first app again it will resume rather then start all
> over again?
>
> reg
> Parag

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


[android-developers] WebView native crash when overriding WebChromeClient.onCreateWindow()

2010-09-21 Thread Omer Gilad
Hello,
I'm using a webview inside my application in order to display a web
interface. One part of the web interface is a javascript that opens a
popup.
I'm currently attempting to use onCreateWindow exactly as documented,
and after the call finishes (And a new window is supposed to be
created), there's a native crash in libwebcore.so:


09-20 19:36:53.953: INFO/DEBUG(1523): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
09-20 19:36:53.953: INFO/DEBUG(1523): Build fingerprint: 'google/
passion/passion/mahimahi:2.2/FRF91/43546:user/release-keys'
09-20 19:36:53.953: INFO/DEBUG(1523): pid: 5185, tid: 5215  >>>
com.fring <<<
09-20 19:36:53.964: INFO/DEBUG(1523): signal 11 (SIGSEGV), fault addr
0064
09-20 19:36:53.973: INFO/DEBUG(1523):  r0   r1 0035b8b4  r2
  r3 419df178
09-20 19:36:53.973: INFO/DEBUG(1523):  r4   r5 00408f20  r6
  r7 0001
09-20 19:36:53.983: INFO/DEBUG(1523):  r8 47788101  r9 4988  10
a87dcb20  fp 4879e2b8
09-20 19:36:53.983: INFO/DEBUG(1523):  ip afc010c4  sp 4879de00  lr
a8490047  pc a83dac90  cpsr 0030
09-20 19:36:53.993: INFO/DEBUG(1523):  d0  643a64696f72646e  d1
6472656767756265
09-20 19:36:53.993: INFO/DEBUG(1523):  d2  002e0034002f0064  d3
006f004d0020
09-20 19:36:53.993: INFO/DEBUG(1523):  d4  0065006c00690062  d5
0066006100530020
09-20 19:36:54.003: INFO/DEBUG(1523):  d6  002f006900720061  d7
002e003300330035
09-20 19:36:54.003: INFO/DEBUG(1523):  d8  40004354  d9
006a
09-20 19:36:54.013: INFO/DEBUG(1523):  d10   d11

09-20 19:36:54.013: INFO/DEBUG(1523):  d12   d13

09-20 19:36:54.013: INFO/DEBUG(1523):  d14   d15

09-20 19:36:54.013: INFO/DEBUG(1523):  d16 145f44a048b8  d17

09-20 19:36:54.023: INFO/DEBUG(1523):  d18 4129d132  d19
4020
09-20 19:36:54.023: INFO/DEBUG(1523):  d20 3ff0  d21

09-20 19:36:54.023: INFO/DEBUG(1523):  d22   d23

09-20 19:36:54.023: INFO/DEBUG(1523):  d24   d25
3fd56000
09-20 19:36:54.023: INFO/DEBUG(1523):  d26   d27
3fd56000
09-20 19:36:54.023: INFO/DEBUG(1523):  d28 002000200020001b  d29
3ff0
09-20 19:36:54.023: INFO/DEBUG(1523):  d30   d31
3ff0
09-20 19:36:54.033: INFO/DEBUG(1523):  scr 6013
09-20 19:36:54.053: INFO/DEBUG(1523):  #00  pc 000dac90  /
system/lib/libwebcore.so
09-20 19:36:54.053: INFO/DEBUG(1523):  #01  pc 00190042  /
system/lib/libwebcore.so
09-20 19:36:54.063: INFO/DEBUG(1523): code around pc:
09-20 19:36:54.063: INFO/DEBUG(1523): a83dac70 ef98f790 b1086e78
e0023004 18e44b02
09-20 19:36:54.063: INFO/DEBUG(1523): a83dac80 bdfe68a0 003f8778
6080 4604b570
09-20 19:36:54.063: INFO/DEBUG(1523): a83dac90 460d6e40 3004b138
fd98f030 6e60b918
09-20 19:36:54.073: INFO/DEBUG(1523): a83daca0 f0014621 4628fed3
fd90f030 b1104606
09-20 19:36:54.073: INFO/DEBUG(1523): a83dacb0 66636e23 6e20e00a
ffa8f7ff 46286626
09-20 19:36:54.073: INFO/DEBUG(1523): code around lr:
09-20 19:36:54.073: INFO/DEBUG(1523): a8490024 f0084630 4606fb2f
f741b158 4606f98b
09-20 19:36:54.073: INFO/DEBUG(1523): a8490034 f7414620 f74af987
4601fe01 f74a4630
09-20 19:36:54.073: INFO/DEBUG(1523): a8490044 b145fe23 2b01682b
3b01d002 e002602b
09-20 19:36:54.083: INFO/DEBUG(1523): a8490054 f6dc4628 4630feff
ecbdb003 bdf08b02
09-20 19:36:54.083: INFO/DEBUG(1523): a8490064 f6dc2008 4621ff11
f74e4605 f896f81f
09-20 19:36:54.083: INFO/DEBUG(1523): stack:
09-20 19:36:54.083: INFO/DEBUG(1523): 4879ddc0  419df178  /dev/
ashmem/dalvik-LinearAlloc (deleted)
09-20 19:36:54.083: INFO/DEBUG(1523): 4879ddc4  80844e51  /system/
lib/libdvm.so
09-20 19:36:54.083: INFO/DEBUG(1523): 4879ddc8  a87d9df4  /system/
lib/libwebcore.so
09-20 19:36:54.094: INFO/DEBUG(1523): 4879ddcc  a87d33c0  /system/
lib/libwebcore.so
09-20 19:36:54.094: INFO/DEBUG(1523): 4879ddd0  a87d9440  /system/
lib/libwebcore.so
09-20 19:36:54.094: INFO/DEBUG(1523): 4879ddd4  a87d9444  /system/
lib/libwebcore.so
09-20 19:36:54.094: INFO/DEBUG(1523): 4879ddd8  00259bd8  [heap]
09-20 19:36:54.094: INFO/DEBUG(1523): 4879dddc  afd0cd31  /system/
lib/libc.so
09-20 19:36:54.094: INFO/DEBUG(1523): 4879dde0  a87d9444  /system/
lib/libwebcore.so
09-20 19:36:54.094: INFO/DEBUG(1523): 4879dde4  afc00877  /system/
lib/libstdc++.so
09-20 19:36:54.104: INFO/DEBUG(1523): 4879dde8  a87d33c0  /system/
lib/libwebcore.so
09-20 19:36:54.104: INFO/DEBUG(1523): 4879ddec  a83dac75  /system/
lib/libwebcore.so
09-20 19:36:54.104: INFO/DEBUG(1523): 4879ddf0  00259bd8  [heap]
09-20 19:36:54.104: INFO/DEBUG(1523): 4879ddf4  
09-20 19:36:54.104: INFO/DEBUG(1523): 4879ddf8  df002777
09-20 19:36:54.113: INFO/DEBUG(1523): 4879ddfc  e3a070ad
09-20 19:36:54.113: INFO/DEBUG(1523): #00 4879de00  00357608  [heap]
0

[android-developers] Horizontal scroll with paging like iPad home screen

2010-09-21 Thread Paolo
I have to implement this kind of feature for a custom home screen in
Android.
I've noticed that it's impossible to use GridView with an
HorizontalScrollView... so this is a big problem... is there any other
solution?

I thought that i would have to do a sort of my DataGridView, with its
own BaseAdapter, using it with the HorizontalScrolView... Could it be
the right way?

Another idea could be to use Animations with gesture to move the
DataGridView?

I'm not sure that is possible to do that, could you helpl me to
undestrand which is the better way?

Thanks.

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


[android-developers] how to block buttons with a layout above all?

2010-09-21 Thread Marco Alexander Schmitz
hi,

I'd like to add a transparent panel (relativelayout) with fill_parent
in width and height.

I want to use this "glasspane" in order to block all buttons
underneath.

Unfortunately I cannot find the right setter / xml  attribute for
this.

These wont work:

.setEnabled(false);
.setPressed(false);
.setClickable(false);
.setFocusable(false);
.setSaveEnabled(false);
.setSelected(false);

Maybe its better to understand if I tell you that I want to create my
own dialog without extending the class Dialog.

A dialog also puts a transparent glasspane above all and absorbs all
clicks underneath...

Thanks for helping,
Marco

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

2010-09-21 Thread Ajmer singh
I want to stream a video from Network Like From youtube.com. Is that
possible in android emulator?.

On Tue, Sep 21, 2010 at 1:34 PM, Ramaraju naga wrote:

> It is possible...using Mediaplayer classs.
>
> see this code
>
> MediaPlayer video;
>
> setContentView(R.layout.main);
> VideoView video = (VideoView) findViewById(R.id.video);
> // Load and start the movie
> video.setVideoPath("/data/samplevideo.3gp" );
> video.start();
>
>
>
> main layout file
>
> 
>  xmlns:android="http://schemas.android.com/apk/res/android";
> android:layout_width="fill_parent"
> android:layout_height="fill_parent" >
>  android:id="@+id/video"
> android:layout_height="wrap_content"
> android:layout_width="wrap_content"
> android:layout_gravity="center" />
> 
>
>
> On Tue, Sep 21, 2010 at 1:07 PM, Ajmer Singh wrote:
>
>> Hi All
>>
>> I am new to android, I have a simple question "*Is Video Streaming
>> possible in Android Emulator*",I am using the example in Android SDK but
>> it give me message "*Sorry Can't play this Video*".I am using Youtube
>> Video to stream in android Emulator.
>>
>>
>> Pls respond.
>> --
>> Thanks and Regards
>> Ajmer Singh
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
*Thanks and Regards
Ajmer Singh*

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

2010-09-21 Thread Kumar Bibek
Definitely a SPAM...

On Sep 20, 8:23 pm, TreKing  wrote:
> On Mon, Sep 20, 2010 at 2:27 AM, James Baker wrote:
>
> > If u are a developer nd dream it big then grab this opportunity today.
>
> I think this says it all.
>
> If u try it out post back nd let us know how it goes.
>
> -
> 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: Any way to display a TIFF image?

2010-09-21 Thread Andreas
You should use PNG with lossless compression if you are aiming for
Quality.

The Supported Core Media Formats can be found here:

http://developer.android.com/guide/appendix/media-formats.html

hope this helps

On 20 Sep., 21:18, paladin  wrote:
> I'm thinking that BitmapFactory.decode... only handles JPEG (and maybe
> PNG) images? Is there some way to decode a TIFF file?

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


[android-developers] Re: Apps running cuncurrently

2010-09-21 Thread parag
Hi Jerome,

Thanks for  th information,
so does that mean that, there is a possibility that some apps will be
closed, without notifying the user?

Thanks in advance


On Sep 21, 1:13 pm, Jerome Deng  wrote:
> If there is less memory available, the resource used by the paused
> apps will be recycled by Davilk VM.
> When you open the first app again, it will be relaunched. But not all
> previously opened apps must restarted, as they may be still in paused
> state.
>
> On Sep 21, 2:10 pm, parag  wrote:
>
>
>
> > hi folks,
>
> > i have a situation, i want to know that following,
>
> > suppose I have opened 9 apps,  i want to open the 10th one,
> > The previous opened apps are in background,
>
> > if there is less memory available, will some of the earlier opened app
> > be closed without notification or the state will be saved , so that
> > when i open the first app again it will resume rather then start all
> > over again?
>
> > reg
> > Parag- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: appbucket: all apps for $9.99 per year, are we just going to watch?

2010-09-21 Thread String
On Sep 19, 11:37 pm, mot12  wrote:

> - allow developers to make a comment in the market by allowing them to
> purchase their own apps: "appbucket is a website by thieves, the
> developers get screwed and you will get screwed." Or something like
> this.

I really liked that wording, so I posted on one of my own paid apps:

"FYI, appbucket = thieves. The developer gets screwed and you will get
screwed."

[Of course I couldn't use my main Google account to do this, but some
time ago I set up a second one as a kludge for responding to market
comments on my paid apps. Sigh.]

But here's the interesting part: As of this morning, the AppBucket
comment is GONE from my app's Market page. Don't know if Google
removed it - is it still there for the rest of your apps? Or if the
AppBucket scum removed it themselves (seems unlikely). But one way or
the other, it's gone for now.

String

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] what is wrong with AppWidgetManager.getAppWidgetIds()?

2010-09-21 Thread Kostya Vasilyev
Make sure that ComponentName you use to get AppWidgetManager matches the
widget provider in the manifest. If it doesn't, you'll get an empty list
(ids.length = 0, the loop won't execute).

Not sure what you mean by "which widget coming".

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

21.09.2010 11:56 пользователь "Jerome Deng"  написал:

Hi guys,
I have searched many topics about AppWidgetManager.getAppWidgetIds().
But I don't get any compellent answers. In my code, I first get all
widget ids by
AppWidgetManager.getAppWidgetIds(provider), and then do a for loop as
below:
for (int id : ids) {...}
However, I see the for loop never executed. And if I call ids.length,
the sentence never executed yet.

Some people said getAppWidgetIds() can not return the right id set,
that is because the some widgets were deleted but their ids are still
there.

My target is to know how many widgets are created by the specified
widget provider, so I think getAppWidgetIds() can meet this. But it
fails now.

I think getAppWidgetIds() has something wrong, and the widget
framework should fix this. Also, in widget provider, if it can
distinguish which widget instance is coming, that means the current
widget id can be passed in, then all things will be better. Why not do
this in widget framework?

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

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

Re: [android-developers] how to block buttons with a layout above all?

2010-09-21 Thread Kostya Vasilyev
Try setting on click handler for this view.

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

21.09.2010 12:40 пользователь "Marco Alexander Schmitz" <
marco.alexander.schm...@googlemail.com> написал:

hi,

I'd like to add a transparent panel (relativelayout) with fill_parent
in width and height.

I want to use this "glasspane" in order to block all buttons
underneath.

Unfortunately I cannot find the right setter / xml  attribute for
this.

These wont work:

.setEnabled(false);
.setPressed(false);
.setClickable(false);
.setFocusable(false);
.setSaveEnabled(false);
.setSelected(false);

Maybe its better to understand if I tell you that I want to create my
own dialog without extending the class Dialog.

A dialog also puts a transparent glasspane above all and absorbs all
clicks underneath...

Thanks for helping,
Marco

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

2010-09-21 Thread Kostya Vasilyev
Might want to do base64 encoding, too (if the network protocol is HTTP).

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

21.09.2010 11:42 пользователь "ko5tik"  написал:



On Sep 21, 8:13 am, cindy  wrote:
> Hi all,
>
> My application needs to record...
Give media recorder file descriptor of server socket instead a real
file.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" ...

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

[android-developers] How to compile Android Launcher source code?

2010-09-21 Thread Paolo
I have just donwload the source code of the Android default Launcher
here:
http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=summary

But when I import the project, i can't compile it because there is a
lot of errors. Many of this are unresolved name, package, class and
variables... why? what is the problem? How can I solve it?

Please help me.Thanks.

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


Re: [android-developers] Re: projecting the Android screen

2010-09-21 Thread Mark Murphy
On Mon, Sep 20, 2010 at 6:15 PM, joebowbeer  wrote:
> I don't think the Moto Droid does this, but if you have one of the
> Samsung Galaxy S handsets (Vibrant, Captivate, etc) you can get
> composite video out (and stereo audio) using a camcorder cable.  The
> HTC Evo has HDMI out.

Every HDMI-out phone I have seen does not actually do HDMI-out of the
Android screen, but rather uses it in a dedicated fashion for playing
back videos from a device-specific app.

In addition to the Galaxy S' abilities, you can get composite out from
a Droid Incredible via a special USB cable.

The best software projector that I am aware of is dr...@screen:

https://gems.codaset.com/jens-riboe/droidatscreen

However, as Mr. Stratton noted, the refresh rate sucks, due to
limitations in the adb protocol.

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

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


[android-developers] install apk files programatically

2010-09-21 Thread honey
Hello i have built vista shell for the android phone. now i want to
install the apk programatically.and add their relevant icons to the
start menu and the desktop of my  activity:any ideass if some
one has done some work on it.

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


[android-developers] Re: How to compile Android Launcher source code?

2010-09-21 Thread mani
Hi you cannot compile the Launcher code in eclipse with SDK.

Certain API's are private not exposed to the public SDK.

Ex. import android.renderscript.*

But there are certain ways to compile AOSP in eclipse. Please go
through this link.
http://blog.michael-forster.de/2008/12/view-android-source-code-in-eclipse.html

Thanks,
Mani

On Sep 21, 6:21 pm, Paolo  wrote:
> I have just donwload the source code of the Android default Launcher
> here:http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;...
>
> But when I import the project, i can't compile it because there is a
> lot of errors. Many of this are unresolved name, package, class and
> variables... why? what is the problem? How can I solve it?
>
> Please help me.Thanks.

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


[android-developers] android spoofing

2010-09-21 Thread Rosebeat
Does anyone know how to do android spoofing?

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


[android-developers] Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag ?

2010-09-21 Thread mani
Hi all,

I tried to create a edittextbox, and button next to it, in the status
bar. !!
I created it  and tried to launch the browser activity, when somebody
enters a URL in the textbox & click that button.

I get runtime exception as below.Can anyone please help what is the
issue with this exception ?
I know that Status bar is not a seperate activity. It is part of
'PhoneWindow'. But then i couldnt figure out what is the issue ?
Framework experts coud you pls help here...!!

E/AndroidRuntime(   70): *** FATAL EXCEPTION IN SYSTEM PROCESS:
android.server.ServerThread
E/AndroidRuntime(   70): android.util.AndroidRuntimeException: Calling
startActivity() from outside of an Activity  context requires the
FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
E/AndroidRuntime(   70):at
android.app.ContextImpl.startActivity(ContextImpl.java:617)
E/AndroidRuntime(   70):at com.android.server.status.StatusBarService
$1.onClick(StatusBarService.java:289)
E/AndroidRuntime(   70):at android.view.View.performClick(View.java:
2408)
E/AndroidRuntime(   70):at android.view.View
$PerformClick.run(View.java:8816)
E/AndroidRuntime(   70):at
android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime(   70):at
android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(   70):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(   70):at
com.android.server.ServerThread.run(SystemServer.java:506)

 private void makeStatusBarView(Context context) {


urlTextbox = (EditText)sb.findViewById(R.id.urltextbox);
Button  mButton = (Button) sb.findViewById(R.id.Go);
mButton.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v) {
System.out.println("Status Bar - Onclick of 
GO");
 String url = urlTextbox.getText().toString();
 Intent browserIntent = new
Intent("android.intent.action.VIEW", Uri.parse(url));
 mContext.startActivity(browserIntent);
}
});

--
-

}

/frameworks/base/services/java/com/android/server/status/
StatusBarService.java --> I was trying to implement it like this.

status_bar.xml:








 




















-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: appbucket: all apps for $9.99 per year, are we just going to watch?

2010-09-21 Thread Pent

> But here's the interesting part: As of this morning, the AppBucket
> comment is GONE from my app's Market page. Don't know if Google
> removed it - is it still there for the rest of your apps? Or if the
> AppBucket scum removed it themselves (seems unlikely). But one way or
> the other, it's gone for now.

Gone here too, maybe it was my magnificent post to Market Help
yesterday :-)

Pent

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


[android-developers] What phone to develop on?

2010-09-21 Thread tarek attia
Hi all,

I want to purchase an Android phone for development ? what do you recommend
?

Is there any mobile more updated than Nexus one ?

-- 
tarek

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

[android-developers] can i create "FOLDER" for some message ....

2010-09-21 Thread A N K ! T
am creating a sms application in which am trying to move some msg according
to users choice to predefined Folderbut am not getting any way to do
this task..
please some one guide me.

-- 

 A N K ! T..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag ?

2010-09-21 Thread A N K ! T
have u try to put this line after defining intent.
 browserIntent .setFlag(Intent.FLAG_ACTIVITY_NEW_TASK);


On Tue, Sep 21, 2010 at 4:39 PM, mani  wrote:

> Hi all,
>
> I tried to create a edittextbox, and button next to it, in the status
> bar. !!
> I created it  and tried to launch the browser activity, when somebody
> enters a URL in the textbox & click that button.
>
> I get runtime exception as below.Can anyone please help what is the
> issue with this exception ?
> I know that Status bar is not a seperate activity. It is part of
> 'PhoneWindow'. But then i couldnt figure out what is the issue ?
> Framework experts coud you pls help here...!!
>
> E/AndroidRuntime(   70): *** FATAL EXCEPTION IN SYSTEM PROCESS:
> android.server.ServerThread
> E/AndroidRuntime(   70): android.util.AndroidRuntimeException: Calling
> startActivity() from outside of an Activity  context requires the
> FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
> E/AndroidRuntime(   70):at
> android.app.ContextImpl.startActivity(ContextImpl.java:617)
> E/AndroidRuntime(   70):at
> com.android.server.status.StatusBarService
> $1.onClick(StatusBarService.java:289)
> E/AndroidRuntime(   70):at
> android.view.View.performClick(View.java:
> 2408)
> E/AndroidRuntime(   70):at android.view.View
> $PerformClick.run(View.java:8816)
> E/AndroidRuntime(   70):at
> android.os.Handler.handleCallback(Handler.java:587)
> E/AndroidRuntime(   70):at
> android.os.Handler.dispatchMessage(Handler.java:92)
> E/AndroidRuntime(   70):at android.os.Looper.loop(Looper.java:123)
> E/AndroidRuntime(   70):at
> com.android.server.ServerThread.run(SystemServer.java:506)
>
>  private void makeStatusBarView(Context context) {
> 
> 
>urlTextbox = (EditText)sb.findViewById(R.id.urltextbox);
>Button  mButton = (Button) sb.findViewById(R.id.Go);
>mButton.setOnClickListener(new Button.OnClickListener(){
>public void onClick(View v) {
>System.out.println("Status Bar - Onclick of
> GO");
> String url = urlTextbox.getText().toString();
> Intent browserIntent = new
> Intent("android.intent.action.VIEW", Uri.parse(url));
> mContext.startActivity(browserIntent);
>}
>});
>
> --
> -
>
> }
>
> /frameworks/base/services/java/com/android/server/status/
> StatusBarService.java --> I was trying to implement it like this.
>
> status_bar.xml:
> 
>
> android:background="@drawable/statusbar_background"
>android:orientation="vertical"
>android:focusable="true"
>android:descendantFocusability="afterDescendants"
>>
>
>android:layout_width="match_parent"
>android:layout_height="match_parent"
>android:orientation="horizontal">
>
>android:layout_width="0dip"
>android:layout_weight="1"
>android:layout_height="match_parent"
>android:layout_alignParentLeft="true"
>android:paddingLeft="6dip"
>android:gravity="center_vertical"
>android:orientation="horizontal"/>
>
> android:hint="eg. www.google.com, "
>android:layout_width="150dip"
>android:layout_height="wrap_content"
>android:maxLines="1"/>
>
>android:layout_width="50dip"
>android:layout_height="wrap_content"
>android:text="@string/go"/>
>
>android:layout_width="wrap_content"
>android:layout_height="match_parent"
>android:layout_alignParentRight="true"
>android:paddingRight="6dip"
>android:gravity="center_vertical"
>android:orientation="horizontal"/>
>
>
>android:layout_width="match_parent"
>android:layout_height="match_parent"
>android:paddingLeft="6dip"
>android:animationCache="false"
>android:orientation="horizontal" >
>android:layout_width="wrap_content"
>android:layout_height="match_parent"
>android:layout_marginRight="8dip"
>>
>android:layout_width="25dip"
>android:layout_height="25dip"
>/>
>android:layout_width="25dip"
>android:layout_height="25dip"
>/>
>
>android:layout_width="0dip"
>android:layout_weight="1"
>android:layout_height="wrap_content"
>android:paddingTop="2dip"
>android:paddingRight="10dip">
>android:layout_width="match_parent"
>android:layout_height="wrap_content"
>  

Re: [android-developers] Re: How to set permission in content providers

2010-09-21 Thread Sohan badaya
Hi Jerome,

 I tried your solution, but still it's not working.
I am getting same exception.

ERROR/AndroidRuntime(18573): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.test.access/com.test.access.TestDatabaseApp}:
java.lang.SecurityException: Permission Denial: writing
com.provider.ContactsProvider uri content://com.permission.test/employee
from pid=18573, uid=10027 requires android.permission.permWrite.

and in Content Provider application i wrote


and in other application i write




Please let me know what's wrong i am doing.

Thanks and Regards,
Sohan Badaya


On Tue, Sep 21, 2010 at 1:34 PM, Jerome Deng  wrote:

> Try to add below lines to your app2's manifest file:
>
>
>
> On Sep 21, 2:57 pm, Sohan badaya  wrote:
> > Hi All,
> >
> > I have a doubt regarding content provider.My doubt is
> > I create a app1 that creates ContentProvider and in second
> > application(app2) i am using app1's contentprovider methods(like
> > insert, update etc). It's working fine
> > but i want to set some permissions in app1, so that if any other app
> > wants to use that provider it must have to get this permissions( > permissions) then only it should be able to use providers.
> >
> > But when i write
> >  > android:name="MyContactsProvider"
> > android:authorities="com.permission.test"
> >
> android:readPermission="android.permission.permRead"
> >
> android:writePermission="android.permission.permWrite"/>
> >
> > in app1, other applications are not being able to use provider. I want
> > to know what is the tag that i have to write in other application to
> > use provider.
> >
> > Please help me for the same.
> >
> > Thanks and Regards,
> > Sohan Badaya
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag ?

2010-09-21 Thread mani
Yes i tried now.!! It dint work...:(

- mani

On Sep 21, 7:36 pm, "A N K ! T"  wrote:
> have u try to put this line after defining intent.
>  browserIntent .setFlag(Intent.FLAG_ACTIVITY_NEW_TASK);
>
>
>
>
>
> On Tue, Sep 21, 2010 at 4:39 PM, mani  wrote:
> > Hi all,
>
> > I tried to create a edittextbox, and button next to it, in the status
> > bar. !!
> > I created it  and tried to launch the browser activity, when somebody
> > enters a URL in the textbox & click that button.
>
> > I get runtime exception as below.Can anyone please help what is the
> > issue with this exception ?
> > I know that Status bar is not a seperate activity. It is part of
> > 'PhoneWindow'. But then i couldnt figure out what is the issue ?
> > Framework experts coud you pls help here...!!
>
> > E/AndroidRuntime(   70): *** FATAL EXCEPTION IN SYSTEM PROCESS:
> > android.server.ServerThread
> > E/AndroidRuntime(   70): android.util.AndroidRuntimeException: Calling
> > startActivity() from outside of an Activity  context requires the
> > FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
> > E/AndroidRuntime(   70):        at
> > android.app.ContextImpl.startActivity(ContextImpl.java:617)
> > E/AndroidRuntime(   70):        at
> > com.android.server.status.StatusBarService
> > $1.onClick(StatusBarService.java:289)
> > E/AndroidRuntime(   70):        at
> > android.view.View.performClick(View.java:
> > 2408)
> > E/AndroidRuntime(   70):        at android.view.View
> > $PerformClick.run(View.java:8816)
> > E/AndroidRuntime(   70):        at
> > android.os.Handler.handleCallback(Handler.java:587)
> > E/AndroidRuntime(   70):        at
> > android.os.Handler.dispatchMessage(Handler.java:92)
> > E/AndroidRuntime(   70):        at android.os.Looper.loop(Looper.java:123)
> > E/AndroidRuntime(   70):        at
> > com.android.server.ServerThread.run(SystemServer.java:506)
>
> >  private void makeStatusBarView(Context context) {
> > 
> > 
> >        urlTextbox = (EditText)sb.findViewById(R.id.urltextbox);
> >        Button  mButton = (Button) sb.findViewById(R.id.Go);
> >        mButton.setOnClickListener(new Button.OnClickListener(){
> >                    public void onClick(View v) {
> >                                System.out.println("Status Bar - Onclick of
> > GO");
> >                             String url = urlTextbox.getText().toString();
> >                             Intent browserIntent = new
> > Intent("android.intent.action.VIEW", Uri.parse(url));
> >                             mContext.startActivity(browserIntent);
> >                    }
> >                });
>
> > --
> > -
>
> > }
>
> > /frameworks/base/services/java/com/android/server/status/
> > StatusBarService.java --> I was trying to implement it like this.
>
> > status_bar.xml:
> > 
>
> >  >    android:background="@drawable/statusbar_background"
> >    android:orientation="vertical"
> >    android:focusable="true"
> >    android:descendantFocusability="afterDescendants"
>
> >     >        android:layout_width="match_parent"
> >        android:layout_height="match_parent"
> >        android:orientation="horizontal">
>
> >         >            android:layout_width="0dip"
> >            android:layout_weight="1"
> >            android:layout_height="match_parent"
> >            android:layout_alignParentLeft="true"
> >            android:paddingLeft="6dip"
> >            android:gravity="center_vertical"
> >            android:orientation="horizontal"/>
>
> >          >                android:hint="eg.www.google.com, "
> >                android:layout_width="150dip"
> >                android:layout_height="wrap_content"
> >                android:maxLines="1"/>
>
> >         >        android:layout_width="50dip"
> >        android:layout_height="wrap_content"
> >        android:text="@string/go"/>
>
> >         >            android:layout_width="wrap_content"
> >            android:layout_height="match_parent"
> >            android:layout_alignParentRight="true"
> >            android:paddingRight="6dip"
> >            android:gravity="center_vertical"
> >            android:orientation="horizontal"/>
> >    
>
> >     >        android:layout_width="match_parent"
> >        android:layout_height="match_parent"
> >        android:paddingLeft="6dip"
> >        android:animationCache="false"
> >        android:orientation="horizontal" >
> >         >            android:layout_width="wrap_content"
> >            android:layout_height="match_parent"
> >            android:layout_marginRight="8dip"
>
> >             >                android:layout_width="25dip"
> >                android:layout_height="25dip"
> >                />
> >             >                android:layout_width="25dip"
> >                android:layout_height="25dip"
> >                />
> >        
> >         >            android:layout_width="0dip"
> >      

[android-developers] Re: android spoofing

2010-09-21 Thread String
On Sep 21, 12:05 pm, Rosebeat  wrote:

> Does anyone know how to do android spoofing?

What is it you want to spoof?

String

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

2010-09-21 Thread James Elsey
Where are you?

If you are in the UK then you might be interested in this article that
I found on Google tech news : 
http://channel.hexus.net/content/item.php?item=26545

A £99 Pay as you go android 2.1 handset, I'd call that a bargain



On Sep 21, 12:23 pm, tarek attia  wrote:
> Hi all,
>
> I want to purchase an Android phone for development ? what do you recommend
> ?
>
> Is there any mobile more updated than Nexus one ?
>
> --
> tarek

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag ?

2010-09-21 Thread mani
I even tried to do
this.getApplicationContext().startActivity()  --> but this anyway not
possible coz am not under a Activity instance.
So how should i tackle this ??

Anyone who has worked on statusbar...could help me ..

On Sep 21, 7:36 pm, "A N K ! T"  wrote:
> have u try to put this line after defining intent.
>  browserIntent .setFlag(Intent.FLAG_ACTIVITY_NEW_TASK);
>
>
>
>
>
> On Tue, Sep 21, 2010 at 4:39 PM, mani  wrote:
> > Hi all,
>
> > I tried to create a edittextbox, and button next to it, in the status
> > bar. !!
> > I created it  and tried to launch the browser activity, when somebody
> > enters a URL in the textbox & click that button.
>
> > I get runtime exception as below.Can anyone please help what is the
> > issue with this exception ?
> > I know that Status bar is not a seperate activity. It is part of
> > 'PhoneWindow'. But then i couldnt figure out what is the issue ?
> > Framework experts coud you pls help here...!!
>
> > E/AndroidRuntime(   70): *** FATAL EXCEPTION IN SYSTEM PROCESS:
> > android.server.ServerThread
> > E/AndroidRuntime(   70): android.util.AndroidRuntimeException: Calling
> > startActivity() from outside of an Activity  context requires the
> > FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
> > E/AndroidRuntime(   70):        at
> > android.app.ContextImpl.startActivity(ContextImpl.java:617)
> > E/AndroidRuntime(   70):        at
> > com.android.server.status.StatusBarService
> > $1.onClick(StatusBarService.java:289)
> > E/AndroidRuntime(   70):        at
> > android.view.View.performClick(View.java:
> > 2408)
> > E/AndroidRuntime(   70):        at android.view.View
> > $PerformClick.run(View.java:8816)
> > E/AndroidRuntime(   70):        at
> > android.os.Handler.handleCallback(Handler.java:587)
> > E/AndroidRuntime(   70):        at
> > android.os.Handler.dispatchMessage(Handler.java:92)
> > E/AndroidRuntime(   70):        at android.os.Looper.loop(Looper.java:123)
> > E/AndroidRuntime(   70):        at
> > com.android.server.ServerThread.run(SystemServer.java:506)
>
> >  private void makeStatusBarView(Context context) {
> > 
> > 
> >        urlTextbox = (EditText)sb.findViewById(R.id.urltextbox);
> >        Button  mButton = (Button) sb.findViewById(R.id.Go);
> >        mButton.setOnClickListener(new Button.OnClickListener(){
> >                    public void onClick(View v) {
> >                                System.out.println("Status Bar - Onclick of
> > GO");
> >                             String url = urlTextbox.getText().toString();
> >                             Intent browserIntent = new
> > Intent("android.intent.action.VIEW", Uri.parse(url));
> >                             mContext.startActivity(browserIntent);
> >                    }
> >                });
>
> > --
> > -
>
> > }
>
> > /frameworks/base/services/java/com/android/server/status/
> > StatusBarService.java --> I was trying to implement it like this.
>
> > status_bar.xml:
> > 
>
> >  >    android:background="@drawable/statusbar_background"
> >    android:orientation="vertical"
> >    android:focusable="true"
> >    android:descendantFocusability="afterDescendants"
>
> >     >        android:layout_width="match_parent"
> >        android:layout_height="match_parent"
> >        android:orientation="horizontal">
>
> >         >            android:layout_width="0dip"
> >            android:layout_weight="1"
> >            android:layout_height="match_parent"
> >            android:layout_alignParentLeft="true"
> >            android:paddingLeft="6dip"
> >            android:gravity="center_vertical"
> >            android:orientation="horizontal"/>
>
> >          >                android:hint="eg.www.google.com, "
> >                android:layout_width="150dip"
> >                android:layout_height="wrap_content"
> >                android:maxLines="1"/>
>
> >         >        android:layout_width="50dip"
> >        android:layout_height="wrap_content"
> >        android:text="@string/go"/>
>
> >         >            android:layout_width="wrap_content"
> >            android:layout_height="match_parent"
> >            android:layout_alignParentRight="true"
> >            android:paddingRight="6dip"
> >            android:gravity="center_vertical"
> >            android:orientation="horizontal"/>
> >    
>
> >     >        android:layout_width="match_parent"
> >        android:layout_height="match_parent"
> >        android:paddingLeft="6dip"
> >        android:animationCache="false"
> >        android:orientation="horizontal" >
> >         >            android:layout_width="wrap_content"
> >            android:layout_height="match_parent"
> >            android:layout_marginRight="8dip"
>
> >             >                android:layout_width="25dip"
> >                android:layout_height="25dip"
> >                />
> >             >             

[android-developers] Android devices supporting OpenGL ES 2.0 (at least through NDK) as of September 2010

2010-09-21 Thread RS
Is there some place where I can find a list of android devices with
OpenGL ES 2.0 (at least through NDK for 2.x devices)?

Or could some developer with any of these comment on how OpenGL ES 2.0
worked on their device?
 - Nexus One - running SDK 2.1 (Works through NDK)
 - Nexus One - running SDK 2.2 (Works)
 - Droid (Works)
 - Droid 2 (Works)
 - Samsung (various phone models) ?
 - Samsung Tablet ?
 - Any other ?


To know the extensions available would also be very useful.
Desire appears very close to Nexus One as expected.


The list in stackoverflow is old but the closest I could find:
http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices

Thanks in advance,
RS

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag ?

2010-09-21 Thread A N K ! T
then try to use webview

On Tue, Sep 21, 2010 at 5:18 PM, mani  wrote:

> Yes i tried now.!! It dint work...:(
>
> - mani
>
> On Sep 21, 7:36 pm, "A N K ! T"  wrote:
> > have u try to put this line after defining intent.
> >  browserIntent .setFlag(Intent.FLAG_ACTIVITY_NEW_TASK);
> >
> >
> >
> >
> >
> > On Tue, Sep 21, 2010 at 4:39 PM, mani  wrote:
> > > Hi all,
> >
> > > I tried to create a edittextbox, and button next to it, in the status
> > > bar. !!
> > > I created it  and tried to launch the browser activity, when somebody
> > > enters a URL in the textbox & click that button.
> >
> > > I get runtime exception as below.Can anyone please help what is the
> > > issue with this exception ?
> > > I know that Status bar is not a seperate activity. It is part of
> > > 'PhoneWindow'. But then i couldnt figure out what is the issue ?
> > > Framework experts coud you pls help here...!!
> >
> > > E/AndroidRuntime(   70): *** FATAL EXCEPTION IN SYSTEM PROCESS:
> > > android.server.ServerThread
> > > E/AndroidRuntime(   70): android.util.AndroidRuntimeException: Calling
> > > startActivity() from outside of an Activity  context requires the
> > > FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
> > > E/AndroidRuntime(   70):at
> > > android.app.ContextImpl.startActivity(ContextImpl.java:617)
> > > E/AndroidRuntime(   70):at
> > > com.android.server.status.StatusBarService
> > > $1.onClick(StatusBarService.java:289)
> > > E/AndroidRuntime(   70):at
> > > android.view.View.performClick(View.java:
> > > 2408)
> > > E/AndroidRuntime(   70):at android.view.View
> > > $PerformClick.run(View.java:8816)
> > > E/AndroidRuntime(   70):at
> > > android.os.Handler.handleCallback(Handler.java:587)
> > > E/AndroidRuntime(   70):at
> > > android.os.Handler.dispatchMessage(Handler.java:92)
> > > E/AndroidRuntime(   70):at
> android.os.Looper.loop(Looper.java:123)
> > > E/AndroidRuntime(   70):at
> > > com.android.server.ServerThread.run(SystemServer.java:506)
> >
> > >  private void makeStatusBarView(Context context) {
> > > 
> > > 
> > >urlTextbox = (EditText)sb.findViewById(R.id.urltextbox);
> > >Button  mButton = (Button) sb.findViewById(R.id.Go);
> > >mButton.setOnClickListener(new Button.OnClickListener(){
> > >public void onClick(View v) {
> > >System.out.println("Status Bar - Onclick
> of
> > > GO");
> > > String url =
> urlTextbox.getText().toString();
> > > Intent browserIntent = new
> > > Intent("android.intent.action.VIEW", Uri.parse(url));
> > > mContext.startActivity(browserIntent);
> > >}
> > >});
> >
> > > --
> > > -
> >
> > > }
> >
> > > /frameworks/base/services/java/com/android/server/status/
> > > StatusBarService.java --> I was trying to implement it like this.
> >
> > > status_bar.xml:
> > > 
> >
> > >  > >android:background="@drawable/statusbar_background"
> > >android:orientation="vertical"
> > >android:focusable="true"
> > >android:descendantFocusability="afterDescendants"
> >
> > > > >android:layout_width="match_parent"
> > >android:layout_height="match_parent"
> > >android:orientation="horizontal">
> >
> > > > >android:layout_width="0dip"
> > >android:layout_weight="1"
> > >android:layout_height="match_parent"
> > >android:layout_alignParentLeft="true"
> > >android:paddingLeft="6dip"
> > >android:gravity="center_vertical"
> > >android:orientation="horizontal"/>
> >
> > >  > >android:hint="eg.www.google.com, "
> > >android:layout_width="150dip"
> > >android:layout_height="wrap_content"
> > >android:maxLines="1"/>
> >
> > > > >android:layout_width="50dip"
> > >android:layout_height="wrap_content"
> > >android:text="@string/go"/>
> >
> > > > >android:layout_width="wrap_content"
> > >android:layout_height="match_parent"
> > >android:layout_alignParentRight="true"
> > >android:paddingRight="6dip"
> > >android:gravity="center_vertical"
> > >android:orientation="horizontal"/>
> > >
> >
> > > > >android:layout_width="match_parent"
> > >android:layout_height="match_parent"
> > >android:paddingLeft="6dip"
> > >android:animationCache="false"
> > >android:orientation="horizontal" >
> > > > >android:layout_width="wrap_content"
> > >android:layout_height="match_parent"
> > >android:layout_marginRight="8dip"
> >
> > > 

Re: [android-developers] Android devices supporting OpenGL ES 2.0 (at least through NDK) as of September 2010

2010-09-21 Thread nagaraj attimani
Samsung Galaxy supports OpenGL ES 2.0


On Tue, Sep 21, 2010 at 5:30 PM, RS  wrote:

> Is there some place where I can find a list of android devices with
> OpenGL ES 2.0 (at least through NDK for 2.x devices)?
>
> Or could some developer with any of these comment on how OpenGL ES 2.0
> worked on their device?
>  - Nexus One - running SDK 2.1 (Works through NDK)
>  - Nexus One - running SDK 2.2 (Works)
>  - Droid (Works)
>  - Droid 2 (Works)
>  - Samsung (various phone models) ?
>  - Samsung Tablet ?
>  - Any other ?
>
>
> To know the extensions available would also be very useful.
> Desire appears very close to Nexus One as expected.
>
>
> The list in stackoverflow is old but the closest I could find:
>
> http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices
>
> Thanks in advance,
> RS
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Warm Regards,
Nagaraj

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

2010-09-21 Thread Brion Emde
I'm interested in this discussion also. I had this exact problem and
put it on hold for a while with a workaround. I decided that I would
probably need a child view that is a superset of all the desired group
views and that I would set the visibility of the child view components
as I determined the group of the child view to be rendered.

I had also been thinking that for the database that represents the
various groups, I would use the Ruby on Rails pattern of combining all
the child objects into a single table, with a group_id, keyed off of
the id of the GroupName.

This would work because the data that I was going to be dealing with
were actually related, in an inheritance sense, so I could get away
with it.

Were my groups to represent biological trees, with wildly different
member components between groups, I'd have to rethink that approach.

On Sep 21, 2:15 am, dashman  wrote:
> thanks for the response.
>
> in my getChildView() method of my adapter, i have:
>
>                 View v;
>             if (convertView == null) {
>                     v = newChildView(isLastChild, parent);
>             } else {
>                     v = convertView;
>             }
>
> 1. i would imagine newChildView would create the default layout - i
> have
> to create the different layout manually?
>
> 2. convertView can be a view with either type - right? how do i know
> what
> type it is.
>
> On Sep 20, 10:02 pm, TreKing  wrote:
>
>
>
> > On Mon, Sep 20, 2010 at 8:17 PM, dashman  wrote:
> > > is that possible - i.e. a ELV with different layouts for a group view.
>
> > Sure. The View returned for a group (or it's children) is determined by you
> > in the adapter. You can return whatever you want depending on your current
> > needs.
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

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


[android-developers] Re: android spoofing

2010-09-21 Thread DanH
You know, like Shields and Yarnell.

On Sep 21, 6:50 am, String  wrote:
> On Sep 21, 12:05 pm, Rosebeat  wrote:
>
> > Does anyone know how to do android spoofing?
>
> What is it you want to spoof?
>
> String

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

2010-09-21 Thread gcstang
I figured, not a problem I just had to ask.

Thank you anyways

On Sep 20, 2:38 am, String  wrote:
> On Sep 18, 6:46 pm, gcstang  wrote:
>
> > Are there any examples of how you implemented it that you're willing
> > to share?
>
> Probably not, I'm afraid. Sorry.
>
> The LVL blog post may seem overwhelming to a beginner, but
> unfortunately, it's the level of detail you need.  And it does have
> code samples, including instructions on where in your own code to put
> the interface points.
>
> As for the modifications I made, I'm ABSOLUTELY not going to post more
> details about them. Not only would that give pirates a leg up on
> cracking my own apps, the whole point is that every dev needs to make
> their OWN modifications, so that every app will need to be cracked
> individually.
>
> String

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


[android-developers] Re: How to set permission in content providers

2010-09-21 Thread Brion Emde
I believe that both applications will need to declare that they use
those permissions, in their  part of the manifest.

My app declares its own permissions for read/write in the
ContentProvider and the permissions appear in three places: the
declaration of the permissions; the  and in the
declaration of the ContentProvider, like so:




...

...


I haven't tried using those permission from another application.


On Sep 21, 7:44 am, Sohan badaya  wrote:
> Hi Jerome,
>
>  I tried your solution, but still it's not working.
> I am getting same exception.
>
> ERROR/AndroidRuntime(18573): java.lang.RuntimeException: Unable to start
> activity ComponentInfo{com.test.access/com.test.access.TestDatabaseApp}:
> java.lang.SecurityException: Permission Denial: writing
> com.provider.ContactsProvider uri content://com.permission.test/employee
> from pid=18573, uid=10027 requires android.permission.permWrite.
>
> and in Content Provider application i wrote
>              android:name="ContactsProvider"
>             android:authorities="com.permission.test"
>             android:readPermission="android.permission.permRead"
>             android:writePermission="android.permission.permWrite"/>
>
> and in other application i write
>
> 
> 
>
> Please let me know what's wrong i am doing.
>
> Thanks and Regards,
> Sohan Badaya
>
>
>
> On Tue, Sep 21, 2010 at 1:34 PM, Jerome Deng  wrote:
> > Try to add below lines to your app2's manifest file:
> >    
> >    
>
> > On Sep 21, 2:57 pm, Sohan badaya  wrote:
> > > Hi All,
>
> > > I have a doubt regarding content provider.My doubt is
> > > I create a app1 that creates ContentProvider and in second
> > > application(app2) i am using app1's contentprovider methods(like
> > > insert, update etc). It's working fine
> > > but i want to set some permissions in app1, so that if any other app
> > > wants to use that provider it must have to get this permissions( > > permissions) then only it should be able to use providers.
>
> > > But when i write
> > >  > >                         android:name="MyContactsProvider"
> > >                         android:authorities="com.permission.test"
>
> > android:readPermission="android.permission.permRead"
>
> > android:writePermission="android.permission.permWrite"/>
>
> > > in app1, other applications are not being able to use provider. I want
> > > to know what is the tag that i have to write in other application to
> > > use provider.
>
> > > Please help me for the same.
>
> > > Thanks and Regards,
> > > Sohan Badaya
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@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: What phone to develop on?

2010-09-21 Thread tarek attia
On Tue, Sep 21, 2010 at 2:51 PM, James Elsey  wrote:

> Where are you?
>
> I'll purchase from the USA ,but will use  it in the middle east.So I need
it unblocked as well.


> If you are in the UK then you might be interested in this article that
> I found on Google tech news :
> http://channel.hexus.net/content/item.php?item=26545
>
> A £99 Pay as you go android 2.1 handset, I'd call that a bargain
>
>
>
> On Sep 21, 12:23 pm, tarek attia  wrote:
> > Hi all,
> >
> > I want to purchase an Android phone for development ? what do you
> recommend
> > ?
> >
> > Is there any mobile more updated than Nexus one ?
> >
> > --
> > tarek
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
tarek

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

2010-09-21 Thread Brion Emde
Yes, that is exactly what it means. From the user's perspective,
nothing has happened: when they come back to app #1, it has been
restarted, has restored its state and things look exactly like they
did when the user was there before.

If you want to notify the user somehow, you would do that in your
onPause() method.

On Sep 21, 5:45 am, parag  wrote:
> Hi Jerome,
>
> Thanks for  th information,
> so does that mean that, there is a possibility that some apps will be
> closed, without notifying the user?
>
> Thanks in advance
>
> On Sep 21, 1:13 pm, Jerome Deng  wrote:
>
>
>
> > If there is less memory available, the resource used by the paused
> > apps will be recycled by Davilk VM.
> > When you open the first app again, it will be relaunched. But not all
> > previously opened apps must restarted, as they may be still in paused
> > state.
>
> > On Sep 21, 2:10 pm, parag  wrote:
>
> > > hi folks,
>
> > > i have a situation, i want to know that following,
>
> > > suppose I have opened 9 apps,  i want to open the 10th one,
> > > The previous opened apps are in background,
>
> > > if there is less memory available, will some of the earlier opened app
> > > be closed without notification or the state will be saved , so that
> > > when i open the first app again it will resume rather then start all
> > > over again?
>
> > > reg
> > > Parag- Hide quoted text -
>
> > - Show quoted text -

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


Re: [android-developers] Re: What phone to develop on?

2010-09-21 Thread Ahmad Musa
hi all :
I need to know if blocking on android is by software or hardware.

thanx in advance.

On Tue, Sep 21, 2010 at 2:29 PM, tarek attia wrote:

>
>
> On Tue, Sep 21, 2010 at 2:51 PM, James Elsey wrote:
>
>> Where are you?
>>
>> I'll purchase from the USA ,but will use  it in the middle east.So I need
> it unblocked as well.
>
>
>> If you are in the UK then you might be interested in this article that
>> I found on Google tech news :
>> http://channel.hexus.net/content/item.php?item=26545
>>
>> A £99 Pay as you go android 2.1 handset, I'd call that a bargain
>>
>>
>>
>> On Sep 21, 12:23 pm, tarek attia  wrote:
>> > Hi all,
>> >
>> > I want to purchase an Android phone for development ? what do you
>> recommend
>> > ?
>> >
>> > Is there any mobile more updated than Nexus one ?
>> >
>> > --
>> > tarek
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> tarek
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Eng. Ahmad R. Musa
+972543115260
ahmad.m...@exalt.ps
ahmad_ah...@ritaj.ps
bzu.ah...@gmail/live.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: android spoofing

2010-09-21 Thread Chris Stratton
Mylar "space blanket" duct tape and silver face paint.

On Sep 21, 7:05 am, Rosebeat  wrote:
> Does anyone know how to do android spoofing?

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


[android-developers] Re: How can I track down a crash in a .so without a stack trace?

2010-09-21 Thread andrew_esh
That is a stack trace, after the SIGSEGV (Signal, Segment Violation)
message, below where is says "stack:". Do an 'objdump -x' on the .so (/
system/lib/egl/
libGLES_qcom.so), and start matching up the addresses with code. It
should lead you to the specific routine that the code crashed in. The
first few lines after SIGSEGV are a register dump, so you can tell
what was happening when the crash occurred. Looks like "r2" (Register
2) was the one that was used in the reference that violated memory
protection. You can disassemble the code around the routine at the top
of the stack, near the address of the fault, and find the code that
did it. You can add options to the compile of the .so to produce
assembly source code that retains the associated C code in comments.
Once you're up into the C code, you can probably pretty well determine
what went wrong. Perhaps an out-of-bounds value was passed into an
OpenGL function. Perhaps more memory was needed in a buffer that had
little, and OpenGL ran off the end.

I think there may even be scripts out there which will take the binary
addresses shown in this stack dump and will find names for the
routines, by automating part of what I described above.

Also, if you can park the application, attach strace to it, and then
unpark it and cause it to produce the bug, the strace output will show
a chronological trace of the system calls that led up to the crash.

On Sep 20, 12:42 pm, Leigh McRae 
wrote:
> My game is crashing on the HTC Hero and I have managed to get a user
> to send me their log.  I don't see a Java stack trace at all.  It
> looks like it's crashing in the OpenGL driver.  I was wondering how I
> could go about trying to determine the problem.  I was thinking of
> adding that acra project that sends crash reports to a server but I am
> thinking it will just send the same that is in this log.   I have
> error checking everywhere so I am really at a lose where to go from
> here.  I even went out and bought a HTC Hero but Canada only has 1.5
> for the OS.
>
> 09-19 09:09:40.957 I/DEBUG ( 53): *** *** *** *** *** *** *** *** ***
> *** *** *** *** *** *** ***
> 09-19 09:09:40.957 I/DEBUG ( 53): Build fingerprint: 'sprint/htc_heroc/
> heroc/heroc:2.1-update1/ERE27/169236:user/release-keys'
> 09-19 09:09:40.957 I/DEBUG ( 53): pid: 5999, tid: 6009 >>>
> com.lonedwarfgames.tanks.androidpaid <<<
> 09-19 09:09:40.957 I/DEBUG ( 53): signal 11 (SIGSEGV), fault addr
> 0089e268
> 09-19 09:09:40.957 I/DEBUG ( 53): r0 00387ab4 r1 00387ab0 r2 0089e268
> r3 03ff
> 09-19 09:09:40.957 I/DEBUG ( 53): r4 0005 r5 0089e268 r6 009705b0
> r7 00387ab0
> 09-19 09:09:40.957 I/DEBUG ( 53): r8 00382128 r9 00382c24 10 004554c0
> fp 00162480
> 09-19 09:09:40.957 I/DEBUG ( 53): ip  sp 462f8ce4 lr 8052b6a8
> pc 8053ec30 cpsr 2010
> 09-19 09:09:43.007 I/DEBUG ( 53): #00 pc 0003ec30 /system/lib/egl/
> libGLES_qcom.so
> 09-19 09:09:43.007 I/DEBUG ( 53): #01 lr 8052b6a8 /system/lib/egl/
> libGLES_qcom.so
> 09-19 09:09:43.007 I/DEBUG ( 53):
> 09-19 09:09:43.007 I/DEBUG ( 53): code around pc:
> 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec20 e0225492 e08cc144 e59041b4
> e2810004
> 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec30 e5925000 e2444003 e4815008
> e5925004
> 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec40 e5805000 e5b25008 e2810004
> e2822004
> 09-19 09:09:43.017 I/DEBUG ( 53):
> 09-19 09:09:43.017 I/DEBUG ( 53): code around lr:
> 09-19 09:09:43.017 I/DEBUG ( 53): 8052b698 e1a03004 e1a01007 e1a9
> e12fff3c
> 09-19 09:09:43.017 I/DEBUG ( 53): 8052b6a8 e599a024 e59d0008 e318
> e087b10a
> 09-19 09:09:43.017 I/DEBUG ( 53): 8052b6b8 0a0a e3a03000 e58d3000
> e599c080
> 09-19 09:09:43.017 I/DEBUG ( 53):
> 09-19 09:09:43.017 I/DEBUG ( 53): stack:
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca4 00383128 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca8 
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cac 
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb0 00382528 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb4 8053bfc0 /system/lib/egl/
> libGLES_qcom.so
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb8 0080
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cbc 00383128 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc0 00382c24 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc4 00382128 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc8 00383128 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ccc 8052afe0 /system/lib/egl/
> libGLES_qcom.so
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd0 4224
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd4 00383128 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd8 df002777
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cdc e3a070ad
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ce0 00382128 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): #00 462f8ce4 0400
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ce8 004554c0 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cec 009705b0
> 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cf0 00382528 [heap]
> 09-19 09:09:43.017 I/DEBUG ( 53): 46

[android-developers] Android market publishing from India

2010-09-21 Thread Sudeep
Hi All,
 I have developed a mobile banking product application and
want to publish it to Android Market as a free app.
 I am unable to create my developer profile on android
market publish.
 I am always getting error as  wrong phone number
entered .I think it is not accepting India country code.
 Has anybody faced the same problem?


Warm Regards,
Sudeep

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

2010-09-21 Thread Chris Stratton
How well they restore state depends on how the app author has handled
the onPause which is called when the app first went into the
background and became fair game for killing.

Typically for example an email your were editing will now be a saved
draft, a moves-based game will be exactly as before,  but a half
filled web form night just be gone.

On Sep 21, 8:32 am, Brion Emde  wrote:
> Yes, that is exactly what it means. From the user's perspective,
> nothing has happened: when they come back to app #1, it has been
> restarted, has restored its state and things look exactly like they
> did when the user was there before.
>
> If you want to notify the user somehow, you would do that in your
> onPause() method.
>
> On Sep 21, 5:45 am, parag  wrote:
>
>
>
> > Hi Jerome,
>
> > Thanks for  th information,
> > so does that mean that, there is a possibility that some apps will be
> > closed, without notifying the user?
>
> > Thanks in advance
>
> > On Sep 21, 1:13 pm, Jerome Deng  wrote:
>
> > > If there is less memory available, the resource used by the paused
> > > apps will be recycled by Davilk VM.
> > > When you open the first app again, it will be relaunched. But not all
> > > previously opened apps must restarted, as they may be still in paused
> > > state.
>
> > > On Sep 21, 2:10 pm, parag  wrote:
>
> > > > hi folks,
>
> > > > i have a situation, i want to know that following,
>
> > > > suppose I have opened 9 apps,  i want to open the 10th one,
> > > > The previous opened apps are in background,
>
> > > > if there is less memory available, will some of the earlier opened app
> > > > be closed without notification or the state will be saved , so that
> > > > when i open the first app again it will resume rather then start all
> > > > over again?
>
> > > > reg
> > > > Parag- Hide quoted text -
>
> > > - Show quoted text -

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


[android-developers] Re: How can I track down a crash in a .so without a stack trace?

2010-09-21 Thread Chris Stratton
Yes, however note that you probably need to use the arm version of
objdump from ndk or aosp build system, and you need to run it on the
library file present on the user's device, as the addresses may well
be different than in the file from another build.

On Sep 21, 8:47 am, andrew_esh  wrote:
> That is a stack trace, after the SIGSEGV (Signal, Segment Violation)
> message, below where is says "stack:". Do an 'objdump -x' on the .so (/
> system/lib/egl/
> libGLES_qcom.so), and start matching up the addresses with code. It
> should lead you to the specific routine that the code crashed in. The
> first few lines after SIGSEGV are a register dump, so you can tell
> what was happening when the crash occurred. Looks like "r2" (Register
> 2) was the one that was used in the reference that violated memory
> protection. You can disassemble the code around the routine at the top
> of the stack, near the address of the fault, and find the code that
> did it. You can add options to the compile of the .so to produce
> assembly source code that retains the associated C code in comments.
> Once you're up into the C code, you can probably pretty well determine
> what went wrong. Perhaps an out-of-bounds value was passed into an
> OpenGL function. Perhaps more memory was needed in a buffer that had
> little, and OpenGL ran off the end.
>
> I think there may even be scripts out there which will take the binary
> addresses shown in this stack dump and will find names for the
> routines, by automating part of what I described above.
>
> Also, if you can park the application, attach strace to it, and then
> unpark it and cause it to produce the bug, the strace output will show
> a chronological trace of the system calls that led up to the crash.
>
> On Sep 20, 12:42 pm, Leigh McRae 
> wrote:
>
>
>
> > My game is crashing on the HTC Hero and I have managed to get a user
> > to send me their log.  I don't see a Java stack trace at all.  It
> > looks like it's crashing in the OpenGL driver.  I was wondering how I
> > could go about trying to determine the problem.  I was thinking of
> > adding that acra project that sends crash reports to a server but I am
> > thinking it will just send the same that is in this log.   I have
> > error checking everywhere so I am really at a lose where to go from
> > here.  I even went out and bought a HTC Hero but Canada only has 1.5
> > for the OS.
>
> > 09-19 09:09:40.957 I/DEBUG ( 53): *** *** *** *** *** *** *** *** ***
> > *** *** *** *** *** *** ***
> > 09-19 09:09:40.957 I/DEBUG ( 53): Build fingerprint: 'sprint/htc_heroc/
> > heroc/heroc:2.1-update1/ERE27/169236:user/release-keys'
> > 09-19 09:09:40.957 I/DEBUG ( 53): pid: 5999, tid: 6009 >>>
> > com.lonedwarfgames.tanks.androidpaid <<<
> > 09-19 09:09:40.957 I/DEBUG ( 53): signal 11 (SIGSEGV), fault addr
> > 0089e268
> > 09-19 09:09:40.957 I/DEBUG ( 53): r0 00387ab4 r1 00387ab0 r2 0089e268
> > r3 03ff
> > 09-19 09:09:40.957 I/DEBUG ( 53): r4 0005 r5 0089e268 r6 009705b0
> > r7 00387ab0
> > 09-19 09:09:40.957 I/DEBUG ( 53): r8 00382128 r9 00382c24 10 004554c0
> > fp 00162480
> > 09-19 09:09:40.957 I/DEBUG ( 53): ip  sp 462f8ce4 lr 8052b6a8
> > pc 8053ec30 cpsr 2010
> > 09-19 09:09:43.007 I/DEBUG ( 53): #00 pc 0003ec30 /system/lib/egl/
> > libGLES_qcom.so
> > 09-19 09:09:43.007 I/DEBUG ( 53): #01 lr 8052b6a8 /system/lib/egl/
> > libGLES_qcom.so
> > 09-19 09:09:43.007 I/DEBUG ( 53):
> > 09-19 09:09:43.007 I/DEBUG ( 53): code around pc:
> > 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec20 e0225492 e08cc144 e59041b4
> > e2810004
> > 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec30 e5925000 e2444003 e4815008
> > e5925004
> > 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec40 e5805000 e5b25008 e2810004
> > e2822004
> > 09-19 09:09:43.017 I/DEBUG ( 53):
> > 09-19 09:09:43.017 I/DEBUG ( 53): code around lr:
> > 09-19 09:09:43.017 I/DEBUG ( 53): 8052b698 e1a03004 e1a01007 e1a9
> > e12fff3c
> > 09-19 09:09:43.017 I/DEBUG ( 53): 8052b6a8 e599a024 e59d0008 e318
> > e087b10a
> > 09-19 09:09:43.017 I/DEBUG ( 53): 8052b6b8 0a0a e3a03000 e58d3000
> > e599c080
> > 09-19 09:09:43.017 I/DEBUG ( 53):
> > 09-19 09:09:43.017 I/DEBUG ( 53): stack:
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca4 00383128 [heap]
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca8 
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cac 
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb0 00382528 [heap]
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb4 8053bfc0 /system/lib/egl/
> > libGLES_qcom.so
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb8 0080
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cbc 00383128 [heap]
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc0 00382c24 [heap]
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc4 00382128 [heap]
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc8 00383128 [heap]
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ccc 8052afe0 /system/lib/egl/
> > libGLES_qcom.so
> > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd0 4224
> > 09-19 09:09:43.017 I/DEB

[android-developers] Re: Android devices supporting OpenGL ES 2.0 (at least through NDK) as of September 2010

2010-09-21 Thread RS
Thanks, hope that would be the same on the Samsung tablet too.
I'd be very happy to hear from anybody with any other device even if
it doesn't support OpenGL ES 2.0, especially if you could post the
supported extensions.
Thanks again.
RS

On Sep 21, 1:05 pm, nagaraj attimani 
wrote:
> Samsung Galaxy supports OpenGL ES 2.0
>
>
>
>
>
> On Tue, Sep 21, 2010 at 5:30 PM, RS  wrote:
> > Is there some place where I can find a list of android devices with
> > OpenGL ES 2.0 (at least through NDK for 2.x devices)?
>
> > Or could some developer with any of these comment on how OpenGL ES 2.0
> > worked on their device?
> >  - Nexus One - running SDK 2.1 (Works through NDK)
> >  - Nexus One - running SDK 2.2 (Works)
> >  - Droid (Works)
> >  - Droid 2 (Works)
> >  - Samsung (various phone models) ?
> >  - Samsung Tablet ?
> >  - Any other ?
>
> > To know the extensions available would also be very useful.
> > Desire appears very close to Nexus One as expected.
>
> > The list in stackoverflow is old but the closest I could find:
>
> >http://stackoverflow.com/questions/2093594/opengl-extensions-availabl...
>
> > Thanks in advance,
> > RS
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Warm Regards,
> Nagaraj

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Froyo Camera application process dies when Lock screen happens

2010-09-21 Thread nagaraj attimani
there seems to be issue with opengl.
I faced similar issue and noticed it is due opengl

On Thu, Sep 16, 2010 at 3:33 PM, Naresh Purre  wrote:

>  Hi All,
>
> Camera application process dies and restarts again when device is
> Locked/End Call Key is clicked.
>
> Steps to reproduce:
>
> 1)  Launch Camera application.
> 2)  Click on End Call key(it acts as lock screen when there is no
> active call) or wait till device is locked.
> 3)  Camera application is paused and surfaceDestroyed callback is not
> being called.
> 4)   Camera process has died and restarted again.
>
> I would like to know why Camera process has died after onPause is
> being called and restarted again when device is put to Lock state.
>
> For all key events like BackKey,HomeKey and Accept Key it is working
> fine.
>
>
> Regards
> Naresh.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Warm Regards,
Nagaraj

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

2010-09-21 Thread nagaraj attimani
can you explain..whcih device are you using to test this ?
are you working on your own platform..



On Thu, Sep 16, 2010 at 9:10 PM, uday  wrote:

> In Android i think they have already implemented this.. because with
> out implementing this in android HAL how they will provide this API??
>
> Is there any chance that this type of implementation is device
> specific??
>
> On Sep 7, 10:32 am, nagaraj attimani 
> wrote:
> > Please check is SetZoom implemented in HAL.
> > and also setparameters in HAL will be called whenever you trying to
> change
> > zoom level
> > In setparameters() in HAL, Setzoom should be called.
> > Setzoom() will send IOCTL command to native camera driver to set the
> zoom.
> >
> >
> >
> > On Tue, Sep 7, 2010 at 9:58 AM, uday  wrote:
> > > Hi All,
> > > I've a problem with Camera Preview Zoom.. The methods present in
> > > Android 2.2, setZoom() is not working to zoom the preview.. Is there
> > > any another way to do the Zoom in android??
> >
> > > Im using the code present in the Android API Demos..
> > > Is ther any body who has worked on implementing ZoomIn & ZoomOut and
> > > got succeed??
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> 
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Warm Regards,
> > Nagaraj
>
> --
>  You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Warm Regards,
Nagaraj

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

2010-09-21 Thread Sohan badaya
Hi Brion,

You are right. It's working in other application also.
Thanks a lot.

Thanks and Regards,
Sohan Badaya


On Tue, Sep 21, 2010 at 5:59 PM, Brion Emde  wrote:

> I believe that both applications will need to declare that they use
> those permissions, in their  part of the manifest.
>
> My app declares its own permissions for read/write in the
> ContentProvider and the permissions appear in three places: the
> declaration of the permissions; the  and in the
> declaration of the ContentProvider, like so:
>
>
>android:name="com.example.mypermission"
>..
>/>
>
> ...
>android:name="com.example.mypermission"
>/>
> ...
>   ...
>android:readPermission="com.example.mypermission"
>android:writePermission="com.example.mypermission"
>/>
>
> I haven't tried using those permission from another application.
>
>
> On Sep 21, 7:44 am, Sohan badaya  wrote:
> > Hi Jerome,
> >
> >  I tried your solution, but still it's not working.
> > I am getting same exception.
> >
> > ERROR/AndroidRuntime(18573): java.lang.RuntimeException: Unable to start
> > activity ComponentInfo{com.test.access/com.test.access.TestDatabaseApp}:
> > java.lang.SecurityException: Permission Denial: writing
> > com.provider.ContactsProvider uri content://com.permission.test/employee
> > from pid=18573, uid=10027 requires android.permission.permWrite.
> >
> > and in Content Provider application i wrote
> >  > android:name="ContactsProvider"
> > android:authorities="com.permission.test"
> > android:readPermission="android.permission.permRead"
> > android:writePermission="android.permission.permWrite"/>
> >
> > and in other application i write
> >
> > 
> > 
> >
> > Please let me know what's wrong i am doing.
> >
> > Thanks and Regards,
> > Sohan Badaya
> >
> >
> >
> > On Tue, Sep 21, 2010 at 1:34 PM, Jerome Deng 
> wrote:
> > > Try to add below lines to your app2's manifest file:
> > >
> > >
> >
> > > On Sep 21, 2:57 pm, Sohan badaya  wrote:
> > > > Hi All,
> >
> > > > I have a doubt regarding content provider.My doubt is
> > > > I create a app1 that creates ContentProvider and in second
> > > > application(app2) i am using app1's contentprovider methods(like
> > > > insert, update etc). It's working fine
> > > > but i want to set some permissions in app1, so that if any other app
> > > > wants to use that provider it must have to get this
> permissions( > > > permissions) then only it should be able to use providers.
> >
> > > > But when i write
> > > >  > > > android:name="MyContactsProvider"
> > > > android:authorities="com.permission.test"
> >
> > > android:readPermission="android.permission.permRead"
> >
> > > android:writePermission="android.permission.permWrite"/>
> >
> > > > in app1, other applications are not being able to use provider. I
> want
> > > > to know what is the tag that i have to write in other application to
> > > > use provider.
> >
> > > > Please help me for the same.
> >
> > > > Thanks and Regards,
> > > > Sohan Badaya
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: How can I track down a crash in a .so without a stack trace?

2010-09-21 Thread nagaraj attimani
from the stack trace..it can notice the carsh happend in

 #00 pc 0003ec30 /system/lib/egl/libGLES_qcom.so

u can use addr2line tool in linux to find the where crash occured in the
.so.

On Tue, Sep 21, 2010 at 6:50 PM, Chris Stratton  wrote:

> Yes, however note that you probably need to use the arm version of
> objdump from ndk or aosp build system, and you need to run it on the
> library file present on the user's device, as the addresses may well
> be different than in the file from another build.
>
> On Sep 21, 8:47 am, andrew_esh  wrote:
> > That is a stack trace, after the SIGSEGV (Signal, Segment Violation)
> > message, below where is says "stack:". Do an 'objdump -x' on the .so (/
> > system/lib/egl/
> > libGLES_qcom.so), and start matching up the addresses with code. It
> > should lead you to the specific routine that the code crashed in. The
> > first few lines after SIGSEGV are a register dump, so you can tell
> > what was happening when the crash occurred. Looks like "r2" (Register
> > 2) was the one that was used in the reference that violated memory
> > protection. You can disassemble the code around the routine at the top
> > of the stack, near the address of the fault, and find the code that
> > did it. You can add options to the compile of the .so to produce
> > assembly source code that retains the associated C code in comments.
> > Once you're up into the C code, you can probably pretty well determine
> > what went wrong. Perhaps an out-of-bounds value was passed into an
> > OpenGL function. Perhaps more memory was needed in a buffer that had
> > little, and OpenGL ran off the end.
> >
> > I think there may even be scripts out there which will take the binary
> > addresses shown in this stack dump and will find names for the
> > routines, by automating part of what I described above.
> >
> > Also, if you can park the application, attach strace to it, and then
> > unpark it and cause it to produce the bug, the strace output will show
> > a chronological trace of the system calls that led up to the crash.
> >
> > On Sep 20, 12:42 pm, Leigh McRae 
> > wrote:
> >
> >
> >
> > > My game is crashing on the HTC Hero and I have managed to get a user
> > > to send me their log.  I don't see a Java stack trace at all.  It
> > > looks like it's crashing in the OpenGL driver.  I was wondering how I
> > > could go about trying to determine the problem.  I was thinking of
> > > adding that acra project that sends crash reports to a server but I am
> > > thinking it will just send the same that is in this log.   I have
> > > error checking everywhere so I am really at a lose where to go from
> > > here.  I even went out and bought a HTC Hero but Canada only has 1.5
> > > for the OS.
> >
> > > 09-19 09:09:40.957 I/DEBUG ( 53): *** *** *** *** *** *** *** *** ***
> > > *** *** *** *** *** *** ***
> > > 09-19 09:09:40.957 I/DEBUG ( 53): Build fingerprint: 'sprint/htc_heroc/
> > > heroc/heroc:2.1-update1/ERE27/169236:user/release-keys'
> > > 09-19 09:09:40.957 I/DEBUG ( 53): pid: 5999, tid: 6009 >>>
> > > com.lonedwarfgames.tanks.androidpaid <<<
> > > 09-19 09:09:40.957 I/DEBUG ( 53): signal 11 (SIGSEGV), fault addr
> > > 0089e268
> > > 09-19 09:09:40.957 I/DEBUG ( 53): r0 00387ab4 r1 00387ab0 r2 0089e268
> > > r3 03ff
> > > 09-19 09:09:40.957 I/DEBUG ( 53): r4 0005 r5 0089e268 r6 009705b0
> > > r7 00387ab0
> > > 09-19 09:09:40.957 I/DEBUG ( 53): r8 00382128 r9 00382c24 10 004554c0
> > > fp 00162480
> > > 09-19 09:09:40.957 I/DEBUG ( 53): ip  sp 462f8ce4 lr 8052b6a8
> > > pc 8053ec30 cpsr 2010
> > > 09-19 09:09:43.007 I/DEBUG ( 53): #00 pc 0003ec30 /system/lib/egl/
> > > libGLES_qcom.so
> > > 09-19 09:09:43.007 I/DEBUG ( 53): #01 lr 8052b6a8 /system/lib/egl/
> > > libGLES_qcom.so
> > > 09-19 09:09:43.007 I/DEBUG ( 53):
> > > 09-19 09:09:43.007 I/DEBUG ( 53): code around pc:
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec20 e0225492 e08cc144 e59041b4
> > > e2810004
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec30 e5925000 e2444003 e4815008
> > > e5925004
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec40 e5805000 e5b25008 e2810004
> > > e2822004
> > > 09-19 09:09:43.017 I/DEBUG ( 53):
> > > 09-19 09:09:43.017 I/DEBUG ( 53): code around lr:
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 8052b698 e1a03004 e1a01007 e1a9
> > > e12fff3c
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 8052b6a8 e599a024 e59d0008 e318
> > > e087b10a
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 8052b6b8 0a0a e3a03000 e58d3000
> > > e599c080
> > > 09-19 09:09:43.017 I/DEBUG ( 53):
> > > 09-19 09:09:43.017 I/DEBUG ( 53): stack:
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca4 00383128 [heap]
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca8 
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cac 
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb0 00382528 [heap]
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb4 8053bfc0 /system/lib/egl/
> > > libGLES_qcom.so
> > > 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb8 0080
> > 

[android-developers] Is API Level 6 gone?

2010-09-21 Thread Leigh McRae
I have updated my tools to revision 7 and now I can't do a build as it
says the API level is obsolete.  I can understand warning but it won't
build at all.  I am using android.bat to generate a build.xml for
release versions.  So the build.xml gets made from scratch each time.
If I switch to --target 8 it builds but I have already released it on
the Android Market with 6.  Won't this mean that some people that have
Android 2.0.1 won't be able to run it?

android update project --name Tanks --target 6 --path $
{dist.project.dir}

[setup] Android SDK Tools Revision 7
[setup] Project Target: Android 2.0
[setup] API level: 5
[setup]
[setup]
[setup]
[setup]
***
[setup] WARNING: This platform is obsolete and its Ant rules may
not work properly.
[setup] WARNING: It is recommended to develop against a newer
version of Android.
[setup] WARNING: For more information about active versions of
Android see:
[setup] WARNING: 
http://developer.android.com/resources/dashboard/platform-versions.html
[setup]
***
[setup]
[setup]
[setup]
[setup]
[setup] --
[setup] Resolving library dependencies:
[setup] --
[setup] Ordered libraries:
[setup] --
[setup]

BUILD FAILED
D:\Android\build.xml:68: The following error occurred while executing
this line:
D:\Android\build.xml:215: The following error occurred while executing
this line:
D:\Android\dist\market-lite\build.xml:82: Build rules file 'D:\Program
Files\android-sdk-windows\tools\ant\android_rules.xml' is missing.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: How can I track down a crash in a .so without a stack trace?

2010-09-21 Thread Leigh McRae

 Thanks but it's 2.0.1.  Tank Recon 3D


On 9/21/2010 12:27 AM, Nightwolf wrote:

What is your game? I could try it on G1 with 1.6.

On Sep 20, 9:42 pm, Leigh McRae
wrote:

My game is crashing on the HTC Hero and I have managed to get a user
to send me their log.  I don't see a Java stack trace at all.  It
looks like it's crashing in the OpenGL driver.  I was wondering how I
could go about trying to determine the problem.  I was thinking of
adding that acra project that sends crash reports to a server but I am
thinking it will just send the same that is in this log.   I have
error checking everywhere so I am really at a lose where to go from
here.  I even went out and bought a HTC Hero but Canada only has 1.5
for the OS.

09-19 09:09:40.957 I/DEBUG ( 53): *** *** *** *** *** *** *** *** ***
*** *** *** *** *** *** ***
09-19 09:09:40.957 I/DEBUG ( 53): Build fingerprint: 'sprint/htc_heroc/
heroc/heroc:2.1-update1/ERE27/169236:user/release-keys'
09-19 09:09:40.957 I/DEBUG ( 53): pid: 5999, tid: 6009>>>
com.lonedwarfgames.tanks.androidpaid<<<
09-19 09:09:40.957 I/DEBUG ( 53): signal 11 (SIGSEGV), fault addr
0089e268
09-19 09:09:40.957 I/DEBUG ( 53): r0 00387ab4 r1 00387ab0 r2 0089e268
r3 03ff
09-19 09:09:40.957 I/DEBUG ( 53): r4 0005 r5 0089e268 r6 009705b0
r7 00387ab0
09-19 09:09:40.957 I/DEBUG ( 53): r8 00382128 r9 00382c24 10 004554c0
fp 00162480
09-19 09:09:40.957 I/DEBUG ( 53): ip  sp 462f8ce4 lr 8052b6a8
pc 8053ec30 cpsr 2010
09-19 09:09:43.007 I/DEBUG ( 53): #00 pc 0003ec30 /system/lib/egl/
libGLES_qcom.so
09-19 09:09:43.007 I/DEBUG ( 53): #01 lr 8052b6a8 /system/lib/egl/
libGLES_qcom.so
09-19 09:09:43.007 I/DEBUG ( 53):
09-19 09:09:43.007 I/DEBUG ( 53): code around pc:
09-19 09:09:43.017 I/DEBUG ( 53): 8053ec20 e0225492 e08cc144 e59041b4
e2810004
09-19 09:09:43.017 I/DEBUG ( 53): 8053ec30 e5925000 e2444003 e4815008
e5925004
09-19 09:09:43.017 I/DEBUG ( 53): 8053ec40 e5805000 e5b25008 e2810004
e2822004
09-19 09:09:43.017 I/DEBUG ( 53):
09-19 09:09:43.017 I/DEBUG ( 53): code around lr:
09-19 09:09:43.017 I/DEBUG ( 53): 8052b698 e1a03004 e1a01007 e1a9
e12fff3c
09-19 09:09:43.017 I/DEBUG ( 53): 8052b6a8 e599a024 e59d0008 e318
e087b10a
09-19 09:09:43.017 I/DEBUG ( 53): 8052b6b8 0a0a e3a03000 e58d3000
e599c080
09-19 09:09:43.017 I/DEBUG ( 53):
09-19 09:09:43.017 I/DEBUG ( 53): stack:
09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca4 00383128 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca8 
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cac 
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb0 00382528 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb4 8053bfc0 /system/lib/egl/
libGLES_qcom.so
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb8 0080
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cbc 00383128 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc0 00382c24 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc4 00382128 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc8 00383128 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8ccc 8052afe0 /system/lib/egl/
libGLES_qcom.so
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd0 4224
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd4 00383128 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd8 df002777
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cdc e3a070ad
09-19 09:09:43.017 I/DEBUG ( 53): 462f8ce0 00382128 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): #00 462f8ce4 0400
09-19 09:09:43.017 I/DEBUG ( 53): 462f8ce8 004554c0 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cec 009705b0
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cf0 00382528 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cf4 
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cf8 0008
09-19 09:09:43.017 I/DEBUG ( 53): 462f8cfc 
09-19 09:09:43.017 I/DEBUG ( 53): 462f8d00 0006
09-19 09:09:43.017 I/DEBUG ( 53): 462f8d04 001dbfa0 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8d08 00382128 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8d0c 00383128 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8d10 00382528 [heap]
09-19 09:09:43.017 I/DEBUG ( 53): 462f8d14 004554c0 [heap]
09-19 09:09:43.027 I/DEBUG ( 53): 462f8d18 00162480 [heap]
09-19 09:09:43.027 I/DEBUG ( 53): 462f8d1c 8051fa14 /system/lib/egl/
libGLES_qcom.so
09-19 09:09:43.027 I/DEBUG ( 53): 462f8d20 001dbfa0 [heap]
09-19 09:09:43.027 I/DEBUG ( 53): 462f8d24 
09-19 09:09:43.027 I/DEBUG ( 53): 462f8d28 00148aa8 [heap]


--
Leigh McRae
www.lonedwarfgames.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: Apps running cuncurrently

2010-09-21 Thread Kostya Vasilyev

 Parag,

Yes, Android can shut down processes if there is not enough memory. I 
think you should review these sections from Android documentation:


http://developer.android.com/guide/topics/fundamentals.html#procthread

http://developer.android.com/guide/topics/fundamentals.html#lcycles

-- Kostya

21.09.2010 13:45, parag пишет:

Hi Jerome,

Thanks for  th information,
so does that mean that, there is a possibility that some apps will be
closed, without notifying the user?

Thanks in advance


On Sep 21, 1:13 pm, Jerome Deng  wrote:

If there is less memory available, the resource used by the paused
apps will be recycled by Davilk VM.
When you open the first app again, it will be relaunched. But not all
previously opened apps must restarted, as they may be still in paused
state.

On Sep 21, 2:10 pm, parag  wrote:




hi folks,
i have a situation, i want to know that following,
suppose I have opened 9 apps,  i want to open the 10th one,
The previous opened apps are in background,
if there is less memory available, will some of the earlier opened app
be closed without notification or the state will be saved , so that
when i open the first app again it will resume rather then start all
over again?
reg
Parag- Hide quoted text -

- Show quoted text -



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- 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


Re: [android-developers] Re: How can I track down a crash in a .so without a stack trace?

2010-09-21 Thread Leigh McRae
 Thank you all for the very detailed responses.  The game is all Java 
and the .so isn't mine so I would have to have the source for the driver 
I am guessing.  Also I can't get it to crash on my Milestone or the 
simulator.  Simulator doesn't even run 1fps so I had to leave it running 
for a few hours with no luck getting it to crash.


I added support for stack traces using acra but I suspect I won't see 
anything as I bet the whole JVM went down.


On 9/21/2010 9:44 AM, nagaraj attimani wrote:

from the stack trace..it can notice the carsh happend in
 #00 pc 0003ec30 /system/lib/egl/libGLES_qcom.so
u can use addr2line tool in linux to find the where crash occured in 
the .so.


On Tue, Sep 21, 2010 at 6:50 PM, Chris Stratton > wrote:


Yes, however note that you probably need to use the arm version of
objdump from ndk or aosp build system, and you need to run it on the
library file present on the user's device, as the addresses may well
be different than in the file from another build.

On Sep 21, 8:47 am, andrew_esh mailto:andrew.c@gmail.com>> wrote:
> That is a stack trace, after the SIGSEGV (Signal, Segment Violation)
> message, below where is says "stack:". Do an 'objdump -x' on the
.so (/
> system/lib/egl/
> libGLES_qcom.so), and start matching up the addresses with code. It
> should lead you to the specific routine that the code crashed
in. The
> first few lines after SIGSEGV are a register dump, so you can tell
> what was happening when the crash occurred. Looks like "r2"
(Register
> 2) was the one that was used in the reference that violated memory
> protection. You can disassemble the code around the routine at
the top
> of the stack, near the address of the fault, and find the code that
> did it. You can add options to the compile of the .so to produce
> assembly source code that retains the associated C code in comments.
> Once you're up into the C code, you can probably pretty well
determine
> what went wrong. Perhaps an out-of-bounds value was passed into an
> OpenGL function. Perhaps more memory was needed in a buffer that had
> little, and OpenGL ran off the end.
>
> I think there may even be scripts out there which will take the
binary
> addresses shown in this stack dump and will find names for the
> routines, by automating part of what I described above.
>
> Also, if you can park the application, attach strace to it, and then
> unpark it and cause it to produce the bug, the strace output
will show
> a chronological trace of the system calls that led up to the crash.
>
> On Sep 20, 12:42 pm, Leigh McRae mailto:leigh.mc...@lonedwarfgames.com>>
> wrote:
>
>
>
> > My game is crashing on the HTC Hero and I have managed to get
a user
> > to send me their log.  I don't see a Java stack trace at all.  It
> > looks like it's crashing in the OpenGL driver.  I was
wondering how I
> > could go about trying to determine the problem.  I was thinking of
> > adding that acra project that sends crash reports to a server
but I am
> > thinking it will just send the same that is in this log.   I have
> > error checking everywhere so I am really at a lose where to go
from
> > here.  I even went out and bought a HTC Hero but Canada only
has 1.5
> > for the OS.
>
> > 09-19 09:09:40.957 I/DEBUG ( 53): *** *** *** *** *** *** ***
*** ***
> > *** *** *** *** *** *** ***
> > 09-19 09:09:40.957 I/DEBUG ( 53): Build fingerprint:
'sprint/htc_heroc/
> > heroc/heroc:2.1-update1/ERE27/169236:user/release-keys'
> > 09-19 09:09:40.957 I/DEBUG ( 53): pid: 5999, tid: 6009 >>>
> > com.lonedwarfgames.tanks.androidpaid <<<
> > 09-19 09:09:40.957 I/DEBUG ( 53): signal 11 (SIGSEGV), fault addr
> > 0089e268
> > 09-19 09:09:40.957 I/DEBUG ( 53): r0 00387ab4 r1 00387ab0 r2
0089e268
> > r3 03ff
> > 09-19 09:09:40.957 I/DEBUG ( 53): r4 0005 r5 0089e268 r6
009705b0
> > r7 00387ab0
> > 09-19 09:09:40.957 I/DEBUG ( 53): r8 00382128 r9 00382c24 10
004554c0
> > fp 00162480
> > 09-19 09:09:40.957 I/DEBUG ( 53): ip  sp 462f8ce4 lr
8052b6a8
> > pc 8053ec30 cpsr 2010
> > 09-19 09:09:43.007 I/DEBUG ( 53): #00 pc 0003ec30 /system/lib/egl/
> > libGLES_qcom.so
> > 09-19 09:09:43.007 I/DEBUG ( 53): #01 lr 8052b6a8 /system/lib/egl/
> > libGLES_qcom.so
> > 09-19 09:09:43.007 I/DEBUG ( 53):
> > 09-19 09:09:43.007 I/DEBUG ( 53): code around pc:
> > 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec20 e0225492 e08cc144
e59041b4
> > e2810004
> > 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec30 e5925000 e2444003
e4815008
> > e5925004
> > 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec40 e5805000 e5b25008
e2810004
> > e2822004
> > 09-19 09:09:43.017 I/DE

[android-developers] creating avd from command line with keyboard support

2010-09-21 Thread jadav
How can i create avd from command line with keyboard support?

(I was able to create avd from commandline using: android create
avd ... but I dont know how to enable keyboard support into this)

even android documentaion/help doesn't any thing about this.

-Jadav

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anyone else ever submitted to Motorola Shop4Apps? I did and so far it seems dismal - share your experience?

2010-09-21 Thread niko20
But I don't see any "advantage" to localization in China. Over there
even schoolchildren are taught how to read and speak English.

-niko

On Sep 20, 11:05 pm, Bret Foreman  wrote:
> The real point of Shop4Apps is to sell localization services and then
> sell the localized apps in regions that are not covered by the
> Marketplace. It only makes sense if you are looking for someone to
> localize your app (for a fee) in one of their big markets, China or
> Brazil, and then sell it there.

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


[android-developers] Re: Is it worth writing a ContentProvider and using CursorAdapter for this case?

2010-09-21 Thread Samuh
:shameless bump:

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


Re: [android-developers] Re: Is it worth writing a ContentProvider and using CursorAdapter for this case?

2010-09-21 Thread Kostya Vasilyev

 Yes

21.09.2010 18:28, Samuh пишет:

:shameless bump:




--
Kostya Vasilyev -- WiFi Manager + pretty widget -- 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


Re: [android-developers] Re: Anyone else ever submitted to Motorola Shop4Apps? I did and so far it seems dismal - share your experience?

2010-09-21 Thread Kostya Vasilyev
 I would guess more than a few of developers here have been contacted 
by a Chinese company called NetDragon, offering to localize their 
Android application to Chinese.


So was I - and went ahead and had mine localized. The process was quite 
painless - I sent them my strings.xml, and got two in return (for 
Traditional and Simplified Chinese). Integrated, sent the .apk back to 
them, and they put it up on their own site.


The number of downloads through their site is 4% of my Market download 
numbers. So it's not much, but more than a couple. By comparison, 
Slideme.org only gets about half as much.


Oh, and my application is free.

-- Kostya

21.09.2010 18:27, niko20 пишет:

But I don't see any "advantage" to localization in China. Over there
even schoolchildren are taught how to read and speak English.

-niko



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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


[android-developers] Re: Anyone else ever submitted to Motorola Shop4Apps? I did and so far it seems dismal - share your experience?

2010-09-21 Thread Bret Foreman
I didn't say it was an advantage, only that it was the point of
Shop4Apps. I suppose there may be some apps that will sell better when
localized. If you don't think your app is in that category, then the
only other advantage of Shop4Apps is marketing/sales in some countries
where the Marketplace doesn't cover.

On Sep 21, 7:27 am, niko20  wrote:
> But I don't see any "advantage" to localization in China. Over there
> even schoolchildren are taught how to read and speak English.
>
> -niko
>

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

2010-09-21 Thread Brion Emde
Well, as you'll read in the docs, it's during onSaveInstanceState()
that you save the state that will be restored when your app is
restarted due being killed by the OS.

The saving you do in onPause() is the normal kind of saving you do;
saving the user's inputs and the like.

The kind of saving you do in onSaveInstanceState() has more to do with
the inner workings of the app. And example that I've found is the need
to save the item that user has selected in a Context Menu. Although
things appear correct, if you haven't saved the item that the context
menu pertains to, your code isn't going to work.


On Sep 21, 9:13 am, Chris Stratton  wrote:
> How well they restore state depends on how the app author has handled
> the onPause which is called when the app first went into the
> background and became fair game for killing.
>
> Typically for example an email your were editing will now be a saved
> draft, a moves-based game will be exactly as before,  but a half
> filled web form night just be gone.
>
> On Sep 21, 8:32 am, Brion Emde  wrote:
>
>
>
> > Yes, that is exactly what it means. From the user's perspective,
> > nothing has happened: when they come back to app #1, it has been
> > restarted, has restored its state and things look exactly like they
> > did when the user was there before.
>
> > If you want to notify the user somehow, you would do that in your
> > onPause() method.
>
> > On Sep 21, 5:45 am, parag  wrote:
>
> > > Hi Jerome,
>
> > > Thanks for  th information,
> > > so does that mean that, there is a possibility that some apps will be
> > > closed, without notifying the user?
>
> > > Thanks in advance
>
> > > On Sep 21, 1:13 pm, Jerome Deng  wrote:
>
> > > > If there is less memory available, the resource used by the paused
> > > > apps will be recycled by Davilk VM.
> > > > When you open the first app again, it will be relaunched. But not all
> > > > previously opened apps must restarted, as they may be still in paused
> > > > state.
>
> > > > On Sep 21, 2:10 pm, parag  wrote:
>
> > > > > hi folks,
>
> > > > > i have a situation, i want to know that following,
>
> > > > > suppose I have opened 9 apps,  i want to open the 10th one,
> > > > > The previous opened apps are in background,
>
> > > > > if there is less memory available, will some of the earlier opened app
> > > > > be closed without notification or the state will be saved , so that
> > > > > when i open the first app again it will resume rather then start all
> > > > > over again?
>
> > > > > reg
> > > > > Parag- Hide quoted text -
>
> > > > - Show quoted text -

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


Re: [android-developers] Re: Android Market the Google I/O 2010 features

2010-09-21 Thread Fabrizio Giudici

 On 9/20/10 15:05 , Maps.Huge.Info (Maps API Guru) wrote:

I like "The 32nd of Never" better. It almost sounds like a real date.


February 29th, 2011 is good too.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.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] enable / disable orientation changes at runtime...

2010-09-21 Thread sdphil
is there a way to enable / disable orientation changes at runtime?

i know you can force a screen orientation in your manifest using
android:screenOrientation="portrait" or ="landscape"

but I would like a way to enable / disable it at runtime.

tia.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 devices supporting OpenGL ES 2.0 (at least through NDK) as of September 2010

2010-09-21 Thread Robert Green
You're going to find a couple of major chips used for Android phones
so just knowing that lets you know what it supports:

Integrated CPU/GPU
Qualcomm MSM7200 - OpenGL ES 1.1 (G1, Hero, MyTouch, Cliq, Blur, Eris)
Qualcomm Snapdragon - ES 2.0 (N1, EVO, Incredible, others)

Dedicated GPU
Any PowerVR SGX 5xx - ES 2.0 (Droid, Galaxy S, many others)


On Sep 21, 8:33 am, RS  wrote:
> Thanks, hope that would be the same on the Samsung tablet too.
> I'd be very happy to hear from anybody with any other device even if
> it doesn't support OpenGL ES 2.0, especially if you could post the
> supported extensions.
> Thanks again.
> RS
>
> On Sep 21, 1:05 pm, nagaraj attimani 
> wrote:
>
>
>
> > Samsung Galaxy supports OpenGL ES 2.0
>
> > On Tue, Sep 21, 2010 at 5:30 PM, RS  wrote:
> > > Is there some place where I can find a list of android devices with
> > > OpenGL ES 2.0 (at least through NDK for 2.x devices)?
>
> > > Or could some developer with any of these comment on how OpenGL ES 2.0
> > > worked on their device?
> > >  - Nexus One - running SDK 2.1 (Works through NDK)
> > >  - Nexus One - running SDK 2.2 (Works)
> > >  - Droid (Works)
> > >  - Droid 2 (Works)
> > >  - Samsung (various phone models) ?
> > >  - Samsung Tablet ?
> > >  - Any other ?
>
> > > To know the extensions available would also be very useful.
> > > Desire appears very close to Nexus One as expected.
>
> > > The list in stackoverflow is old but the closest I could find:
>
> > >http://stackoverflow.com/questions/2093594/opengl-extensions-availabl...
>
> > > Thanks in advance,
> > > RS
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Warm Regards,
> > Nagaraj

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


[android-developers] Moved Android project to Eclipse 1.5 and new machine and project is missing Android jar

2010-09-21 Thread pawpaw17
Hi Guys,

I configured a new machine and am trying to move my Android project
over. When I look at the project properties under Java Build Path-
>Libraries, on the old machine I see a reference to "Android 1.5" but
nothing on the new machine and so nothing builds. I've installed
Android correctly because sample projects work (I see the Android 1.5
library on a newly minted sample project).

What option do I use to add the correct library? Add JARS..  Add
External JARS.. Add Library?

Thanks!

pawpaw17

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


Re: [android-developers] How to get the ListView item as web

2010-09-21 Thread TreKing
On Tue, Sep 21, 2010 at 1:08 AM, RKJ (Android developer) <
rkjhaw1...@gmail.com> wrote:

> I've list view item as a object,  I want to fetch item details as web to
> show.
>

Can you clarify? Your question does not make much sense or have enough
detail to properly help you.

-
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: ExpandableListView question

2010-09-21 Thread TreKing
On Tue, Sep 21, 2010 at 1:15 AM, dashman  wrote:

> 1. i would imagine newChildView would create the default layout - i have
> to create the different layout manually?
>

Yes - you would create whatever you needed based on the current group /
child position or whatever else determines your specific views, I guess.


> 2. convertView can be a view with either type - right? how do i know what
> type it is.\
>

Good question. I was running under the assumption that you could do
something like this:
http://developer.android.com/reference/android/widget/Adapter.html#getItemViewType%28int%29

But that's apparently limited to ListAdapter, which is surprising.
You could do some hackiness where you shove some ID in the view as a Tag or
something.

-
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] BONDI Widgets support in Android

2010-09-21 Thread sandhya
Does Android support BONDI Widgets.
Is there any reference to it.
I do have docs on Bondi Architecture and its compliance process.
But I wanted to know whether BONDI is already integrated
onto Android or do we need to implement it?

Any information on BONDI widgets support for Android would be helpful.


Thanks,
Sandhya

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


[android-developers] Application installation using OCSP standards

2010-09-21 Thread sandhya
Hi,

Does Android support OCSP (Online Certificate Status Protocol)
standards?
External Library OpenSSL do have reference to it.
Does this have anything to do with Application certification
validation
with the OCSP server?

Any info regarding this would be helpful.

Thanks,
Sandhya

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


[android-developers] Re: How to compile Android Launcher source code?

2010-09-21 Thread Paolo
I followed the guide you have posted. Thanks a lot.

Now I can see the android SDK source code in Eclipse, but I'm still
not able to compile the Launcher anyway... Eclipse always shows the
same error on the Launcher code... why? Is there something I don't
undestand?

Thanks,
Paolo

On 21 Set, 13:01, mani  wrote:
> Hi you cannot compile the Launcher code in eclipse with SDK.
>
> Certain API's are private not exposed to the public SDK.
>
> Ex. import android.renderscript.*
>
> But there are certain ways to compile AOSP in eclipse. Please go
> through this 
> link.http://blog.michael-forster.de/2008/12/view-android-source-code-in-ec...
>
> Thanks,
> Mani
>
> On Sep 21, 6:21 pm, Paolo  wrote:
>
>
>
> > I have just donwload the source code of the Android default Launcher
> > here:http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;...
>
> > But when I import the project, i can't compile it because there is a
> > lot of errors. Many of this are unresolved name, package, class and
> > variables... why? what is the problem? How can I solve it?
>
> > Please help me.Thanks.

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


Re: [android-developers] Re: Apps running cuncurrently

2010-09-21 Thread Dianne Hackborn
On Tue, Sep 21, 2010 at 1:13 AM, Jerome Deng  wrote:

> If there is less memory available, the resource used by the paused
> apps will be recycled by Davilk VM.
>

Actually Dalvik isn't really involved here except for executing code as it
normally does.  This is implemented by the framework and kernel (by killing
the process running the app).

-- 
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] can i create "FOLDER" for some message ....

2010-09-21 Thread TreKing
On Tue, Sep 21, 2010 at 6:26 AM, A N K ! T wrote:

> but am not getting any way to do  this task..


http://developer.android.com/guide/topics/data/data-storage.html

-
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] Service, AsyncTask, or both?

2010-09-21 Thread john brown
My application collects information entered by the user and stores it
in a sqlite database. The information is observed and entered every
few minutes. Each observation, or entry, becomes a record in a
database table. Each record needs to be transmitted via httpClient to
a server as soon as possible. The user, phone, may have intermittent
service. Each record is stored in the database immediately with a
isSent flag set to false. Next, I use AsyncTask to start a thread
separate from the UI thread, and attempt to transmit all the records,
one at a time, where isSent is false. If a record is successfully
transmitted, isSent is set to true. If httpClient gets a timeout or
page not found, I interperet that as no service and break out of the
process. I have all this written and successfully beta tested. (with
much help from this group. THANK YOU Android Developers Group.)

I used a Service in my first attempt at the routine to transmitt the
records. The documentation of Service indicated something about long
processes working w/o user input. But I found when there was no
internet connection, the routine took too long and I got a
"application not responding" error because the wait was in the UI
thread. I reprogrammed it utilizing AsyncTask to start a seperate
thread for the transmitt process and this seems to work w/o error.
During my reprogramming, I was confused on how to utilize both a
service and a AsyncTask, so I just did it without utilizing a Service.

Was my decision to drop the Service a good choice? Or am I missing
something useful offered by Service that would benifit this situation?

Thanks, John Brown

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is it worth writing a ContentProvider and using CursorAdapter for this case?

2010-09-21 Thread Dianne Hackborn
What you are doing is potentially really inefficient.  Improving it is not
really a matter of using a content provider, but using an adapter that
doesn't require you load all of the data up-front.  Adapters are designed to
be able to load data on demand as needed, which CursorAdapter does.

Also not that as far as I know CursorAdapter doesn't have a dependency on
there being a content provider.  It just wants a Cursor, which you can get
from any SQLite database.

On Tue, Sep 14, 2010 at 2:21 AM, Samuh  wrote:

> We are connecting to a number of WebServices and fetching a lot of
> structured data(XML). We are parsing this data and storing them into
> SQLite tables. This part of the application runs periodically in the
> back ground.
>
> On the foreground, the data fetched is displayed in ListViews. We have
> used ArrayAdapter to back these lists up. The thing is, every time the
> Actvity starts or data set is refreshed, we have to load the
> ArrayLists by querying the database and call notifyDataSetChanged() on
> the Adapter.
> This slows down the application and affects the User experience.
>
> Question:
> 1. I'd imagine using a CursorAdapter might result in performance gain,
> since the framework will take care of managing the cursor. Is this
> assumption valid?
> 2. Will the CursorAdapter take care of reflecting updates to the
> database on the screen automatically?
> 3. Will I have to write a ContentProvider if I choose to use
> CursorAdapters?
> 4. Are there any other considerations that we need to make?
>
> Please help.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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] Is API Level 6 gone?

2010-09-21 Thread Dianne Hackborn
Basically nobody has 2.0.1 any more.  That was an intermediate release, and
all active devices have been updated past it.

On Tue, Sep 21, 2010 at 6:47 AM, Leigh McRae  wrote:

> I have updated my tools to revision 7 and now I can't do a build as it
> says the API level is obsolete.  I can understand warning but it won't
> build at all.  I am using android.bat to generate a build.xml for
> release versions.  So the build.xml gets made from scratch each time.
> If I switch to --target 8 it builds but I have already released it on
> the Android Market with 6.  Won't this mean that some people that have
> Android 2.0.1 won't be able to run it?
>
> android update project --name Tanks --target 6 --path $
> {dist.project.dir}
>
>[setup] Android SDK Tools Revision 7
>[setup] Project Target: Android 2.0
>[setup] API level: 5
>[setup]
>[setup]
>[setup]
>[setup]
> ***
>[setup] WARNING: This platform is obsolete and its Ant rules may
> not work properly.
>[setup] WARNING: It is recommended to develop against a newer
> version of Android.
>[setup] WARNING: For more information about active versions of
> Android see:
>[setup] WARNING:
> http://developer.android.com/resources/dashboard/platform-versions.html
>[setup]
> ***
>[setup]
>[setup]
>[setup]
>[setup]
>[setup] --
>[setup] Resolving library dependencies:
>[setup] --
>[setup] Ordered libraries:
>[setup] --
>[setup]
>
> BUILD FAILED
> D:\Android\build.xml:68: The following error occurred while executing
> this line:
> D:\Android\build.xml:215: The following error occurred while executing
> this line:
> D:\Android\dist\market-lite\build.xml:82: Build rules file 'D:\Program
> Files\android-sdk-windows\tools\ant\android_rules.xml' is missing.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Moved Android project to Eclipse 1.5 and new machine and project is missing Android jar

2010-09-21 Thread Brad Gies
 Add External Jar will do it. Just make sure to pick the right one, and 
add the Google jar(s) if you're using them.



Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead


On 21/09/2010 8:47 AM, pawpaw17 wrote:

Hi Guys,

I configured a new machine and am trying to move my Android project
over. When I look at the project properties under Java Build Path-

Libraries, on the old machine I see a reference to "Android 1.5" but

nothing on the new machine and so nothing builds. I've installed
Android correctly because sample projects work (I see the Android 1.5
library on a newly minted sample project).

What option do I use to add the correct library? Add JARS..  Add
External JARS.. Add Library?

Thanks!

pawpaw17



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

2010-09-21 Thread TreKing
On Tue, Sep 21, 2010 at 11:37 AM, john brown
wrote:

> Or am I missing something useful offered by Service that would benifit this
> situation?
>

Well, Service is useful for running background tasks that don't require a
UI, which sounds like what you need.
Look at IntentService.

-
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] Is API Level 6 gone?

2010-09-21 Thread Leigh McRae
 Alright.  Thanks for the rely.  So I built it with --target 8 and left 
the min SDK version at 5.  Should be good?  I just needed mutli-touch is 
all.




On 9/21/2010 12:38 PM, Dianne Hackborn wrote:
Basically nobody has 2.0.1 any more.  That was an intermediate 
release, and all active devices have been updated past it.


On Tue, Sep 21, 2010 at 6:47 AM, Leigh McRae 
> wrote:


I have updated my tools to revision 7 and now I can't do a build as it
says the API level is obsolete.  I can understand warning but it won't
build at all.  I am using android.bat to generate a build.xml for
release versions.  So the build.xml gets made from scratch each time.
If I switch to --target 8 it builds but I have already released it on
the Android Market with 6.  Won't this mean that some people that have
Android 2.0.1 won't be able to run it?

android update project --name Tanks --target 6 --path $
{dist.project.dir}

   [setup] Android SDK Tools Revision 7
   [setup] Project Target: Android 2.0
   [setup] API level: 5
   [setup]
   [setup]
   [setup]
   [setup]
***
   [setup] WARNING: This platform is obsolete and its Ant rules may
not work properly.
   [setup] WARNING: It is recommended to develop against a newer
version of Android.
   [setup] WARNING: For more information about active versions of
Android see:
   [setup] WARNING:
http://developer.android.com/resources/dashboard/platform-versions.html
   [setup]
***
   [setup]
   [setup]
   [setup]
   [setup]
   [setup] --
   [setup] Resolving library dependencies:
   [setup] --
   [setup] Ordered libraries:
   [setup] --
   [setup]

BUILD FAILED
D:\Android\build.xml:68: The following error occurred while executing
this line:
D:\Android\build.xml:215: The following error occurred while executing
this line:
D:\Android\dist\market-lite\build.xml:82: Build rules file 'D:\Program
Files\android-sdk-windows\tools\ant\android_rules.xml' is missing.

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

To unsubscribe from this group, 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 


--
Leigh McRae
www.lonedwarfgames.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] HTTP POST

2010-09-21 Thread John Gaby
I am trying to do an HTTP POST of some data.  The following is a test
routine that I wrote to try and accomplish this:

void Put()
{
HttpURLConnection connection = null;
DataOutputStream outputStream = null;

String urlServer = 
"http://localhost:3571/mycmd.aspx?command=test";;
String message = "This is a message";

try
{
URL url = new URL(urlServer);
connection = (HttpURLConnection) url.openConnection();

// Allow Inputs & Outputs
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setUseCaches(false);

// Enable POST method
connection.setRequestMethod("POST");

connection.setRequestProperty("Connection", 
"Keep-Alive");
connection.setRequestProperty("Content-Type", 
"application/octet-
stream");

outputStream = new
DataOutputStream( connection.getOutputStream() );
outputStream.writeBytes(message);

// Responses from the server (code and message)
int serverResponseCode = connection.getResponseCode();
String serverResponseMessage = 
connection.getResponseMessage();

outputStream.flush();
outputStream.close();
}
catch (Exception ex)
{
int i = 0;
//Exception handling
}
}

If I set urlServer to 'localhost' I get an exception:

java.net.ConnectException: localhost/127.0.0.1:3571 - Connection
refused

I am presuming that this is because the localhost is not being
resolved properly to my host machine (I am running under the
emulator).  Is there a way to access a localhost server on my host
machine from the emulator, or do I need a real IP address?

Thanks

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


Re: [android-developers] Is API Level 6 gone?

2010-09-21 Thread Dianne Hackborn
Yeah should be fine.

On Tue, Sep 21, 2010 at 9:52 AM, Leigh McRae  wrote:

>  Alright.  Thanks for the rely.  So I built it with --target 8 and left the
> min SDK version at 5.  Should be good?  I just needed mutli-touch is all.
>
> 
>
>
> On 9/21/2010 12:38 PM, Dianne Hackborn wrote:
>
>> Basically nobody has 2.0.1 any more.  That was an intermediate release,
>> and all active devices have been updated past it.
>>
>> On Tue, Sep 21, 2010 at 6:47 AM, Leigh McRae <
>> leigh.mc...@lonedwarfgames.com >
>> wrote:
>>
>>I have updated my tools to revision 7 and now I can't do a build as it
>>says the API level is obsolete.  I can understand warning but it won't
>>build at all.  I am using android.bat to generate a build.xml for
>>release versions.  So the build.xml gets made from scratch each time.
>>If I switch to --target 8 it builds but I have already released it on
>>the Android Market with 6.  Won't this mean that some people that have
>>Android 2.0.1 won't be able to run it?
>>
>>android update project --name Tanks --target 6 --path $
>>{dist.project.dir}
>>
>>   [setup] Android SDK Tools Revision 7
>>   [setup] Project Target: Android 2.0
>>   [setup] API level: 5
>>   [setup]
>>   [setup]
>>   [setup]
>>   [setup]
>>***
>>   [setup] WARNING: This platform is obsolete and its Ant rules may
>>not work properly.
>>   [setup] WARNING: It is recommended to develop against a newer
>>version of Android.
>>   [setup] WARNING: For more information about active versions of
>>Android see:
>>   [setup] WARNING:
>>
>> http://developer.android.com/resources/dashboard/platform-versions.html
>>   [setup]
>>***
>>   [setup]
>>   [setup]
>>   [setup]
>>   [setup]
>>   [setup] --
>>   [setup] Resolving library dependencies:
>>   [setup] --
>>   [setup] Ordered libraries:
>>   [setup] --
>>   [setup]
>>
>>BUILD FAILED
>>D:\Android\build.xml:68: The following error occurred while executing
>>this line:
>>D:\Android\build.xml:215: The following error occurred while executing
>>this line:
>>D:\Android\dist\market-lite\build.xml:82: Build rules file 'D:\Program
>>Files\android-sdk-windows\tools\ant\android_rules.xml' is missing.
>>
>>--
>>You received this message because you are subscribed to the Google
>>Groups "Android Developers" group.
>>To post to this group, send email to
>>android-developers@googlegroups.com
>>
>>
>>To unsubscribe from this group, 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
>>
>
> --
> Leigh McRae
> www.lonedwarfgames.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
>



-- 
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: OpenGL lockups in 2.2

2010-09-21 Thread timedilation
Not sure if the following will fix the freezing in all cases but it
appears to have fixed it in my app. I still have my fingers crossed
about it although my app hasn't frozen for a while now - even when I
let it run overnight on an HTC Desire 2.2.

I first took the source code of GLSurfaceView into my custom class and
added this line immediately before the eglSwapBuffer() call in the
EGLHelper class function:

mEgl.glWaitGL();

This is a blocking call that waits for all existing GL commands to be
processed before returning. With this line, the freezing seems to have
stopped.

I then realized that the glFinish() function does the same thing. So I
went back to using the built-in GLSurfaceView and added the glFinish()
call at the very end of my renderer.onDrawFrame() function. This had
the same effect and I haven't seen a freeze until now. I suspect this
call is just making the loop wait explicitly for all GL commands to be
processed before rendering again. I took a look in the profiler and
this call did not add any extra overhead (likely because the
eglSwapBuffers() is also a blocking call and does the same thing -
except that it freezes randomly).

If the freezing starts again, I will update this post.
Hope this works for you all out there too.


On Sep 17, 7:46 am, String  wrote:
> It's not all OpenGL implementations, that's for sure. I have 2 apps
> with OpenGL live wallpapers; one has had the lockup problem, the other
> hasn't. Architecturally, they're very similar - I based the later one
> off the earlier. It was by pursuing the differences (like changing
> textures mid-stream, as I discussed in an earlier post) that I've been
> able to stop the lockups so far.
>
> String
>
> On Sep 17, 4:26 am, timedilation  wrote:
>
>
>
> > I have played games like Winds of Steel for hours on my HTC desire.
> > Surely they must be using opengl as well (I think). And the FPS is
> > also pretty good. How's it that those games do not freeze at all? I
> > need to dissect those and see what calls they are making.
>
> > On Sep 15, 12:17 pm, Jeremy Statz  wrote:
>
> > > I just let the same wallpaper run uninterrupted on a Motorola Droid
> > > for something like 16 hours and it's still fine.  I would've expected
> > > my Incredible to have hit the problem by then.  I also haven't heard
> > > any reports of this from folks with a  Galaxy S variant.
>
> > > On Sep 14, 7:38 pm, timedilation  wrote:
>
> > > > This appears to be an HTC specific bug. My app never freezes on the
> > > > Motorla Droid. EVER. It is very stable on the Droid and I have tested
> > > > it for about 4months without a single freeze. Interestingly though it
> > > > never froze on my G1 either. The G1 I have is the ADP1 phone I bought
> > > > directly from Google.
>
> > > > All other HTC phones that I have exhibit the freezing - Evo, Desire
> > > > and Nexus One (which is also from HTC I believe).
>
> > > > Apart from that I tested it for a month on Samsung Moment. There was
> > > > NO freezing there either.
> > > > I have been in touch with a Google developer advocate and I have
> > > > submitted the bug report to his team. They are looking into this as
> > > > well.
>
> > > > On Sep 14, 8:23 pm, Jeremy Statz  wrote:
>
> > > > > That's my experience as well.  All my log results say that there's no
> > > > > loading or anything necessary -- the frame it dies on is bog standard,
> > > > > with drawFrame going from beginning to end.  Any loading is long since
> > > > > done.
>
> > > > > I'm currently wondering if this is an HTC driver bug.  I'm going to
> > > > > let this run on a Motorola Droid all night and see if it crashes.  Not
> > > > > sure I'm expecting it to, as my fiance has been using my wallpapers on
> > > > > her Droid since forever and says she's never seen it lock and reboot
> > > > > like we're describing.  Is there anyone at HTC to take something like
> > > > > that to, if I gather some evidence?
>
> > > > > On Sep 14, 3:32 pm, timedilation  wrote:
>
> > > > > > That's interesting..
> > > > > > Although I know for sure that all my gl* calls are happening only in
> > > > > > the GL thread. And this freezing happens even when I simply leave 
> > > > > > the
> > > > > > device (HTC Desire) running my app with zero user interaction
> > > > > > whatsoever. All the app renders is a scenery with a single 
> > > > > > animation.
> > > > > > No texture changes or geometry changes are taking place in this
> > > > > > scenario. But because of the animation, I have to render 
> > > > > > continuously
> > > > > > and this is why I have not used the Render_when_dirty approach.
>
> > > > > > I did notice that when the app freezes, my main UI thread as well 
> > > > > > as a
> > > > > > secondary thread (that talks to a game server) are still running and
> > > > > > alive. The main UI thread does register touches until a point and 
> > > > > > then
> > > > > > hangs while the secondary thread stays alive. I tried to send an
> > > > > > interrupt() to the GLThr

[android-developers] Re: map can't load at specific places

2010-09-21 Thread dadada
All the map tiles don load at home.

Internet and google map app is working. Just my app's map tiles aren't
loading. I can get my location update.  Strange.

The overlay is drawn without connectivity. I don't think connectivity
is the problem here.

I am on 3G.



On Sep 21, 12:27 pm, TreKing  wrote:
> On Mon, Sep 20, 2010 at 10:34 PM, dadada  wrote:
> > It only happen at home. When i go to my office, it will work fine.
>
> That sounds like you simply have bad coverage in your home. Are you on 3G or
> Wifi? Does other internet-related functionality work at home (like your
> browser)?
>
> --- 
> --
> 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: How to compile Android Launcher source code?

2010-09-21 Thread Dianne Hackborn
Launcher currently uses a number of experimental/private APIs.

If you are doing this to create something you will place on Market, you
*must* change the code to not use those APIs.

If you are doing this as part of platform development for a device,
personally I would recommend just using the platform's build system.

Any tricks one uses to build Launcher in Eclipse without fixing the code
will *not* create an application that should be placed on market.  (And if
you do, I can guarantee that future versions of the platform will break the
resulting app.)

On Tue, Sep 21, 2010 at 9:26 AM, Paolo  wrote:

> I followed the guide you have posted. Thanks a lot.
>
> Now I can see the android SDK source code in Eclipse, but I'm still
> not able to compile the Launcher anyway... Eclipse always shows the
> same error on the Launcher code... why? Is there something I don't
> undestand?
>
> Thanks,
> Paolo
>
> On 21 Set, 13:01, mani  wrote:
> > Hi you cannot compile the Launcher code in eclipse with SDK.
> >
> > Certain API's are private not exposed to the public SDK.
> >
> > Ex. import android.renderscript.*
> >
> > But there are certain ways to compile AOSP in eclipse. Please go
> > through this link.
> http://blog.michael-forster.de/2008/12/view-android-source-code-in-ec...
> >
> > Thanks,
> > Mani
> >
> > On Sep 21, 6:21 pm, Paolo  wrote:
> >
> >
> >
> > > I have just donwload the source code of the Android default Launcher
> > > here:
> http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;...
> >
> > > But when I import the project, i can't compile it because there is a
> > > lot of errors. Many of this are unresolved name, package, class and
> > > variables... why? what is the problem? How can I solve it?
> >
> > > Please help me.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
>



-- 
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] Re: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag ?

2010-09-21 Thread Dianne Hackborn
Please move this to a group for platform development, such as
android-porting or android-platform.

On Tue, Sep 21, 2010 at 4:58 AM, mani  wrote:

> I even tried to do
> this.getApplicationContext().startActivity()  --> but this anyway not
> possible coz am not under a Activity instance.
> So how should i tackle this ??
>
> Anyone who has worked on statusbar...could help me ..
>
> On Sep 21, 7:36 pm, "A N K ! T"  wrote:
> > have u try to put this line after defining intent.
> >  browserIntent .setFlag(Intent.FLAG_ACTIVITY_NEW_TASK);
> >
> >
> >
> >
> >
> > On Tue, Sep 21, 2010 at 4:39 PM, mani  wrote:
> > > Hi all,
> >
> > > I tried to create a edittextbox, and button next to it, in the status
> > > bar. !!
> > > I created it  and tried to launch the browser activity, when somebody
> > > enters a URL in the textbox & click that button.
> >
> > > I get runtime exception as below.Can anyone please help what is the
> > > issue with this exception ?
> > > I know that Status bar is not a seperate activity. It is part of
> > > 'PhoneWindow'. But then i couldnt figure out what is the issue ?
> > > Framework experts coud you pls help here...!!
> >
> > > E/AndroidRuntime(   70): *** FATAL EXCEPTION IN SYSTEM PROCESS:
> > > android.server.ServerThread
> > > E/AndroidRuntime(   70): android.util.AndroidRuntimeException: Calling
> > > startActivity() from outside of an Activity  context requires the
> > > FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
> > > E/AndroidRuntime(   70):at
> > > android.app.ContextImpl.startActivity(ContextImpl.java:617)
> > > E/AndroidRuntime(   70):at
> > > com.android.server.status.StatusBarService
> > > $1.onClick(StatusBarService.java:289)
> > > E/AndroidRuntime(   70):at
> > > android.view.View.performClick(View.java:
> > > 2408)
> > > E/AndroidRuntime(   70):at android.view.View
> > > $PerformClick.run(View.java:8816)
> > > E/AndroidRuntime(   70):at
> > > android.os.Handler.handleCallback(Handler.java:587)
> > > E/AndroidRuntime(   70):at
> > > android.os.Handler.dispatchMessage(Handler.java:92)
> > > E/AndroidRuntime(   70):at
> android.os.Looper.loop(Looper.java:123)
> > > E/AndroidRuntime(   70):at
> > > com.android.server.ServerThread.run(SystemServer.java:506)
> >
> > >  private void makeStatusBarView(Context context) {
> > > 
> > > 
> > >urlTextbox = (EditText)sb.findViewById(R.id.urltextbox);
> > >Button  mButton = (Button) sb.findViewById(R.id.Go);
> > >mButton.setOnClickListener(new Button.OnClickListener(){
> > >public void onClick(View v) {
> > >System.out.println("Status Bar - Onclick
> of
> > > GO");
> > > String url =
> urlTextbox.getText().toString();
> > > Intent browserIntent = new
> > > Intent("android.intent.action.VIEW", Uri.parse(url));
> > > mContext.startActivity(browserIntent);
> > >}
> > >});
> >
> > > --
> > > -
> >
> > > }
> >
> > > /frameworks/base/services/java/com/android/server/status/
> > > StatusBarService.java --> I was trying to implement it like this.
> >
> > > status_bar.xml:
> > > 
> >
> > >  > >android:background="@drawable/statusbar_background"
> > >android:orientation="vertical"
> > >android:focusable="true"
> > >android:descendantFocusability="afterDescendants"
> >
> > > > >android:layout_width="match_parent"
> > >android:layout_height="match_parent"
> > >android:orientation="horizontal">
> >
> > > > >android:layout_width="0dip"
> > >android:layout_weight="1"
> > >android:layout_height="match_parent"
> > >android:layout_alignParentLeft="true"
> > >android:paddingLeft="6dip"
> > >android:gravity="center_vertical"
> > >android:orientation="horizontal"/>
> >
> > >  > >android:hint="eg.www.google.com, "
> > >android:layout_width="150dip"
> > >android:layout_height="wrap_content"
> > >android:maxLines="1"/>
> >
> > > > >android:layout_width="50dip"
> > >android:layout_height="wrap_content"
> > >android:text="@string/go"/>
> >
> > > > >android:layout_width="wrap_content"
> > >android:layout_height="match_parent"
> > >android:layout_alignParentRight="true"
> > >android:paddingRight="6dip"
> > >android:gravity="center_vertical"
> > >android:orientation="horizontal"/>
> > >
> >
> > > > >android:layout_width="match_parent"
> > >android:layout_height="match_parent"
> > >android:paddingLeft="6dip"
> > >andro

Re: [android-developers] Using a different layout depending on parent dimensions

2010-09-21 Thread Dianne Hackborn
You'll need to write a custom layout manager that does this as part of its
layout.

On Mon, Sep 20, 2010 at 11:47 PM, Mark Carter wrote:

> Imagine a View filling the width and the top half of the screen. The
> height varies depending on whether the IME is shown or not (and
> whether the screen is in landscape/portrait mode). The IME itself has
> variable height.
>
> Now imagine that View has a child LinearLayout (vertical) showing a
> couple of ImageButtons (one above the other) on the right hand side.
>
> Normally this works fine, but sometimes, when the IME is showing, the
> two icons do not quite fit within the height, and so I would like to
> change the orientation of the LinearLayout to horizontal.
>
> How can this be done as the main View automatically resizes?
>
> Note - I really want the LinearLayout orientation-change to happen
> according to the parent view height rather than whether the IME is
> showing (although this would be an acceptable second-best solution).
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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] Re: Navigate up activity stack

2010-09-21 Thread Dianne Hackborn
On Mon, Sep 20, 2010 at 9:48 PM, TreKing  wrote:

> Assuming you control all activities, you can start them all using
> startActivityForResult() then pass back an "exit" code of some sort, such
> that upon receiving this message, each activity knows it needs to finish()
> itself.
>

Another approach you can take is to use Intent.FLAG_ACTIVITY_CLEAR_TOP to
restart the top activity of your app, causing all between you and it to
finish, and that one can handle onNewIntent() with the intent you send it to
finish itself.  However...


> Note that this will only finish your activities, but AFAIK the process will
> remain at Android's discretion to be re-used later, if need be.
>

Yes, this has no impact on whether the process continues to run.

You don't want to stop the process from running.  All that would do is make
your app slower to start the next time the user returns to it.  (In fact
finishing the top activity also makes it slower, because otherwise when the
launch it again that activity can just be brought directly to the
foreground.)

-- 
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] Re: sending c2dm: java.security.cert.CertificateException: No subject alternative DNS name matching android.apis.google.com found.

2010-09-21 Thread Sean Liao
no.  I cannot get it to work, any helper?

On Wed, Sep 8, 2010 at 10:26 PM, Wei Hsu  wrote:

> I am getting the same error as you when sending a POST to
> https://android.apis.google.com/c2dm/send:
>
> java.security.cert.CertificateException: No subject alternative DNS
> name matching android.apis.google.com found.
>
> Can you update me if you've found a solution?
>
> Thanks,
> Wei
>
> On Aug 12, 1:39 pm, Sean Liao  wrote:
> > I appreciate if you kindly take a quick look of my issue of sending a
> C2DM
> > to android emulator. Now,  I am getting the following error:
> >
> > java.security.cert.CertificateException: No subject alternative DNS name
> > matching android.apis.google.com found.
> >
> > I think it might be related to:  "Header with a
> > ClientLogin<
> http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html>
> > Auth
> > token"?  I am not sure if I interpret the doc correctly?
> >
> > The following are the data I got:
> > The response from ClientLogin:
> >
> SID=DQAAAJoAAABXme_JJsvfqYdKjD24edExH2biEinIybvxiO_eO1nuCtbUD3UuplqPcW-9ilw
> NnjO5yF1MUA5VrhApiNGER1sr_Cu0XyRdGvV7gv_3RytrgY35ziEyyqBy9452tQIsUJI_eJupIe
> l53V6x6xtTS1_bxaO5vMvTxK_IOWabzKKp8kPYRSpyx315QUpyTxt9RalfzqkySjFDBMHYmtcR5
> jxL
> >
> LSID=DQAAAJ0ohb7t7TRUOZRUBxSKe1cQsmXLfJBFjjXknKJCZVXce3lALKGKmfNLU3xAoi
> TJ0YC7gdZY-dnRVVsW5yMArtx4KPrS2g2hUfS2wJ5LlI8Elzb3yK23ZMr73VM_3OJ4mX_SqBtgA
> 9bFOAw8Nga7Q2dwHFgxD5dKNvhlrW6bgUQbnBi7xvCRzfS4JODiJP62qiD2-JcZFZc37WRtnugP
> nseb
> > *
> >
> Auth=DQAAAJ0AAACbxXfajOAka6Wwq4WZCBMu8FFHLladf42XG5ADHqgVDPIxR9U4zPfVlEgVu8
> 6-iF2lp1Vx5OLh0dT7K2oIgFca6GIg9tumOr5XCMlMNfNg05rs6Mjk1pYPqbSp9LJyCkU_Z8LWb
> HQj3S9swJ1_QAJfihZfHvCGX7IB726vW3y20s60vXkrY1T9FnKz1V1xjaweZHnJAznrLqFjVrGd
> XOwV
> > *
> >
> > The first error I got was from:
> connection.setRequestProperty("Authorization:
> > GoogleLogin auth", authToken);  // the key seems strange? is it correct?
> >
> > Illegal character(s) in message header value:
> >
> DQAAAJ0AAACbxXfajOAka6Wwq4WZCBMu8FFHLladf42XG5ADHqgVDPIxR9U4zPfVlEgVu86-iF2
> lp1Vx5OLh0dT7K2oIgFca6GIg9tumOr5XCMlMNfNg05rs6Mjk1pYPqbSp9LJyCkU_Z8LWbHQj3S
> 9swJ1_QAJfihZfHvCGX7IB726vW3y20s60vXkrY1T9FnKz1V1xjaweZHnJAznrLqFjVrGdXOwV
> >
> > After examing the content of authToken, it has a carriage return in the
> end.
> >  I just trim it to to by pass this error, is that the right way, or
> > something wrong aleady?
> >
> > Then, I am getting
> > java.security.cert.CertificateException: No subject alternative DNS name
> > matching android.apis.google.com found.
> >
> > Any suggestion or pointer?
> >
> > Thanks in advance.
> > Sean
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Activity throws an exception after the 1st run

2010-09-21 Thread Shahar Rubin
Hi all,
I'm trying to run an activity that raise a camera surface, takes a
picture and then gone until the next interval.
On the first cycle it works well, but on the second cycle it raise an
exception.
Here is my code (PicTakerActivity is raised on every cycle):
http://pastebin.com/MzPZNjwY
Here is the log from the start of the service (MyService):
http://pastebin.com/HbBT9zHV
Thanks.

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


[android-developers] Re: OpenGL lockups in 2.2

2010-09-21 Thread Robert Green
So after finishing with glFinish(), you haven't seen a freeze at all
or you just saw one now?  I'm not sure what to make of the "until now"
part :)

If you really think that's making a difference, I'll try it out and
see if it makes a difference for my games as well, though I have to
play for about an hour to see it happen.

On Sep 21, 12:10 pm, timedilation  wrote:
> Not sure if the following will fix the freezing in all cases but it
> appears to have fixed it in my app. I still have my fingers crossed
> about it although my app hasn't frozen for a while now - even when I
> let it run overnight on an HTC Desire 2.2.
>
> I first took the source code of GLSurfaceView into my custom class and
> added this line immediately before the eglSwapBuffer() call in the
> EGLHelper class function:
>
> mEgl.glWaitGL();
>
> This is a blocking call that waits for all existing GL commands to be
> processed before returning. With this line, the freezing seems to have
> stopped.
>
> I then realized that the glFinish() function does the same thing. So I
> went back to using the built-in GLSurfaceView and added the glFinish()
> call at the very end of my renderer.onDrawFrame() function. This had
> the same effect and I haven't seen a freeze until now. I suspect this
> call is just making the loop wait explicitly for all GL commands to be
> processed before rendering again. I took a look in the profiler and
> this call did not add any extra overhead (likely because the
> eglSwapBuffers() is also a blocking call and does the same thing -
> except that it freezes randomly).
>
> If the freezing starts again, I will update this post.
> Hope this works for you all out there too.
>
> On Sep 17, 7:46 am, String  wrote:
>
>
>
> > It's not all OpenGL implementations, that's for sure. I have 2 apps
> > with OpenGL live wallpapers; one has had the lockup problem, the other
> > hasn't. Architecturally, they're very similar - I based the later one
> > off the earlier. It was by pursuing the differences (like changing
> > textures mid-stream, as I discussed in an earlier post) that I've been
> > able to stop the lockups so far.
>
> > String
>
> > On Sep 17, 4:26 am, timedilation  wrote:
>
> > > I have played games like Winds of Steel for hours on my HTC desire.
> > > Surely they must be using opengl as well (I think). And the FPS is
> > > also pretty good. How's it that those games do not freeze at all? I
> > > need to dissect those and see what calls they are making.
>
> > > On Sep 15, 12:17 pm, Jeremy Statz  wrote:
>
> > > > I just let the same wallpaper run uninterrupted on a Motorola Droid
> > > > for something like 16 hours and it's still fine.  I would've expected
> > > > my Incredible to have hit the problem by then.  I also haven't heard
> > > > any reports of this from folks with a  Galaxy S variant.
>
> > > > On Sep 14, 7:38 pm, timedilation  wrote:
>
> > > > > This appears to be an HTC specific bug. My app never freezes on the
> > > > > Motorla Droid. EVER. It is very stable on the Droid and I have tested
> > > > > it for about 4months without a single freeze. Interestingly though it
> > > > > never froze on my G1 either. The G1 I have is the ADP1 phone I bought
> > > > > directly from Google.
>
> > > > > All other HTC phones that I have exhibit the freezing - Evo, Desire
> > > > > and Nexus One (which is also from HTC I believe).
>
> > > > > Apart from that I tested it for a month on Samsung Moment. There was
> > > > > NO freezing there either.
> > > > > I have been in touch with a Google developer advocate and I have
> > > > > submitted the bug report to his team. They are looking into this as
> > > > > well.
>
> > > > > On Sep 14, 8:23 pm, Jeremy Statz  wrote:
>
> > > > > > That's my experience as well.  All my log results say that there's 
> > > > > > no
> > > > > > loading or anything necessary -- the frame it dies on is bog 
> > > > > > standard,
> > > > > > with drawFrame going from beginning to end.  Any loading is long 
> > > > > > since
> > > > > > done.
>
> > > > > > I'm currently wondering if this is an HTC driver bug.  I'm going to
> > > > > > let this run on a Motorola Droid all night and see if it crashes.  
> > > > > > Not
> > > > > > sure I'm expecting it to, as my fiance has been using my wallpapers 
> > > > > > on
> > > > > > her Droid since forever and says she's never seen it lock and reboot
> > > > > > like we're describing.  Is there anyone at HTC to take something 
> > > > > > like
> > > > > > that to, if I gather some evidence?
>
> > > > > > On Sep 14, 3:32 pm, timedilation  wrote:
>
> > > > > > > That's interesting..
> > > > > > > Although I know for sure that all my gl* calls are happening only 
> > > > > > > in
> > > > > > > the GL thread. And this freezing happens even when I simply leave 
> > > > > > > the
> > > > > > > device (HTC Desire) running my app with zero user interaction
> > > > > > > whatsoever. All the app renders is a scenery with a single 
> > > > > > > animation.
> > > > > > > No textu

[android-developers] Re: OpenGL lockups in 2.2

2010-09-21 Thread timedilation
I haven't seen any freeze since making that change (I am only testing
this on the HTC Desire running 2.2)


On Sep 21, 1:32 pm, Robert Green  wrote:
> So after finishing with glFinish(), you haven't seen a freeze at all
> or you just saw one now?  I'm not sure what to make of the "until now"
> part :)
>
> If you really think that's making a difference, I'll try it out and
> see if it makes a difference for my games as well, though I have to
> play for about an hour to see it happen.
>
> On Sep 21, 12:10 pm, timedilation  wrote:
>
>
>
> > Not sure if the following will fix the freezing in all cases but it
> > appears to have fixed it in my app. I still have my fingers crossed
> > about it although my app hasn't frozen for a while now - even when I
> > let it run overnight on an HTC Desire 2.2.
>
> > I first took the source code of GLSurfaceView into my custom class and
> > added this line immediately before the eglSwapBuffer() call in the
> > EGLHelper class function:
>
> > mEgl.glWaitGL();
>
> > This is a blocking call that waits for all existing GL commands to be
> > processed before returning. With this line, the freezing seems to have
> > stopped.
>
> > I then realized that the glFinish() function does the same thing. So I
> > went back to using the built-in GLSurfaceView and added the glFinish()
> > call at the very end of my renderer.onDrawFrame() function. This had
> > the same effect and I haven't seen a freeze until now. I suspect this
> > call is just making the loop wait explicitly for all GL commands to be
> > processed before rendering again. I took a look in the profiler and
> > this call did not add any extra overhead (likely because the
> > eglSwapBuffers() is also a blocking call and does the same thing -
> > except that it freezes randomly).
>
> > If the freezing starts again, I will update this post.
> > Hope this works for you all out there too.
>
> > On Sep 17, 7:46 am, String  wrote:
>
> > > It's not all OpenGL implementations, that's for sure. I have 2 apps
> > > with OpenGL live wallpapers; one has had the lockup problem, the other
> > > hasn't. Architecturally, they're very similar - I based the later one
> > > off the earlier. It was by pursuing the differences (like changing
> > > textures mid-stream, as I discussed in an earlier post) that I've been
> > > able to stop the lockups so far.
>
> > > String
>
> > > On Sep 17, 4:26 am, timedilation  wrote:
>
> > > > I have played games like Winds of Steel for hours on my HTC desire.
> > > > Surely they must be using opengl as well (I think). And the FPS is
> > > > also pretty good. How's it that those games do not freeze at all? I
> > > > need to dissect those and see what calls they are making.
>
> > > > On Sep 15, 12:17 pm, Jeremy Statz  wrote:
>
> > > > > I just let the same wallpaper run uninterrupted on a Motorola Droid
> > > > > for something like 16 hours and it's still fine.  I would've expected
> > > > > my Incredible to have hit the problem by then.  I also haven't heard
> > > > > any reports of this from folks with a  Galaxy S variant.
>
> > > > > On Sep 14, 7:38 pm, timedilation  wrote:
>
> > > > > > This appears to be an HTC specific bug. My app never freezes on the
> > > > > > Motorla Droid. EVER. It is very stable on the Droid and I have 
> > > > > > tested
> > > > > > it for about 4months without a single freeze. Interestingly though 
> > > > > > it
> > > > > > never froze on my G1 either. The G1 I have is the ADP1 phone I 
> > > > > > bought
> > > > > > directly from Google.
>
> > > > > > All other HTC phones that I have exhibit the freezing - Evo, Desire
> > > > > > and Nexus One (which is also from HTC I believe).
>
> > > > > > Apart from that I tested it for a month on Samsung Moment. There was
> > > > > > NO freezing there either.
> > > > > > I have been in touch with a Google developer advocate and I have
> > > > > > submitted the bug report to his team. They are looking into this as
> > > > > > well.
>
> > > > > > On Sep 14, 8:23 pm, Jeremy Statz  wrote:
>
> > > > > > > That's my experience as well.  All my log results say that 
> > > > > > > there's no
> > > > > > > loading or anything necessary -- the frame it dies on is bog 
> > > > > > > standard,
> > > > > > > with drawFrame going from beginning to end.  Any loading is long 
> > > > > > > since
> > > > > > > done.
>
> > > > > > > I'm currently wondering if this is an HTC driver bug.  I'm going 
> > > > > > > to
> > > > > > > let this run on a Motorola Droid all night and see if it crashes. 
> > > > > > >  Not
> > > > > > > sure I'm expecting it to, as my fiance has been using my 
> > > > > > > wallpapers on
> > > > > > > her Droid since forever and says she's never seen it lock and 
> > > > > > > reboot
> > > > > > > like we're describing.  Is there anyone at HTC to take something 
> > > > > > > like
> > > > > > > that to, if I gather some evidence?
>
> > > > > > > On Sep 14, 3:32 pm, timedilation  wrote:
>
> > > > > > > > That's interesting..
> > > > > > > 

[android-developers] Re: Exact Layout that fits a background image

2010-09-21 Thread Martin
Woow this sounds very hard. Is it explained somewhere how to do this,
or is there an example?
If I create my own layout-class, can I still use the Layout-Editor
with eclipse?
Greetings, Martin

On 21 Sep., 02:10, Peter Carpenter
 wrote:
> You can create your own class that extends ViewGroup and override the 
> layout/onMeasure functions to explicitly define your own layout.
> Not sure of how to do this via xml though.
>
>
>
> -Original Message-
> From: android-developers@googlegroups.com 
> [mailto:android-develop...@googlegroups.com] On Behalf Of Martin
> Sent: Tuesday, 21 September 2010 8:02 AM
> To: Android Developers
> Subject: [android-developers] Exact Layout that fits a background image
>
> Hi!
>
> I have a background image (full screen) and want to create an exact
> layout, which fits this background-image. The buttons and labels have
> to be at an exact place of the background-image. How can I do this?
> The absolute-layout is deprecated. If I use relative layout, I can use
> margins, but the positions differ from device to device.
>
> The best thing is if I could set the exact positions as percent of the
> total view size. How can I do this?
>
> Greetings, Martin
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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] GeoCoder Backend Service

2010-09-21 Thread Nanosheep
Hi there,
I've developed an app that uses the GeoCoder service included in the
Google API - I'm now interested in building a replacement service
(using OpenStreetMap's Nominatim geocoder) that can be used on devices
that don't have the API installed, but I can't seem to locate any
documentation on implementing a geocoder service that the
android.location.GeoCoder class can use. Any pointers on where this
might be buried?

On a related note - in order to use the geocoder service provided by
the API, am I implicitly agreeing to the Maps API terms of service? No
other API components outside the standard android API are being used
in the app.

Any suggestions are very gratefully received!

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


[android-developers] Some pictures from web cannot display.

2010-09-21 Thread Camparijet
Hello, guys.

I have a problem about an ImageView in GridView.

My app has a click event  to get pictures from web.

On Emulator, the app can display all pictures properly.

But  on my Nexus One, the app cannot display some pictures.

I debugged, and found something not-display pictures have in common.

・Aspect ratio is different between not-display pictures(16:9, 4:3...)
and ImageView(1:1).
・Not-display pictures  takes a lot of time to get Image(0.1-0.2sec on
Wi-fi, while the other pictures takes 0.01-0.004sec)

If you know something about this problem, give me your advice.

Thanks in advance :-D


@Camparijet

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


  1   2   3   4   >