Dalvik Version

by Gavin Aiken » Sun, 07 Jun 2009 22:27:08 GMT


Sponsored Links
 Hi Guys,

I am writing the report for my project and I was wondering if anyone could
tell me how to find the current version of the Dalvik VM. My phone is a Dev
phone running cupcake. I just can't find it, I'm sure it must be obvious but
if any of you know I'd really appreciate a pointer.

Cheers,

Gav

--~--~---------~--~----~------------~-------~--~----~



Dalvik Version

by fadden » Tue, 09 Jun 2009 02:00:49 GMT


 


% adb shell dalvikvm -version

Not sure how useful that will be.  What are you trying to do?

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Dalvik Version

by Gavin Aiken » Tue, 09 Jun 2009 07:45:21 GMT


 That's great cheers, I jsut need to quotre the VM version I ran my tests on.

Gav






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Help with displaying HTML formatted strings from an ArrayAdapter

I appologize for the absolute beginner questions, but I am having a
tough time understanding this.

  I need some help of how to display the strings that I have marked up
with simple html into a TextView. I have found "Spanned
fromHtml(String source)", but I don't know how to plug it into my java
code or really how to use it. In my code below would HistoryList be my
string source?

Here is my Java:

package com.SorenWinslow.TriumphHistory;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;

public class TriumphHistory extends ListActivity {
    String[] HistoryList;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        ArrayAdapter<String> adapter;
        HistoryList = getResources().getStringArray(R.array.history);
        adapter = new ArrayAdapter<String>
(this,R.layout.historylistlayout,HistoryList);
        setListAdapter(adapter);

    }
}

Here is a sample of history:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="history">
<item><b>1883</b><br/>Some stuff happened</item>
<item><b>1884</b><br/>Some more stuff happened <i>before</i> the other
stuff
</item>
<resources>

<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/text1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textAppearance="?android:attr/textAppearanceLarge"
    android:gravity="center_vertical"
    android:textColor="#ffffff"
    android:background="#000050"
    android:layout_marginTop="5px"
    android:minHeight="?android:attr/listPreferredItemHeight"
    android:padding="3px"
    android:textSize="8pt" android:layout_gravity="top|left"/>


And here is my main.xml

<?xml version="1.0" encoding="utf-8"?>


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:textColor="#ffffff"
    android:background="#000080"
    android:isScrollContainer="true"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent"
android:scrollbarStyle="insideOverlay">

  <ListView xmlns:android="http://schemas.android.com/apk/res/
android"
    android:id="@android:id/list"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:clickable="true"
    android:dividerHeight="1px"/>

</LinearLayout>

-- 

2. Multitouch support in various device?

Hi,
Can anyone tell me ,how we can find whether Multitouch support is
available or not in various device?
I tried like this

try {
         FeatureInfo[] info
=_main.getPackageManager().getSystemAvailableFeatures();
         for (int i = 0; i < info.length; i++) {
          System.out.println("Info" +info[i]);
 
if(info[i].equals(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH)){
          manufacturer =true;
          Log.e("appVersion", "--->"+manufacturer);
           return manufacturer;
                        }
                }

Its working fine for Droid and nexus,But for 1.5 version it is
throwing
03-23 20:06:41.170: ERROR/AndroidRuntime(2777): java.lang.VerifyError:

Please tell me how we can solve this.I read in Forum that we can use
Java Reflection.Can anyone tell me how we can use that.

-- 

3. File operation in Android

4. Regarding Database setup

5. Display Process IDs

6. Mobile maps 9

7. Long key press handling in android 1.5