EditText Unicode or Latin-1

by Mr.No » Thu, 05 Mar 2009 23:33:51 GMT

Sponsored Links
 How do i enable Unicode in for my EditText,
if i enter ,, he shows me [ +- ect...


EditText Unicode or Latin-1

by Mr.No » Fri, 06 Mar 2009 05:19:39 GMT

 How do i enable Unicode in for my EditText,
if i enter ,, he shows me [ +- ect...



Sponsored Links

EditText Unicode or Latin-1

by Mr.No » Fri, 06 Mar 2009 05:19:43 GMT

how do make the EditText accept unicode characters?



Other Threads

1. Starting A New Activity using explicit intents

Hi All,

 Recently, I started working on android. Earlier I have worked on BREW
and some native platforms for mobile application development. I was
facing a few problems, the solution to which I figured out after
digging in android logs/google/developer docs. I would like to share
it with the newbies so that they dont have to spend much time doing
this :)

Ques --> How to extract a view in code from the xml ?

Ans -->

Infact, I am using "android-sdk-windows-1.0_r2" and I found it quite
strange that when I define a ListView in XML as

<ListView  id="@+id/my_list" ...... />, I am unable to retrieve it
using findViewById. I think we need to define it as

        android:id="@+id/my_list" ..../> because after defining the ID this
way, I was able to retrieve it using findViewById. So if you are
facing the same problem, try this out :)

Ques --> How to start an activity (explicit) ??

Ans -->

There are three things you need to do.

1. Declare the activity in the Android Manifest.

        <activity android:name=".browsemode"   // name of the class
                  android:label="@string/browse_app_name"> // string
defined in values/strings.xml

2. Define the activity class ( extends Activity)

3. Call It.

eg I have used the explicit intent mechanism here :-

Intent browseIntent = new Intent();
try {
} catch (ActivityNotFoundException ex) {

Hope it helps!!!!

- Robin

2. WebView: Passing JSON from Java to JavaScript

I'm trying to pass a JSON structure from my Java code to JavaScript,
in a WebView. The HTML file uses the json2.js parser:

<title>JSON Test</title>
<script type="text/javascript" src="./json2.js"/>
<script type="text/javascript">
function loader() {
    var jsonData = window.webConnector.load();
    document.getElementById('original').innerHTML = jsonData;

    var a = JSON.parse(jsonData);
    document.getElementById('jsonOutput').innerHTML = a;
<body onload="loader()">
<div id="test">Test</div>

<div id="original">Original could not be loaded</div>

JSON Output:
<div id="jsonOutput">JSON Could not be Parsed</div>

The Java:

public class JsonActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {

        final WebView webView = (WebView) findViewById(R.id.webView);

        webView.addJavascriptInterface(this, "webConnector");

    public String load() {
        return "{\"frm\":[[\"name\",\"Miguel\"],[\"age\",\"34\"],[\"rating

The WebView output is: the JSON text is loaded, but the parsed version
is not.

In LogCat:
02-25 12:20:17.508: DEBUG/WebCore(811): Console: JSON.parse line: 475
source: file:///android_asset/json2.js

which is because of a thrown exception.

If the JSON text is inlined into the HTML, then it works fine.

Creating the JSON in the HTML, passing it to Java and parsing it using
JSONObject, is fine.

Is there a security restriction here? Thanks.


3. how can I get date from web behind proxy?

4. SoundRecorder app and logcat

5. because of /data/app 's Permission problem ,so i can't install any apk in /data/app.

6. Android on a Zii ZMS-05 processor.

7. Issue while installing ADT plugin for eclipce