shruthi sridhar

Greenhorn
+ Follow
since Oct 10, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 shruthi sridhar

Thanks Monu ... followed what you said and it helped
14 years ago
Thanks Monu.. followed what you said.. it helped
14 years ago
Thanks for your quick reply.

Yes. I was exploring that option to call through an intent. But i am not able to figure out how to proceed with it. A sample code would help me to proceed.
14 years ago
Hi,

Is there a way to read pdf files and display it in our application on Android?...

If there isnt any built in support, can we pass on the pdf to any third party pdf reader application? If yes then how do we do it?

Looking forward for help ..

-Shruthi
14 years ago
You can follow these steps to set up proxy for emulator:

1. Connect to the emulator using the "adb shell" command (From "tools" folder of SDK)
adb shell
enter this..
# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
sqlite> INSERT INTO system VALUES(99,'http_proxy','<PROXY_IP>:<PROXY_Port>');


2. Use the below command to check if the value is inserted
sqlite> SELECT * FROM system;

3. Restart the emulator and check for the browser to work.

4. An alternate if this doesnt work is, Go to Run -> Run Configurations ->Target in eclipse and enter
-http-proxy <PROXY_IP>:<PROXY_Port> in Additional emulator command line options.

15 years ago
How many objects are eligible for garbage collection after line1?


public class Test{
public static void main(String args[]){
Test test=new Test();
String[] s=test.f() //line 1
System.gc();
Thread.sleep(2000);
}

public String[] f(){
String[] s = new String[4];
for(int i=0;i<s,length;i++)
s[i]=new String(""+i);
String[] s1=new String[2];
s1[0]=s[0];
s1[1]=s[1];
return s1;
}
}

Ans: 3
But i think its 2...
How is it 3???