Shell Console for Android

by Abhyudai Shanker » Fri, 28 Jan 2011 23:05:18 GMT


Sponsored Links
 Hi everyone,

I am trying to build a shell console for Android, much like a command prompt
in windows or any OS on the PC.

However I am unable to understand how to start with the process. I cant
really understand the underlying working which would be required to get the
console working.

If anyone has idea in this sector, please help me.

Thanks

Abhyudai

-- 



Re: Shell Console for Android

by Kostya Vasilyev » Fri, 28 Jan 2011 23:12:59 GMT


 If you're doing this in Java, use ProcessBuilder:

 http://developer.android.com/reference/java/lang/ProcessBuilder.html 

-- Kostya

28.01.2011 18:05, Abhyudai Shanker :
Hi everyone, I am trying to build a shell console for Android, much like a command prompt in windows or any OS on the PC. However I am unable to understand how to start with the process. I cant really understand the underlying working which would be required to get the console working. If anyone has idea in this sector, please help me. Thanks Abhyudai --
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --


Sponsored Links


Other Threads

1. Android requires .class compatibility set to 5.0.

I had to reload XP and Eclipse + android of course. I am using the
2.0.1 SDK version/ API 6.

Everything was fine before, Now the project doesn't load-
I get:

[2010-04-21 09:59:24 - LatLonQ] Android requires .class compatibility
set to 5.0. Please fix project properties.

Don't see anything in project properties. Where is this set? Never saw
this before.

A clue? when I try to open the "default.properties" from my project I
get:
org.eclipse.core.internal.resources.ResourceException: Resource is out
of sync with the file system: '/LatLonQ/default.properties'.

Help!


-- 

2. Hashtable Serialization (Server/Client App)

Hi All,

I am having a weird issue with serialization of a Hashtable. I have
made a Server, Client app. Where server(PC/MAC) is serializing a
Hashtable and sending it to Client(Android) through UDP. The data is
sent/read correctly but I get a bunch of these messages below on
LogCat.

04-12 11:19:43.059: DEBUG/dalvikvm(407): GetFieldID: unable to find
field Ljava/util/Hashtable;.loadFactor:F

Occasionally, I would see these

04-12 11:21:19.150: DEBUG/dalvikvm(407): GC freed 10814 objects /
447184 bytes in 97ms

The app would run for 2-3 mins and then crash. Interestingly enough I
do not see the Loadfactor errors on SDK 1.5. But I do see the GC Free
xxxx objects, quiet often.

After debugging I have found that the issue is with de-serialization
and the error/warning are coming from following code

Code:

ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
ObjectInputStream ois = new ObjectInputStream(bis);
object = ois.readObject();
at Code:

object = ois.readObject();
on the client. My server is serializing code is the following.

Code:

ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeObject(obj);
Any idea what is going on?

Thanks for the Help!

-- 

3. Seeding program phones. Anyone tried to activate their droid on a private account yet?

4. Kenapa 'Wajib' Pake Kartu Unlimited

5. How to call another application from tabview

6. HELP! Cannot launch sub activity

7. Adding multiple images to AnimateDrawables sample code