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

by David Orriss Jr » Thu, 22 Apr 2010 01:39:25 GMT


Sponsored Links
 Apparently I'm unable to activate the one I received because it's
"pending activation on another account".  And I have to have Google
release it from that account to activate it.

So, what do I do now?

-- 
David Orriss Jr.

My blog:  http://www.codethought.com/blog 

--



Other Threads

1. Inflating views in a ListAdapter

Hello!

I'm trying to write my own custom ListAdapter. In getView() I want to 
inflate the views from an XML file. To do this I have the following code:

    public View getView(int position, View convertView, ViewGroup parent) {
        LayoutInflater inflater = LayoutInflater.from(ctx);
        TextView view = (TextView)inflater.inflate(R.layout.notes_row, 
parent);
        view.setText(data[position]);
        return view;
    }

However I get an exception in the call to inflate():

E/AndroidRuntime(  209): java.lang.UnsupportedOperationException: 
addView(View, LayoutParams) is not supported in AdapterView
E/AndroidRuntime(  209): at 
android.widget.AdapterView.addView(AdapterView.java:461)
E/AndroidRuntime(  209): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:415)
E/AndroidRuntime(  209): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime(  209): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime(  209): at 
com.github.simplenotes.MyAdapter.getView(MyAdapter.java:59)

I guess that this means that addView is not supported int the parent object 
sent to getView(). I just want to double check that I'm not supposed to try 
to attach my views to the parent ViewGroup in this case. If that is the 
case, won't I loose out on inheriting layout parameter and such if I use a 
call like this?

        TextView view = (TextView)inflater.inflate(R.layout.notes_row, 
null);

Basically, what is the correct way to inflate views in a ListAdapter?

:.:: mattias

-- 

2. Custom preference

I need to create a preference that looks similiar like the WiFi
selection screen in the OS preferences.  That screen has a ListView
that takes up the whole bottom of the screen.  I have figured out how
to add a ListView using a custom preference but I can't make it take
up the remaining space.  It is always just the size of a single
preference row.

@Override
protected View onCreateView(ViewGroup parent){

        LinearLayout layout = new LinearLayout(getContext());

        LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.FILL_PARENT);

        layout.setOrientation(LinearLayout.VERTICAL);

        list = new ListView(getContext());
        list.setLayoutParams(params);

        layout.addView(list);
        layout.setBackgroundColor(Color.GREEN);

        adapter = new ArrayAdapter<String>(getContext(),
android.R.layout.simple_list_item_1, new String[]{"abc", "def"});
        list.setAdapter(adapter);

        return layout;
}

-- 

3. Porting gingerbread on 2.6.31

4. input event in gingerbread

5. NFC Smart poster and Tag reader

6. OOT: Paging Om Tony Piter

7. UAC based on sip