How to set onClickListener for elements in a Vector

by Justin Anderson » Thu, 17 Jun 2010 17:23:52 GMT


Sponsored Links
 I have never used FrameLayout... so I'm not sure what the correct way to do
this would be.  Hopefully someone else out there has some answers...
----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------








>



Other Threads

1. ZipFile reading error

Hi Guys,
I am trying to read content of a zip file(that is on sd card). I want
to read xml file from that zip file.
Here is my code:

public String getGameMetaData(String pathToFile) throws IOException {
               zipFile = new ZipFile(pathToFile);
               packageData = new StringBuilder();

               Enumeration<?> zipEntries = zipFile.entries();

               while (zipEntries.hasMoreElements()) {
                       // zipEntries.nextElement()).getName());

                       zipEntry = (ZipEntry) zipEntries.nextElement();

                       if (!zipEntry.isDirectory()) {
                               if(zipEntry.getName().equals
("metadata.xml")) {
                                       bis = new BufferedInputStream
(zipFile
                                                       .getInputStream
(zipEntry));
                                       dis = new DataInputStream(bis);
                                       while (dis.available() != 0) {
                                               packageData.append
(dis.readLine());
                                       }
                               }
                       }

               }
               Log.i("Data", packageData.toString());
               return packageData.toString();
       }
Now, this code is running fine if I call it from my sample application
activity. It's returning xml file content.
But when I call this same method from my service (that is actually i
want), it throws an error: java.util.zipException: too short to be
zip.

service, it's not working.  it shows this exception on line - "zipFile
= new ZipFile(pathToFile);" - 1st line of the method.

Plzz help me to solve this issue.

Thanks
Harshit
--~--~---------~--~----~------------~-------~--~----~

2. Upload picture to my php website

Hello
I can now use the camera to take and store a picture with the
Android.
The next step is to upload it to a website. Is there an implementation
of cURL or an example of how to do this?
--~--~---------~--~----~------------~-------~--~----~

3. Driving directions in 1.5 - legal? ADC II

4. zero SIZE and DURATION for video?

5. Handling phone ringing

6. can you tell if you're in the debugger?

7. MapActivity in android 1.5