[android-developers] OBEX OPP Specific transfer

2011-05-31 Thread Shekhar
Hello,

I am developing an OBEX OPP client application in android
phone.Through the client application
i will send an object to the non Android device (which will act as the
OPP server).I have created the RFCOMM socket connection using the API

createRfcommSocketToServiceRecord(OPP_UUID);  I have use the UUID of
the OBEX Push i.e.

private static final UUID OPP_UUID = UUID
.fromString(1105--1000-8000-00805F9B34FB);

I have observed that through this the socket connection is successful
and I got the input and output stream of the socket to send and
recieve the data.But when I send the data the data recieved the other
device is not in the right format. What I mean by this is in the
reciever device the data is recieved with the error. BT Air sniffer
indicates that the in the retrieved_opcode Data is not present.OBEX
response code is Bad request.

Can anyone guide me what is wrong in this ? or the steps to make an
OBEX OPP connection with the device which is not paired.

Your valuable inputs will help me to overcome this.

Thanks,
Shekhar

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

2011-05-31 Thread Jonas Petersson

On 2011-05-31 02:52, Doug wrote:

On May 30, 1:24 am, Raghav Soodraghavs...@gmail.com  wrote:

I am currently using a PC running Ubuntu 11.04. Money is not a problem so I
think I'll get a Macbook Pro and dual boot OS X and Ubuntu 11.04 on it.


How are you going to dual boot with Linux on a MacBook?  Boot Camp
only supports Windows products.


Um, I've been running various kinds of Linux on my company provided 
MacBookPros for 5+ years without problems. Theoretically, I guess I'm 
dual booting (as I kept a small OSX partition just in case), but in 
reality I don't boot that partition. Remember: pretty much anything that 
boots x86 Windows will also work with Linux. These days it isn't even 
particularly tricky to install - in fact, I consider the way the 
multi-touch pad works in Linux better than how it is used in OSX (YMMV).


The MBP hardware is pretty good in my experience, the only iffy part is 
the BCM wifi.



If you want to run any kind of Linux on a MacBook, then you'll need to
get a product such as VMWare or Parallels to run some Linux in a VM
hosted within OS X.


Nope. You certainly can if you like, though.


I've been doing all my Android dev on OS X for two years and haven't
needed Linux for anything, even NDK work.  And I have never had to
find and and install device drivers like my peers using Windows.  One
major exception is with Samsung Galaxy S products -- if you want to
install a new firmware on those devices, you need Windows to run
Samsung's crappy Kies software.


Oh, I have a vbox with Windows on my MacBookPro (currently running 
Ubuntu 11.04) for the odd Windows-only stuff I need to do. Upgraded my 
Milestone that way for instance. So of the three OSes, OSX is actually 
used the least.


Don't get me wrong, these days I could get used to OSX if I had to (I 
selected Linux when OSX still didn't exist), but for various reasons I 
still prefer Linux (comparing uptime with my colleagues - identical 
hardware - I have better uptimes) and Linux is also the target platform 
of my day job.


Best / Jonas

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

2011-05-31 Thread Abhishek Kumar Gupta
I am a newbie, I want to place a widget by default on homescreen i.e., when 
we switch-on the phone(or emulator) that particular widget should display on 
the homescreen. Please help me.

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

Re: [android-developers] Re: Moving from free app to a paid model

2011-05-31 Thread Chris
I already have an export to SD, import to whatever version design so even if 
I had to force them to install a new app it'd be easy.  I'm mostly worried 
about what the conversion rate might be.  My app is based on long-term data 
storage and analysis, so old users who simply can't upgrade (eg, due to 
market limitations  etc.) might be put off.

Most of my traction came from overseas.  Fragmentation is an issue (I really 
want to drop support for Android 1.x) and I'm guessing I'm going to be 
supporting a final free version forever.

I'm thinking in-app billing for upgrades to a pro version might be the 
best way at this point... any advice on handling this?

Cheers again,
- C

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

2011-05-31 Thread JR
Ok I got it by myself, I do not need to use XLIFF just add these code
and everything is fine :)

textView = (TextView) findViewById(R.id.text_view);

then call this code to set the text

textView.setText(Your text here.);

On May 31, 11:11 am, JR jayarr.patri...@gmail.com wrote:
 Hello everyone,

 I am trying to change the text value in TextView using the src file
 (.java). By default I set the value to

 android:text=TEST in main.xml file under TextView

 what I want is to change the value using the java so I can change the
 text value anytime I want. I look for resources and found the XLIFF in
 a sample xml file which I suspect I need to add in my code. It looks
 like this

 string name=title_connected_toconnected to xliff:g
 id=device_name%1$s/xliff:g/string

 I tried to understand the source codes of BluetoothChat sample to
 further understand the above code but I don't get it.

 If someone knows what I am talking about could you please help me?
 basically I only want to change the default text value in TextView
 that I set in the xml file through the src file (.java)

 Thanks a lot,

 JR

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

2011-05-31 Thread Doug
On May 30, 7:09 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Tue, May 31, 2011 at 10:54 AM, String sterling.ud...@googlemail.com 
 wrote:
  In any case, I would agree that expecting them to synchronize between
  processes in real time is, um, unrealistic, but they definitely do work for
  the simple case of one app being able to read the prefs which another has
  written. Both apps need the same signature, AFAIK, and you need to be
  careful with permissions, but I've done this a few times now.

 Don't you need to set the same sharedUserId in both apps for this to work?
 (unless prefs are WORLD_READABLE). If the first app is already published
 without a sharedUserId, will adding it in a next version break things? AFAIK, 
 ,
 adding sharedUserId changes the app's UID.

Nope, both apps just need to be signed with the same cert.  They will
both be installed with the same underlying linux user id.  What you're
talking about is what's required when you need two apps to run in the
same linux process.

http://developer.android.com/guide/topics/security/security.html

Doug

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


[android-developers] Warning Message - Debugging

2011-05-31 Thread Sivaprakash
Hi


I have written a simple application and tried to debug it with the device. I
am getting following warning message when I enable
android:debuggable=true in my manifest file if I remove everything goes
well and still it gets deployed into the device? Any clues to avoid this
warning.



[2011-05-31 11:47:03 - Test] ActivityManager: Starting: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
cmp=com.company.test/.Explorer }
[2011-05-31 11:47:03 - Test] ActivityManager: Warning: Activity not started,
its current task has been brought to the front

-- 
- Prakash.

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

2011-05-31 Thread Doug
On May 30, 11:27 pm, Chris crehb...@gmail.com wrote:
 Most of my traction came from overseas.  Fragmentation is an issue (I really
 want to drop support for Android 1.x) and I'm guessing I'm going to be
 supporting a final free version forever.

You can make it clear to your users that you will support certain
versions of Android for a certain amount of time.  That should at
least soften the blow.  You could also give manual refunds to people
who would be left in the lurch.  Just have them give you both google
order IDs for their old and new purchase.

The number of 1.x users is going to rapidly decrease (from already
small numbers) and you'll find yourself at a point of diminishing
return for the effort you put into supporting them.  Mobile devices
aren't expected to last nearly as long as desktop computers.

Doug

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


[android-developers] Connection between core Java and Android application

2011-05-31 Thread Ashok Jeevan
Hi,

Is there any method for a program residing in the core layers of Java to
access a program which resides at the program level in Android?

For example, I am at this
location 
/external/apache-http/src/org/apache/http/impl/client/DefaultHttpClient.java
and I need to access Settings(settings.db file to be exact) application in
the packages folder.

Thanks,
Ashok Jeevan

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

2011-05-31 Thread Doug
On May 30, 8:11 pm, Francisco Dalla Rosa soares soa...@argo.bz
wrote:
 Funny to see how people still look at Macs like a blackbox.

 https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstall...
 Mac OSX and Ubuntu

That document is a little scary.  I'll stick with VMware, thanks.  :-)

Doug

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

2011-05-31 Thread Francisco Dalla Rosa soares
I don't know if I really got your question but what you can do is just
extend DefaultHttpClient reimplementing the methods you need, accessing your
Settings.

maybe you could try being more clear to what's your problem?

2011/5/31 Ashok Jeevan ashokjee...@gmail.com

 Hi,

 Is there any method for a program residing in the core layers of Java to
 access a program which resides at the program level in Android?

 For example, I am at this
 location 
 /external/apache-http/src/org/apache/http/impl/client/DefaultHttpClient.java
 and I need to access Settings(settings.db file to be exact) application in
 the packages folder.

 Thanks,
 Ashok Jeevan

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

2011-05-31 Thread Mark Carter
I have an app which includes a app widget but only as a relatively minor 
portion of the total functionality. A significant minority of my users use 
it.

I notice that when setting installLocation to auto, the widgets will 
disappear as soon as the user moves the app to the SD card. When the app is 
in internal memory (whatever the value of installLocation set in the 
Manifest), the widgets function fine.

This is somewhat described in the docs: 
http://developer.android.com/guide/appendix/install-location.html

The question is, the docs explicitly say apps, such as mine (e.g. using 
widgets), SHOULD NOT set the installLocation in this way. Is that simply 
because of the above behaviour (in which case SHOULD NOT sounds too 
strong), or should I take it to imply that there may be changes made further 
down the line which cause greater problems?

As it stands, I can stomach informing users that it's either 
run-from-sd-card OR show widgets but NOT both.

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

Re: [android-developers] Re: Moving from free app to a paid model

2011-05-31 Thread Nikolay Elenkov
On Tue, May 31, 2011 at 4:01 PM, Doug beafd...@gmail.com wrote:
 On May 30, 7:09 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Tue, May 31, 2011 at 10:54 AM, String sterling.ud...@googlemail.com 
 wrote:
  In any case, I would agree that expecting them to synchronize between
  processes in real time is, um, unrealistic, but they definitely do work for
  the simple case of one app being able to read the prefs which another has
  written. Both apps need the same signature, AFAIK, and you need to be
  careful with permissions, but I've done this a few times now.

 Don't you need to set the same sharedUserId in both apps for this to work?
 (unless prefs are WORLD_READABLE). If the first app is already published
 without a sharedUserId, will adding it in a next version break things? 
 AFAIK, ,
 adding sharedUserId changes the app's UID.

 Nope, both apps just need to be signed with the same cert.  They will
 both be installed with the same underlying linux user id.  What you're
 talking about is what's required when you need two apps to run in the
 same linux process.


Hm, I'm definitely getting different UIDs for apps signed with the same key:

ls -l /data/data/org.appA/shared_prefs
-rw-rw1 app_2app_2  469 May 31 03:30
org.appA_preferences.xml
# ls -l /data/data/org.appB/shared_prefs
-rw-rw1 app_87   app_87 933 May 30 00:48
org.nick.appB_preferences.xml

Which is consistent with the docs (nothing about signatures):

* 'At install time, Android gives each package a distinct Linux user ID'
* 'Any data stored by an application will be assigned that application's
user ID, and not normally accessible to other packages.'

It does say that in order to use sharedUserId you need to sign with the
same key:

'Note that in order to retain security, only two applications signed
with the same signature (and requesting the same sharedUserId)
will be given the same user ID.'

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


[android-developers] Communication with Flash (swf)

2011-05-31 Thread sleith
Hi,
Is there anyway app/webview can communicate with flash?
Is fscommand able to do this? Or anyone have tried using tcp/udp
communication to communicate with flash?
need help, Thanks .

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


[android-developers] System.loadLibrary() failes in Android with UnsatisfiedLinkError

2011-05-31 Thread Viju
Hi,

Can anyone help me to resolve this issue in Android:

I'm developing an application with an open source library (i.e.
jpcap).

I have added the lib folder in my project which contains both
jpcap.dll and libjpcap.so. Also I have given the Native library
location to this lib folder.

When I try to call this function System.loadLibrary(jpcap) it throws
UnsatisfiedLinkError and the applications is getting crashed.

Can anyone help me to resolve this issue.


regards,
Vijay

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

2011-05-31 Thread Nikolay Elenkov
On Tue, May 31, 2011 at 5:27 PM, Viju mail2vija...@gmail.com wrote:

 I have added the lib folder in my project which contains both
 jpcap.dll and libjpcap.so. Also I have given the Native library
 location to this lib folder.

 When I try to call this function System.loadLibrary(jpcap) it throws
 UnsatisfiedLinkError and the applications is getting crashed.


You certainly don't need the dll. Did you compile libjpcap.so for
Android (ARM)?

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

2011-05-31 Thread Vijay
Can you please tellme How can I do that ? (i.e compiling it for ARM?
I'm running my SDK in windows xp.?


regards.
Vijay

On Tue, May 31, 2011 at 2:02 PM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Tue, May 31, 2011 at 5:27 PM, Viju mail2vija...@gmail.com wrote:
 
  I have added the lib folder in my project which contains both
  jpcap.dll and libjpcap.so. Also I have given the Native library
  location to this lib folder.
 
  When I try to call this function System.loadLibrary(jpcap) it throws
  UnsatisfiedLinkError and the applications is getting crashed.
 

 You certainly don't need the dll. Did you compile libjpcap.so for
 Android (ARM)?

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

2011-05-31 Thread crossdev
maybe your eclipse couldn't find your java vm

try this one:
From main menu: Window-Preferences
click java section
then clik installed JREs
then you can add a new JRE home


On May 28, 7:53 am, bob b...@coolgroups.com wrote:
 I am getting this error of Cannot connect to VM.  Anyone know what
 causes this or how to fix it?

 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: How to read data from ./asset/ files correctly?

2011-05-31 Thread Jens
i think this is incorrect and slow.

Hell yes. Do you need the entire asset in-memory? Then you should
either consider reading it into a ByteArrayOutputStream or
allocate the required bytes as an array after determining the size of
the asset.

I do not know how to get datasize from inputstream and i read data two
time :-)

Use the android.content.res.AssetFileDescriptor  call #getLength() /
#getDeclaredLength()?

Works like a charm. Remember to call #close() on the
AssetFileDescriptor.

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

2011-05-31 Thread String
Having been forced to enable install-to-SD for a couple of apps which 
feature widgets, this is a bit of a sore spot with me. I say forced 
because the average user doesn't understand the issues involved, only 
understands that you (the dev) haven't enabled install-to-SD, so they 
downrate you for it. Then other average users downrate you because 
their widgets disappeared. It's a no-win situation.

I think your reading of the docs is correct, that the only downside 
currently is that appwidgets do get removed if/when the app gets moved to 
SD. As to whether more serious problems may arise in the future, who can 
say? Probably nobody at this point, and those who might (the framework team) 
won't, because they basically aren't allowed to talk about future plans.

My preference would be for the system to ask the user before it moves an app 
with widgets to the SD card, or (at the very least) warns the user of these 
consequences if they move an app manually. Unfortunately, this change would 
have to be made at the system level, and somehow it doesn't seem likely.

As a workaround, I'm currently in the process of implementing a warning of 
my own in the app's main activity. It'll check to see if it's been installed 
to SD, and if it has, issue a warning of its own. That's suboptimal - 
there's no guarantee the user will open the main activity in a timely manner 
to see this warning - but it's better than nothing, and will hopefully 
reduce the 1* Market comments.

As it stands, I can stomach informing users that it's either 
 run-from-sd-card OR show widgets but NOT both.


How are you planning to inform your users of this? Be aware that I already 
have it in my Market description, but most users don't read that.

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: Network operation every half sec.

2011-05-31 Thread crossdev
hello mahavir,


maybe you should try it at android device,
because in some case i found that emulator work slowly
i use eclipse + api 11 at ubuntu lucid

you can also try to check if your network connection


On May 29, 7:40 pm, Mahavir Jain vir.j...@gmail.com wrote:
 Anyone out there who had handled such type of scenarios previously?

 Regards,
 Mahavir

 On Sun, May 29, 2011 at 7:51 AM, Mahavir Jain vir.j...@gmail.com wrote:
  Hi,

  I want to make network operation in every half sec and depending on data, i
  want to update the ListView continuously.

  Following is my approach: Using thread and handler.postDelayed, it makes
  the network request every sec and update only those views of the row in
  ListView which needs to be updated. It does not update ListView using
  notifyDatasetChanged().

  Though it updates the UI, but it takes time in updating the UI. Is it
  because, I am using emulator?

  Is this the right approach for this scenario? Any other best approach for
  this?

  Anyone handled such scenarios previously?

  Thanks in advance.

  Regards,

  Mahavir Jain

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

2011-05-31 Thread Mark Carter
Thanks for the feedback.

On 31 May 2011 16:58, String sterling.ud...@googlemail.com wrote:

 As a workaround, I'm currently in the process of implementing a warning of
 my own in the app's main activity. It'll check to see if it's been installed
 to SD, and if it has, issue a warning of its own. That's suboptimal -
 there's no guarantee the user will open the main activity in a timely manner
 to see this warning - but it's better than nothing, and will hopefully
 reduce the 1* Market comments.

 As it stands, I can stomach informing users that it's either
 run-from-sd-card OR show widgets but NOT both.


 How are you planning to inform your users of this? Be aware that I already
 have it in my Market description, but most users don't read that.

 String


Yes, I was thinking of something similar. What is the best way to check the
app has been moved to SD?

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

2011-05-31 Thread Paolo
UPDATE:
I have been able to write (layers.xml) what I want on a XML file using
Layer-List.
so I can use this drawable on a ImageView normally doing:

ImageView
android:layout_height=wrap_content
android:layout_width=wrap_content
android:src=@drawable/layers /

Everything works fine! But this isn't my aim.

Actually I'd like to use this drawable as a background of my custom
view, so I need to use it into the onDraw() method applying it on the
canvas of my View.

...
Bitmap img = BitmapFactory.decodeResource(context.getResources(),
R.drawable.layers);
canvas.drawBitmap(img, null, rect, paint);
...

I've this error at runtime:
05-31 10:59:35.289: ERROR/AndroidRuntime(1702):
java.lang.NullPointerException
05-31 10:59:35.289: ERROR/AndroidRuntime(1702): at
android.graphics.Canvas.throwIfRecycled(Canvas.java:954)
05-31 10:59:35.289: ERROR/AndroidRuntime(1702): at
android.graphics.Canvas.drawBitmap(Canvas.java:1012)
05-31 10:59:35.289: ERROR/AndroidRuntime(1702): at
it.myPackageTest.view.test.CustomView.onDraw(CustomView.java:79)
...

I don't call recycle(), so how it is possible? Maybe I can't use
layers on a canvas? I really don't know! :(
Please tell me something!

Thanks in advance!


On 30 Mag, 18:50, Paolo brand...@gmail.com wrote:
 Hi there!
 I need to draw a drawable on a canvas. I'd like to avoid using a png
 file, but I'd like to draw it with shapes.
 The final result must be an unique drawable composed by two rects
 overlayed, one smallest than the other one.

 How can I do that in XML? I've seen layer-list but I can't figure out
 if it is useful for my achivement besides the fact I have a runtime
 exception... .:(

 Can anyone hepl me, please?

 Thanks in advance.

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


Re: [android-developers] Re: App Widget considerations when enabling installLocation in manifest

2011-05-31 Thread String
On Tuesday, May 31, 2011 10:08:19 AM UTC+1, Mark Carter wrote:

What is the best way to check the app has been moved to SD?


http://developer.android.com/reference/android/content/pm/ApplicationInfo.html#FLAG_EXTERNAL_STORAGE

http://developer.android.com/reference/android/content/pm/ApplicationInfo.html#FLAG_EXTERNAL_STORAGEGet
 
an instance of the ApplicationInfo object with code like this:

PackageManager pkgMgr = context.getPackageManager();
ApplicationInfo appInfo = pkgMgr.getApplicationInfo(your.package.name, 0);

It'd be nice to put code like this in the appwidget itself, so that if the 
user has one on their home screen, you could notify them more proactively. 
But annoyingly, the appwidget doesn't get notified that it's going away; 
no ACTION_APPWIDGET_DISABLED, no ACTION_APPWIDGET_DELETED, nothing. It just 
disappears... but any service you might have scheduled to update said 
appwidget *doesn't* get removed, it's left to run with no widget to update.

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: Building composed shapes

2011-05-31 Thread Paolo
UPDATE 2:

I found out the problem!

BitmapFactory.decodeResource(context.getResources(),
R.drawable.layers);

return always NULL, what could be the problem for you?

On 31 Mag, 11:15, Paolo brand...@gmail.com wrote:
 UPDATE:
 I have been able to write (layers.xml) what I want on a XML file using
 Layer-List.
 so I can use this drawable on a ImageView normally doing:

 ImageView
     android:layout_height=wrap_content
     android:layout_width=wrap_content
     android:src=@drawable/layers /

 Everything works fine! But this isn't my aim.

 Actually I'd like to use this drawable as a background of my custom
 view, so I need to use it into the onDraw() method applying it on the
 canvas of my View.

 ...
 Bitmap img = BitmapFactory.decodeResource(context.getResources(),
 R.drawable.layers);
 canvas.drawBitmap(img, null, rect, paint);
 ...

 I've this error at runtime:
 05-31 10:59:35.289: ERROR/AndroidRuntime(1702):
 java.lang.NullPointerException
 05-31 10:59:35.289: ERROR/AndroidRuntime(1702):     at
 android.graphics.Canvas.throwIfRecycled(Canvas.java:954)
 05-31 10:59:35.289: ERROR/AndroidRuntime(1702):     at
 android.graphics.Canvas.drawBitmap(Canvas.java:1012)
 05-31 10:59:35.289: ERROR/AndroidRuntime(1702):     at
 it.myPackageTest.view.test.CustomView.onDraw(CustomView.java:79)
 ...

 I don't call recycle(), so how it is possible? Maybe I can't use
 layers on a canvas? I really don't know! :(
 Please tell me something!

 Thanks in advance!

 On 30 Mag, 18:50, Paolo brand...@gmail.com wrote:



  Hi there!
  I need to draw a drawable on a canvas. I'd like to avoid using a png
  file, but I'd like to draw it with shapes.
  The final result must be an unique drawable composed by two rects
  overlayed, one smallest than the other one.

  How can I do that in XML? I've seen layer-list but I can't figure out
  if it is useful for my achivement besides the fact I have a runtime
  exception... .:(

  Can anyone hepl me, please?

  Thanks in advance.

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


[android-developers] Installing apk package from my application

2011-05-31 Thread maha rm
Hi,

 I'm trying to write an application which will install the apk from a
specified location. The code I've added is

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

File apkFile = new File(/data/install_flashplayer.apk);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(apkFile),
application/vnd.android.package-archive);
int reqCode = 0;
startActivityForResult(intent,reqCode);
Log.v(REsult,reqCode = +reqCode);

}

This is installing the install_flashplayer.apk from the location /data.
The problem i'm facing is that after the package is installed, it shows a
messagebox with the button Done. I'm expecting the behaviour of pressing
Done button should close the application itself rather than only closing the
messagebox. Right now, It closes the message box and package installer and
shows my application.

Can anyone help me how to get notified that Done button is pressed and
how to close the application once it is clicked?

Thanks,
Maha

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

2011-05-31 Thread Jérôme Beau
Hello Mah and all,

I have exactly the same problem as Surfer has, with the two conditions you 
mention met. I have sign my application with the platform (SDK for the 
moment, a real one later on) key+cert, and 
have android:sharedUserId=android.uid.system (as well as the 
granted android.permission.INSTALL_PACKAGES permission) in my manifest.
But still, after running :

  Intent myIntent = new Intent(Intent.ACTION_PACKAGE_INSTALL, 
Uri.parse(file:///android_asset/otherApp.apkfile:/android_asset/otherApp.apk
));

   myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

   startActivity(myIntent);

 
I still get an exception with No Activity found to handle Intent { 
act=android.intent.action.PACKAGE_INSTALL 
dat=file:///android_asset/otherApp.apk flg=0x1000 } 

Does this mean this no system activity (such as the PackageInstallActivity) 
is able to handle such an intent ?

Thanks for your help.

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

Re: [android-developers] Re: App Widget considerations when enabling installLocation in manifest

2011-05-31 Thread Mark Carter
Thanks.

I wonder if it's possible to listen for a Move to SD event (is there a
broadcast intent?). If it were, then the app could at that moment raise a
notification warning the user that widgets would no longer be available.

On 31 May 2011 17:28, String sterling.ud...@googlemail.com wrote:

 On Tuesday, May 31, 2011 10:08:19 AM UTC+1, Mark Carter wrote:

 What is the best way to check the app has been moved to SD?



 http://developer.android.com/reference/android/content/pm/ApplicationInfo.html#FLAG_EXTERNAL_STORAGE


 http://developer.android.com/reference/android/content/pm/ApplicationInfo.html#FLAG_EXTERNAL_STORAGEGet
 an instance of the ApplicationInfo object with code like this:

 PackageManager pkgMgr = context.getPackageManager();
 ApplicationInfo appInfo = pkgMgr.getApplicationInfo(your.package.name,
 0);

 It'd be nice to put code like this in the appwidget itself, so that if the
 user has one on their home screen, you could notify them more proactively.
 But annoyingly, the appwidget doesn't get notified that it's going away;
 no ACTION_APPWIDGET_DISABLED, no ACTION_APPWIDGET_DELETED, nothing. It just
 disappears... but any service you might have scheduled to update said
 appwidget *doesn't* get removed, it's left to run with no widget to
 update.

 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] Re : Re: Application installation

2011-05-31 Thread maha rm
Hi,

  Looks like the path of apk is wrong and it shoudn't be start with
file:/// protocol. Place your apk in android_asset and give the path
direclty like

   Uri.parse(/android_asset/otherApk.apk

Thanks,
Maha

2011/5/31 Jérôme Beau javar...@gmail.com

 Hello Mah and all,

 I have exactly the same problem as Surfer has, with the two conditions you
 mention met. I have sign my application with the platform (SDK for the
 moment, a real one later on) key+cert, and
 have android:sharedUserId=android.uid.system (as well as the
 granted android.permission.INSTALL_PACKAGES permission) in my manifest.
 But still, after running :

Intent myIntent = new Intent(Intent.ACTION_PACKAGE_INSTALL, Uri.parse(
 file:///android_asset/otherApp.apk));

myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(myIntent);


 I still get an exception with No Activity found to handle Intent {
 act=android.intent.action.PACKAGE_INSTALL
 dat=file:///android_asset/otherApp.apk flg=0x1000 }

 Does this mean this no system activity (such as the PackageInstallActivity)
 is able to handle such an intent ?

 Thanks for your help.

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

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

2011-05-31 Thread Mark Murphy
Simply ignore that warning.

On Tue, May 31, 2011 at 3:07 AM, Sivaprakash
sivaprakashshanmu...@gmail.com wrote:
 Hi


 I have written a simple application and tried to debug it with the device. I
 am getting following warning message when I enable
 android:debuggable=true in my manifest file if I remove everything goes
 well and still it gets deployed into the device? Any clues to avoid this
 warning.



 [2011-05-31 11:47:03 - Test] ActivityManager: Starting: Intent {
 act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
 cmp=com.company.test/.Explorer }
 [2011-05-31 11:47:03 - Test] ActivityManager: Warning: Activity not started,
 its current task has been brought to the front

 --
 - Prakash.

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



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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Re: App Widget considerations when enabling installLocation in manifest

2011-05-31 Thread String
On Tuesday, May 31, 2011 10:51:30 AM UTC+1, Mark Carter wrote:

I wonder if it's possible to listen for a Move to SD event (is there a 
 broadcast intent?).


If there is, it's undocumented (or well hidden). The most likely looking 
Intent in the docs is android.intent.action.PACKAGE_CHANGED, and I've just 
confirmed that it doesn't get broadcast when an app is moved to SD.

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 much HTML5 does the Honeycomb Android Browser support?

2011-05-31 Thread Scythe
218 + 3 bonus on Galaxy Tab 10.1v, with 3.0.

On May 31, 7:11 am, Peter Sinnott psinn...@gmail.com wrote:
 I wouldn't wish the honeycomb emulator on my worst enemy.

 My transformer gets 228 + 3 bonus points.

 On May 31, 4:16 am, Francisco Dalla Rosa soares soa...@argo.bz
 wrote:







  ever thought of accessing that URL through the emulator?

  2011/5/31 Robert Massaioli robertmassai...@gmail.com

   I was wondering how much of the HTML5 spec a Honeycomb Tablet supports. So
   could somebody with 3.0 or 3.1 please go to this page and tell me what
   results you get?http://html5test.com/index.html

   I hereby swear that this is not a spam link. I really want to know what
   HTML5 features I can use.

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

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

2011-05-31 Thread Atul Prakash
I recommend you to install cygwin along with Android NDK. Compile your
native code using cygwin, refresh your project in Project Explorer
then run the activity.

Rgds/ Atul Prakash Singh

On May 31, 1:36 pm, Vijay mail2vija...@gmail.com wrote:
 Can you please tellme How can I do that ? (i.e compiling it for ARM?
 I'm running my SDK in windows xp.?

 regards.
 Vijay

 On Tue, May 31, 2011 at 2:02 PM, Nikolay Elenkov
 nikolay.elen...@gmail.comwrote:







  On Tue, May 31, 2011 at 5:27 PM, Viju mail2vija...@gmail.com wrote:

   I have added the lib folder in my project which contains both
   jpcap.dll and libjpcap.so. Also I have given the Native library
   location to this lib folder.

   When I try to call this function System.loadLibrary(jpcap) it throws
   UnsatisfiedLinkError and the applications is getting crashed.

  You certainly don't need the dll. Did you compile libjpcap.so for
  Android (ARM)?

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

2011-05-31 Thread Mark Murphy
On Tue, May 31, 2011 at 7:24 AM, Scythe scythe...@gmail.com wrote:
 218 + 3 bonus on Galaxy Tab 10.1v, with 3.0.

Same on a XOOM with 3.1.

By way of comparison, Chrome 12 on Linux scores 291 and 13 bonus points.

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

Android Training in NYC: http://marakana.com/training/android/

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


[android-developers] SAMPLE CODE - creating-remote-background-service

2011-05-31 Thread Jignesh Kakkad(Jiggy)
Hi Guys,

I thought this sample code would be useful to someone.

http://tips-tricks.weblogforfun.com/2011/05/31/creating-remote-background-service/

Please feel free to comment on the same (if you think there is any other way
to improve it)

Thanks

Regards
Jiggy
Mobile news:

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

[android-developers] Monkey stress Tool

2011-05-31 Thread Gaytri Batra
Hello All,

Could anyone please give me an example of using monkey as a stress tool for
android App. How to use in devices/ emulator. I am completely new to this.
So I would appreciate if anyone explain me in the complete by taking an
example.

Thanks in advance.

Regards,
Gaytri

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

2011-05-31 Thread Mark Murphy
You do not need a remote service within a single application, as
your sample illustrates. While you can use AIDL and binding for local
services, it's unclear if there are any benefits compared to just
using a local Binder. Remote services -- where the client and service
are in separate applications -- *do* need AIDL if you want to use the
binding pattern.

Also, using setClassName() as you have it is an anti-pattern. For
local services, use the constructor that takes the actual class. For
remote services, the service should publish an intent-filter that is
stable (e.g., using a custom action string). Even better is to publish
one intent-filter per version of the exported API. Your code as
written will break when the service author refactors their code, and
the service has no way to know which version of the service's API the
client wants to receive.

Also, your client (Activity) never unbinds from the service, which is
bad form. If you bind to the service, unbind from it. If the service
is supposed to live past the end of the client's life, you should be
using startService().

On Tue, May 31, 2011 at 7:45 AM, Jignesh Kakkad(Jiggy)
jig2n...@gmail.com wrote:
 Hi Guys,
 I thought this sample code would be useful to someone.
 http://tips-tricks.weblogforfun.com/2011/05/31/creating-remote-background-service/
 Please feel free to comment on the same (if you think there is any other way
 to improve it)
 Thanks
 Regards
 Jiggy
 Mobile news:

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



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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Monkey stress Tool

2011-05-31 Thread Mark Murphy
On Tue, May 31, 2011 at 7:50 AM, Gaytri Batra gaytri.ba...@gmail.com wrote:
 Could anyone please give me an example of using monkey as a stress tool for
 android App. How to use in devices/ emulator. I am completely new to this.
 So I would appreciate if anyone explain me in the complete by taking an
 example.

http://developer.android.com/guide/developing/tools/monkey.html

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

Android Training in NYC: http://marakana.com/training/android/

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


[android-developers] change the image of the individual row

2011-05-31 Thread Amritesh
I am developing an application which will contain the lists of songs
every row has play image .On click of this image it should change to a
green one (like on and off), but if there is another image in
different row is on it should get off.

I am able to find the current position and the previous position of
the row whose image is on but based on the position of the row i am
not able to get the corresponding imageview  .
I am trying with the setTag() and getTag() method but  get tag method
is returning null for me.

Any help would be appreciated.Please bail me out of this.
below is my code


package com.fstech.cslist;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;




import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.ToggleButton;

public class CustomList extends Activity {
ArrayListString pname;
ListView projectList;
private LayoutInflater mInflater;
 private boolean[] itemToggled;
 int Position;
 ImageView play;
 int size;
 int previousposn=0;
int currentposn=0;
int cPosition;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
projectList = (ListView) findViewById(R.id.projectlist);
pname = new ArrayListString();
pname.add(first);
pname.add(fssecond);
pname.add(third);
pname.add(fourth);
pname.add(fifthe);
pname.add(sixth);
mInflater = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
size  = pname.size();
itemToggled = new boolean[pname.size()];
Arrays.fill(itemToggled, false);
projectList.setAdapter(new ArrayAdapterString(this,
R.layout.list_item,pname){
ArrayListString ar =new ArrayListString();

@Override
public View getView(int position, View convertView, 
ViewGroup
parent) {
 Position=position;
View row;

if (null == convertView) {
row = 
mInflater.inflate(R.layout.list_item, null);
} else {
row = convertView;
}
TextView tv = (TextView) 
row.findViewById(android.R.id.text1);
tv.setText(getItem(position));

play=(ImageView)row.findViewById(R.id.roundplay);

play.setBackgroundResource(R.drawable.roundplay);
ImageView icon = (ImageView) 
row.findViewById(R.id.icon);
icon.setImageResource(R.drawable.roundplay);
play.setTag(String.valueOf(position));
play.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method 
stub

 
cPosition=Integer.parseInt(v.getTag().toString());
 previousposn=currentposn;
currentposn=cPosition;

View view 
=v.findViewWithTag(v.getTag(Position));
//(View) play.getTag(1);

if(view!=null)
System.out.println(Tag is not 
returning object);
else
System.out.println(Tag 
is not returning object);
}


});




return row;
}

});

projectList.setOnItemClickListener(new
AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView? listView, View
itemView, int position, long id) {
itemToggled[position] = ! itemToggled[position];
}
});

}
}


[android-developers] Re: Very puzzling crash report from user

2011-05-31 Thread andrew_esh
Is it possible that the problem is not the device, but that the user
is the only one who has selected a color scheme that requires a color
your application doesn't have access to? Perhaps is personal settings
cause your application to try to guess at a certain PrimaryInverse
color that would fit the scheme, but isn't actually available in the
resources.

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


[android-developers] Generating .jar from Android service project

2011-05-31 Thread DanielSchH
Hello,

I have a Android Project which implements a android-service. Now I
want to share this, without publishing the code.
I have tried to generate a .jar and added it to another android
project, but then I get a FileNotFoundException: AndroidManifest.xml

Maybe because the service-project contains a Manifest.

Hase somebody an idea how to solve it?

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


Re: [android-developers] how to place widget by default on homescreen

2011-05-31 Thread TreKing
On Tue, May 31, 2011 at 1:20 AM, Abhishek Kumar Gupta
akgaec2...@gmail.comwrote:

 I am a newbie, I want to place a widget by default on homescreen i.e., when
 we switch-on the phone(or emulator) that particular widget should display on
 the homescreen.


You can't do this - widgets are placed on the homescreen by the user.

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

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

Re: [android-developers] Installing apk package from my application

2011-05-31 Thread TreKing
On Tue, May 31, 2011 at 4:30 AM, maha rm maha2...@gmail.com wrote:

 Can anyone help me how to get notified that Done button is pressed and
 how to close the application once it is clicked?


You probably can't get notified of that button click, but there is a
broadcast when a package is installed ...

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

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

[android-developers] Re: Building composed shapes

2011-05-31 Thread Paolo
SOLUTION:
layer = (LayerDrawable) getResources().getDrawable(R.drawable.layers);
layer.setBounds(** what you want **);
layer.mutate();
layer.draw(canvas);

On 31 Mag, 11:29, Paolo brand...@gmail.com wrote:
 UPDATE 2:

 I found out the problem!

 BitmapFactory.decodeResource(context.getResources(),
 R.drawable.layers);

 return always NULL, what could be the problem for you?

 On 31 Mag, 11:15, Paolo brand...@gmail.com wrote:



  UPDATE:
  I have been able to write (layers.xml) what I want on a XML file using
  Layer-List.
  so I can use this drawable on a ImageView normally doing:

  ImageView
      android:layout_height=wrap_content
      android:layout_width=wrap_content
      android:src=@drawable/layers /

  Everything works fine! But this isn't my aim.

  Actually I'd like to use this drawable as a background of my custom
  view, so I need to use it into the onDraw() method applying it on the
  canvas of my View.

  ...
  Bitmap img = BitmapFactory.decodeResource(context.getResources(),
  R.drawable.layers);
  canvas.drawBitmap(img, null, rect, paint);
  ...

  I've this error at runtime:
  05-31 10:59:35.289: ERROR/AndroidRuntime(1702):
  java.lang.NullPointerException
  05-31 10:59:35.289: ERROR/AndroidRuntime(1702):     at
  android.graphics.Canvas.throwIfRecycled(Canvas.java:954)
  05-31 10:59:35.289: ERROR/AndroidRuntime(1702):     at
  android.graphics.Canvas.drawBitmap(Canvas.java:1012)
  05-31 10:59:35.289: ERROR/AndroidRuntime(1702):     at
  it.myPackageTest.view.test.CustomView.onDraw(CustomView.java:79)
  ...

  I don't call recycle(), so how it is possible? Maybe I can't use
  layers on a canvas? I really don't know! :(
  Please tell me something!

  Thanks in advance!

  On 30 Mag, 18:50, Paolo brand...@gmail.com wrote:

   Hi there!
   I need to draw a drawable on a canvas. I'd like to avoid using a png
   file, but I'd like to draw it with shapes.
   The final result must be an unique drawable composed by two rects
   overlayed, one smallest than the other one.

   How can I do that in XML? I've seen layer-list but I can't figure out
   if it is useful for my achivement besides the fact I have a runtime
   exception... .:(

   Can anyone hepl me, please?

   Thanks in advance.

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


[android-developers] Immediate need of Business Analyst with utility background in MIami,FL

2011-05-31 Thread Emraaz khan
Hello,
Hope you are doing well.
Please go through the Job Description and send me your updated resume with
contact information @ emr...@panzersolutions.com

Title  :Business Analyst with utility background
Location   :Miami,FL
Duration  :7+ Contract

MUST
7+ yrs of BA experience
Utility background (energy, electric, water management, ami, dsm)
Must be able to communicate well with the business (non-technical users) and
the technical team. The jargon they use for the users will be different from
what they use for the technical team. They must be able to translate user
requirements to the technical team in a way they will understand, and vice
versa.
DSM (Demand Side Management)


 Warm Regards,
Emraaz Khan,
Panzer Solutions LLC
emr...@panzersolutions.com
Direct: 203-813-2052

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Speeding up builds on large projects - rename png to PNG

2011-05-31 Thread [ DevNull ]
Holly WTF!

That's funny!  Thanks for the tip! =)


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

2011-05-31 Thread Prakash Iyer
I just tried this on a 2.3.3 tablet and it was interesting to see Firefox
score 235 with 9 bonus points (for comparison the default browser was 182
with 1 bonus point).

On Tue, May 31, 2011 at 7:33 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, May 31, 2011 at 7:24 AM, Scythe scythe...@gmail.com wrote:
  218 + 3 bonus on Galaxy Tab 10.1v, with 3.0.

 Same on a XOOM with 3.1.

 By way of comparison, Chrome 12 on Linux scores 291 and 13 bonus points.

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

 Android Training in NYC: http://marakana.com/training/android/

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


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

2011-05-31 Thread Drew
Thanks for the link...  That's a shame that apps on the SD card have
so many limitations.  I'd rather not disable the ability to move to
SD, as this app is much more than simply an input method, and I'd get
far more complains about the inability to move to SD than I have about
the input method being disabled.  I'll add something to our Android
Market listing about it, but it seems like Android should either add
something to the input method enable screen about it, or the move to
SD screen, or both.

Drew

On May 23, 5:23 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Have you seen this?

 http://developer.android.com/guide/appendix/install-location.html#Sho...

  Applications That Should NOT Install on External Storage
  Input Method Engines
      Your IME will be replaced by the default IME. When external
      storage is remounted, the user can open system settings to enable
      your IME again.

 Do you see this happen when the phone's memory card is mounted on a
 computer? If so, this is expected, per the document above.

 -- Kostya

 24.05.2011 1:17, Drew ?:









  After further debugging, it appears this problem is indeed an Android
  bug, and is only present if the app in question is moved to the SD
  card.  I've reproduced with every app containing an input method that
  lets you move to SD so far.

  I guess I'll report it through more conventional channels.

  Drew

  On May 17, 3:58 pm, Drewzit...@gmail.com  wrote:
  One of our Android applications contains an input method.  A user
  recently reported that the input method is randomly being disabled.
  In other words, it's mysteriously no longer checked in Language
  keyboard settings.

  I can't reproduce, of course, and I wouldn't know where to begin
  debugging such a problem, since the code that enables and disables
  input methods is totally external to our application.

  The input method is originally based off the SoftKeyboard sample app
  that comes with the Android SDK.  I've had to fix several bugs that
  were originally present in the SoftKeyboard sample app, so I wouldn't
  doubt a similar bug could be causing this, but I can't for the life of
  me think of a bug that would cause an input method to be disabled.

  He reports that other input methods, such as Swype and the default
  Android keyboard, don't behave this way.

  He has a Samsung Epic 4G running Android 2.2, if that matters.

  Any debugging ideas would be greatly appreciated.  Thanks.

  Drew

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

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


[android-developers] Re: Open/View Pdf, Doc, Xls and Ppt files from Internal storage

2011-05-31 Thread Ankit Shah
Your pointers helped...

Thanks Mark.

On May 9, 2:39 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, May 9, 2011 at 1:11 AM, Ankit Shah iankits...@gmail.com wrote:
  I would like to open/view PDF/Doc files stored in internal storage
  (i.e file:///data/data/package_name/files/test.pdf)

  Is there any way to generate Uri object for file stored in internale
  storage
  (i.e file:///data/data/package_name/files/test.pdf)

 Use Uri.fromFile().

  Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
  Uri data = Uri.fromFile(file:///data/data/package_name/files/
  test.pdf);

 A String is not a File. Use a File with Uri.fromFile().

 Also, bear in mind that this won't work for your desired purposes
 unless the file is world-readable. You can also create a
 ContentProvider to serve a local file, then use the content:// Uri in
 your Intent.

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

 Android Training...At Your Office:http://commonsware.com/training

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

2011-05-31 Thread Kristopher Micinski
Just FYI, if you truly intend for your device to make a network operation
every half second, users not constantly around wifi may dislike you... And I
would assume this would kill battery life...

Kris

On May 28, 2011 10:22 PM, Mahavir Jain vir.j...@gmail.com wrote:

Hi,

I want to make network operation in every half sec and depending on data, i
want to update the ListView continuously.

Following is my approach: Using thread and handler.postDelayed, it makes the
network request every sec and update only those views of the row in
ListViewwhich needs to be updated. It does not update
ListView using notifyDatasetChanged().

Though it updates the UI, but it takes time in updating the UI. Is it
because, I am using emulator?

Is this the right approach for this scenario? Any other best approach for
this?

Anyone handled such scenarios previously?

Thanks in advance.

Regards,

Mahavir Jain

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

2011-05-31 Thread Mark Murphy
On Tue, May 31, 2011 at 10:19 AM, Drew zit...@gmail.com wrote:
 That's a shame that apps on the SD card have
 so many limitations.

I think that the long-term direction is to blur some of the space
distinctions between internal and external storage, so that apps on
the SD card can fade into history.

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

Android Training in NYC: http://marakana.com/training/android/

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


[android-developers] questions about posting via e-mail (and why, for some unknown reason, mine bounce)

2011-05-31 Thread Spooky
First question:  is everyone else able to post via e-mail?
If so, how long, after you were removed from moderation,
did it take before you were allowed to do so?  Was it a
month or so?  Longer?

Second, if others ARE able to post via e-mail, why
can't I?  Who do I contact to get this resolved?

Can ANYONE help me figure this out?  Please?

dG
:r .sigdir/personal_sig.05

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


[android-developers] How can I maintain tab navigation when I call intent in tab contents?

2011-05-31 Thread Boram Han

Dear all.

I have a tab acitivity with 4 tabs. They are all defined with intents.
When I call startActivity in one of those activities, then tab
navigation is gone!

I want to maintain tab navigation when i call startactivitiy?

Any help will be highly appreciated
Rgds

Boram.

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


[android-developers] .Net Developer // Ft Lauderdale,FL // 6+ Contract

2011-05-31 Thread Emraaz khan
Hello,
Hope you are doing well.
I am a technical recruiter with Panzer Solutions LLC Software Implementing
and IT consulting company located in CT. Please go through the Job
Description and send me your updated resume with contact information.

Title  :   .Net Developer
Location:Ft Lauderdale,FL
Duration: 6+ Contract

Must Haves:
3-5 years .NET web development
VB.NET
C#
ASP.NET
Visual Studio.NET 2.0, 3.0, 3.5
SQL
WCF
Ajax
HTML/DHTML/XML
Troubleshooting/debugging application performance problems, and use of
code profiling
tools , stack traces, included with .Net Framework 2.0 and higher

 Warm Regards,
Emraaz Khan,
Panzer Solutions LLC
emr...@panzersolutions.com
Direct: 203-813-2052

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

[android-developers] Re: Two-way listeners/observers

2011-05-31 Thread Oceanblue


Oh, I didn't know that. The API docs do not mention that.  Thanks for
the info!

On May 27, 2:59 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 It's just a shortcut:

     public final void runOnUiThread(Runnable action) {
         if (Thread.currentThread() != mUiThread) {
             mHandler.post(action);
         } else {
             action.run();
         }
     }
 to post a Runnable to the UI thread's handler.

 -- Kostya


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


[android-developers] Dialog inflation bug in SDK r11 (3.1)?

2011-05-31 Thread String
I've run into an interesting problem that I think I've narrowed down to a 
regression bug in (at least) the latest version of the Android SDK, and I'm 
hoping someone here can help me confirm it.

The trace of the crash is this:

[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): 
java.lang.IllegalStateException: The specified child already has a parent. 
You must call removeView() on the child's parent first.
[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): at 
android.view.ViewGroup.addViewInner(ViewGroup.java:2929)
[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): at 
android.view.ViewGroup.addView(ViewGroup.java:2824)
[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): at 
android.view.ViewGroup.addView(ViewGroup.java:2804)
[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): at 
com.android.internal.app.AlertController.setupView(AlertController.java:401)
[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): at 
com.android.internal.app.AlertController.installContent(AlertController.java:241)
[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): at 
android.app.AlertDialog.onCreate(AlertDialog.java:314)
[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): at 
android.app.Dialog.dispatchOnCreate(Dialog.java:335)
[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): at 
android.app.Dialog.show(Dialog.java:248)
[54329.978265]  05-28 22:49:34.190 E/AndroidRuntime( 7974): at 
name.udell.convertor.ProConvertActivity.onKeyDown(ProConvertActivity.java:473)

.. where the final line above is in my code, a call to AlertDialog.show(). 
The code leading up to that point is inflating a custom dialog from a layout 
XML resource; the interesting thing is that it was working fine in the 
previous release of the app, and a code compare confirms that it hasn't 
changed in the interim. However, this previous release was built on Feb 28, 
so it was definitely built with an earlier release of the SDK. I can't swear 
if it was built with r9 or 10.

What I'm hoping is that somebody here still has an installation of r9 or r10 
in place that they can try this on, to confirm my suspicion about the nature 
of this bug. It's quite easy to reproduce; the last example at 
http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog (the 
Java in the final code block) will do it. Or, I can easily send a minimal 
test project too.

Thanks... I'm off to try and work around it 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] Re: Input method randomly disabled?

2011-05-31 Thread Chris Stratton
On Tuesday, May 31, 2011 10:29:50 AM UTC-4, Mark Murphy (a Commons Guy) 
wrote:

 On Tue, May 31, 2011 at 10:19 AM, Drew zit...@gmail.com wrote:
  That's a shame that apps on the SD card have
  so many limitations.

 I think that the long-term direction is to blur some of the space
 distinctions between internal and external storage, so that apps on
 the SD card can fade into history.

Yeah... but now the postings from people experience pain from transition 
from USB mass storage to MTP are starting to show up.

USB mass storage - surrendering the file system to an external computer - 
was never a good solution, except for its works everywhere portability. 
Until something post-mass-storage is consistently deployed on most desktops 
and understood by most desktop developers, there may not be a good solution.

 

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

[android-developers] How should I extract the Package Information from New Installed Package Notification

2011-05-31 Thread varinag gold
Hi,

How should I extract the package name and other information from a new
installed package notification in my application.

Thanks in advance
varinag

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

2011-05-31 Thread Chris Stratton
On Tuesday, May 31, 2011 7:26:07 AM UTC-4, Atul Prakash wrote:

 I recommend you to install cygwin along with Android NDK. Compile your 
 native code using cygwin, refresh your project in Project Explorer 
 then run the activity. 
 http://groups.google.com/group/android-developers?hl=en


Specifically, compile it using the android NDK which is an optional 
companion to the SDK. 

cygwin is not specifically needed for a basic build, though it's very useful 
for associated tasks.

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

[android-developers] Permission issues

2011-05-31 Thread Vinicius Carvalho
Hi there! I'm developing an app for Honeycomb using my xoom device.

Now I got stuck, I'm using SQLite, and I need to access my db during
development, just to check if things are right.

But since this is not a rooted device, I can not access my data/data/
com.acme/databases to open my db file.

Is there any way around this?

The DDMS file explorer won't show me the files, I'm guessing that's
because I'm not rooted.

Regards

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


Re: [android-developers] Permission issues

2011-05-31 Thread Mark Murphy
On Tue, May 31, 2011 at 12:08 PM, Vinicius Carvalho
viniciusccarva...@gmail.com wrote:
 Hi there! I'm developing an app for Honeycomb using my xoom device.

 Now I got stuck, I'm using SQLite, and I need to access my db during
 development, just to check if things are right.

 But since this is not a rooted device, I can not access my data/data/
 com.acme/databases to open my db file.

 Is there any way around this?

Write a backup feature in your app that copies the (closed) database
to external storage, then download from there.

Or, develop on an emulator.

Or, write unit test cases using JUnit and the instrumentation framework.

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

Android Training in NYC: http://marakana.com/training/android/

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


[android-developers] Re: System.loadLibrary() failes in Android with UnsatisfiedLinkError

2011-05-31 Thread Chris Stratton
On Tuesday, May 31, 2011 4:27:12 AM UTC-4, Viju wrote:

I'm developing an application with an open source library (i.e. 
 jpcap). 


You are unlikely to get this is to work even when you get the library 
ported, as android applications cannot readily gain the necessary access 
rights to the network interface.

You will probably do better launching a stand alone executable as root, and 
capturing its output from java.  That's not officially supported, but it 
does work at the moment on rooted devices.  
And many devices seem to ship not only with a copy of tcpdump, but a copy 
that runs itself as root.

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

2011-05-31 Thread Dianne Hackborn
PackageManager.getApplicationInfo().

On Tue, May 31, 2011 at 9:03 AM, varinag gold varinagg...@gmail.com wrote:

 Hi,

 How should I extract the package name and other information from a new
 installed package notification in my application.

 Thanks in advance
 varinag

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

2011-05-31 Thread Dianne Hackborn
Or make your app debuggable with android:debuggable=true in the manifest
and use run-as in adb shell to switch to your uid.

On Tue, May 31, 2011 at 9:10 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, May 31, 2011 at 12:08 PM, Vinicius Carvalho
 viniciusccarva...@gmail.com wrote:
  Hi there! I'm developing an app for Honeycomb using my xoom device.
 
  Now I got stuck, I'm using SQLite, and I need to access my db during
  development, just to check if things are right.
 
  But since this is not a rooted device, I can not access my data/data/
  com.acme/databases to open my db file.
 
  Is there any way around this?

 Write a backup feature in your app that copies the (closed) database
 to external storage, then download from there.

 Or, develop on an emulator.

 Or, write unit test cases using JUnit and the instrumentation framework.

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

 Android Training in NYC: http://marakana.com/training/android/

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




-- 
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] Sharing Shared preference

2011-05-31 Thread nirm
Hello all
I want to share data between my application and library.
Can i share or read from one Shared preference?

My thoughts:
1. pass the application context to the library?
2. in the lib: read the app shared pref through appContext

Is this the right way?

Thanks
Nir



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

2011-05-31 Thread Dianne Hackborn
Apps on SD card is cr*p that I wish we'd never needed to do.  The MTP
approach with Honeycomb is far, far better.  Issues with interacting through
MTP from PCs can be worked out; having to use USB mass storage for transfer
has fundamental issues such as requiring a hard partition between the
storage areas, having to unmount during transfer, etc.

On Tue, May 31, 2011 at 9:00 AM, Chris Stratton cs07...@gmail.com wrote:

 On Tuesday, May 31, 2011 10:29:50 AM UTC-4, Mark Murphy (a Commons Guy)
 wrote:

 On Tue, May 31, 2011 at 10:19 AM, Drew zit...@gmail.com wrote:
  That's a shame that apps on the SD card have
  so many limitations.

 I think that the long-term direction is to blur some of the space
 distinctions between internal and external storage, so that apps on
 the SD card can fade into history.

 Yeah... but now the postings from people experience pain from transition
 from USB mass storage to MTP are starting to show up.

 USB mass storage - surrendering the file system to an external computer -
 was never a good solution, except for its works everywhere portability.
 Until something post-mass-storage is consistently deployed on most desktops
 and understood by most desktop developers, there may not be a good 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] Permission issues

2011-05-31 Thread String
On Tuesday, May 31, 2011 5:10:53 PM UTC+1, Mark Murphy (a Commons Guy) 
wrote:

Or, develop on an emulator.

Develop on an emulator for Honeycomb... ROFL. That's a good one, Mark!

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: App Installation Issue

2011-05-31 Thread Chris Stratton
On Tuesday, May 31, 2011 12:18:25 PM UTC-4, Donny Plunkett wrote:

 I've developed a Timer App that consists of 1 count down timer and 1 count 
 up timer.  I recently installed it to my Droid X phone for the first time 
 from by connecting my phone to my development box via USB, running the app 
 from the Eclipse IDE, choosing my phone from the Eclipse device list.  The 
 installation worked.  However, when I run my Timer App on my phone and 
 another app runs concurrently, my phone freezes up and I have to pull the 
 battery to unlock the phone.   For example, I was running my Timer App and 
 while it was running, I received a text message.  This caused the phone to 
 freeze up.  Another time, the Timer App was running, I opened up a web 
 browser while it was running, and this caused the phone to freeze up.  

 I don't know what's causing this problem as this is the first Android App 
 I've developed and installed to my phone.  Under my phone's app settings, I 
 have 'Unknown Sources' checked.  Under the phone's App Settings-Development 
 settings.  USB debugging is checked, Stay Awake is Checked.  My app manifest 
 file has debuggable set to true.


That sounds frustrating - rest assured though that it is not your fault.  
Nothing you can do without rooting the phone (or perhaps exploiting some odd 
corners of the device administrator interface?) should be able to make the 
phone unresponsive for more than the application not responding timeout - 
which is normally a few seconds but up to about 30? one some devices.

So it seems like you've tripped over a bug in the build of android on that 
phone.  Likely there are problems in your code as well - you can probably do 
a better job of handling the activity lifecycle.  But getting it wrong 
should only make your app mis-operate - it should not lock up the phone.
 

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

[android-developers] Fixed UserId for APK

2011-05-31 Thread ARM_SOC
I created the APK, It has different UserId in different phome/Device.
I need constant UserId for this APK independent of any Hardware. Like
App_50- 10050.

Thanks in advance

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


Re: [android-developers] Installing apk package from my application

2011-05-31 Thread Dianne Hackborn
Note that installing from the SD card is fundamentally dangerous because
another app can replace that file with their own and cause the user to
install something different than you intend.

On Tue, May 31, 2011 at 2:30 AM, maha rm maha2...@gmail.com wrote:

 Hi,

  I'm trying to write an application which will install the apk from a
 specified location. The code I've added is

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

 File apkFile = new File(/data/install_flashplayer.apk);
 Intent intent = new Intent(Intent.ACTION_VIEW);
 intent.setDataAndType(Uri.fromFile(apkFile),
 application/vnd.android.package-archive);
 int reqCode = 0;
 startActivityForResult(intent,reqCode);
 Log.v(REsult,reqCode = +reqCode);

 }

 This is installing the install_flashplayer.apk from the location /data.
 The problem i'm facing is that after the package is installed, it shows a
 messagebox with the button Done. I'm expecting the behaviour of pressing
 Done button should close the application itself rather than only closing the
 messagebox. Right now, It closes the message box and package installer and
 shows my application.

 Can anyone help me how to get notified that Done button is pressed
 and how to close the application once it is clicked?

 Thanks,
 Maha

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

2011-05-31 Thread Dianne Hackborn
You can't do that.  The user ID must be assigned by the device when it is
installed.

On Tue, May 31, 2011 at 9:24 AM, ARM_SOC saminathm...@gmail.com wrote:

 I created the APK, It has different UserId in different phome/Device.
 I need constant UserId for this APK independent of any Hardware. Like
 App_50- 10050.

 Thanks in advance

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




-- 
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] Permission issues

2011-05-31 Thread Mark Murphy
On Tue, May 31, 2011 at 12:23 PM, String sterling.ud...@googlemail.com wrote:
 On Tuesday, May 31, 2011 5:10:53 PM UTC+1, Mark Murphy (a Commons Guy)
 wrote:

 Or, develop on an emulator.

 Develop on an emulator for Honeycomb... ROFL. That's a good one, Mark!

I was figuring it'd take long enough to start up that he'd forget
about the problem... :-)

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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Permission issues

2011-05-31 Thread Chris Stratton
On Tuesday, May 31, 2011 12:10:53 PM UTC-4, Mark Murphy (a Commons Guy) 
wrote:

  But since this is not a rooted device, I can not access my data/data/
  com.acme/databases to open my db file.
 
  Is there any way around this?

 Write a backup feature in your app that copies the (closed) database
 to external storage, then download from there.

 Or, develop on an emulator.

 Or, write unit test cases using JUnit and the instrumentation framework

Or set the mode of the database file to world readable... just don't ship 
that way like a certain internet phone app did.

Note that all of the methods aside from rooting or dumping a copy to 
external storage are going to require that you access the database file by 
its full path rather than a file browser, as the directories under /data are 
not browsable by unprivileged users, even though some of their contents are 
accessible.

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

2011-05-31 Thread saminath sanjai
Hi


 android:sharedUserId
http://developer.android.com/guide/topics/manifest/manifest-element.html#uid=*string*

Is this configuration will help me to fix the userId of the APK


thanks



On Tue, May 31, 2011 at 9:25 AM, Dianne Hackborn hack...@android.comwrote:

 You can't do that.  The user ID must be assigned by the device when it is
 installed.


 On Tue, May 31, 2011 at 9:24 AM, ARM_SOC saminathm...@gmail.com wrote:

 I created the APK, It has different UserId in different phome/Device.
 I need constant UserId for this APK independent of any Hardware. Like
 App_50- 10050.

 Thanks in advance

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




 --
 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


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

2011-05-31 Thread Mark Murphy
No, it will not. As Ms. Hackborn said, you cannot have a fixed user ID
of the APK.

Perhaps if you would actually explain *why* you think you need a fixed
user ID, we can help you find an alternative solution to your real
problem.

On Tue, May 31, 2011 at 12:34 PM, saminath sanjai
saminathm...@gmail.com wrote:
 Hi


  android:sharedUserId=string


 Is this configuration will help me to fix the userId of the APK


 thanks



 On Tue, May 31, 2011 at 9:25 AM, Dianne Hackborn hack...@android.com
 wrote:

 You can't do that.  The user ID must be assigned by the device when it is
 installed.

 On Tue, May 31, 2011 at 9:24 AM, ARM_SOC saminathm...@gmail.com wrote:

 I created the APK, It has different UserId in different phome/Device.
 I need constant UserId for this APK independent of any Hardware. Like
 App_50- 10050.

 Thanks in advance

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



 --
 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

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



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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Fixed UserId for APK

2011-05-31 Thread Marcin Orlowski
No. It will let you, as name indicates, share IDs among your packages. But
there's no way you can get fixed ID as user ids are assigned on each device
depending i.e. on number of already installed packages etc. What you think
you need it for?

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*



On 31 May 2011 18:34, saminath sanjai saminathm...@gmail.com wrote:

 Hi


  android:sharedUserId 
 http://developer.android.com/guide/topics/manifest/manifest-element.html#uid=*string*


 Is this configuration will help me to fix the userId of the APK


 thanks



 On Tue, May 31, 2011 at 9:25 AM, Dianne Hackborn hack...@android.comwrote:

 You can't do that.  The user ID must be assigned by the device when it is
 installed.


 On Tue, May 31, 2011 at 9:24 AM, ARM_SOC saminathm...@gmail.com wrote:

 I created the APK, It has different UserId in different phome/Device.
 I need constant UserId for this APK independent of any Hardware. Like
 App_50- 10050.

 Thanks in advance

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




 --
 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


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

2011-05-31 Thread saminath sanjai
Hi,
 Thanks for your reply,
One more Application verify the UserId of the process(APK) and allow to
further communication.  Application developed by third party. In this case i
have to assign the APK userid as like in
system/core/include/private/android_filesystem_config.h

thanks in advance



On Tue, May 31, 2011 at 9:38 AM, Mark Murphy mmur...@commonsware.comwrote:

 No, it will not. As Ms. Hackborn said, you cannot have a fixed user ID
 of the APK.

 Perhaps if you would actually explain *why* you think you need a fixed
 user ID, we can help you find an alternative solution to your real
 problem.xe

 On Tue, May 31, 2011 at 12:34 PM, saminath sanjai
 saminathm...@gmail.com wrote:
  Hi
 
 
   android:sharedUserId=string
 
 
  Is this configuration will help me to fix the userId of the APK
 
 
  thanks
 
 
 
  On Tue, May 31, 2011 at 9:25 AM, Dianne Hackborn hack...@android.com
  wrote:
 
  You can't do that.  The user ID must be assigned by the device when it
 is
  installed.
 
  On Tue, May 31, 2011 at 9:24 AM, ARM_SOC saminathm...@gmail.com
 wrote:
 
  I created the APK, It has different UserId in different phome/Device.
  I need constant UserId for this APK independent of any Hardware. Like
  App_50- 10050.
 
  Thanks in advance
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
 
  --
  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
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 Android Training in NYC: http://marakana.com/training/android/

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


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

2011-05-31 Thread Mark Murphy
On Tue, May 31, 2011 at 1:11 PM, saminath sanjai saminathm...@gmail.com wrote:
 One more Application verify the UserId of the process(APK) and allow to
 further communication.  Application developed by third party.

As far as I can tell, your third party does not know what it is talking about.

 In this case i
 have to assign the APK userid as like in
 system/core/include/private/android_filesystem_config.h

That is not possible. In fact, I will be fairly surprised if any
mobile OS, other than perhaps Meego, allows end-user-installed
applications to decide their own user ID for process-level security.

You are welcome to write your own Android firmware and put it on your
own Android phones where this application is somehow magically
assigned some particular user ID as part of the firmware build. I
presume that is at least conceivable. If you wish to build your own
firmware, visit h http://source.android.com.

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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Fixed UserId for APK

2011-05-31 Thread Dianne Hackborn
It wouldn't be secure unless there was a global registry of these user IDs
and the apps that own them, that the platform could look up at install, to
ensure that some other spoof app is not using the user ID.

Obviously this is not something we want to do.

On Tue, May 31, 2011 at 10:21 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, May 31, 2011 at 1:11 PM, saminath sanjai saminathm...@gmail.com
 wrote:
  One more Application verify the UserId of the process(APK) and allow to
  further communication.  Application developed by third party.

 As far as I can tell, your third party does not know what it is talking
 about.

  In this case i
  have to assign the APK userid as like in
  system/core/include/private/android_filesystem_config.h

 That is not possible. In fact, I will be fairly surprised if any
 mobile OS, other than perhaps Meego, allows end-user-installed
 applications to decide their own user ID for process-level security.

 You are welcome to write your own Android firmware and put it on your
 own Android phones where this application is somehow magically
 assigned some particular user ID as part of the firmware build. I
 presume that is at least conceivable. If you wish to build your own
 firmware, visit h http://source.android.com.

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

 Android Training in NYC: http://marakana.com/training/android/

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




-- 
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] Sharing Shared preference

2011-05-31 Thread Dianne Hackborn
Yes use the Context to open the shared preferences.

On Tue, May 31, 2011 at 9:21 AM, nirm nirmi...@gmail.com wrote:

 Hello all
 I want to share data between my application and library.
 Can i share or read from one Shared preference?

 My thoughts:
 1. pass the application context to the library?
 2. in the lib: read the app shared pref through appContext

 Is this the right way?

 Thanks
 Nir



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

2011-05-31 Thread Edmund
Thanks Dianne, what is the brute force stop API? Can I kill other
APK's processes from my APK though? I have an APK that is a system APK
(signed with system certificate and using shared UID) if that make a
difference and gives it more permission.

On May 27, 5:43 pm, Dianne Hackborn hack...@android.com wrote:
 No there is just the old, brutal force stop API.









 On Fri, May 27, 2011 at 5:22 PM, Edmund chang.edm...@gmail.com wrote:
  Hi,

  I am working with an Android 2.1 Device (API Level 7). I know that in
  API Level 8, you can call PackageManager's
  killBackgroundProcesses(String packageName) to kill background
  processes of packages. Is there a way to accomplish this in API Level
  7?

  Thanks,
  Edmund Chang

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

2011-05-31 Thread Chris Stratton
On Tuesday, May 31, 2011 1:11:34 PM UTC-4, ARM_SOC wrote:

One more Application verify the UserId of the process(APK) and allow to 
 further communication.  Application developed by third party. 


Well, that's not an entirely ridiculous idea, as the whole android security 
model itself is based on userids.

However, the application needs to decide what the appropriate userid to 
allow _on_a_given_install_ is, by first utilizing some other authentication 
mechanism.  And you would need to audit the whole scheme for potential 
security holes.


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

[android-developers] Creating a good reference point for Android

2011-05-31 Thread Raghav Sood
Hi all,

I have noticed how often there are questions regarding problems with the
market, in-app billing, documentation etc. It seems that the Android
references are spread very far and wide and in some places non-existant
alltogether. I plan to solve this bye creating a Wikipedia of all android
related topics. Two days ago I started the process and created the wiki at
http://wiki.androidappcheck.com/ Right now I am its only contributor and by
no stretch of imagination know all about Android. I would like it if all of
you people could help me with this. I have so far made only 9 pages in the
time it has been up and none of them are as detailed as I would like.

Please help with this project as it will be a good starting base for all
Android developers.
Thanks
-- 
Raghav Sood
http://www.raghavsood.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: canonicalToCurrentPackageNames and currentToCanonicalPackageNames

2011-05-31 Thread Edmund
We are working on our own type of Package Management. I was trying to
find out if say the actual file name of the package was
angrybirds.apk and the name its listed in when you do a pm list is
something like com.rovio.games.angrybirds. How can I convert between
the two in Android 2.1?

Thanks,
--Edmund

On May 27, 5:44 pm, Dianne Hackborn hack...@android.com wrote:
 SDK developers shouldn't care about these.









 On Fri, May 27, 2011 at 5:27 PM, Edmund chang.edm...@gmail.com wrote:
  Hi,

  I am working on an Android 2.1 (API Level 7) device. The
  canonicalToCurrentPackageNames() and currentToCanonicalPackageNames()
  functions are API Level 8 (2.2) and above. Is there any way I can
  accomplish that functionality in Android 2.1?

  Thanks,
  -- Edmund Chang

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

2011-05-31 Thread Jonas Petersson

On 2011-05-31 18:30, Chris Stratton wrote:
 [...]

  But since this is not a rooted device, I can not access my data/data/
  com.acme/databases to open my db file.

Write a backup feature in your app that copies the (closed) database
to external storage, then download from there.

Or, develop on an emulator.

Or, write unit test cases using JUnit and the instrumentation framework

Or set the mode of the database file to world readable... just don't
ship that way like a certain internet phone app did.


Or open the database straight from the SD card where you can do whatever 
you like while you develop. (This is actually how my Inventory app does 
the merge feature from the SD database to the closed database.)


Best / Jonas

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

2011-05-31 Thread Mark Murphy
On Tue, May 31, 2011 at 2:07 PM, Edmund chang.edm...@gmail.com wrote:
 We are working on our own type of Package Management. I was trying to
 find out if say the actual file name of the package was
 angrybirds.apk and the name its listed in when you do a pm list is
 something like com.rovio.games.angrybirds. How can I convert between
 the two in Android 2.1?

The APK file name has absolutely nothing to do with the APK contents.

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

Android Training in NYC: http://marakana.com/training/android/

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


[android-developers] Re: Creating a good reference point for Android

2011-05-31 Thread Raghav Sood
Anyone who can help?

On Tue, May 31, 2011 at 11:34 PM, Raghav Sood raghavs...@gmail.com wrote:

 Hi all,

 I have noticed how often there are questions regarding problems with the
 market, in-app billing, documentation etc. It seems that the Android
 references are spread very far and wide and in some places non-existant
 alltogether. I plan to solve this bye creating a Wikipedia of all android
 related topics. Two days ago I started the process and created the wiki at
 http://wiki.androidappcheck.com/ Right now I am its only contributor and
 by no stretch of imagination know all about Android. I would like it if all
 of you people could help me with this. I have so far made only 9 pages in
 the time it has been up and none of them are as detailed as I would like.

 Please help with this project as it will be a good starting base for all
 Android developers.
 Thanks
 --
 Raghav Sood
 http://www.raghavsood.com/




-- 
Raghav Sood

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

2011-05-31 Thread Dianne Hackborn
The file name is arbitrary.  You can get the path to the .apk of a
particular package in ApplicationInfo, which will be returned from various
things in the package manager like PackageManager.getApplicationInfo().

On Tue, May 31, 2011 at 11:07 AM, Edmund chang.edm...@gmail.com wrote:

 We are working on our own type of Package Management. I was trying to
 find out if say the actual file name of the package was
 angrybirds.apk and the name its listed in when you do a pm list is
 something like com.rovio.games.angrybirds. How can I convert between
 the two in Android 2.1?

 Thanks,
 --Edmund

 On May 27, 5:44 pm, Dianne Hackborn hack...@android.com wrote:
  SDK developers shouldn't care about these.
 
 
 
 
 
 
 
 
 
  On Fri, May 27, 2011 at 5:27 PM, Edmund chang.edm...@gmail.com wrote:
   Hi,
 
   I am working on an Android 2.1 (API Level 7) device. The
   canonicalToCurrentPackageNames() and currentToCanonicalPackageNames()
   functions are API Level 8 (2.2) and above. Is there any way I can
   accomplish that functionality in Android 2.1?
 
   Thanks,
   -- Edmund Chang
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, 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




-- 
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] Android emulator bottleneck

2011-05-31 Thread bob
Does anyone know what the Android emulator bottleneck is on most PCs?
Is it probably just the CPU?  Does anyone know of a computer where the
emulator works at a decent speed?

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


Re: [android-developers] Android emulator bottleneck

2011-05-31 Thread Mark Murphy
On Tue, May 31, 2011 at 3:04 PM, bob b...@coolgroups.com wrote:
 Does anyone know what the Android emulator bottleneck is on most PCs?

The bottleneck is in the emulator trying to do the graphics that it
normally does with hardware acceleration. As Xav pointed out in the
Android Development Tools Google I|O 2011 presentation, if you
create a Honeycomb emulator with QVGA screen size (not realistic for
production), it runs quickly.

 Is it probably just the CPU?

Insofar as a faster CPU will help a bit with faster CPU-based graphics
work, yes. The real long-term answer is to get the UI to be rendered
outside of the qemu emulation environment, using the actual hardware
acceleration of your development machine. Watch the aforementioned
presentation on YouTube for a demo.

 Does anyone know of a computer where the
 emulator works at a decent speed?

2.2 on down work fine for me on a dual-core 2.5GHz notebook. 2.3 is a
bit sluggish. 3.x is painful even on a quad-core (not i7) 2.66GHz
desktop. An i7 with Turbo Boost may help, simply because the emulator
is single-threaded, so if you're not doing much else when the emulator
runs, you can get 3.4GHz or thereabouts, depending on CPU.

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-05-31 Thread Chris
I have a 3.3ghz quad core with 4 gb ram that runs 2.3.3 on the emulator fine 
at WQVGA432.  Same computer fails miserably to run 3.0 at WXGA.

Runs fine, that is, except when it decides to randomly crash when clicking 
anywhere on the skin, and then failing to clean up after itself and usually 
keeping a zombie emulator process running.  So I guess it depends.

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

2011-05-31 Thread String
The bottleneck is the emulation of ARM on x86, compounded by the number of 
pixels it needs to push around to emulate modern devices. There is no PC on 
which it has usable performance. 

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 emulator bottleneck

2011-05-31 Thread jtoolsdev
Ah, the emulator isn't running ARM code just the Dalvik engine.  The
problem has been addressed elsewhere by developer supprot that it is
not possible to build an emulator so far that can take advantage of
the graphics acceleration on your PC.

On May 31, 12:25 pm, String sterling.ud...@googlemail.com wrote:
 The bottleneck is the emulation of ARM on x86, compounded by the number of 
 pixels it needs to push around to emulate modern devices. There is no PC on 
 which it has usable performance.

 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] Market sales stuck again

2011-05-31 Thread Simon Platten
This is happening to frequently and there doesn't seem to be anything that I
can do about it.  Several of my sales have failed to charge and are over 24
hours.

Why is this happening?

Thank you,
Simon

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

[android-developers] Immediate need of Weblogic Portal Developer in BASKING RIDGE, NJ

2011-05-31 Thread Emraaz khan
Hello,
Hope you are doing well.
I am a technical recruiter with Panzer Solutions LLC Software Implementing
and IT consulting company located in CT. Please go through the Job
Description and send me your updated resume with contact information.

Title  :Weblogic Portal Developer
Location   :BASKING RIDGE, NJ
Duration  :1+ Contract

Must-haves
J2EE development (WebLogic Portal) – Tomcat is a plus
Oracle DB development
Unix scripting.

Responsibilities
Add user feed back feature to Knova knowledge article.
Implement automatic process to publish contents
Update the website

 Warm Regards,
Emraaz Khan,
Panzer Solutions LLC
emr...@panzersolutions.com
Direct: 203-813-2052

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

2011-05-31 Thread Chris Stratton
On Tuesday, May 31, 2011 3:30:39 PM UTC-4, jtoolsdev wrote:

Ah, the emulator isn't running ARM code just the Dalvik engine. 


Really?   There's an x86 build of honeycomb?  And an x86 toolchain in the 
NDK?

I don't believe that is the case... unfortunately.

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

2011-05-31 Thread David Turner
There are so much misinformation in this thread. Let's try to clarify:

The *main* bottleneck for slow performance in the emulator is OpenGLES
emulation, which is currently performed in software, moreover in emulated
ARM instructions. All platform releases are emulated by the same virtual
CPU, the differences in performance come from the following facts:

   - Gingerbread switched to use 32-bit surfaces by default for all
   activities. Even if the emulated framebuffer is still 16-bit, that's about
   twice the cost per pixel for each operation, hence why it is slower than
   Froyo at comparable resolutions. Apart from that, the platforms are nearly
   identical (well, the JIT in Gingerbread is much better than in Froyo).

   - Honeycomb uses OpenGL ES much more aggressively than Gingerbread. As a
   consequence, there are a lot more operations involved per pixel (due to all
   the fancy effects), which results in the current lack of performance.

As demonstrated by Xav at Google I/O, we're working on a solution to render
all GLES operations on the host GPU, which will significantly speed things
up. No ETA, it will be released when it's ready (hint: it's not).

Now, assuming the GLES problem is handled, the second reason why the
emulator is slow is the software MMU. In other words, each memory load or
store operation in the guest must involve a lengthy translation (from guest
virtual address to guest physical address to host address within the
emulator process). This translation depends on the state of the emulated
virtual ARM CPU and cannot be done easily. To speed things up, a small
256-pages cache is used but this results, in the best case, in a series of
20-something host instructions + several memory accesses to implement a
single load or store (when you hit the cache, things are _much_ worse in
case of a miss).

Finally, there is the issue of translating each ARM instruction into a
series of host x86 instructions. This of course has an impact, but most
arithmetic operations can be translated into something that is hardly 2x or
3x slower than the real thing. Compared to the cost of virtual memory
access, this is minimal.


On Tue, May 31, 2011 at 9:30 PM, jtoolsdev brianjto...@gmail.com wrote:

 Ah, the emulator isn't running ARM code just the Dalvik engine.  The
 problem has been addressed elsewhere by developer supprot that it is
 not possible to build an emulator so far that can take advantage of
 the graphics acceleration on your PC.

 On May 31, 12:25 pm, String sterling.ud...@googlemail.com wrote:
  The bottleneck is the emulation of ARM on x86, compounded by the number
 of pixels it needs to push around to emulate modern devices. There is no PC
 on which it has usable performance.
 
  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


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

2011-05-31 Thread Edmund
thanks to you both!

On May 31, 11:47 am, Dianne Hackborn hack...@android.com wrote:
 The file name is arbitrary.  You can get the path to the .apk of a
 particular package in ApplicationInfo, which will be returned from various
 things in the package manager like PackageManager.getApplicationInfo().









 On Tue, May 31, 2011 at 11:07 AM, Edmund chang.edm...@gmail.com wrote:
  We are working on our own type of Package Management. I was trying to
  find out if say the actual file name of the package was
  angrybirds.apk and the name its listed in when you do a pm list is
  something like com.rovio.games.angrybirds. How can I convert between
  the two in Android 2.1?

  Thanks,
  --Edmund

  On May 27, 5:44 pm, Dianne Hackborn hack...@android.com wrote:
   SDK developers shouldn't care about these.

   On Fri, May 27, 2011 at 5:27 PM, Edmund chang.edm...@gmail.com wrote:
Hi,

I am working on an Android 2.1 (API Level 7) device. The
canonicalToCurrentPackageNames() and currentToCanonicalPackageNames()
functions are API Level 8 (2.2) and above. Is there any way I can
accomplish that functionality in Android 2.1?

Thanks,
-- Edmund Chang

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

 --
 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] Market sales stuck again

2011-05-31 Thread TreKing
On Tue, May 31, 2011 at 2:34 PM, Simon Platten simonaplat...@googlemail.com
 wrote:

 Why is this happening?


It's doubtful anyone here can (or will) answer that. Your best bets are the
Android Market and Google Checkout support channels. You can probably skip
the former as it's mostly an exercise in frustration.

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

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

Re: [android-developers] Re: Killing Background Processes

2011-05-31 Thread Dianne Hackborn
Using the system cert is not development with the SDK; you should direct
questions about it to a group like android-porting.

On Tue, May 31, 2011 at 10:46 AM, Edmund chang.edm...@gmail.com wrote:

 Thanks Dianne, what is the brute force stop API? Can I kill other
 APK's processes from my APK though? I have an APK that is a system APK
 (signed with system certificate and using shared UID) if that make a
 difference and gives it more permission.

 On May 27, 5:43 pm, Dianne Hackborn hack...@android.com wrote:
  No there is just the old, brutal force stop API.
 
 
 
 
 
 
 
 
 
  On Fri, May 27, 2011 at 5:22 PM, Edmund chang.edm...@gmail.com wrote:
   Hi,
 
   I am working with an Android 2.1 Device (API Level 7). I know that in
   API Level 8, you can call PackageManager's
   killBackgroundProcesses(String packageName) to kill background
   processes of packages. Is there a way to accomplish this in API Level
   7?
 
   Thanks,
   Edmund Chang
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, 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




-- 
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

  1   2   >