Re: [android-developers] startService with explicit intent is not working to start framework service.

2015-04-28 Thread Rashmi

Thank you 

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


Re: [android-developers] startService with explicit intent is not working to start framework service.

2015-04-28 Thread rashmi ks
Custom build of Android

On Tue, Apr 28, 2015 at 11:35 PM, Justin Anderson 
wrote:

> Are you writing this for a rooted device or for a custom build of Android?
>
> On Tue, Apr 28, 2015, 7:10 AM Rashmi  wrote:
>
>> Hi,
>> I have added MyService in android/framework/base/services/ space and
>> registered that service in AndroidManifest.xml
>> of android/frameworks/base/core/res/. Calling startService() of MyService,
>> from test application is working fine with implicit intent. But explicit is
>> not working with warning message "Unable to start service".
>>
>> I have used
>> package name - "com.android.server"
>> class name - "com.android.server.MyService"
>> flag - android:exported="true"
>>
>> Please let me know how do we use explicit intent with framework service.
>>
>> Thank you
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/qKqD0eMC8Vw/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] startService with explicit intent is not working to start framework service.

2015-04-28 Thread Rashmi
Hi,
I have added MyService in android/framework/base/services/ space and 
registered that service in AndroidManifest.xml 
of android/frameworks/base/core/res/. Calling startService() of MyService, 
from test application is working fine with implicit intent. But explicit is 
not working with warning message "Unable to start service".

I have used 
package name - "com.android.server"
class name - "com.android.server.MyService"
flag - android:exported="true" 

Please let me know how do we use explicit intent with framework service.

Thank you

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


[android-developers] Can't create handler inside thread that has not called Looper.prepare()

2014-02-26 Thread Rashmi
Hi,

I am binding from service1 in app1 to service2 in app2 through aidl. In 
service2 to I have defined the aidl stub api's which has some handler.
If I tried to access the service2 api through binder from service1, I am 
getting the following exception

 "java.lang.RuntimeException: Can't create handler inside thread that has 
not called Looper.prepare()"

I am not creating any thread explicitly. Please let me know from where I 
can call Looper.prepare().

Thank you,

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


[android-developers] android.os.TransactionTooLargeException on applyBatch()

2013-07-02 Thread Rashmi
Hi,
In my application, I am executing applyBatch() on contacts database  to 
insert huge contacts. Calling applyBatch() with 490 operations at a time.
But the insertion is failing with 
'android.os.TransactionTooLargeException'. Reduced the operation size to 
200. Still I am getting the same error.
Please let me know how to resolve this issue.

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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Android Market app on ICS emulator

2012-02-08 Thread Rashmi
Hi,
I am trying to get android market application on ICS emulator. I
followed the steps given in the following link
http://blog.varunkumar.me/2010/11/how-to-install-android-market-in-google.html

I am able to get market icon on emulator, but not able to login to
Google account and it is giving the following error. Please let me
know if any solution.

D/GTalkService( 537): [GTalkService.85] account missing
I/GTalkService( 537): [ServiceAutoStarter] --- account changed
I/GTalkService( 537): [ServiceAutoStarter] --- start GTalk service ---
D/GTalkService( 537): [GTalkService.1] onStartCommand: found 0
connections, force audit connections...
D/GTalkService( 537): [GTalkService.86] account missing
D/ExchangeService( 404): Reconciling accounts...
E/vending ( 492): [86] VendingApplication.getAuthTokenBlocking(): no
matching accounts for ANDROID
D/ExchangeService( 404): Reconciling accounts...

Thank you,

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


[android-developers] NetworkManagementSocketTagger(393): untagSocket(51) failed with errno -2

2012-01-04 Thread Rashmi
Hi,
I am trying to download the application from Browser on ICS emulator
and getting the following error with download unsuccessful.

01-04 05:27:54.446: I/DownloadManager(393): Initiating request for
download 41
01-04 05:27:54.476: D/dalvikvm(155): GC_CONCURRENT freed 386K, 34%
free 10750K/16263K, paused 4ms+7ms
01-04 05:27:54.646: I/qtaguid(393): Tagging socket 51 with tag
7f01(-255) for uid 10019 failed errno=-2
01-04 05:27:54.646: I/NetworkManagementSocketTagger(393):
tagSocketFd(51, -255, 10019) failed with errno-2
01-04 05:27:55.666: D/dalvikvm(393): GC_CONCURRENT freed 412K, 7% free
10329K/11015K, paused 4ms+8ms
01-04 05:27:57.106: I/qtaguid(393): Untagging socket 51 failed
errno=-2
01-04 05:27:57.106: W/NetworkManagementSocketTagger(393):
untagSocket(51) failed with errno -2
01-04 05:27:57.446: I/DownloadManager(393): Initiating request for
download 41
01-04 05:27:57.476: W/DownloadManager(393): Aborting request for
download 41: Trying to resume a download that can't be resumed
01-04 05:27:57.736: D/dalvikvm(155): GC_CONCURRENT freed 316K, 34%
free 10880K/16263K, paused 5ms+6m

Please let me know how to resolve this error and complete the
download.

Note: I have given the proper proxy and port in APN settings.

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] validating the certificate of apk

2011-09-14 Thread Rashmi
Hi,
How does the android system will check the valid certificate while
installing an apk. How does it generates the signature and Where does
it will store the signature of the apk installed.

Please let me know about how to validate the certificate and signature
before installing the apk.

Thanks,

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


Re: [android-developers] application/json MIME type in Download Provider

2011-08-08 Thread Rashmi
Thanks Nikolay 

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

2011-08-08 Thread Rashmi
Thanks for the response.

My concern is, as Download Provider is already establishing the Http 
Connection and handling all the exceptions, I need not to do it for the 
second time. But this Download Provider is not supporting JSON MIME type and 
ending with 'no handler found' message. When I add application/json MIME 
type in MimeTypeMap.java, it is ending with STATUS_NOT_ACCEPTABLE error 
code. 

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

[android-developers] application/json MIME type in Download Provider

2011-08-08 Thread Rashmi
Hi,
I am working on froyo 2.2 for downloading apk from server and install
the apk. For this I need download url as input, which I will be
passing to Download provider to download the apk.

But, along with download url as input I need some more information. So
now I am getting the JSON object from server, and extracting download
url and other information. Since download provider will not support
for application/json MIME type I am using simple http connection to
get the JSON object and then passing the download url to Download
Provider.

Can anybody suggest me how to make the Download Provider to support
JSON response / how does it supports the 'application/json' MIME type.

Thank you

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


Re: [android-developers] Program to generate MD5 hash for apk

2011-07-14 Thread Rashmi
Thank you.
I got it cleared. Some how I need get the MD5 hash of the apk and then 
generate hash for apk for comparing.

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

2011-07-13 Thread Rashmi
> Check if the hash value you have/received is the same as the one you 
calculated
using the actual file.

Value you have/received - > which value is this. 

Please explain me in detail, what are the two values to be compared and how 
to get those two values . 

Thanks,

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

Re: [android-developers] Program to generate MD5 hash for apk

2011-07-13 Thread rashmi
Hi Nikolay,
Thanks for the reply.
I need to validate the downloaded apk. So I have to compare the MD5 hash in 
the certificate against the MD5 hash generated for the apk. But according to 
you MD5 hash of certificate and apk are different. Then please suggest me 
how to validate the downloaded apk using MD5 hash.



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

[android-developers] Program to generate MD5 hash for apk

2011-07-13 Thread rashmi
Hi,
Please let me know how to create a MD5 hash for an apk
programmatically. I want to compare the MD5 hash in the certificate
and the generated MD5 hash. There are some commands which can be
executed from command prompt to generate MD5 hash for an apk. But how
do I will generate it through program. Any example will be helpful.

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: Aidl Error : couldn't find import for class org.json.JSONObject

2011-07-07 Thread rashmi
Hi Mark,
I am working on froyo2.2 source code. My aim is to include the 'import 
org.json.JSONObject' statement in aidl file. It is giving the build error - 
'couldn't find import for class org.json.JSONObject'.

I also tried creating a project in Eclipse and including an aidl file with 
import org.json.JSONObject. Even this project is also giving the same error. 
Please give me solution for how to include json import in aidl.

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] Aidl Error : couldn't find import for class org.json.JSONObject

2011-07-06 Thread rashmi
Hi,
I have written an aidl file in the path android/framwork/base/core/
java/com/, which has a import statement - import org.json.JSONObject.
But the build is failing with an error - 'couldn't find import for
class org.json.JSONObject'.
According to my study I found that for import statements in aidl we
should define LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
in the Android.mk file. In my source code, Android.mk in  framework/
base/ already contains the above definition. Please let me know how to
resolve the import JSON error in aidl.

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] Junit error - INSTRUMENTATION_FAILED

2011-05-16 Thread rashmi
Hi,
I am trying to execute junit test cases on froyo 2.2 source code, from
command line with the following command.
adb -d shell am instrument -w com.android.camera.tests/
com.android.camera.CameraStressTestRunner

And it is giving the error -

INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for:
ComponentInfo{com.android.camera.tests/
com.android.camera.CameraStressTestRunner}
INSTRUMENTATION_STATUS_CODE: -1
android.util.AndroidException: INSTRUMENTATION_FAILED:
com.android.camera.tests/com.android.camera.CameraStressTestRunner

Please let me how to resolve this error.

I tried to check installed tests with the command
adb shell pm list instrumentation
which results empty list.

So please tell me how to set up the test environment before running
test case from command line.

Thank you,

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


[android-developers] Re: java.lang.ArrayIndexOutOfBoundsException: too much data for RSA block

2011-04-13 Thread rashmi
I have tried with simple string with out giving UTF-8 format.

byte[] bts = encrypted.getBytes();
byte[] decrypted = cipher.doFinal(bts);

Then also it will give same error.

Thanks,
Rashmi



On Apr 12, 6:06 pm, Marcin Orlowski  wrote:
> Blind shot -> String != byte[] for UTF-8 and I suspect this false assumption
> nukes your code.
>
> Regards,
> Marcin Orlowski
>
> *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
> WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
> *Twitter<http://webnetmobile.com/twitter/>
>
> *
> On 12 April 2011 14:52, rashmi  wrote:
>
> > Hi,
> > I am using Asymmetric Cipher RSA algorithm for encryption and
> > decryption. I am generating private and public keys and using them for
> > encryption and decryption respectively. Following is the code snippet.
>
> >  KeyPair keypair =
> > KeyPairGenerator.getInstance("RSA").generateKeyPair();
>
> >  private  Cipher cipher = = Cipher.getInstance("RSA");
>
> > public String encrypt(String plaintext) throws Exception{
> >        this.cipher.init(Cipher.ENCRYPT_MODE,
> > this.keypair.getPrivate());
> >        byte[] bytes = plaintext.getBytes("UTF-8");
>
> >        byte[] encrypted =  cipher.doFinal(bytes);
>
> >        return new String(encrypted);
> >    }
>
> >    public String decrypt(String encrypted) throws Exception{
> >        this.cipher.init(Cipher.DECRYPT_MODE,
> > this.keypair.getPublic());
> >        byte[] bts = encrypted.getBytes("UTF-8");
>
> >        byte[] decrypted = cipher.doFinal(bts);
>
> >        return new String(decrypted,"UTF-8");
> >    }
>
> > Encryption is working fine. But while decryption it is throwing the
> > error "java.lang.ArrayIndexOutOfBoundsException: too much data for RSA
> > block". Please let me know how to resolve this problem. Please suggest
> > me if any other asymmetric algorithms to work on large data.
>
> > Thank you,
> > Rashmi
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] java.lang.ArrayIndexOutOfBoundsException: too much data for RSA block

2011-04-12 Thread rashmi
Hi,
I am using Asymmetric Cipher RSA algorithm for encryption and
decryption. I am generating private and public keys and using them for
encryption and decryption respectively. Following is the code snippet.

 KeyPair keypair =
KeyPairGenerator.getInstance("RSA").generateKeyPair();

 private  Cipher cipher = = Cipher.getInstance("RSA");

public String encrypt(String plaintext) throws Exception{
this.cipher.init(Cipher.ENCRYPT_MODE,
this.keypair.getPrivate());
byte[] bytes = plaintext.getBytes("UTF-8");

byte[] encrypted =  cipher.doFinal(bytes);

return new String(encrypted);
}

public String decrypt(String encrypted) throws Exception{
this.cipher.init(Cipher.DECRYPT_MODE,
this.keypair.getPublic());
byte[] bts = encrypted.getBytes("UTF-8");

byte[] decrypted = cipher.doFinal(bts);

return new String(decrypted,"UTF-8");
}

Encryption is working fine. But while decryption it is throwing the
error "java.lang.ArrayIndexOutOfBoundsException: too much data for RSA
block". Please let me know how to resolve this problem. Please suggest
me if any other asymmetric algorithms to work on large data.

Thank you,
Rashmi

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

2011-04-06 Thread rashmi
I have written my content provider class and a wrapper class to access
the content provider. It is similar to settings database content
provider in froyo code. I am using the example in following link for
encryption/decryption.

http://www.tutorials-android.com/learn/How_to_encrypt_and_decrypt_strings.rhtml

Here I need to pass the seed value. Now I am hard coding this seed
value. But I want it to be securely saved. I cannot save it in a raw
folder as i don't get the application context in wrapper class to read
the value. So please suggest me how to generate this seed value and
securely save it.

Thanks and regards,
Rashmi



On Apr 6, 2:31 pm, Marcin Orlowski  wrote:
> On 6 April 2011 07:16, rashmi  wrote:
>
> > I want to encrypt the data before insertion through content provider
> > and decrypt while reading the data. So that encrypted data will be
> > saved in database. Please provide me the information
>
> Here you go:http://developer.android.com/reference/javax/crypto/Cipher.html
>
> Regards,
> Marcin Orlowski
>
> *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
> WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
> *Twitter<http://webnetmobile.com/twitter/>
> *

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

2011-04-05 Thread rashmi
I want to encrypt the data before insertion through content provider
and decrypt while reading the data. So that encrypted data will be
saved in database. Please provide me the information

On Apr 5, 6:20 pm, Marcin Orlowski  wrote:
> On 5 April 2011 15:00, rashmi  wrote:
>
> > Hi,
> > I am using content provider to access the database. I want to secure
> > my data by encryption. Please let me know, how we can encrypt and
> > decrypt the data from content provider.
>
> If you encrypt it yourself it will be encrypted. It's still content. Ensure
> your app design is right. It'd would be rather pointless to i.e. encrypt
> data returned by your CP, while your real data in DB is unencrypted.
>
> Regards,
> Marcin Orlowski
>
> *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
> WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
> *Twitter<http://webnetmobile.com/twitter/>
> *

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


[android-developers] encrypt/decrypt the data from content provider

2011-04-05 Thread rashmi
Hi,
I am using content provider to access the database. I want to secure
my data by encryption. Please let me know, how we can encrypt and
decrypt the data from content provider.

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] Stop installation of package

2011-01-27 Thread rashmi
Hi,
I am going through PackageManagerService.java, from this the
installation of package happens.
Can I stop the installation of package?. Please let me know if any
observer is there for installation of package to get to know about the
status of installation and how can I stop/cancel the installation.


Thanks,
Rashmi

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


[android-developers] Class not found when unmarshalling

2011-01-19 Thread rashmi
Hi,
I am trying to find the android market app launching by identifying
its package. It is giving me the run time exception as -
 Parcel(675): Class not found when unmarshalling:
com.google.android.gsf.LoginData, e: java.lang.ClassNotFoundException:
com.google.android.gsf.LoginData".

It is giving this exception when I click on android market app, which
tries to launch google login activity through GoogleLoginService.

Please let me know if any solution.

Thanks,
Rashmi

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


[android-developers] How to block the installation of application

2011-01-04 Thread rashmi
Hi,
Please let me know how to block/unblock the installation of non market
application in android 2.2 source code. I am trying this with Package
Manager Service. Is this is the correct path to block.

Thank you

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


[android-developers] blocking non market app programatically

2011-01-04 Thread rashmi
Hi,
Please let me know how to identify the non market app and how to block
the installation of  non market app programatically through
PackageManager.

Thankyou

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

2010-07-28 Thread rashmi
Please help me out  i really need to develop d project in android

On Jul 27, 6:14 pm, rashmi  wrote:
> Hello frenz,
>    i have written an application in eclipse to run on android emulator
> but the application is not deploying  on emulator and it says Failed
> to load properties file for project helloworld.
> in the error report it says An exception for stack trace is not
> available.
> I am not able to understand what to do as i am new to android.
> Please help me  to find d sol for this problem.

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


[android-developers] Stack trace Exception

2010-07-27 Thread rashmi
Hello frenz,
   i have written an application in eclipse to run on android emulator
but the application is not deploying  on emulator and it says Failed
to load properties file for project helloworld.
in the error report it says An exception for stack trace is not
available.
I am not able to understand what to do as i am new to android.
Please help me  to find d sol for this problem.

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

2010-06-24 Thread Rashmi
I got it resolved
Below is the solution
The problem came because of the way the way bytes were extracted from
the payload after building.

This was the earlier code which caused the problem.

ByteArrayOutputStream result = new ByteArrayOutputStream();
payload.build().writeTo(result);
return result.toString().toBytes();

In this the payload once the payload is built it is being written to a
bytearray stream and then converted to a string and then is converted
to bytearray which is causing the problem because it is inserting some
invalid invariant into the byte array.

instead of which the payload class provides a convenient method
toByteArray() which have to be used.

changed the above code to

p = payload.build();   //p is a payload object.
return p.toByteArray();


Regards
Rashmi



On Jun 15, 11:26 am, Rashmi  wrote:
> message info
> {
>                required string username =1;
>                required string pwd =2;
>                required string pin                      =3;
>                required string imei                     =4;
>                required string imsi                     =5;
>                required string phoneNumber              =6;
>                required string deviceName               =7;
>                required string userName                 =8;
>                required string platform                 =9;
>                required string manufacturer             =10;
>                required string model                    =11;
>                required string os                       =12;
>                required string screenLanguage           =13;
>                required string screenResolution         =14;
>                required string totalExternalMemory      =15; // in MB
>                required string freeExternalMemory       =16; // in MB
>                required string totalPhoneMemory         =17; // in MB
>                required string freePhoneMemory          =18;
>                required string batteryLevel             =19;
>
> }
>
> When I try deserialising the info proto object, I get an exception
> “ProtocolMessage had invalid wire type”. This is observed in android
> build only.
>
> Important Note: Everything works fine when I create and run a java
> project.
> I have tried with both version ofprotocolbuffer 2.2.0 and 2.3.0.
> Any help is appreciated.
>
> You can browse this link for more info onprotocolbuffer 
> objecthttp://code.google.com/apis/protocolbuffers/docs/overview.html
>
> Thanks
> Rashmi

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


[android-developers] Issue using protocol buffer in Android

2010-06-15 Thread Rashmi
message info
{
   required string username =1;
   required string pwd =2;
   required string pin  =3;
   required string imei =4;
   required string imsi =5;
   required string phoneNumber  =6;
   required string deviceName   =7;
   required string userName =8;
   required string platform =9;
   required string manufacturer =10;
   required string model=11;
   required string os   =12;
   required string screenLanguage   =13;
   required string screenResolution =14;
   required string totalExternalMemory  =15; // in MB
   required string freeExternalMemory   =16; // in MB
   required string totalPhoneMemory =17; // in MB
   required string freePhoneMemory  =18;
   required string batteryLevel =19;


}

When I try deserialising the info proto object, I get an exception
“Protocol Message had invalid wire type”. This is observed in android
build only.

Important Note: Everything works fine when I create and run a java
project.
I have tried with both version of protocol buffer 2.2.0 and 2.3.0.
Any help is appreciated.

You can browse this link for more info on protocol buffer object
http://code.google.com/apis/protocolbuffers/docs/overview.html

Thanks
Rashmi

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


[android-developers] Facing problem while playing video on emulator

2010-01-20 Thread rashmi
Hello,

I am new to Android and learning it.

I have tried to play video on my emulator from sdcard having extension
as .3gp and .mp4, both are not working properly. There audio i can
hear but it shows video as still image and after some time it gives
error like "Sorry this video can not be played".

Please help me out in this problem.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: SDK 1.5 and multiple projects in an application

2009-05-05 Thread Rashmi

Hello,

I am in a similar situation. I have a project with a service and I am
binding to the service from a different application in different
package. I got this whole setup working on Android SDK 1.1. However it
is not working in Android 1.5, even when I pick out 1.1 to be used.

The emulator fails to lauch my second application (activity trying to
bind to the service). The error looks

 I/ActivityManager(   52): Starting activity: Intent
{ action=android.intent.action.MAIN categories=
{android.intent.category.LAUNCHER} flags=0x1020 comp=
{com.xyz.client/com.xyz.client.clientActivity} }
I/ActivityManager(   52): Start proc com.xyz.client for activity
com.xyz.client/.clientActivity: pid=725 uid=10024 gids={}
I/jdwp(  725): received file descriptor 10 from ADB
W/dalvikvm(  725): Unable to resolve superclass of Lcom/xyz/client/
clientActivity$1; (19)
W/dalvikvm(  725): Link of class 'Lcom/xyz/client/clientActivity$1;'
failed
E/dalvikvm(  725): Could not find class 'com.xyz.client.clientActivity
$1', referenced from method com.xyz.client.clientActivity.


I cannot make the first project to be java project. How do I resolve
this issue?

Thanks
Rashmi.

-- Forwarded message --
From: sktech 
Date: Apr 16, 6:47 am
Subject: SDK 1.5 and multiple projects in an application
To: Android Developers


So, what is the  preferred way to share android-aware code between
applications?

On Apr 15, 8:32 pm, Xavier Ducrohet  wrote:

> On Wed, Apr 15, 2009 at 6:27 PM, sktech  wrote:

> > Thanks Xavier, that is exactly the situation.

> > Can I assume that future releases will allow my android project
> > to reference other standard Java projects?

> yes, we are not planning on removing this feature, as it's a lot
> easier to use during development than using a jar file.

> Xav
> --
> Xavier Ducrohet
> Android Engineer, Google.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Continuing topic " Bind to a remote service"

2009-04-30 Thread Rashmi GP
>
> I am new to android. I am doing something very similar (calling in to a
> service from an application which is in a different package altogether) and
> I am running into this issue. What do you mean by "I was able to modify the
> framework by adding a new
> interface"? Can you please elaborate?
>
> Since the ability for one application to access elements of another
> application is a central feature of android, why is there limited/no
> documentation on this? More information/examples would be very helpful.
>
> Thanks in advance,
> Rashmi.
> -- Forwarded message --
> From: rktb 
> Date: Jan 15, 2:49 am
> Subject: Continuing topic " Bind to a remote service"
> To: Android Developers
>
>
> Thanks Dianne. I was able to modify the framework by adding a new
> interface, and this I was able to import in both my applications.
>
> -Ravi
>
> On Jan 15, 12:37 am, "Dianne Hackborn"  wrote:
>
> > If you changed the package, they are different interfaces, and you can't
> > call across them.  This is exactly what the error message is saying, you
> can
> > see the two different interfaces listed there.  You should define the
> > interface once and share it across all of the code using it.
>
> > On Wed, Jan 14, 2009 at 10:22 AM, rktb  wrote:
>
> > > Hi,
>
> > > I tried to follow what was being discussed in
> > >http://code.google.com/android/reference/aidl.html#callingand
>
> > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro.
> ..
> > > .
> > > My test code looks almost the same. The only difference being that in
> > > my case, the service and the activity that is calling it, are both in
> > > different packages.
>
> > > To get around the compilation errors, I included the same .aidl file
> > > (IRKOwnService.aidl) defining the interface in both the packages (with
> > > the package line different in both the files). I think that is what is
> > > causing the problem.
>
> > > Any suggestions?
>
> > > Thanks,
> > >Ravi
>
> > > On Jan 14, 1:34 am, "Dianne Hackborn"  wrote:
> > > > You are calling on an interface that is different than the actually
> > > > interface being called on the back-end service.
>
> > > > The remote service API demo should show you how to do this correctly.
>
> > > > On Tue, Jan 13, 2009 at 10:20 AM, rktb  wrote:
>
> > > > > Bumping it up ...
>
> > > > > On Jan 13, 12:39 pm, rktb  wrote:
> > > > > > Hi,
>
> > > > > > I could not find "Reply" on the post:
> > > > >
> http://groups.google.com/group/android-developers/browse_thread/threa..
> > > ..
> > > > > > So, creating a new post.
>
> > > > > > Based on Dianne's example, I am able to start a remote service
> and
> > > > > > also call "bindService". Now, when I am trying to call a method,
> I am
> > > > > > seeing the following problem:
> > > > > > ~~
> > > > > > W/Parcel  (  319):  enforceInterface() expected
> > > > > > 'com.android.rkserv.IRKOwnService' but read
> > > > > > 'com.android.rkapp.IRKOwnService'
> > > > > > D/AndroidRuntime(  342): Shutting down VM
> > > > > > W/dalvikvm(  342): threadid=3: thread exiting with uncaught
> exception
> > > > > > (group=0x4000fe68)
> > > > > > E/AndroidRuntime(  342): Uncaught handler: thread main exiting
> due to
> > > > > > uncaught exception
> > > > > > E/AndroidRuntime(  342): java.lang.SecurityException: Binder
> > > > > > invocation to an incorrect interface
> > > > > > ~~
>
> > > > > > The following are the details of my packages:
>
> > > > > > Package "com.android.rkserv" consists of a service RKOwnService.
> It
> > > > > > has the IDL file IRKOwnService.aidl. The AndroidManifest.xml
> consists
> > > > > > of the service
> > > > > >  > > > > > android:process=":remote" >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
>
> > > > > > Package "com.android.rkapp" wants to access this service.
> > > > > > The service is started via
&