Tab Icons

by Pikoh » Tue, 19 Oct 2010 19:45:00 GMT


Sponsored Links
 Hi all,

just a simple question..anyone knows of any icon packs for android
tabhost? Let's say I'm not good at drawing.. :)

--



Tab Icons

by Christophe » Tue, 19 Oct 2010 23:52:36 GMT


  http://www.glyfx.com/products/free_android2.html 

this is the only icon pack I know with tab variation icon ...
unfortunaly there is not a lot of free "android style" icon available
on the internet :(




--


Sponsored Links


Tab Icons

by Pikoh » Wed, 20 Oct 2010 00:45:44 GMT


 I haven't found any either...that's why this was my last hope. Well,
let's see if any "artist" read this and give us some good pack ;)





--



Tab Icons

by JonFHancock » Wed, 20 Oct 2010 04:40:43 GMT


 I may be that "artist."  What kind of icons do you want to see?






--



Tab Icons

by JonFHancock » Wed, 20 Oct 2010 04:42:42 GMT


 Or I should say: what do you want the icons to represent?

There is this, by the way.  I haven't looked through all the links,
but there may be some tab style icons in there.
 http://www.androidguys.com/2010/09/15/templates-wireframes-stencils-icons-big-list-android-developer-resources/ 







--



Tab Icons

by Pikoh » Thu, 21 Oct 2010 06:09:47 GMT


 Well, thx JonFHancock for your interest,

  in fact now I'm needing some "transport" icons for a proyect: bus,
car, bike, etc.. Also a "favorites" icon (a star?). But maybe
something like this

  http://glyphish.com/ 

would be useful to a lot of coders.








--



Tab Icons

by JonFHancock » Thu, 21 Oct 2010 16:49:15 GMT


 How is this for a start?

Zip file containing white and gray tab icons for bus, car, bike,
pedestrian, and two types of star in sizes from 512px to 32px:
 http://drop.io/pwrsdfe 

Here is a sample image:  http://drop.io/pwrsdfe/asset/sample-png 

If you like them well enough, I'll tackle making more, and put them up
on a nice site.

My development career in Android revolves around icons (launcherpro
icons app), and I've been itching for a way to contribute something
free to the dev community.  I welcome any feedback in general or
particular about the icons.









--



Tab Icons

by Pikoh » Thu, 21 Oct 2010 21:46:05 GMT


 Well, i LOVE them,they are great thank you.

  I really encourage you to make more icons. I think many developers
lack design skills as me, and need some good icons packs
for their proyects. Maybe some of them could give you ideas in this
post.

  Great job Jon, and thanks again.










--



Other Threads

1. Can't pass image to default image viewer since 2.1 upgrade.

Hi,
The following works fine on 2.1 emulator.
It does NOT work on a 2.1 device :(.

I pull encrypted image from my storage and want to show it using a
default built in image viewer.
For that I have built my own ImageProvider class.

Here is how I invoke it:
// pass data to image provider
ImageProvider.setPictureData(pictureData);

// fire up default image viewer
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(ImageProvider.CONTENT_URI, "image/*");
this.startActivity(intent);

ImageProvider is my own class where in public ParcelFileDescriptor
openFile(Uri uri, String mode) method I do the following:

// we need to write the picture to a temp file
FileOutputStream fileStream = ctx.openFileOutput(FILE_NAME,
Context.MODE_PRIVATE );
fileStream.write(pictureData);
fileStream.flush();
fileStream.close();

// now open the file descriptor
ParcelFileDescriptor result =
ParcelFileDescriptor.open(ctx.getFileStreamPath(FILE_NAME),
        ParcelFileDescriptor.MODE_READ_ONLY);
// according to Dianne we can now delete the file;
// it will be deleted by the system once the last
// user closes the file
ctx.deleteFile(FILE_NAME);

return result;


If you ask why I delete the file immediately it is because it was
encrypted for a reason and I don't want to leave it in the file
system.
Also please note the comment there. I found it somewhere in these news
groups, that I can delete the file once it was open by file descriptor
and it will be hidden from anyone and deleted once last user closes
handle.

What is different between emulator and real device? It worked fine
until 2.1 upgrade now users can't see the pictures anymore. Why does
it work fine on emulator and not on a device?

Thanks for any hints.

-- 

2. Binding data to a list view and retrieving contact information

Hey guys, I have a few questions concerning listView and cursors.
First, I know theres a method called bindView(), and I was wondering
if this implies that you can tie extra data to each list item. My
objective is to putExtras() to another activity after a contacts name
is clicked on. I figured that it would be very easy to accomplish if
the data was already in the listview object (or something to that
extent). I am not sure how to go about doing something like this!
Also, concerning cursors and retrieving data. I have code that
actually works to get the contacts of the phone, but I am not sure
exactly what it does, and I do not understand the parameters that
query on a ContentResolver are (ie Projection and such). Anyone have a
nice explanation on how this works? Thanks for any help!

public class MainPage extends ListActivity {

        private ListAdapter adapter;
        private Cursor c;
        private ArrayList<String> names;


        @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        ContentResolver cr = getContentResolver();
        c = cr.query(ContactsContract.Contacts.CONTENT_URI, null,
null, null,null);

         names = new ArrayList<String>();

         while(c.moveToNext()){
                 String name =
c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
                 String number =
c.getString(c.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER));
                 if(number.equals("0")) continue;
                 names.add(name);
         }

        adapter = new ArrayAdapter<String>(this,
                 android.R.layout.simple_list_item_1, names);
        setListAdapter(adapter);
        getListView().setTextFilterEnabled(true);


}
        @Override
        public void onListItemClick(ListView l, View v, int position, long id)
{
                 super.onListItemClick(l, v, position, id);
                 Intent newIntent = new Intent(Intent.ACTION_MAIN);
                 newIntent.setClass(this, Summary.class);
                 newIntent.putExtra("com.grey.gui.MainPage", "banana");
                 startActivity(newIntent);
            }

}

-- 

3. Mod: X10 Launching - Seminar/Gathering Id-Android Jumat 16 April 2010

4. Some users are not finding our app in Android Market

5. Displaying ArrayList in list

6. Can anyone give me a Socket Client and Server source code?

7. Listadapter issue