rashmi swamy

Greenhorn
+ Follow
since Oct 05, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rashmi swamy

Hi,
How to use keystore for signing the application. How can we use keystore for securing data?. Please provide me example if any.

Thankyou
12 years ago
Hi,
On long press of home key, it displays the recently viewed applications. We can get recently viewed tasks from getRecentTasks(maxNum, flags) of ActiviyManager. Can you please tell me how to remove recently viewed applications on long press of home key.

Thank you
13 years ago
Let me explain this with more details.
As part of my research, I am writing a device administrator kind of thing, similar on lines of active sync provisioning we have in windows mobiles. Where there will be certain policies sent by the administrator. The use case goes as follows.
Device administrator sends the policies to wipe the phone memory on theft of the phone. So that unauthorized user cant access my data on the phone. Similarly I want to have a control on the usage of Android Market App.

1. If the device administrator blocks the usage of market app, the user should not be able to launch the android market.

2. In case the market app is launched and app is being downloaded/installing and during this process of downloading/installing the app, the Device administrator blocks the usage of market app, then it should stop downloading/installation immediately.

what we tried :
1. We tried clearing the data of market app while download is ongoing by using the clearApplicationUserData API in ActivityManager Class
ActivityManager am = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
boolean res = am.clearApplicationUserData("com.android.vending", new ClearUserDataObserver());


Result : It shows the Download is in progress , but once the download completes . it will not install the package.i have checked that in the file system the apk is not present.so in this case user may be charged for the downloading the app which cant be installed. this will be unfair to the user.so how can i stop the download itself.similarly how do i handle the case of installation in progress of the market app and then try to stop it ?

your inputs to this will very helpful

Rashmi.



13 years ago
I am doing some research on android market and, I want to manage(block/unblock) Android market app programatically.
That means if I say block android market then , from the android market app downloading/installation must not happen.
13 years ago
Thanks for fast reply. Yes I have checked the broadcast intent for Successful Package installation. But I want stop it if its in progress. This I am trying to stop the market applications installation. Or can you please tell How can I stop the download from market app.

13 years ago
Hi,
I want to stop the installation of package under process. I am going through PackageManagerService.java which is responsible for installation. Can you please tell me how does the installation path flows and how can I stop the installation. Is there any observer for installation status?

Thanks,
Rashmi
13 years ago
Hi,
I have modified the android2.2 source code and trying to build. But it is giving the error - "make update-api failed". Please give me the solution to resolve this build issue.
13 years ago
Hi,
I am trying to disable the application by using following code in android

PackageManager pm = this.getPackageManager();
pm.setComponentEnabledSetting(new ComponentName("com.sasken.remotesample",".Player"),
PackageManager.COMPONENT_ENABLED_STATE_DEFAULT, PackageManager.DONT_KILL_APP);

and with permission in Androimanifest.xml is
<uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>

But it is giving me the exception

java.lang.SecurityException: Permission Denial: attempt to change component state

Please give me the solution
13 years ago
when I tried above code with out proxy it works fine. But with proxy environment its not loading the URL, even after setting proxy through code. Its displaying blank screen. When i debug the code its not calling shouldOverrideUrlLoading(WebView view, String url) method in webViewClient. Please provide me solution that it should work with proxy settings.
13 years ago
Hi,
I am trying to load Facebook URL from webview and i am setting setWebViewClient(client). It is working fine with out proxy. But its not working with proxy, even after doing proxy settings. I want to load this URL in dialog activity. Please let me know the solution. Following is the code i am using

mWebView = new WebView(getContext());
mWebView.setVerticalScrollBarEnabled(false);
mWebView.setHorizontalScrollBarEnabled(false);
mWebView.setWebViewClient(new FBLoginDialog.FbWebViewClient());
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.loadUrl(mUrl);
mWebView.setLayoutParams(FILL);
mContent.addView(mWebView);


13 years ago
Thankyou Monu.
I have put your code in my activity class and trying load www.google.com through web view. But it is not working. Please give me some solution.
13 years ago
Hi,
I am only able to connect internet through emulator browser. I am not able to connect to Internet through application code even after setting proxy in emulator and also inserting values to system table. It is throwing unknown host exception. I tried with one more option that setting proxy in application Run Configuration. But it is throwing Authentication scheme ntlm not supported error. I have given Internet permission in manifest also. Please let me know some solution for connecting Internet through code.

Thanks & Regards,
Rashmi
13 years ago
Hi Monu,
I am only able to connect internet through emulator browser. I am not able to connect to Internet through application code even after setting proxy in emulator and also inserting values to system table. It is throwing unknown host exception. I tried with one more option that setting proxy in application Run Configuration. But it is throwing Authentication scheme ntlm not supported error. I have given Internet permission in manifest also. Please let me know some solution for connecting Internet through code.

Thanks & Regards,
Rashmi
13 years ago