[android-developers] Digest for android-developers@googlegroups.com - 13 Messages in 10 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    Sheado <chadata@gmail.com> Sep 30 11:10PM -0700 ^
     
    Hi Pete,
     
    I got about 6 reports from LG Ally users having this same issue with
    my app since the OTA update.
    Unfortunately, I have not figured out if there's anything I can do
    from my end to prevent this from happening in the future.
     
    Anybody have any info on this?
     
    Thanks!
    -Chad
     
     

     

    "RKJ (Android developer)" <rkjhaw1983@gmail.com> Sep 30 11:08PM -0700 ^
     
    Hi Techie,
     
    I'm facing a problem in height of ListView (in my list i'v some time 1
    item or some times 20-30 items)
     
    <ListView android:id="@+id/ListView01"
    android:layout_height="330px"
    android:layout_width="fill_parent">
    </ListView>
     
    Here I want
    android:layout_height = " wrap_content"
     
    or
     
    android:layout_height = "fill_parent"
     
    but in both the case lower part of button is not showing, if i fix
    height=330px, den its comming appropriately in my emumlator,
     
    i want height should be dynamic, wrap_content
     
    so please help me, how to fix the height of list view according to
    devices, so that it will fit in any devices,
     
    thaanks
     
    __RKJ

     

    "pramod.deore" <deore.pramod83@gmail.com> Sep 30 10:40PM -0700 ^
     
    Thanks to all your responses.
     

     

    "pramod.deore" <deore.pramod83@gmail.com> Sep 30 10:37PM -0700 ^
     
    Thanks Devdroid for your reply, any other suggestions?
     

     

    Zarah Dominguez <zarah.dominguez@gmail.com> Sep 30 10:22PM -0700 ^
     
    I was also able to insert a contact into the address book. So far it
    looks like the only action not supported is viewing the whole contacts
    list.
     
    Pasted the stacktrace I got in StackOverflow:
    http://stackoverflow.com/questions/3547118/accessing-the-phonebook-on-galaxy-s-crashes-the-app
     
    I guess what happened is that Samsung's own contacts app has an
    incomplete manifest. Oh well, for the meantime I managed to get
    around it by disabling the button to access the phonebook using
    PackageManager so that users won't be confused.
     
     
     
    -Zarah.
     
     
     

     

    metal mikey <coreform@gmail.com> Sep 30 09:00PM -0700 ^
     
    G'day Google,
    Thank you!!!!!!

     

    gjs <garyjamessilva@gmail.com> Sep 30 09:20PM -0700 ^
     
    Many many thanks Google !!!!
     
    This has been a long long time coming, glad the day has finally
    arrived ( I was thinking Australia was still too small a market &
    would likely miss out again... )
     
    Look forward to you bringing the rest of the world in as well.
     
    Regards :-)
     
     

     

    Kumar Bibek <coomar.101@gmail.com> Sep 30 10:14PM -0700 ^
     
    Pretty disappointed for not having India in the list. But congrats to
    others. Go make some money. I guess, it will be another year that the
    next set of countries are announced, and I really hope the see India
    in that list.
     

     

    Ashok Jeevan <ashokjeevan@gmail.com> Oct 01 10:21AM +0530 ^
     
    Hi,
     
    I am using seekBar to show the progress of the video which I implemented
    using Media Player / Video View.
     
    But as the thumb of the seekBar is moved back and forth, the video is not
    starting correspondingly from the position of the thumb.
     
    Is there any way to locate the position of the thumb so that the video can
    load from the seekBar's thumb's position?
     
    Thanks

     

    rb <rbsata@gmail.com> Sep 30 09:34PM -0700 ^
     
    Thanks for the link to your book. I have tried your examples from it
    and now I get the app forcing to close.
    Perhaps you can shed some light on this?
     
    Here's my code:
    -- Calculator.java--
     
    package com.calculator;
     
    import android.app.Activity;
    import android.content.Intent;
    import android.graphics.Color;
    import android.os.Bundle;
    import android.view.Menu;
    import android.view.MenuItem;
    import android.view.View;
    import android.widget.Button;
    import android.widget.EditText;
    import android.widget.RadioButton;
    import android.widget.TextView;
     
    public class Calculator extends Activity {
     
    private static final int MY_SETUP = 0;
    private static final int MY_ABOUT = 1;
     
    // These are from the layout of the setup menu
    RadioButton rb1 = (RadioButton) findViewById(R.id.RadioButton01);
    RadioButton rb2 = (RadioButton) findViewById(R.id.RadioButton02);
    RadioButton rb3 = (RadioButton) findViewById(R.id.RadioButton03);
    RadioButton rb4 = (RadioButton) findViewById(R.id.RadioButton04);
    RadioButton rb5 = (RadioButton) findViewById(R.id.RadioButton05);
    RadioButton rb6 = (RadioButton) findViewById(R.id.RadioButton06);
    EditText ed1 = (EditText) findViewById(R.id.EditText01);
    EditText ed2 = (EditText) findViewById(R.id.EditText02);
    EditText ed3 = (EditText) findViewById(R.id.EditText03);
    EditText ed4 = (EditText) findViewById(R.id.EditText04);
    EditText ed5 = (EditText) findViewById(R.id.EditText05);
     
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
     
    // code of the calculator goes here //
     
    }
     
    // options menu
     
    // Called only the first time the options menu is displayed.
    // Create the menu entries.
    // Menu adds items in the order shown.
    public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);
    menu.add("Setup")
    .setIcon(android.R.drawable.ic_menu_preferences);
    menu.add("About")
    .setIcon(android.R.drawable.ic_menu_info_details);
    return(super.onCreateOptionsMenu(menu));
    //return true;
    }
     
    // handle menu selected
    public boolean onOptionsItemSelected(MenuItem item){
     
    if (item.getTitle().equals("Setup")){
    Intent intent = new Intent(this,
    com.calculator.setup.class);
    startActivityForResult(intent, MY_SETUP);
    return true;
    }
     
    if (item.getTitle().equals("About")){
    Intent intent = new Intent(this, com.calculator.about.class);
    startActivityForResult(intent, MY_ABOUT);
    return true;
    }
    return(super.onOptionsItemSelected(item));
    //return false;
    }
    }
     
    -- setup (setup.java) --
    // code handles radio click & buttons ex: setting default values back
    in to the EditText box etc.//
    package com.calculator;
     
    import android.app.Activity;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.Button;
    import android.widget.EditText;
    import android.widget.RadioButton;
    import android.widget.RadioGroup;
     
    public class setup extends Activity {
    public Boolean changeGroup = false;
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
     
    setContentView(R.layout.dialogsetup);
     
    // code to handle button clicks goes here //
    }
    }
     
    -- EditPreferences.java --
    package com.calculator;
     
    import android.os.Bundle;
    import android.preference.PreferenceActivity;
     
    public class EditPreferences extends PreferenceActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
     
    addPreferencesFromResource(R.xml.preferences);
    }
    }
     
    // NOTE: as per your example from your book, this does not have
    "import android.app.Activity;" //
    // Tried to import, but it would not take //
     
    -- preferences.xml --
     
    <?xml version="1.0" encoding="utf-8"?>
    <PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout="@layout/dialogsetup">
     
    // only 1 preference for testing //
    <EditTextPreference android:key="@string/ev1"></EditTextPreference>
     
    </PreferenceScreen>
     
    -- strings.xml --
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
    <string name="app_name">Calculator</string>
    <color name="yellow1">#F2F5A9</color>
    <color name="yellow2">#FFFF00</color>
    <color name="orange5">#FF8000</color>
    <color name="orange6">#F5D0A9</color>
    <color name="black1">#000000</color>
    <color name="dispBlueDk">#0B0B61</color>
    <color name="dispBlueMd">#0000FF</color>
    <color name="dispBlueLt">#CECEF6</color>
    <color name="bttnNormalGreyDk">#424242</color>
    <color name="bttnNormalGreyMd">#848484</color>
    <color name="bttnNormalGreyLt">#E6E6E6</color>
    <color name="yellow3">#868A08</color>
    <color name="white1">#FFFFFF</color>
    <color name="bttnTextBlueDk">#08088A</color>
    <color name="bttnTextGreenDk">#0B610B</color>
    <string name="ev1">30</string>
    </resources>
     
    -- manifest.xml --
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.calculator"
    android:versionCode="1"
    android:versionName="1.0">
    <application android:label="@string/app_name"
    android:icon="@drawable/calculator">
    <activity android:name=".Calculator"
    android:label="@string/app_name">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category
    android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>
    <activity android:name="setup"></activity>
    <activity android:name="about"></activity>
    <activity
    android:label="@string/app_name" android:name="EditPreferences">
    </activity>
    </application>
    <uses-sdk android:minSdkVersion="8" />
    </manifest>
     
    Other than the screen layouts, that is it.
     
    What could be the error?
     
     

     

    rb <rbsata@gmail.com> Sep 30 09:36PM -0700 ^
     
    Thanks for the handy method. First of all, I have to get this
    working,
    then I may try this out. Good thing to know..
     
    :RB
     

     

    "jlopeznavarro@gmail.com" <jlopeznavarro@gmail.com> Sep 30 03:39PM -0700 ^
     
    Ok, thanks for the tip.
     

     

    "{ Devdroid }" <webnet.android@gmail.com> Oct 01 12:25AM +0200 ^
     
    Hi,
     
    I noticed that when I unpublish app for which I see fresh error
    reports in Market console I no longer can access
    these error reports as long as app is unpublised. When I publish it
    back, "Errors" reappears. Is is it me, or Market
    sucks there too?

     

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 13 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    Mrid <mrid.m2k@gmail.com> Sep 30 08:44PM -0700 ^
     
    Hello All,
     
    I am using document builder parser for parsing xml response from the
    server. It works fine on emulator (SDK 1.6 and 2.2 both) but when I
    tried to use that on LG Moment (SDK 2.1), it failed.
    Found out that it is not able to load the xml response as a whole
    document. Also, XML response is very small, so it cant be a memory
    problem. Can anyone suggest an approach to solve this??
     
    Thank you

     

    Mark Murphy <mmurphy@commonsware.com> Sep 30 06:14PM -0400 ^
     
    > How do you set/pass values from one screen (activity) to another?
     
    That depends on the nature of the "values".
     
    > and place them in the main screen so that when you exit the setup
    > screen and go back to the main
    > screen, you can take those values and use them in your main code.
     
    That sounds like:
     
    -- the "setup screen" should be a PreferenceActivity
    -- the main activity should load its preferences in onStart(), or use
    a preference-change listener, to pick up the changed preferences
     
    If, for whatever reason, you want to collect preferences by means
    other than the preferences system, and so your setup screen is just an
    ordinary activity, have the main activity use startActivityForResult()
    and have the setup screen use setResult() to pass back the data via
    Intent extras.
     
    However, I really recommend that preferences be collected by the
    preference system wherever possible. People bitch and moan about how
    Android applications have no consistent UI. Preferences is one of the
    few places where Android makes it relatively painless to offer a
    consistent UI.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

     

    rb <rbsata@gmail.com> Sep 30 03:51PM -0700 ^
     
    Thanks for shedding some light on this issue.
     
    Here's some of my code:
     
    --------------------------- Main ------------------------------
     
    package com.calculator;
     
    import android.app.Activity;
    import android.content.Intent;
    import android.graphics.Color;
    import android.os.Bundle;
    import android.view.Menu;
    import android.view.MenuItem;
    import android.view.View;
    import android.widget.Button;
    import android.widget.TextView;
     
    public class Calculator extends Activity {
     
    private static final int MY_SETUP = 0;
    private static final int MY_ABOUT = 1;
     
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
     
    -- code of main calculation --
     
    // options menu
     
    // Called only the first time the options menu is displayed.
    // Create the menu entries.
    // Menu adds items in the order shown.
    public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);
    menu.add("Setup")
    .setIcon(android.R.drawable.ic_menu_preferences);
    menu.add("About")
    .setIcon(android.R.drawable.ic_menu_info_details);
    return true;
    }
     
    // handle menu selected
    public boolean onOptionsItemSelected(MenuItem item){
     
    if (item.getTitle().equals("Setup")){
    Intent intent = new Intent(this,
    com.calculator.setup.class);
    startActivityForResult(intent, MY_SETUP);
    return true;
    }
     
    if (item.getTitle().equals("About")){
    Intent intent = new Intent(this, com.calculator.about.class);
    startActivityForResult(intent, MY_ABOUT);
    return true;
    }
    return false;
    }
    }
    --------------------------- Setup ------------------------------
     
    package com.calculator;
     
    import java.io.DataInputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.Arrays;
     
    import android.app.Activity;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.Button;
    import android.widget.EditText;
    import android.widget.RadioButton;
    import android.widget.RadioGroup;
     
     
    public class setup extends Activity {
    public Boolean changeGroup = false;
    public int fps;
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
     
    setContentView(R.layout.dialogsetup);
     
    -- code of setup Here you check for various clicks for radio and
    regular buttons. --
    }
     
     
    I was going to save and read the data from a file which would be
    stored
    in the phones default applications directory as one file.
     
    Not sure how you would use the preference activity for storing name/
    values as
    I need to store and retrieve 6 different items.
     
    An example would be:
    radioButtonValue = "30"
    editTextValue = "5:02"
     
    I need to take those values and use them in the main screen for either
    calculation or display.
     
    Any chance you could reply with some code on how I could utilize the
    preferences activity
    from the code I have provided?
     
     

     

    rb <rbsata@gmail.com> Sep 30 06:15PM -0700 ^
     
    I looked at the URL's that you provided and tried some coding with it,
    but I am failing to understand
    the proper coding methods.
     
    In the main, I have the options menu as:
     
    // options menu
     
    // Called only the first time the options menu is displayed.
    // Create the menu entries.
    // Menu adds items in the order shown.
    public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);
    menu.add("Setup")
    .setIcon(android.R.drawable.ic_menu_preferences);
    menu.add("About")
    .setIcon(android.R.drawable.ic_menu_info_details);
    return(super.onCreateOptionsMenu(menu));
    //return true;
    }
     
    // handle menu selected
    public boolean onOptionsItemSelected(MenuItem item){
     
    if (item.getTitle().equals("Setup")){
    Intent intent = new Intent(this,
    com.tccalculator.setup.class);
    startActivityForResult(intent, MY_SETUP);
    return true;
    }
     
    if (item.getTitle().equals("About")){
    Intent intent = new Intent(this,
    com.tccalculator.about.class);
    startActivityForResult(intent, MY_ABOUT);
    return true;
    }
    return(super.onOptionsItemSelected(item));
    //return false;
    }
     
    I believe that I need this to read the preferences still in the main
    and set a textview as such:
     
    public void onResume() {
    super.onResume();
     
    SharedPreferences prefs=PreferenceManager
    .getDefaultSharedPreferences(this);
    TextView tv = (TextView) findViewById(R.id.TextView01);
    tv.setText(prefs.getString("tview1", ""));
     
    The preference name for this textview is called "tview1". According
    to the example, it looks like you have
    to give it a value. I just want to read that preference, and take the
    value it has, and place it in the TextView01 text
    but according to the example, you have to give it a value.
     
    In the setup, I created this:
    @Override
    protected void onStop(){
    super.onStop();
     
    // We need an Editor object to make preference changes.
    // All objects are from android.context.Context
    SharedPreferences settings = getSharedPreferences(PREFS_NAME,
    0);
    SharedPreferences.Editor editor = settings.edit();
     
    editor.putString("tview1","this is a test");
     
    // Commit the edits!
    editor.commit();
    }
     
    The PREFS_NAME was declared at the top:
    public static final String PREFS_NAME = "calcsettings";
     
    If I am following this, the "editor" creates the name/value pair
    ("tview1" = "this is a test") then writes it to the preferences
    by calling the editor.commit();
     
    What am I doing wrong? As I am testing, I am attempting to creating/
    retrievie
    one preference (name/value).
     
    Thanks again for all your help.
     
    :RB
     
     

     

    Mark Murphy <mmurphy@commonsware.com> Sep 30 09:22PM -0400 ^
     

    > The preference name for this textview is called "tview1".  According
    > to the example, it looks like you have
    > to give it a value.
     
    You have to give it a default value, in case the preference has not
    yet been set by the user. That is the second parameter to getString()
    ("Value to return if this preference does not exist", per the
    documentation):
     
    http://developer.android.com/reference/android/content/SharedPreferences.html#getString(java.lang.String,
    java.lang.String)
     
    >  I just want to read that preference, and take the
    > value it has, and place it in the TextView01 text
    > but according to the example, you have to give it a value.
     
    I repeat, you have to give it a default value, in case the preference
    has not yet been set by the user.
     
     
    >      // Commit the edits!
    >      editor.commit();
    >    }
     
    This should not be needed.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

     

    davemac <davemac327@gmail.com> Sep 30 08:03PM -0700 ^
     
    You should also check out this handy method:
     
    PreferenceManager.setDefaultValues(Context context, int resId, boolean
    readAgain)
     
    Assuming you've defined default values for preferences in your
    preferences.xml file, this method will use those to initialize your
    saved preferences file. Which means you shouldn't have to define
    default values in your code. Which is nice.
     
    - dave
    www.androidbook.com
     

     

    Yahel <kayenko@gmail.com> Sep 30 03:37PM -0700 ^
     
    Effective today, developers from 20 additional countries (Argentina,
    Australia, Belgium, Brazil, Canada, Denmark, Finland, Hong Kong,
    Ireland, Israel, Mexico, New Zealand, Norway, Portugal, Russia,
    Singapore, South Korea, Sweden, Switzerland and Taiwan) can now sell
    paid apps on Android Market. Over the next 2 weeks, users from 18 new
    countries (Argentina, Brazil, Belgium, Czech Republic, Denmark,
    Finland, Hong Kong, India, Ireland, Israel, Mexico, Norway, Poland,
    Portugal, Russia, Singapore, Sweden, and Taiwan) will be able to
    purchase paid apps from Android Market.
     
    Is that awsome or what !!
     
    Good job Android !!
     
    Yahel

     

    "{ Devdroid }" <webnet.android@gmail.com> Oct 01 12:55AM +0200 ^
     
    > Finland, Hong Kong, India, Ireland, Israel, Mexico, Norway, Poland,
    > Portugal, Russia, Singapore, Sweden, and Taiwan) will be able to
    > purchase paid apps from Android Market.
     
     
    This still sucks as there's 18 new sellers vs 20 buyers, which
    means that developers from 2 countries (namely South Korea and
    Poland) are still left behind and can't sell anyting to users in
    their own countries. That's lame.

     

    "{ Devdroid }" <webnet.android@gmail.com> Oct 01 01:07AM +0200 ^
     

    > (namely South Korea and Poland)
     
    I meant "Czech Republic and Poland" of course

     

    Craigo <craigmit@gmail.com> Sep 30 04:22PM -0700 ^
     
    I registered an account in the United States (gave up waiting), and
    now I would like to switch the country to my actual country, however,
    it doesn't let me. Anyone know if this is possible?
     
     

     

    William Ferguson <william.ferguson.au@gmail.com> Sep 30 05:19PM -0700 ^
     
    Hey its definitely a step in the right direction.
    And should hold out hope that it will be rolled out further.
     
    Its certainly opened up the type of apps that I will consider
    developing now that I can sell into the market.
     

     

    Denis Souza <denis.souza@gmail.com> Sep 30 07:54PM -0700 ^
     
    I just registered here in Brazil. It links to your AdSense account so
    you can receive the payments. I thought it was a pretty clever way to
    do it, using the existing AdSense system so they wouldn't have to
    implement payment systems for every country. Maybe the restrictions to
    Czech Republic and Poland have something to do with the availability
    of AdSense in those countries (can anyone from those countries
    enlighten us?).
    It's lame, but having 20 additional countries selling apps is a pretty
    big deal (from the handful that there was before) and I'm sure they'll
    continue expanding, especially with Android's increased growth in
    market share.
     
     

     

    Brian <zootsuitbrian@gmail.com> Sep 30 07:43PM -0700 ^
     
    bump????
     

     

    BobG <bobgardner@aol.com> Sep 30 07:12PM -0700 ^
     
    Is this slowdown due to lots of new traffic from the new customers in
    the new countries?

     

    Denis Souza <denis.souza@gmail.com> Sep 30 07:10PM -0700 ^
     
    Anyone had any progress or ideas with this?
     
    It's a bit hard to test it when you don't have the device.
    Anyway, I got two reports from Motorola users with the same problem...
    but the interesting thing is they only started having any problems
    after upgrading to my app's latest version.
    It occurred to me that the phone might have a limit to the time it
    waits for a response from the app (since my latest version does a few
    extra things before dialing) but I wrote a special super fast test
    version for one of the users and it still didn't work. Also I tried it
    on my HTC Hero making the phone wait 10 seconds but it worked fine,
    which means that's probably not the problem.
     
    Nicholas, you said you had the Desire with 2.2. Have you tried playing
    with the intent filter's priority values? Maybe using 1 or 0 or even
    removing the priority parameter altogether? That would be my next
    hunch.
     
     

     

    Dan <kinglag@gmail.com> Sep 30 06:34PM -0700 ^
     
    Hello Developers,
     
    I have found that there is a significant lack of documentation of
    WebView's ability to communicate with Java via WebView.addJavaScript()
    method. First, the debug document
    http://developer.android.com/guide/developing/debug-tasks.html#DebuggingWebPages
    appears to no longer work. Second, what object types should we expect
    when going to and from JavaScript. I have done some trial and error
    and it appears that complex types can cross the boundary, for example
    java.util.Vector. However when a Java method returns a byte array to
    JavaScript it has a type of undefined and I have been unable to coerce
    it to any other type. Finally, there is great potential with this
    interface and with some more attention we could go far.
     
    -Dan

     

    Mark Murphy <mmurphy@commonsware.com> Sep 30 09:44PM -0400 ^
     
    > java.util.Vector. However when a Java method returns a byte array to
    > JavaScript it has a type of undefined and I have been unable to coerce
    > it to any other type.
     
    Personally, I recommend people stick with the basic primitives that
    are shared between the two environments, using JSON for anything that
    is complex. The precise roster of Java types/classes and Javascript
    counterparts is undocumented AFAIK, and the code is rather nasty...
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    Android Training in Atlanta: http://bignerdranch.com/classes/android

     

    mikedroid <michang05@gmail.com> Sep 30 06:16PM -0700 ^
     
    still not Contacts.UI.LIST_ALL_CONTACTS_ACTION , tried it
     

     

    mikedroid <michang05@gmail.com> Sep 30 06:10PM -0700 ^
     
    actually it does show me a list (calling ACTION_VIEW or ACTION_PICK)
    using ContactsContract.Contacts.CONTENT_URI. but we wanted to call the
    samsung's native contacts activity which is named something like
    PhoneBookTopMenuActivity. Also i noticed that instead of the two
    actions i;ve mentions they are using this activity with filters
    action=main; category=launcher which is odd right?
     

     

    Shawn Brown <big.coffee.lover@gmail.com> Oct 01 10:08AM +0900 ^
     
    Hi,
     
    If you know or can guess please tell me why:
     
    In the FrameLayout below, scaleType="fitXY" will adjust the image to
    fit the screen but scaleType="centerInside" doesn't. I need the
    aspect ratio preserved which fitXY doesn't do. Please look at the
    >>>>>>>>-----------------> below.
     
     
     
     
    <?xml version="1.0" encoding="utf-8"?>
     
    <ScrollView
    android:id="@+id/widget54"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
     
    <LinearLayout
     
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
     
    >>>>>>>>-----------------> no effect, image is too large
     
    <FrameLayout android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <ImageView android:src = "@drawable/logo"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:scaleType="centerInside"></ImageView>
    </FrameLayout>
     
    >>>>>>>>------------------> scales but aspect ratio lost
     
    <FrameLayout android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <ImageView android:src = "@drawable/logo"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:scaleType="fitXY"></ImageView>
    </FrameLayout>
     
    <Button
    android:id="@+id/button1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Button 1"
    />
    <Button
    android:id="@+id/button2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Button 2"
    />
    <Button
    android:id="@+id/button3"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Button 3"
    />
    <EditText
    android:id="@+id/txt"
    android:layout_width="fill_parent"
    android:layout_height="300px"
    />
     
    </LinearLayout>
    </ScrollView>
     
    Thanks,
     
    Shawn

     

    JonFHancock <jonfhancock@gmail.com> Sep 30 04:03PM -0700 ^
     
    The last update from Google/Verzion was half a month ago. Is there
    any progress to report?
     
    On Sep 13, 11:48 am, "suzanne.alexandra"

     

    DanH <danhicks@ieee.org> Sep 30 03:59PM -0700 ^
     
    Of course, the real problem is that the verifier is mis-designed. I'm
    guessing it uses reference chains. I redid the one for iSeries to use
    sparse bit vectors and cut the heap requirements by about a factor of
    100, and made it much faster as well.
     

     

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 15 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    rb <rbsata@gmail.com> Sep 30 03:09PM -0700 ^
     
    How do you set/pass values from one screen (activity) to another?
     
    What I have in the R.layout.main view labeled Calculator contains the
    code for doing calculations.
    The main.xml contains the layout (view) of the main screen.
     
    I have created an options menu which has another screen which shows
    you setup (R.layout.setup).
    The dialogsetup.xml contains the layout (view) for it.
     
    When you press the menu button, you get the options menu. If you
    select "Setup", then
    it will display the setup screen. Now what I need to do is take the
    values from the setup screen (radio button and text values)
    and place them in the main screen so that when you exit the setup
    screen and go back to the main
    screen, you can take those values and use them in your main code.
     
    Any coding would be appreciated.

     

    Dan <kinglag@gmail.com> Sep 30 02:33PM -0700 ^
     
    Hello,
     
    I've been trying to debug JavaScript in the emulator using the
    instructions provided at http://developer.android.com/guide/developing/debug-tasks.html#DebuggingWebPages
    but it has not worked. I am not using a customized WebView so I have
    not overridden WebView.onConsoleMessage(). Also, the same page works
    well in Chrome and Firefox. Is there anything I could be missing?
     
    -Dan

     

 Topic: default email
    richie rich <rich.aloha@gmail.com> Sep 30 12:53PM -0700 ^
     
    did google write the default email app?
     
    is the source code anywhere?
     
    i guess i'll have to fix it myself, because it is utter crap. loses my
    account settings weekly, and now, it is pulling in my gmail account
    bodies (that isn't even setup in that client) for the emails in my
    exchange account.
     
    brand new phone. shiny 2.1 os....
     
    i know this is the dev site, so i'll just fix it myself and roll my
    own email client since google apparently is too busy fixing the bugs
    in cars nowadays to deliver decent applications that work.

     

    Kostya Vasilyev <kmansoft@gmail.com> Oct 01 12:52AM +0400 ^
     
    Take a look at k9mail - it's an open-sourced project based on the built-in
    email client, with improvements and fixes. Perhaps it would be a good place
    to contribute, or fork your own efforts while leveraging their work.
     
    --
    Kostya Vasilyev -- http://kmansoft.wordpress.com
     
    30.09.2010 23:53 пользователь "richie rich" <rich.aloha@gmail.com> написал:
     
    did google write the default email app?
     
    is the source code anywhere?
     
    i guess i'll have to fix it myself, because it is utter crap. loses my
    account settings weekly, and now, it is pulling in my gmail account
    bodies (that isn't even setup in that client) for the emails in my
    exchange account.
     
    brand new phone. shiny 2.1 os....
     
    i know this is the dev site, so i'll just fix it myself and roll my
    own email client since google apparently is too busy fixing the bugs
    in cars nowadays to deliver decent applications that work.
     
    --
    You received this message because you are subscribed to the Google
    Groups "Android Developers" group.
    To post to this group, send email to android-developers@googlegroups.com
    To unsubscribe from this group, send email to
    android-developers+unsubscribe@googlegroups.com<android-developers%2Bunsubscribe@googlegroups.com>
    For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en

     

    Stephen Lau <steve@grommit.com> Sep 30 01:45PM -0700 ^
     
    I've built my own SyncAdapter and things seem to work okay, except on
    TouchWiz & Motoblur phones, there seems to be a label set as "Unknown"
     
    On TouchWiz, this is visible if you look at the linked contacts for a
    contact, it shows "Unknown" as the provider. Similarly if I go to the
    Groups tab in Contacts, it calls the group that all my SyncAdapter
    managed contacts are in as "Unknown".
     
    It seems like I'm just not setting a label somewhere somehow, but I
    can't figure out where. Anyone familiar with this?
     
    cheers,
    steve
    --
    stephen lau | steve@grommit.com | http://whacked.net | @stevel

     

    Jeremy Statz <jstatz@gmail.com> Sep 30 11:07AM -0700 ^
     
    I've tested this extensively at this point (including a 20-hour run on
    an Incredible) and I think you're right, calling glFinish() seems like
    it largely fixes the problem. Wow, I'd really thought that one was
    outmoded.
     
    Related to this, the most recent EVO update was causing the
    framebuffer to flicker with black squares sometimes on my wallpapers,
    and calling glFinish() fixed that too. And it fixed a similar
    corruption I had reported a few days ago on the Nexus one. It's the
    magic HTC fixer-upper!
     
    TimeDilation, you're my hero.
     
     

     

    Leigh McRae <leigh.mcrae@lonedwarfgames.com> Sep 30 02:26PM -0400 ^
     
    You might want to look into the eglWait functions that are used to
    synchronize with the native rendering system.
     
    On 9/30/2010 2:07 PM, Jeremy Statz wrote:
     
    --
    Leigh McRae
    www.lonedwarfgames.com

     

    timedilation <udayan.kale@gmail.com> Sep 30 01:30PM -0700 ^
     
    Jeremy, Glad to note that is has so far worked out for you.
     
    Leigh, to your point, I also tested this with an explicit call to
    eglWaitGL() function in my own version of GLSurfaceView (basically
    this call was added just before the eglSwapBuffer() call). This also
    fixed the freezing in my case. I just resorted to using glFinish()
    because that way I didn't have to use my own version of GLSurfaceView.
    So if Google changed their GLSurfaceView in the next release, my code
    will not be affected much.
     
    When I mentioned this to a Google developer advocate and he said that
    this still needs to be fixed in the OS since it is an OS level bug.
    eglSwapBuffers() called glFlush() internally anyways but it ends up
    getting deadlocked once in a while on some of these devices we have
    seen. Explicitly calling eglWaitGL() or glFinish() in the renderloop
    *before* the eglSwapBuffers() appears to have fixed this issue in many
    (if not all) cases. I still have users reporting to me that their
    phones freezing even with the latest update, albeit much less
    frequently.
     
    Let's hope for Google to fix this once and for all in their next
    release.
     
     
     
    On Sep 30, 2:26 pm, Leigh McRae <leigh.mc...@lonedwarfgames.com>
    wrote:

     

    scott19_68 <sw.coppen@gmail.com> Sep 30 12:12PM -0700 ^
     
    FYI: Updated one of my apps that was affected by this issue - active
    install percentage holding steady now, but has not returned to
    anywhere close to 4 weeks ago. Would like to know if past cases where
    updates were counted as uninstalls are ever going to be corrected...
     

     

    Greg Donald <gdonald@gmail.com> Sep 30 02:34PM -0500 ^
     
    > install percentage holding steady now, but has not returned to
    > anywhere close to 4 weeks ago.  Would like to know if past cases where
    > updates were counted as uninstalls are ever going to be corrected...
     
    Surely Google has log files they can use to fix things.
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    Justin Giles <jtgiles@gmail.com> Sep 30 02:43PM -0500 ^
     
    I updated one of my apps on Tuesday. I have noticed that the active install
    numbers were accumulating at a higher rate than my download numbers. So, I
    think as people update the app, it is putting the active installs back to
    normal. So far I've only gone up 1%, but it's nice to see it seemingly go
    back to normal.
     
    Justin
     
     

     

    Greg Donald <gdonald@gmail.com> Sep 30 02:56PM -0500 ^
     
    > normal.  So far I've only gone up 1%, but it's nice to see it seemingly go
    > back to normal.
    > Justin
     
    Normal? You mean like all the way back to December when it broke?
    Yeah, that'd be nice.
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    paladin <quotient@gmail.com> Sep 30 12:20PM -0700 ^
     
    In an HTML page, I have at one place, <a name="updates"></a>, but in a
    WebView, when I click on <a href="#updates">updates</a>, it doesn't
    jump to the correct place. It works fine if I load that page in a
    browser. It does nothing but mark that link as visited in the WebView.
    Is there some setting that I'm not correctly configuring?

     

    Greg Donald <gdonald@gmail.com> Sep 30 02:54PM -0500 ^
     
    > jump to the correct place. It works fine if I load that page in a
    > browser. It does nothing but mark that link as visited in the WebView.
    > Is there some setting that I'm not correctly configuring?
     
    You might try using full urls and implement you own shouldOverrideUrlLoading():
     
    public class MyWebViewClient extends WebViewClient
    {
    public boolean shouldOverrideUrlLoading( WebView view, String url )
    {
    view.loadUrl( url );
    return true;
    }
    }
     
    I'm guessing it's failing because your hrefs to your named anchors
    aren't full urls, or you need to tell your webview to follow your
    clicks, or both.
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    paladin <quotient@gmail.com> Sep 30 12:55PM -0700 ^
     
    OK, found the answer. The WebView was in a ScrollView, when that is
    unnecessary, and that was messing up the navigation.
     

     

    Jatin D Patel <depo.jatin@gmail.com> Sep 30 03:44PM -0400 ^
     
    My project is highly dependent on retrieving data via Remote Service.
     
    For that i have one option of writing php scripts for calling via remote
    http urls.
     
    1. Is the methodology which i am going to adopt Efficient, bec there will be
    almsot 15 php scripts for a single user throught an app.?
    2. If Not plz suggest . an alternative.
     
    Thanks for reply.
     
    --
    Thanks,
    Jatin D N Patel
    Masters, Computer Sci.
    Suny Binghamton Univ, NY.
     
    You Got To Think HIGH to RISE.

     

    Andy Burns <usenet.apr2010@adslpipe.co.uk> Sep 30 07:26PM +0100 ^
     
    Ulzii wrote:
     
    > The certificate that signed this apk is not valid until the future.
    > Create a new certificate.
    > I setup my duration 50 years. I have signed my App from Eclippse.
     
    Sounds like the problem isn't the expiry time of your certificate, but
    the issued at time ...

     

    TreKing <trekingapp@gmail.com> Sep 30 01:55PM -0500 ^
     

    > The certificate that signed this apk is not valid until the future.
     
     
    This usually means the time on your computer, at the time you signed your
    app, was ahead of the real current time.
     
    Try manually resetting your system clock to like a day in the past and try
    again.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Fabrizio Giudici <fabrizio.giudici@tidalwave.it> Sep 30 08:27PM +0200 ^
     
    On 9/28/10 01:49 , Lance Nanek wrote:
    > against it. Then I refactored the packages to notjava.beans.**. So
    > anyway, sometimes you can work out a substitute for the missing Java
    > classes and alter all references to point to that substitute.
    I've answered to this question a number of times recently... The
    quickest way to do this is not by refactoring the classes, but by using
    static bytecode manipulation tools. They are able to replace the
    references directly in bytecode, without need of patching sources and
    recompile them. They are available both for Ant and Maven.
     
    --
    Fabrizio Giudici - Java Architect, Project Manager
    Tidalwave s.a.s. - "We make Java work. Everywhere."
    java.net/blog/fabriziogiudici - www.tidalwave.it/people
    Fabrizio.Giudici@tidalwave.it

     

    Nathan <crittermap@crittermap.com> Sep 30 11:28AM -0700 ^
     
    I can't seem to find a command that will allow me to mount/unmount the
    sdcard from the adb prompt.
     
    From the documentation, it appears that this can't be done in an
    emulator, so I am trying with a Nexus One.
     
    I would like to simulate the card being mounted or unmounted while my
    Activity is active. I can't do this on the Nexus One through the
    notification menu, because this will pause and then resume and
    activity, during which time storage card broadcast notifications are
    not sent.
     
    I know other devices can and do mount the storage without leaving an
    Activity, in particular because they will automount the storage
    whenever the USB is plugged in (according to users, even if you tell
    it not to). For that reason, this is a case I want to test.
     
    Nathan

     

    "Carl H." <charroch@gmail.com> Sep 30 11:21AM -0700 ^
     
    The documentation mention that AndroidHttpClient subclass
    DefaultHttpClient while it implements HttpClient. Furthermore, it says
    that it gives the ability to users to add interceptors which is not
    the case. Currently implementing my own until fixed.
     
    Thanks,
    Carl

     

    Tarun S <sant.tarun@gmail.com> Sep 30 11:00AM -0700 ^
     
    Hi,
    I am pretty new in Android.
    I have noticed a problem in Alarm Clock application that comes with
    the Android Codebase.
    Let me explain the problem first.
    Current Time is 12:15 pm. Snooze time is 10 mins.
    I have set an alarm at 12:30 pm.
    I have set another alarm at 12:35 pm.
    When the fist alarm fires I snooze the alarm. It will ring again at
    12:40 pm.
    In this case the second alarm which I have set at 12:35pm does not
    fire.
     
    Please help me in this.
    As per I know in Android at a time one alarm can be set using
    AlarmManager.set () method. In this case in AlarmReceiver.java class
    when on alarm fires it set the next alarm. But if I snooze the alarm
    it will overwrite the previous alarm the snooze alarm. I may not be
    correct. Please tell me the solution of this problem.
     
    Thanks and Regards,
    Tarun S

     

    OldSkoolMark <mark@sublimeslime.com> Sep 30 09:06AM -0700 ^
     
    I'm wondering what happens to the counts when somebody upgrades to a
    new phone, and doesn't reinstall an app that they had on their old
    phone. Or does reinstall.
     

     

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 12 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    Ulzii <terelj@gmail.com> Sep 30 10:56AM -0700 ^
     
    When I upload my Android App to market it gives as next message:
     
    The certificate that signed this apk is not valid until the future.
    Create a new certificate.
     
    Help me to solve this problem.
     
    I setup my duration 50 years. I have signed my App from Eclippse.
     
    Thanks,
    Ulzii

     

    Gold <thangadurai07@gmail.com> Sep 30 10:00AM -0700 ^
     
    Hi,
     
    I want to show notification in service..!
     
    While I click button in my home screen I just call
    service.!
     
    That service run every 30 seconds with the help of
    timer..! I want to show result to user..!
     
    How can I implement this..! Herewith I attached
    code..
     
     
    HOme screen
    ----------------------
     
    package com.servicetest;
     
    import java.util.Timer;
     
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;
    import android.widget.Toast;
     
    public class Home extends Activity
    {
    private Button btn;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    btn = (Button)findViewById(R.id.Button01);
     
    btn.setOnClickListener(new OnClickListener() {
     
    @Override
    public void onClick(View v)
    {
    // TODO Auto-generated method stub
    Toast.makeText(getApplicationContext(), "Hai",
    Toast.LENGTH_SHORT).show();
    Intent in = new Intent();
    in.setClassName("com.servicetest", "com.servicetest.ServiceTest");
    startService(in);
    }
    });
    }
    }
     
     
    ServiceTest.java
    -----------------------
     
     
    package com.servicetest;
     
    import java.util.Date;
    import java.util.Timer;
    import java.util.TimerTask;
     
    import android.app.AlertDialog;
    import android.app.Notification;
    import android.app.NotificationManager;
    import android.app.Service;
    import android.content.Intent;
    import android.media.MediaPlayer;
    import android.os.IBinder;
    import android.util.Log;
    import android.widget.Toast;
     
    public class ServiceTest extends Service
    {
    private Timer timer = new Timer();
    private static final String TAG = "MyService";
    MediaPlayer player;
    WebserviceConnect wsConnect = new WebserviceConnect();
    String result = "";
    boolean flag = true;
    private long delay = 1000;
    public static final int NOTIFICATION_ID_RECEIVED = 01221;
     
    @Override
    public IBinder onBind(Intent intent)
    {
    return null;
    }
     
    @Override
    public void onCreate()
    {
    Toast.makeText(this, "My Service Created",
    Toast.LENGTH_LONG).show();
    Log.d(TAG, "onCreate");
    }
     
    @Override
    public void onDestroy()
    {
    Toast.makeText(this, "My Service Stopped",
    Toast.LENGTH_LONG).show();
    Log.d(TAG, "onDestroy");
    }
     
    @Override
    public void onStart(Intent intent, int startid) {
    Toast.makeText(this, "My Service Started",
    Toast.LENGTH_LONG).show();
    Log.d(TAG, "onStart");
     
    timer.scheduleAtFixedRate(new TimerTask()
    {
     
    @Override
    public void run()
    {
    // TODO Auto-generated method stub
    result = wsConnect.Connect("CheckStatus", "ID", "7x897");
    Log.d(TAG,result);
    }
     
    }, delay , delay);
     
    Log.d(TAG,result);
    Toast.makeText(getApplicationContext(), result, 5).show();
    if (result.equals("Success"))
    {
    timer.cancel();
    timer = null;
    }
    }
     
    }
     
     
     
     
    Thanks & Warm Regards,
    Gold

     

    Brad Gies <rbgies@gmail.com> Sep 30 09:12AM -0700 ^
     
    >With respect to your larger icons, I have no clue what to tell you.
     
    Hah... Mark... now you're scaring me... you know as much about screen
    size/density etc. as anyone I know :).
     
    In my case, I absolutely do not have the ability to learn this... my
    brain totally shuts down as soon as image/screen size/density etc. are
    mentioned. I just don't have any interest in graphics or display issues
    :).....but ask me to design a web service to move data around... and
    great things happen :). My preferred method of working has always been
    to build it and make it work well, then turn it over to someone with
    some artistic ability and have them make it look nice :).
     
    Actually, just confirmation that the 24, 32 and 48 are the right sizes
    for the smaller icons is quite helpful. I can guess at the correct sizes
    for the larger icons, and then adjust as I test the different AVD's...
     
    Sincerely,
     
    Brad Gies
    -----------------------------------------------------------------------
    Bistro Bot - Bistro Blurb
    http://bgies.com
    http://bistroblurb.com
    http://ihottonight.com
    http://forcethetruth.com
    -----------------------------------------------------------------------
     
    Everything in moderation, including abstinence
     
    Never doubt that a small group of thoughtful, committed people can
    change the world. Indeed. It is the only thing that ever has - Margaret Mead
     
     
    On 30/09/2010 4:47 AM, Mark Murphy wrote:

     

    Mark Murphy <mmurphy@commonsware.com> Sep 30 12:27PM -0400 ^
     
    >> With respect to your larger icons, I have no clue what to tell you.
     
    > Hah... Mark... now you're scaring me... you know as much about screen
    > size/density etc. as anyone I know :).
     
    You need to know more people, then, particularly ones that aren't as
    graphically challenged as I. :-)
     
    > In my case, I absolutely do not have the ability to learn this... my brain
    > totally shuts down as soon as image/screen size/density etc. are mentioned.
     
    Conversely, the reason I can't give you any more advice is that my
    brain shuts down with your proposed UI. I just have no idea how you'll
    ever get that to look good across multiple screen sizes. Any UI design
    that effectively has to assume certain dimensions scares the heck out
    of me.
     
    > My preferred method of working has always been to build it and make it
    > work well, then turn it over to someone with some artistic ability and have
    > them make it look nice :).
     
    You and me both.
     
    > Actually, just confirmation that the 24, 32 and 48 are the right sizes for
    > the smaller icons is quite helpful.
     
    Well, it's more that they are a logical set of sizes if they are
    applied to different densities. I can't tell you what is "right",
    since that applies aesthetics, and there are hamsters with greater
    aesthetic sense than I possess. But, they're a good starting point.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

     

    Yahel <kayenko@gmail.com> Sep 30 09:53AM -0700 ^
     
    I'm not sure this might help you, this is what I use on the server
    side for my app 'a World of Faces' : It allows to get an image to a
    specified size no matter what. It's very efficient and does not
    consume much cpu or memory on the server. I tweaked the code quite a
    lot for my purpose but it works fine :
     
    // Smart Image Resizer 1.4.1
    http://shiftingpixel.com/2008/03/03/smart-image-resizer/
     
    People can then send you any size of graphics and you'll be able to
    use them however you like.
     
    Yahel
    http://www.a-world-of-faces.com

     

    Kostya Vasilyev <kmansoft@gmail.com> Sep 30 09:02PM +0400 ^
     
    Brad,
     
    30.09.2010 20:12, Brad Gies пишет:
    > for the smaller icons is quite helpful. I can guess at the correct
    > sizes for the larger icons, and then adjust as I test the different
    > AVD's...
     
    The "reference" device densities are: 120 / 160 / 240 for ldpi / mdpi /
    hdpi respectively.
     
    http://developer.android.com/guide/practices/screens_support.html#range
     
    This means that if you design the artwork you call "larger icons" at a
    certain size, then the hdpi version should be 6/4 (== 3/2), and ldpi -
    3/4 the size of the mdpi version (so hdpi artwork is exactly twice as
    tall / wide as ldpi).
     
    The mdpi size should preferably be such it can be scaled to 3/2 and 3/4
    of the original size without producing fractional pixels.
     
    I am another developer who loathes doing graphics for his programs, and
    rightly so, since I'm pretty bad at it.
     
    What I found useful is to design my artwork in Photoshop at mdpi (==
    "normal") density first, trying to use shape objects and to avoid
    pixel-based tools as much as possible. This is important for next step:
    scaling the image up in Photoshop to go from mdpi to hdpi, since shapes
    scale up much better than raster data.
     
    At this point I have with two Photoshop files, one for mdpi and one for
    hdpi. I then use "File | Save for Web & Devices" to export optimized
    .PNG images.
     
    The mdpi and hdpi already have the right dimensions for exporting, so no
    problem there. To create the ldpi version, I export the mdpi file and
    specify smaller dimensions right in the export parameters window. I
    found that Photoshop often produces a better quality reduced size image
    than Android does at runtime, so having pre-built ldpi images is useful.
    Not all images need this, though: for some, it's ok to just have the
    mdpi and hdpi versions, and let Android do the scaling down for ldpi.
     
    This workflow could be simplified by working in Photoshop only at hdpi
    density, and scaling during export for mdpi as well as ldpi. My first
    Android phone was an HTC Hero (mdpi), so I kind of made mdpi the center
    of my artwork-related process.
     
    And finally, the link below lists standard icon sizes for various screen
    densities depending on where and how they are to be used (Launcher,
    Dialog, List View, etc.)
     
    http://developer.android.com/guide/practices/ui_guidelines/icon_design.html
     
    --
    Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

     

    Brad Gies <rbgies@gmail.com> Sep 30 10:30AM -0700 ^
     
    Thanks... I'll definitely have a look at that today sometime. Appreciate
    it very much...
     
     
    Sincerely,
     
    Brad Gies
    -----------------------------------------------------------------------
    Bistro Bot - Bistro Blurb
    http://bgies.com
    http://bistroblurb.com
    http://ihottonight.com
    http://forcethetruth.com
    -----------------------------------------------------------------------
     
    Everything in moderation, including abstinence
     
    Never doubt that a small group of thoughtful, committed people can
    change the world. Indeed. It is the only thing that ever has - Margaret Mead
     
     
    On 30/09/2010 9:53 AM, Yahel wrote:

     

    fadden <fadden@android.com> Sep 30 10:29AM -0700 ^
     
    > Unfortunately, another problem arose. The Verifyer now says:
     
    > 09-29 18:02:44.058: WARN/dalvikvm(450): VFY: arbitrarily rejecting
    > large method (regs=127 count=34916)
     
    I fixed that one too while I was at it. The limit was intended to
    prevent the verifier from soaking up huge amounts of memory, but (a)
    the limit is too low, and (b) there are better mechanisms in the
    system for doing that. So now it's just a warning that says, "hey,
    this is huge".
     
    With both fixes in place, the original code passes.

     

    Namrata <puranik.namrata@gmail.com> Sep 30 10:16AM -0700 ^
     
    Mark,
    I tried setting up 2 test projects as per the instructions given in
    http://developer.android.com/guide/developing/other-ide.html#libraryP...
    TestLib (libray project) and TestApp (application). Setup is done
    successfully. ant compile on TestLib works perfectly. When I tried ant
    debug/release on TestApp it is giving me following errors.
     
    compile:
    [javac] Compiling 4 source files to /home/axa/test/project2/bin/
    classes
    [javac] /home/axa/backup/project2/src/com/axa/testapp/
    TestAppView.java:6: cannot find symbol
    [javac] symbol: class TestLib
    [javac] public class TestAppView extends TestLib
    [javac] ^
    [javac] /home/axa/test/project2/src/com/axa/testapp/
    TestAppView.java:12: cannot find symbol
    [javac] symbol : variable super
    [javac] location: class com.axa.testapp.TestAppView
    [javac] super.onCreate(savedInstanceState);
    [javac] ^
    [javac] /home/axa/backup/project2/src/com/axa/testapp/
    TestAppView.java:13: cannot find symbol
    [javac] symbol : method setContentView(int)
    [javac] location: class com.axa.testapp.TestAppView
    [javac] setContentView(R.layout.main);
    [javac] ^
    [javac] /home/axa/backup/project2/src/com/axa/testapp/
    TestAppView.java:9: method does not override or implement a method
    from a supertype
    [javac] @Override
    [javac] ^
    [javac] 4 errors
     
     
    Did I missed anything which I supposed to do here?
     
     

     

    Sarwar Erfan <erfanonline@gmail.com> Sep 30 10:07AM -0700 ^
     
    Two events are generated...
    First : ACTION_DOWN
    Second: ACTION_UP
     
    Try something like this in your event handler:
     
    if (event.getAction() == MotionEvent.ACTION_DOWN) {
    //play sound here
    }
     
    Regards
    Sarwar Erfan
     

     

    Greg Donald <gdonald@gmail.com> Sep 30 12:05PM -0500 ^
     
    > demand curve. The supply went way up when they let more developers
    > into the program. Hence the eCPM drop. In my experience google pays
    > about as well as anyone.
     
    Not for me. When I first got into the beta program I began making a
    lot more than the ad guys I was using before: Greystrip and AdMob.
    That huge increase in revenue has since gone away and now I see no
    reason to choose AdSense over anyone else.
     
    > And it isn't so much that users don't
    > understand about the arrow (that is some of it). It is more that
    > developers are no longer getting paid for misclicks.
     
    All my ad integrations were reviewed by Google before launch. There
    was only the tiniest chance of any mis-clicks because my banner
    placement was not close to anything else the user would ever click.
     
    > your lower reimbursements. They are making more by cranking up the
    > volume of ads they serve. And yeah it sucks as a developer when your
    > revenue is cut in 1/3 over 2 days.
     
    I saw a 90% drop in AdSense revenue overall from June and July to now.
    And that's the difference between thinking I could do Android
    development fulltime or not. I can only hope it picks back up before
    the holiday season. It seems more likely that ship has sailed.
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    Romain Guy <romainguy@android.com> Sep 30 09:50AM -0700 ^
     
    The track is not the scrollbar, the track is what the scrollbar
    "slides" into. The default theme does not have a track anymore. The
    track is normally shown only when the view can scroll and this
    attribute can be used to show the track even when you can't scroll. In
    your case I believe you want to disable scrollbars fading instead. Or
    you should provide your own scrollbar track drawable.
     
    On Thu, Sep 30, 2010 at 8:10 AM, jlopeznavarro@gmail.com
     
    --
    Romain Guy
    Android framework engineer
    romainguy@android.com
     
    Note: please don't send private questions to me, as I don't have time
    to provide private support.  All such questions should be posted on
    public forums, where I and others can see and answer them

     

    Mark Murphy <mmurphy@commonsware.com> Sep 30 11:57AM -0400 ^
     

    > If you what to see YouTube video you don't need additional software,
    > you can yous build-in.
     
    > Am I right?
     
    Sure. On the other hand, I am not aware of a PDF viewing library for
    Android. And if one existed, there is a good chance it would be
    commercial and priced well beyond your budget.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
    Available!

     

    Alessandro Pellizzari <alex@amiran.it> Sep 30 04:02PM ^
     
    Il Thu, 30 Sep 2010 11:57:51 -0400, Mark Murphy ha scritto:
     
    > Sure. On the other hand, I am not aware of a PDF viewing library for
    > Android.
     
    There are a couple of projects on code.google.com, using mupdf, if I
    remember correctly.
     
    But I think the license is GPL, so you must release your software as GPL
    if you use it.
     
    Bye.

     

    Bret Foreman <bret.foreman@gmail.com> Sep 30 09:44AM -0700 ^
     
    But it does support Linux so an Android port seems at least feasible.
     

     

    yenpei <yenpei@gmail.com> Sep 30 09:34AM -0700 ^
     
    Hi,
     
    When I add a widget, there always the widget label name let's say
    "Weather widget" with "HTC" as the provider in 2 lines.
     
    How do I add the creator of the widget like "HTC". All my current
    widget are showing "Android" as provider. Can we change it to some
    other name?

     

    Mark Murphy <mmurphy@commonsware.com> Sep 30 12:44PM -0400 ^
     
    > When I add a widget, there always the widget label name let's say
    > "Weather widget" with "HTC" as the provider in 2 lines.
     
    That is a feature of HTC Sense. It does not work that way on all phones.
     
    > How do I add the creator of the widget like "HTC". All my current
    > widget are showing "Android" as provider. Can we change it to some
    > other name?
     
    I am not aware that HTC has documented any way to specify this. My
    guess is that they are simply distinguishing between ones they created
    and other ones from elsewhere. Earlier versions of Sense had those in
    separate groups rather than intermingled.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

     

    Bret Foreman <bret.foreman@gmail.com> Sep 30 08:59AM -0700 ^
     
    I create a (free) website for each app and put up a capture of every
    screen. Then, as questions come in about a particular screen or
    function, I add commends below the relevant screen shot on the
    website. After a while, most questions have been answered on the
    website and I can just email a link when a repeat question comes in.
    Quite useful for reducing support load over time.

     

    Brion Emde <brione2001@gmail.com> Sep 30 09:32AM -0700 ^
     
    I created a blog on blogspot.com and write about my apps there and
    embed screencast video demonstrations, and stuff like that.
     
    Then I put the address of the blog in field on the Marketplace.
     
     
     

     

    Eurig Jones <eurigjones@gmail.com> Sep 30 09:10AM -0700 ^
     
    I have code that subclasses ResourceBundle.Control which allows it to
    support XML based property bundles in an external library that I'm
    using. Android doesn't like it though even though ResourceBundle
    itself is supported...
     
    Unable to resolve superclass of package.util.XMLControl (366)
     
    XMLControl above extends ResourceBundle.Control.
     
     
    I would suggest that this is a bug, although not completely sure
    before reporting it. Anyone?
     
    Regards,
    Eurig Jones

     

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en