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

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

    Jake Basile <jakerbasile@gmail.com> Feb 28 05:08PM -0800 ^
     
    It's been a month, and this regression bug still hasn't even been reviewed.
    I have since replaced my Nexus S due to it being full of other problems, and
    it still happens; a friend of mine updated his Nexus One to 2.3.3, and now
    Hearing Saver doesn't work in exactly the same way on his phone. I'm stuck
    putting in a kludge of a workaround to handle this error that is caused
    solely by an OS version change, as I see no future to it being looked at or
    fixed. I stress that I made no code changes to cause this problem which did
    not occur on previous version, while this page of the Android Documentation
    directly states:
     
    an Android application developed using any given version of the API (as
    specified by its API Level) is forward-compatible with later versions of the
    Android platform and higher API levels
     
    I think Google could learn a bit from Microsoft and MSDN which has top
    notch, developer-centric custom service <http://connect.microsoft.com> and
    documentation <http://msdn.microsoft.com/library/default.aspx>. Despite
    Android being an open source project, the primary responsibility for support
    falls on Google. I feel that the Market would have a lot more fantastic apps
    if Google took a more active hand in developer relations.

     

    "Richard Sámela" <feromakovi@gmail.com> Feb 28 03:53PM -0800 ^
     
    Hi,
    my problem is that I have data in arraylist and I cant get it to
    adapter.
     
    I created this adaper in separate class:
     
    public class MyAdapter extends ArrayAdapter<MyRecord>{
    private ArrayList<MyRecord> al;
    private LayoutInflater inflater;
     
    public MyAdapter(Context context,int resources, int
    textViewResourceId, ArrayList<MyRecord> al) {
    super(context,resources, textViewResourceId);
    this.inflater = LayoutInflater.from(context);
    this.al=al;
    }
    public View getView(int position, View convertView,ViewGroup parent)
    {
    View row = convertView;
    if(row==null){
    row = inflater.inflate(R.layout.list, parent, false);
    }
    TextView spot=(TextView)row.findViewById(R.id.TextView01);
    TextView datu=(TextView)row.findViewById(R.id.TextView02);
    spot.setText(Double.toString(al.get(position).spotreba));
    datu.setText(al.get(position).date);
    return row;
    }
    }
     
    I create adapter in MainActivity like this:
     
    ArrayList<MyRecord> al - here I have all my data. and this is field
    of MainActivity extends Activity
    ListView lv = (ListView) findViewById(R.id.listik);
    adapter = new MyAdapter(this,R.id.listik,R.layout.list,al);
    lv.setAdapter(adapter);
    when I do this nothing happens. ListView is empty.
     
    in method onCreate I setContentView from resource this:
     
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
    android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id="@+id/ll">
    <ListView
    android:id="@+id/listik"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fastScrollEnabled="true"
    android:smoothScrollbar="true"
    android:scrollbars="vertical"
    android:scrollbarSize="10sp">
    </ListView>
    </LinearLayout>
     
    Aplication run corectly data are alright but I cant display them to
    the ListView. please help me find what I do wrong. And I can't find
    bug, I have tried a lof of options but nothing helps me.
    thank you very much.
     
    Richard Sámela

     

    TreKing <trekingapp@gmail.com> Feb 28 06:59PM -0600 ^
     

    > Aplication run corectly data are alright but I cant display them to
    > the ListView. please help me find what I do wrong.
     
    Have you confirmed that:
    1 - your array list actually has items and
    2 - your getView function is being called
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    tedx <txtoth@gmail.com> Feb 28 03:02PM -0800 ^
     
    I've written a custom home app for a tablet and I'd like to put some
    3rd party widgets (weather/date/etc.) on it. Can this be do and if so
    how can it be accomplished?
     
    Ted

     

    TreKing <trekingapp@gmail.com> Feb 28 05:17PM -0600 ^
     

    > I've written a custom home app for a tablet and I'd like to put some 3rd
    > party widgets (weather/date/etc.) on it.
     
    Are you saying you want to pre-install widgets on it or that you'd like the
    functionality for users to add widgets, like the default Home app?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    tedx <txtoth@gmail.com> Feb 28 04:08PM -0800 ^
     

    > -------------------------------------------------------------------------------------------------
    > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    > transit tracking app for Android-powered devices
     
    Pre-install the widgets. On this dedicated device the user will not be
    able to any configuration.
     
    Ted

     

    TreKing <trekingapp@gmail.com> Feb 28 06:34PM -0600 ^
     

    > Pre-install the widgets.
     
    It's probably possible, the default home come with some widgets enabled by
    default. No idea how'd you go about it though.
     
     
    > On this dedicated device the user will not be able to any configuration.
     
    Dedicated *device*? If you're building a custom firmware along with your
    home app, you want another group - like porting or platform.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    tedx <txtoth@gmail.com> Feb 28 04:50PM -0800 ^
     
    I'm thinking the answer has to do with AppWidgetHost. Anyone used this
    in a custom home app?
     

     

    Dianne Hackborn <hackbod@android.com> Feb 28 04:59PM -0800 ^
     
    It is not possible for third party apps; the user needs to approve your
    access to the widget by explicitly selecting it. Of course if you are
    making your own device, you can put your app in the system image, and it can
    have the permission to directly install widgets.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@android.com
     
    Note: please don't send private questions to me, as I don't have time to
    provide private support, and so won't reply to such e-mails. All such
    questions should be posted on public forums, where I and others can see and
    answer them.

     

    William Ferguson <william.ferguson.au@gmail.com> Feb 28 03:17PM -0800 ^
     
    Dianne? No? Anyone?
     
    Is the only way to create a progressDialog (with an alternate
    background and font color), to create my own Dialog/Activity that
    mimics the layout of a ProgressDialog but applies my own style?
     
    Ie a ProgressDialog can't have its background and font color changed?
     
     
    William
     
     
    On Feb 28, 3:21 pm, William Ferguson <william.ferguson...@gmail.com>
    wrote:

     

    William Ferguson <william.ferguson.au@gmail.com> Feb 28 04:33PM -0800 ^
     
    Thanks TreKing. Following that advice was what allowed me to set the
    background color.
    But it doesn't (or I couldn't find anyway) to have it also set the
    font color.
     
    When you create a ProgressDialog in which you want custom colors, what
    do you do?
    Create a custom Dialog, ie custom layout?
     
     

     

    TreKing <trekingapp@gmail.com> Feb 28 06:49PM -0600 ^
     
    On Mon, Feb 28, 2011 at 6:33 PM, William Ferguson <william.ferguson.au@
    gmail.com> wrote:
     
    > background color.
    > But it doesn't (or I couldn't find anyway) to have it also set the
    > font color.
     
    Just so we'e clear, you tried using *
    style="@android:style/Widget.ProgressBar"*, as was shown in that
    stackoverflow post? You posted samples show AlertDialog and plaing Dialog.
     
    No sure if it matters, but worth a shot if you didn't try it already.
     
    When you create a ProgressDialog in which you want custom colors, what do
    > you do?
    > Create a custom Dialog, ie custom layout?
     
    This is not something I've had to do, but a custom layout and setting it
    with setView() on the dialog seems like the simplest alternative.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    eli <sweehoe.loke@gmail.com> Feb 28 04:16PM -0800 ^
     
    Hi,
     
    May I know how to replicate the recent app dialog selection border
    around the app icon?
     
    THanks

     

    Peter Sinnott <psinnott@gmail.com> Feb 28 03:13PM -0800 ^
     
    How helpful.
     
     
    A lot of websites say to use ACTION_SEND but I found ACTION_SENDTO
    works better.
     
    Intent emailIntent = new Intent(android.content.Intent.ACTION_SENDTO);
    emailIntent.setData(Uri.parse("mailto:a@b.com"));
    emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "A
    Subject" );
     
     

     

    TreKing <trekingapp@gmail.com> Feb 28 05:18PM -0600 ^
     

    > A lot of websites say to use ACTION_SEND but I found ACTION_SENDTO works
    > better.
     
    Curious: how does it work "better"?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Peter Sinnott <psinnott@gmail.com> Feb 28 03:30PM -0800 ^
     
    Iirc SENDTO gave me mail and gmail as alternatives but SEND either
    didn't give me mail or gave me a multitude of options most of which
    were not email specific.
     
     

     

    Justin Anderson <magouyaware@gmail.com> Feb 28 04:41PM -0700 ^
     
    *> How helpful.*
     
    If the OP isn't going to put much time into the question (i.e. doing some
    stuff to try to figure it out first... such as doing a google search,
    looking at docs, etc..) then I'm not going to put much time in the answer.
     
     
     

     

    Mike <mike.coppola@gmail.com> Feb 28 03:17PM -0800 ^
     
    Thanks, But won't that be a lot of repeating code? ie the event
    handlers for those buttons will have to repeat in every activity.
    There has to be a cleaner way to do it....
     

     

    TreKing <trekingapp@gmail.com> Feb 28 05:21PM -0600 ^
     

    > Thanks, But won't that be a lot of repeating code? ie the event handlers
    > for those buttons will have to repeat in every activity.
    > There has to be a cleaner way to do it....
     
    It shouldn't be. If you're doing something that is so self-contained that it
    can live within any of your activities, then you can create your own
    component, "ButtonBar" that encapsulates all the logic you need, including
    the button event handlers.
     
    Perhaps some setter functions or constructor parameters to bind to the
    specific Activity would required, but for the most part I don't see what it
    would not just be a matter of defining your custom component and including
    it in each activities main layout.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Justin Anderson <magouyaware@gmail.com> Feb 28 04:43PM -0700 ^
     
    Or you could have a single activity with different views underneath the
    button bar... Though admittedly this approach could lead to a bloating of a
    single activity.
     

     

    metal mikey <coreform@gmail.com> Feb 28 03:11PM -0800 ^
     
    For functional testing you can also use HP QTP (QuickTest
    Professional) in conjunction with plugins for it that allow testing on
    real mobile hardware*, such as M-eux. There's also integrations
    between Device Anywhere and HP QTP as well as IBM Rational Quality
    Manager.
     
    For application security testing, if you have the source code (or
    perhaps even just the .apk) you can use HP Fortify 360.
     
    *phone must be rooted.

     

--
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

No comments:

Post a Comment