[android-developers] Re: Best Application Data Backup solution?

2012-03-07 Thread gcstang
Does no one perform these types of backups or am I asking the wrong
question?

On Jan 27, 7:09 am, gcstang  wrote:
> I know there are solutions such as :
> Amazon S3
> Google Storage
> Sending data to my own server
> etc...
>
> What I'm wondering is what is the implementations that have been tried
> and are working for others?
>
> On Jan 25, 7:09 am, gcstang  wrote:
>
>
>
>
>
>
>
> > What is thebestsolution to integratebackup, external to the device
> > for an Android application?
>
> > Ideally the solution will be cheap, integrate easily with an existing
> > application and will be seamless to the clients.
>
> > I know GoogleBackupis limited so most likely it will not work, but
> > there has to be other solutions.
>
> > Backupper client will be roughly 5-10MB in size.
>
> > Thank you in advance.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Best Application Data Backup solution?

2012-01-27 Thread gcstang
I know there are solutions such as :
Amazon S3
Google Storage
Sending data to my own server
etc...

What I'm wondering is what is the implementations that have been tried
and are working for others?


On Jan 25, 7:09 am, gcstang  wrote:
> What is thebestsolution to integratebackup, external to the device
> for an Android application?
>
> Ideally the solution will be cheap, integrate easily with an existing
> application and will be seamless to the clients.
>
> I know GoogleBackupis limited so most likely it will not work, but
> there has to be other solutions.
>
> Backupper client will be roughly 5-10MB in size.
>
> Thank you in advance.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Best Application Data Backup solution?

2012-01-25 Thread gcstang
What is the best solution to integrate backup, external to the device
for an Android application?

Ideally the solution will be cheap, integrate easily with an existing
application and will be seamless to the clients.

I know Google Backup is limited so most likely it will not work, but
there has to be other solutions.

Backup per client will be roughly 5-10MB in size.

Thank you in advance.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Giving away my book: "Genius Android Marketing"

2012-01-10 Thread gcstang
Sounds like a great topic, count me in!

Thank you,

On Jan 5, 10:50 am, scp89  wrote:
> I've recently finished writing the first full-length, android-specific
> book on Android Marketing. It covers tips, tricks, strategies,
> competitive analysis, and so much more. Everything I've learned in 2
> years selling android apps, I've put into this book. It is available
> via e-book OR softcover:
>
> E-book:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B...
>
> Softcover:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/...
>
> GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply
> reply to this thread, and 1 week from today I will randomly select 3
> members and PM you a link to your free download of the 130 page book.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] SimpleCursorAdaptor ListView using an TextView and ImageView with over 400+ rows Memory Issues

2011-05-24 Thread gcstang
Is this the best way or are there others?

I extend SimpleCursorAdapter and override getView(int position, View
convertView, ViewGroup parent)

I retrieve my Cursor, inflate my ImageView and TextView, pull the data
from the Cursor and populate the TextView and ImageView
on the ImageView I store my images in the database as Blob's.

When I retrieve my Blob I pull it out as a byte[] and convert it to a
Bitmap as below:
Bitmap bmp = BitmapFactory.decodeByteArray(img, 0, img.length);

Then I set my Bitmap on my ImageView as :
iv.setImageBitmap(bmp);

Now I can scroll down fine no issues but when I start scrolling back
up the list I get major memory issues and sporadic jumping(from when
the garbage collection catches up).

Can anyone tell me what the best way to accomplish this task would
be?  Is there a way to recycle the bitmaps that aren't in view and
when approaching them pull them and display again?

I've searched for months and tried various techniques but I'm at a
loss to finding the one that will allow me to accomplish this task.

Thank you in advance.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How do you exclude sales to a specific country?

2011-03-05 Thread gcstang
Thank you for your help.

On Mar 4, 9:45 am, TreKing  wrote:
> On Fri, Mar 4, 2011 at 9:00 AM, gcstang  wrote:
> > If I remove the country from the pricing by unchecking is that suppose to
> > do the same thing?
>
> Yes. It's a terrible UI. That grouping is to select the countries it's
> available in, and *in addition*, allows you to set the price per country you
> support.
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How do you exclude sales to a specific country?

2011-03-04 Thread gcstang
Thank you for the link but, the layout has changed since that document
lists a section for "Publishing Options", "Locations" but it looks
like that was removed and replaced with "Content Rating" and
"Pricing".

If I remove the country from the pricing by unchecking is that suppose
to do the same thing?

On Mar 3, 8:56 am, TreKing  wrote:
> On Thu, Mar 3, 2011 at 7:22 AM, gcstang  wrote:
> > If you have an application that you want to be sold in all countries except
> > for say one how can you do this?
>
> > Is this done in the Developer Console, AndroidManifest, or something else?
>
> http://www.google.com/support/androidmarket/bin/answer.py?hl=en&answe...
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How do you exclude sales to a specific country?

2011-03-03 Thread gcstang
If you have an application that you want to be sold in all countries
except for say one how can you do this?

Is this done in the Developer Console, AndroidManifest, or something
else?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: One User Has a Problem - How do I debug it?

2011-02-28 Thread gcstang
How would you call this in your Activity?  Do you have an example of
it being used?

Does anything need to be added to the AndroidManifest ?

Thank you for your examples,

On Feb 27, 10:55 am, Rishi Kumar  wrote:
> Hey, I attached a couple of our java classes that perform this function.   I
> had to clean up a bit and remove the package names, but i'm sure that won't
> slow you down :-)
>
> here is the database table definition:
>
>                buf.append("CREATE TABLE ").append(DbMetadata.TABLE_DEBUG
> ).append(" (");
>
>             buf.append(DbMetadata.DEBUG_TIME).append(" INTEGER, ");
>
>             buf.append(DbMetadata.DEBUG_TYPE).append(" TEXT, ");
>
>             buf.append(DbMetadata.DEBUG_PACKAGE).append(" TEXT, ");
>
>             buf.append(DbMetadata.DEBUG_MESSAGE).append(" TEXT)");
>
>  DbLogService.java
> 1KViewDownload
>
>  DebugMessage.java
> 1KViewDownload
>
>  DebugPersister.java
> 2KViewDownload

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Unique device id - which one to choose

2011-02-24 Thread gcstang
>From what I've read on some other sites retrieving the MAC with the
Wifi off will not always return a valid MAC (as in my case) and some
devices don't have Wifi at all.

One site as an example : 
http://stackoverflow.com/questions/4468248/unique-id-of-android-device

Quoted from that site  : "You can get MAC address if network-device
(Bluetooth etc.) is enabled in the system (turned on). But device may
have bluetooth or wi-fi etc. or nothing"

Seems like possibly using some of the other ID's in conjunction with a
user/pass would be the best bet and updating the changes if and when
they occur.

My application has been out in the market for over a year now and I
can definitely say that the ANDROID_ID is NOT unique in a lot of
cases.

On Feb 22, 9:16 am, Oceanblue  wrote:
> gcstang, I need to get the MAC address from the NDK layer, so I used
> the socket call:
>
>         s = socket(AF_INET, SOCK_DGRAM, 0);
>
> I have a Motorola Driod, but hopefully in a few days, I'll be able to
> check this code on other phones too.
>
> On Feb 16, 10:56 am, gcstang  wrote:
>
> > What did you use to get the MAC, when I tried it on my Droid (gen 1)
> > with the wifi off I get a NullPointerException
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Unique device id - which one to choose

2011-02-16 Thread gcstang
What did you use to get the MAC, when I tried it on my Droid (gen 1)
with the wifi off I get a NullPointerException

On Feb 15, 4:48 pm, Oceanblue  wrote:
> Thanks for your input Brad.
>
> I've decided to go with MAC address for now. I tested with my device
> with wi-fi switched off & in Airplane mode & I was able to retrieve
> the MAC address (using Android API) in both cases. Hope this is the
> right choice.
>
> On Feb 15, 12:19 pm, Brad McNeiL  wrote:
>
> > Just a note if you choose to use the IMEI/MEID - On some HTC devices,
> > if the device is put in to the Airplane mode, switched off (while
> > taking a flight scenario), and then if the device is powered back on,
> > and then taken out of the Airplane mode. This might seem like a very
> > normal thing to do.
>
> > However, if you check the settings for the IMEI/MEID it comes up as 'N/
> > A'. :( This applies to retrieving it via the API 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Unique device id - which one to choose

2011-02-15 Thread gcstang
Using a Hash of all the ID's is most likely the best solution, gather
all the ID's, append your own signature if you like (optional) and
hash the long concatenation of all the ID's you can gather, I would
recommend using SHA.

Most likely not all phones will have all available ID's so by using
this you can be sure that the ID you're generating is as unique as
possible.

On Feb 11, 10:54 am, Oceanblue  wrote:
> Like a lot of other applications, my application has different levels
> of features access. Depending on the unique device ID, it switches on
> certain features (paid/licensing issues). This feature switching on-
> off is already done in existing native C/C++ code for all kind of
> mobile devices/PCs etc, so I wouldn't be using Androids new in-app
> billing (even if it provides this functionality)
>
> I need a unique (6 byte, hex string) device id. I have looked at the
> following options:
>
> 1. ANDOID_ID
>
> Looks good, but there seem to be some issues with this.
>         1. This can show up null, unless the device has atleast once logged
> onto Android market, as per this 
> thread:http://groups.google.com/group/android-developers/browse_thread/threa...
>         I've read in other places too, that it might be null - due to this or
> other causes.
>
>         2. Certain devices have a bug where many devices show up the same
> (supposedly) unique id, as per this 
> thread:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> 2. MAC address
>
> Not sure if this is available under the following conditions:
>         1. Device is not wi-fi enabled
>         2. Wi-fi is switched off
>
> 3. IMEI/ MEID
>
> Application will be potentially running on non-telephone devices like
> tablets too, so this is not an option.
>
> I'm really stumped at this point. Any guidance would be much
> appreciated.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Making a video of your app running

2011-01-06 Thread gcstang
Jing possibly?

It's free and works pretty well.

http://www.techsmith.com/jing/


On Jan 5, 5:12 pm, John Lussmyer  wrote:
> Is there some supported way of making a Video of your app running?
> Seems kind of silly (and low quality) to have to point your camera at the
> phone...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Setting up development environment on windows 7

2010-12-22 Thread gcstang
Is your Windows 7 32 or 64bit?
Ensure you're using the Oracle JDK should be 1.6.0_23 32bit
Not sure installing 64bit will help much either way unless you have a
pretty beefy machine, so I would uninstall the 64bit JDK.
What path did you install the AndroidSDK to?
Did you setup your JAVA_HOME, CLASSPATH and PATH?

What version of Eclipse did you download and install?  There are a few
different versions with different capabilities.
I personally use MyEclipse but Eclipse should work just as well.
When you go here http://www.eclipse.org/downloads/
You should pick :
32 bit
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/SR1/eclipse-java-helios-SR1-win32.zip

Android SDK : http://dl.google.com/android/installer_r08-windows.exe
Android Plugin (ensure you read the one on Helios) : 
http://developer.android.com/sdk/eclipse-adt.html#installing

Uninstall your applications first to start with a clean system if you
prefer it might make it easier.

Install the JDK I prefer to install the JDK to c:\java (note no spaces
in path) and you don't have to change references later.
Install the Android SDK (also make sure no spaces in the path you
install it to)
Install Eclipse (ensure no spaces in path something like c:\eclipse)

Once you're this far you will need to start the Android SDK
application "SDK Manager.exe", select Settings and checkmark "Force
https..." then select Available Packages and expand the URL in the
right window select what you need to develop on (i.e. version of the
SDK you want to work with) then once all is selected click on "Install
Selected" at a minimum you will want :
The version you select i.e. "SDK Platform Android 2.2, API 8, revision
2"
Documentation for that version
Samples for that version
Google API's for that version
Usb Driver package (latest one)
Market Licensing package (latest one)

Once it's all downloaded you can shutdown the program you opened and
go over to the Eclipse application to start development, you will need
to tell the plugin where the path to your Android SDK folder is in the
preferences but that should be all you need to get started.

Good luck

On Dec 20, 9:45 am, Jay  wrote:
> Hi all,
> I want to start learning with my Android developement. I have a
> windows 7 Home Premium PC. My problem is I am not able to setup the
> development environment for android. Here is what I have done till
> now.
> 1. I have installed Java (both 32 bit and 64 bit versions)
> 2. I have installed Android SDK (installer_r08-windows.exe)
> 3. I have not yet downloaded any tools or platforms or ADT.
> 4. I have downloaded 32 bit eclipse. (eclipse-SDK-3.5.1-win32.zip)
> 5. I am stuck at this eclipse setup. A strange thing I observed is
> that, it does not install. When I click on eclipse.exe, it starts
> running from there only. I am still wondering if my eclipse IDE is
> installed properly?
> 6. So, I assumed that my eclipse is working fine. Then when I try
> installing new programs in eclipse, eg google plugin, it gives error.
>
> I want to know, where am I going wrong? What mistakes am I doing?
> Can anyone guide me with the complete step by step procedure to setup
> my android development environment on windows 7?
>
> Thanks in advance.
>
> - Jay

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: What is the best way to send data from Android Application to a Remote MySQL Database?

2010-11-30 Thread gcstang
Agree use a Rest Service or several

On Nov 29, 1:56 pm, Leon Moreyn-Android Development
 wrote:
> You can create an online page to handle data posts to your database.
>
> On Nov 29, 7:34 am, priya naral  wrote:
>
> > What is the best way to send data from Android Application to a Remote
> > MySQL Database?
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: error code 5: database is locked

2010-10-25 Thread gcstang
ping, anyone that can answer this?

On Oct 16, 10:58 am, gcstang  wrote:
> Here is the stack:
>
> android.database.sqlite.SQLiteException:errorcode5:databaseislocked
>         at
> android.database.sqlite.SQLiteStatement.native_execute(Native Method)
>         at
> android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:
> 55)
>         at
> android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:
> 1779)
>         at
> android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:
> 1709)
>         at com.myapp.MyDbAdapter.updateField2(MyDbAdapter.java:468)
>         at com.myapp.MyView$13.run(MyView.java:1260)
>         at java.lang.Thread.run(Thread.java:1102)
>
> On Oct 15, 11:54 am, DanH  wrote:
>
> > Where is theerrorbeing thrown from?  (You might include the
> > exception traceback.)
>
> > On Oct 15, 9:44 am, gcstang  wrote:
>
> > > Has anyone encountered this and is there a solution to work around it?
>
> > > I'm creating a Thread and in that thread I open adatabaseconnection
> > > using the DBHelper, perform an update on a field in mydatabaseand
> > > close it. I create a separate one in the Thread because if the View is
> > > closed the global one for that view is closed, causing my Thread
> > > update to throw anerror.
>
> > > The thread is in a View, that also has it's own instance of the
> > > DBHelper and
> > > opens thedatabaseonCreate
> > > closes it onPause
> > > opens it onResume
> > > closes it onDestroy
>
> > > The instance in my Thread is throwing this but not all the time :error
> > >code5:databaseislocked
>
> > > Is there a known practice I should implement so I don't get thiserror?
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: LVL returns LICENSED with anonymous accounts...

2010-10-25 Thread gcstang
You can have the one your testing use the same "android:versionCode"
as one you already uploaded and it will allow you to test, without
having to upload a newer version.

This is what I did and it worked.

On Oct 24, 11:21 am, swinefeaster  wrote:
> I have to say the google market is a really terrible implementation.
> Ok fine I finally jumped through the hoops of LVL and I realized that
> I need to have my latest app *uploaded* but not *published* in order
> for the license check to work for my test accounts for the new
> version.
>
> BUT
>
> Little did I realize that while I have a draft version uploaded, MY
> LISTING DISAPPEARS FROM THE MARKET! I was wondering why I didn't get
> any sales yesterday.
>
> Cmon guys, you can do better that this!
>
> Oh and you're a searching company - why does a search on the market
> for "language" come up with a totally different result that
> "languages"? Isn't this Search Engine 101?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: error code 5: database is locked

2010-10-16 Thread gcstang
Here is the stack:

android.database.sqlite.SQLiteException: error code 5: database is
locked
at
android.database.sqlite.SQLiteStatement.native_execute(Native Method)
at
android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:
55)
at
android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:
1779)
at
android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:
1709)
at com.myapp.MyDbAdapter.updateField2(MyDbAdapter.java:468)
at com.myapp.MyView$13.run(MyView.java:1260)
at java.lang.Thread.run(Thread.java:1102)

On Oct 15, 11:54 am, DanH  wrote:
> Where is the error being thrown from?  (You might include the
> exception traceback.)
>
> On Oct 15, 9:44 am, gcstang  wrote:
>
> > Has anyone encountered this and is there a solution to work around it?
>
> > I'm creating a Thread and in that thread I open a database connection
> > using the DBHelper, perform an update on a field in my database and
> > close it. I create a separate one in the Thread because if the View is
> > closed the global one for that view is closed, causing my Thread
> > update to throw an error.
>
> > The thread is in a View, that also has it's own instance of the
> > DBHelper and
> > opens the database onCreate
> > closes it onPause
> > opens it onResume
> > closes it onDestroy
>
> > The instance in my Thread is throwing this but not all the time :error
> > code 5: database is locked
>
> > Is there a known practice I should implement so I don't get this error?
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] error code 5: database is locked

2010-10-15 Thread gcstang
Has anyone encountered this and is there a solution to work around it?

I'm creating a Thread and in that thread I open a database connection
using the DBHelper, perform an update on a field in my database and
close it. I create a separate one in the Thread because if the View is
closed the global one for that view is closed, causing my Thread
update to throw an error.

The thread is in a View, that also has it's own instance of the
DBHelper and
opens the database onCreate
closes it onPause
opens it onResume
closes it onDestroy

The instance in my Thread is throwing this but not all the time :error
code 5: database is locked

Is there a known practice I should implement so I don't get this error?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Web Server

2010-10-07 Thread gcstang
I'd be interested in hearing about the results as well.

On Oct 7, 1:38 am, Miguel Morales  wrote:
> I'd figure that would kill performance.  Right?
>
>
>
> On Wed, Oct 6, 2010 at 11:35 PM, xiaoxiong weng  wrote:
> > as long as you have access to a public server, you could always do a tunnel.
> > I used to send stuff behind nat through ssh
>
> > On Thu, Oct 7, 2010 at 2:22 AM, Miguel Morales 
> > wrote:
>
> >> What about service providers which don't allow or firewall most if not
> >> all incoming ports?
> >> Can you still act a server?
>
> >> But yeah, I guess for private networks you could do some interesting
> >> stuff.
>
> >> On Wed, Oct 6, 2010 at 8:09 PM, kypriakos  wrote:
>
> >> > To answer Miguel's question(s):
> >> > (1) Because I can ;) thanks to iJetty.
> >> > (2) We are building peer-to-peer composite service middleware for
> >> > mobile devices.
> >> > Services such as shared calendars across trusted groups or phone cam
> >> > etc.
>
> >> > I have done this successfully on Nokia Internet Tablets (Java CDC) and
> >> > the performance
> >> > was fairly good. Not sure how Android devices will fare on all this
> >> > but that's the reason
> >> > of the exercise anyway
>
> >> > On Oct 6, 6:11 pm, Bret Foreman  wrote:
> >> >> I've been looking at doing the same thing so one of my apps can offer
> >> >> web services. I'll be interested to hear what people think.
>
> >> >> On Oct 6, 2:59 pm, Miguel Morales  wrote:> You
> >> >> want to run an HTTP server on Android?  Why?
>
> >> > --
> >> > 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+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> ~ Jeremiah:9:23-24
> >> Android 2D MMORPG:http://developingthedream.blogspot.com/,
> >>http://diastrofunk.com,
> >>http://www.youtube.com/user/revoltingx
>
> >> --
> >> 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+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > 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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> ~ Jeremiah:9:23-24
> Android 2D 
> MMORPG:http://developingthedream.blogspot.com/,http://diastrofunk.com,http://www.youtube.com/user/revoltingx

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: XML encryption

2010-10-07 Thread gcstang
You're right I missed the part where he wanted to decrypt on the phone
also...

On Oct 6, 11:02 am, DanH  wrote:
> Using asymmetric keys won't fix the problem -- you'd still have to
> embed the decryption key somewhere in the code.  Best you can do is
> obfuscate the key generation somehow.
>
> On Oct 6, 8:18 am, gcstang  wrote:
>
> > If you encrypt on the phone side with a known pass (assuming your
> > using symmetric keys) then all the hacker has to do is find your
> > password ( and salt if you use one) you used to create it and decrypt
> > it.
>
> > I would if possible use asymmetric keys. (public/private)
>
> > I've not used them on Android so you would have to figure out if it's
> > possible, I'm guessing it is since LVL uses that.
>
> > On Oct 5, 12:34 pm, Dimitris  wrote:
>
> > > Yes, look for CipherOutputStream and CipherInputStream for writing and
> > > reading the file safely. I would use a symmetric encryption algorithm
> > > such as AES unless the XML is coming from a web service.
>
> > > On Oct 5, 9:18 am, Kostya Vasilyev  wrote:
>
> > > >   05.10.2010 19:59, DanH пишет:
>
> > > > > If you encrypt the entire XML file you won't be able to use Android's
> > > > > "compiled' XML access tools, and you'll expose the unencrypted file on
> > > > > the phone.  If you encrypt individual entries then you have a
> > > > > complicated build process and, due to the shorter elements being
> > > > > encrypted, a more complicated decryption process and (technically)
> > > > > less secure encryption.
>
> > > > It's possible to use CipherInputStream to do on-the-fly decryption while
> > > > reading data from a file or from the network.
>
> > > > Per-application data files located in phone storage are private, and
> > > > could be used to cache decrypted data. Unless, of course, the user roots
> > > > their phone, but that's not commonplace.
>
> > > > --
> > > > Kostya Vasilyev -- WiFi Manager + pretty widget 
> > > > --http://kmansoft.wordpress.com
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Does App size increase after upload to the And. market?

2010-10-06 Thread gcstang
I've also seen a decent increase in size upon install, not just from
the market but on a local install the original apk is about 800kb and
installed it's 1.37MB, almost double and I'm using LVL with
obfuscation.

Any way to make this smaller?

On Oct 5, 12:21 pm, TreKing  wrote:
> On Tue, Oct 5, 2010 at 12:18 PM, Ulzii  wrote:
> > Does App size increase after upload to the And. market?
>
> Did you enable (the now deprecated) copy-protection option?
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: XML encryption

2010-10-06 Thread gcstang
If you encrypt on the phone side with a known pass (assuming your
using symmetric keys) then all the hacker has to do is find your
password ( and salt if you use one) you used to create it and decrypt
it.

I would if possible use asymmetric keys. (public/private)

I've not used them on Android so you would have to figure out if it's
possible, I'm guessing it is since LVL uses that.

On Oct 5, 12:34 pm, Dimitris  wrote:
> Yes, look for CipherOutputStream and CipherInputStream for writing and
> reading the file safely. I would use a symmetric encryption algorithm
> such as AES unless the XML is coming from a web service.
>
> On Oct 5, 9:18 am, Kostya Vasilyev  wrote:
>
> >   05.10.2010 19:59, DanH пишет:
>
> > > If you encrypt the entire XML file you won't be able to use Android's
> > > "compiled' XML access tools, and you'll expose the unencrypted file on
> > > the phone.  If you encrypt individual entries then you have a
> > > complicated build process and, due to the shorter elements being
> > > encrypted, a more complicated decryption process and (technically)
> > > less secure encryption.
>
> > It's possible to use CipherInputStream to do on-the-fly decryption while
> > reading data from a file or from the network.
>
> > Per-application data files located in phone storage are private, and
> > could be used to cache decrypted data. Unless, of course, the user roots
> > their phone, but that's not commonplace.
>
> > --
> > Kostya Vasilyev -- WiFi Manager + pretty widget 
> > --http://kmansoft.wordpress.com
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: "installation unsuccessful" errors in market

2010-09-25 Thread gcstang
Customers are constantly having issues, trying to purchase it succeeds
but something else goes wrong and they have to cancel then repurchase
the application.

On Sep 25, 9:04 am, Craig D  wrote:
> I had this problem on my NexusOne after 2.2 was installed and reported
> it on the Android issue forum as issue 9593 (http://code.google.com/p/
> android/issues/detail?id=9593).
>
> It appears to be related to a file named smdl2tmp1.asec being left in
> the SD card install directory (/mnt/secure/asec or .android_secure).
> One you delete the file, the problem goes away.
>
> Please star this issue. No one on the Android project has responded to
> my bug report. It appears that the only issues that get attention are
> those with a lot of stars.
>
> On Sep 23, 7:33 pm, Daniel  wrote:
>
> > Our customers are seeing these errors a lot when purchasing our apps,
> > and other than suggesting a few workarounds(unmount sd card etc), I'm
> > not sure theres anything i can do to fix the issue. Is anyone aware of
> > anything that might be causing it from the app developer side?
> > Obviously our app uploaded fine, and the majority of users can
> > download and install it just fine, but we're seeing this problem a lot
> > and losing a lot of sales because of it.
> > If theres something that we're somehow getting wrong in our app, i'd
> > love to be able to fix it! It seems to be related to Android 2.2 and
> > installing to the sd card
> > Any ideas?
> > Thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android market and customers email...

2010-09-25 Thread gcstang
It's great for emergencies or something but Spamming a user would
quickly get you bad feedback in most cases.

On Sep 25, 9:42 am, Streets Of Boston  wrote:
> Yes, you could. But don't spam the users be careful :-)
>
> On Sep 25, 6:30 am, sblantipodi  wrote:
>
> > Excellent, so am I authorized to send email to that email address to
> > communicate something like free updates
> > or news about the software?
>
> > Thanks.
>
> > On Sep 25, 12:13 am, TreKing  wrote:
>
> > > On Fri, Sep 24, 2010 at 5:03 PM, sblantipodi
> > > wrote:
>
> > > > is this a valid email address if I need to contact the customers to tell
> > > > him something?
>
> > > Yes - the Google Checkout system will forward the email to the user. I've
> > > used it once.
>
> > > ---­--
> > > TreKing  - Chicago
> > > transit tracking app for Android-powered devices- Hide quoted text -
>
> > - Show quoted text -

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Request: Don't make us use Ant

2010-09-23 Thread gcstang
Excellent!

On Sep 22, 2:12 pm, Xavier Ducrohet  wrote:
> Yes, we are working on full support for proguard in Eclipse and Ant
> for the next version.
>
>
>
> On Wed, Sep 22, 2010 at 9:28 AM, Craigo  wrote:
> > Please update the Eclipse "Export Android Application" feature to take
> > the location of Proguard and do the obfuscated build.
>
> > The instructions 
> > postedhttp://android-developers.blogspot.com/2010/09/proguard-android-and-l...
> > only work if your application is very basic (mine didn't work as it
> > references other projects in the build path).
>
> > Thanks!  :-)
>
> > --
> > 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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
>
> Please do not send me questions directly. Thanks!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Market Licensing Service

2010-09-21 Thread gcstang
I figured, not a problem I just had to ask.

Thank you anyways

On Sep 20, 2:38 am, String  wrote:
> On Sep 18, 6:46 pm, gcstang  wrote:
>
> > Are there any examples of how you implemented it that you're willing
> > to share?
>
> Probably not, I'm afraid. Sorry.
>
> The LVL blog post may seem overwhelming to a beginner, but
> unfortunately, it's the level of detail you need.  And it does have
> code samples, including instructions on where in your own code to put
> the interface points.
>
> As for the modifications I made, I'm ABSOLUTELY not going to post more
> details about them. Not only would that give pirates a leg up on
> cracking my own apps, the whole point is that every dev needs to make
> their OWN modifications, so that every app will need to be cracked
> individually.
>
> String

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Application checksum at runtime

2010-09-20 Thread gcstang
How can this be done from the clients device?

I mean is there an API that I can use to test it or is this done
automatically?

On Sep 19, 7:24 pm, Dianne Hackborn  wrote:
> I don't think this will gain you any more than just checking whether the app
> is signed with your own cert.  In order to modify an app, the pirate will
> need to re-sign it with their own cert and since they don't have your
> private key they can't sign it with yours.  (Note that cert checking is done
> by comparing SHA hashes anyway.)
>
> On Sun, Sep 19, 2010 at 3:07 PM, Bret Foreman wrote:
>
>
>
> > As an additional anti-pirating strategy, I'd like to compute a
> > checksum on my application at runtime. Since my app communicates with
> > a back-end server, I can send the checksum with each message and the
> > server can deny service to altered apps. Not a complete solution to
> > piracy by any means, but a fairly easy way to raise the bar.
>
> > Anyone know how an app can get access to it's load image at runtime?
>
> > --
> > 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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@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.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-20 Thread gcstang
Same happening here

On Aug 26, 9:47 am, Fabrizio Giudici 
wrote:
> I've spotted this thread only now. It's happening to me too - in a
> week it dropped from a _steady_ 45% (held since several weeks) to 36%,
> with a single new active install out of regularly increasing new
> downloads. I even posted that on my blog - a commenter pointed out
> that when people upgrade an app the download counter might increase,
> while the active install doesn't (actually, I've released two updates
> in this month). Can you confirm?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Market Licensing Service

2010-09-18 Thread gcstang
Are there any examples of how you implemented it that you're willing
to share?

Even psuedocode would be helpful as an example:

Copied java files 1,2,3 into my project as a pkg
Implemented methods A,B,C
Added X of LVL to onCreate of my main point of access on the
application and did X,Y,Z etc...
if return of G fails I did D to exit my application

Or do you have anything you used online that could take you through it
step by step, the blog post is a bit over whelming to someone just
starting and since you have successfully implemented it I think it
would be of great help to the community and myself to know the proper
way to implement the procedure you used.

If you can't I understand but it would be helpful if you could.

Thank you,

On Sep 18, 12:14 am, String  wrote:
> Yes, I'm using it.
>
> I deployed it to one of my less-used apps first, and remarkably have
> had NO complaints. So I'm in the process of rolling it out to my front-
> line apps now.
>
> As for best-practices, I'd refer to the most recent dev blog posting
> on the 
> subject:http://android-developers.blogspot.com/2010/09/securing-android-lvl-a...
>
> I'm using the ServerManagedPolicy myself. I integrated it into my own
> source tree (rather than using it as an external library), but that
> was my own preference. I've also tweaked some of the internals to
> defeat automated cracking, a la point 2 in the blog post above. I'm
> not using obfuscation currently; I couldn't get ProGuard to work
> without devoting more time than I have to spare, and from what I've
> read, that's not much of an impediment anyway.
>
> String
>
> On Sep 17, 9:52 pm, Bret Foreman  wrote:
>
> > Is anyone on this list using AMLS yet? Any comments, things to avoid,
> > best practices? It sounds great in concept but I'd like to hear how
> > it's working in practice.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-09-08 Thread gcstang
Permission isn't as big an issue but the non phone part is definitely
a concern.

Thank you for you answers

On Sep 8, 10:56 pm, William Ferguson 
wrote:
> It also assumes the device is a phone.
> It may be a wifi only tablet, or whatever.
>
> On Sep 9, 2:09 am, "Maps.Huge.Info (Maps API Guru)" 
> wrote:
>
>
>
> > Using IMEI requires an additional permission. Using ANDROID_ID
> > doesn't.
>
> > -John Coryat

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-09-08 Thread gcstang
What is the issue with using IMEI?

On Sep 7, 5:36 am, Opted Out  wrote:
> I'm just coming into the market and can see some use for my
> application if each and everyone has a unique ID.
>
> Is there still issues or does it appear to be fixed?
>
> On Aug 18, 1:48 pm, "Maps.Huge.Info (Maps API Guru)"
>
>  wrote:
> > I'm relieved to see that I'm not the only one who's seeing the 
> > "magic"ANDROID_IDproblem.
>
> > -John Coryat

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SSLException: Not trusted server certificate

2010-08-31 Thread gcstang
You're welcome, you may also want this if you plan on targeting
devices with Android prior to 2.2

Add this line before you start initializing anything (this bug is
documented in the forum but not easy to find, otherwise you see that
every other response will not be returned properly, it doesn't hurt to
leave it for all versions):

System.setProperty("http.keepAlive", "false");

On Aug 30, 1:49 am, Ajay  wrote:
> Thanks a lot. This worked!!
>
> I had to change my implementation to use HttpsURLConnection, and could
> not keep my earlier implementation using DefaultHttpClient. Well, I
> think as long as it works, it should not make any difference I guess.
>
> Thank you,
> AJ
>
> On Aug 25, 6:02 pm, gcstang  wrote:
>
> > See my post here :
>
> >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > On Aug 24, 2:48 am,Ajay wrote:
>
> > > Hi,
>
> > > Since my app is going to access our own servers, I think I can use the
> > > hack of trusting all certificates. I tried the following & still
> > > fails :-(
>
> > > SchemeRegistry schemeRegistry = new SchemeRegistry();
> > > SSLSocketFactory sslSocketFactory =
> > > SSLSocketFactory.getSocketFactory();
>
> > > sslSocketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
> > > schemeRegistry.register(new Scheme("https", sslSocketFactory, 443));
>
> > > ClientConnectionManager manager = new
> > > ThreadSafeClientConnManager(httpParam, schemeRegistry);
> > > DefaultHttpClient client = new DefaultHttpClient(manager, httpParam);
>
> > > Thank you,
> > > AJ
>
> > > On Aug 22, 12:10 am, Bob Kerns  wrote:
>
> > > > The CA root certificates have very long expiration dates, so this is
> > > > much less of a problem than you may assume.
>
> > > > It's still an issue -- CA certs could possibly be revoked in the event
> > > > of a vulnerability or theft. But those are relatively remote
> > > > possibilities, beyond what most phone apps would need to consider.
>
> > > > On Aug 21, 9:16 am, DanH  wrote:
>
> > > > > The current cert may only be good for another 6-12 months.  And if the
> > > > > site isn't directly under the control of the app developer, the cert
> > > > > may change at any time, and may even be changed to use a different
> > > > > root.
>
> > > > > There's probably no good solution to this problem, but the best I can
> > > > > think of is to embed another app in your app that simply installs the
> > > > > necessary cert(s), then have a way for that app to be updated as
> > > > > needed.
>
> > > > > On Aug 21, 7:09šam, Kostya Vasilyev  wrote:
>
> > > > > > Right, it does. If the site in question is part of the phone 
> > > > > > application's
> > > > > > infrastructure, I personally would find it acceptable.
>
> > > > > > --
> > > > > > Kostya Vasilyev --http://kmansoft.wordpress.com
>
> > > > > > 21.08.2010 16:06 ÐÏÌØÚÏ×ÁÔÅÌØ "DanH"  ÎÁÐÉÓÁÌ:
>
> > > > > > That assumes that the web site's cert won't change for the life of 
> > > > > > the
> > > > > > app.
>
> > > > > > On Aug 21, 3:18 am, Kostya Vasilyev  wrote:
>
> > > > > > > šAjay,
>
> > > > > > > A more cryptographically correct solution would be to install the
> > > > > > > missing Óertfiicate pieces wit...
> > > > > > > > On Fri, Aug 20, 2010 at 8:46 PM, Kostya Vasilyev 
> > > > > > > >  > > > > > > > <mailto:kmans...@gmail
> > > > > > > > š š You being able to open the site in desktop browser and on a
> > > > > > > > š š Blackberry seems to impl...
>
> > > > > >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > > > > > > > š š This is a hack to accept all certificates.
>
> > > > > > > > š š -- Kostya
>
> > > > > > > > š š 20.08.2010 16:07,...
> > > > > > > > š š š š using the following 
> > > > > > > > site:http://www.digicert.com/helpandittold
> > > > > > > > š š š š that it was installed properly on the server.
>
> > > > > > > > š š š š On Aug 20, 4:39 pm, Kostya V...
> > > > > > > > š š š š <mailto:kmans...@gmail.com>> šwrote:
>
> > > > > > > > š š š š š š šAjay,
>
> > > > > > > > š š š š š š This can happen because the certificate is not 
> > > > > > > > signed by...
> > > > > > > > š š <mailto:android-developers@googlegroups.com>
> > > > > > > > š š To unsubscribe from this group, send email to
> > > > > > > > š š android-developers+unsubscr...@googleg...
> > > > > > > > š š 
> > > > > > > > <mailto:android-developers%2bunsubscr...@googlegroups.com > > > > > > >  s%252bunsubscr...@googlegroups.com>
>
> > > > > > > > š š For more options, visit this group at
> > > > > > > > š šhttp://groups.google.com/group/android-develope...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: back_key implementation

2010-08-28 Thread gcstang
You can also use this so that C is on the top instead of B so when you
click back it will go to A if you launch C from B :

On your Intent set it so the Activity you're launching is on Top which
means B will be removed from the previous position :

In B where you launch C add this flag :

Intent i;
i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

On Aug 27, 3:29 am, SREEHARI  wrote:
> Hi Praveen,
>
>    Assume there are 3 activities A, B and C.
>    A is the 1st one. A starts B and B starts C. Usually when we click
> back button from C activity it will go to B. But u want the control to
> go to activity A, rite
>
> After starting the activity C from B, you can finish the activity B.
> So that A will be there on the top of C in the stack. So A will get
> called when u click back from C.
>
> Regards,
>
> SREEHARI

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: JDOM in Android 2.1 or earlier

2010-08-27 Thread gcstang
Just my 2 cents but JDOM is inherently slower than other XML
processors and on a mobile platform that's usually not what you want,
you should use SAX or something that's built into the API (if
possible).

I know using SAX and some other methods are a bit more work however if
you're parsing on a mobile platform your users will appreciate it.

On Aug 26, 2:45 am, als  wrote:
> Nobody could do it?
>
> I'm going to do some tests changing the input xml, adding aliases for
> namespaces and so on. Maybe that exception appears only in some cases
> and I can make it 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SSLException: Not trusted server certificate

2010-08-25 Thread gcstang
See my post here :

http://groups.google.com/group/android-developers/browse_thread/thread/62d856cdcfa9f16e/dd59b1998d23a660?lnk=gst&q=SSL+fake+cert#dd59b1998d23a660


On Aug 24, 2:48 am, Ajay  wrote:
> Hi,
>
> Since my app is going to access our own servers, I think I can use the
> hack of trusting all certificates. I tried the following & still
> fails :-(
>
> SchemeRegistry schemeRegistry = new SchemeRegistry();
> SSLSocketFactory sslSocketFactory =
> SSLSocketFactory.getSocketFactory();
>
> sslSocketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
> schemeRegistry.register(new Scheme("https", sslSocketFactory, 443));
>
> ClientConnectionManager manager = new
> ThreadSafeClientConnManager(httpParam, schemeRegistry);
> DefaultHttpClient client = new DefaultHttpClient(manager, httpParam);
>
> Thank you,
> AJ
>
> On Aug 22, 12:10 am, Bob Kerns  wrote:
>
> > The CA root certificates have very long expiration dates, so this is
> > much less of a problem than you may assume.
>
> > It's still an issue -- CA certs could possibly be revoked in the event
> > of a vulnerability or theft. But those are relatively remote
> > possibilities, beyond what most phone apps would need to consider.
>
> > On Aug 21, 9:16 am, DanH  wrote:
>
> > > The current cert may only be good for another 6-12 months.  And if the
> > > site isn't directly under the control of the app developer, the cert
> > > may change at any time, and may even be changed to use a different
> > > root.
>
> > > There's probably no good solution to this problem, but the best I can
> > > think of is to embed another app in your app that simply installs the
> > > necessary cert(s), then have a way for that app to be updated as
> > > needed.
>
> > > On Aug 21, 7:09šam, Kostya Vasilyev  wrote:
>
> > > > Right, it does. If the site in question is part of the phone 
> > > > application's
> > > > infrastructure, I personally would find it acceptable.
>
> > > > --
> > > > Kostya Vasilyev --http://kmansoft.wordpress.com
>
> > > > 21.08.2010 16:06 ÐÏÌØÚÏ×ÁÔÅÌØ "DanH"  ÎÁÐÉÓÁÌ:
>
> > > > That assumes that the web site's cert won't change for the life of the
> > > > app.
>
> > > > On Aug 21, 3:18 am, Kostya Vasilyev  wrote:
>
> > > > > šAjay,
>
> > > > > A more cryptographically correct solution would be to install the
> > > > > missing Óertfiicate pieces wit...
> > > > > > On Fri, Aug 20, 2010 at 8:46 PM, Kostya Vasilyev  > > > > >  > > > > > š š You being able to open the site in desktop browser and on a
> > > > > > š š Blackberry seems to impl...
>
> > > >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > > > > > š š This is a hack to accept all certificates.
>
> > > > > > š š -- Kostya
>
> > > > > > š š 20.08.2010 16:07,...
> > > > > > š š š š using the following 
> > > > > > site:http://www.digicert.com/helpandittold
> > > > > > š š š š that it was installed properly on the server.
>
> > > > > > š š š š On Aug 20, 4:39 pm, Kostya V...
> > > > > > š š š š > šwrote:
>
> > > > > > š š š š š š šAjay,
>
> > > > > > š š š š š š This can happen because the certificate is not signed 
> > > > > > by...
> > > > > > š š 
> > > > > > š š To unsubscribe from this group, send email to
> > > > > > š š android-developers+unsubscr...@googleg...
> > > > > > š š 
> > > > > >  > > > >  s%252bunsubscr...@googlegroups.com>
>
> > > > > > š š For more options, visit this group at
> > > > > > š šhttp://groups.google.com/group/android-develope...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Dalvik SegFaults while using CMU Sphinx4

2010-08-03 Thread gcstang
Would love to see the document on how you got it to work.

On Aug 2, 2:46 pm, "Luis D. Pedrosa" 
wrote:
> I would be more than happy to document the process, although, at some
> point, I will most likely have to make changes to Sphinx that are
> specific to our project and not useful outside of it.
>
> Thanks for the encouragement!
>
> -- Luis D. Pedrosa

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Correct way to kill the application

2010-07-31 Thread gcstang
If it wasn't for a task killer my phone wouldn't last a day mine
as well be tethered to the wall.

On Jul 31, 1:31 am, Dianne Hackborn  wrote:
> You don't need task killers.  Some people like them, and who I am I to argue
> with what people like? ;)
>
>
>
> On Fri, Jul 30, 2010 at 8:00 PM, Mystique  wrote:
> > One question, not sure whether it is related.
> > Since Android manage task and application automatically and terminate
> > if necessary why do we need application like Advance Task Killer?
> > Isn't it redundant? I understand why Android was design this way, to
> > help speed up application and extra memory if not needed is just waste
> > so I rather have my app ready in the background and let Android decide
> > whether to close it.
>
> > Back to qns, why do we need ATK??? I have it install but I do not use
> > it anymore and doesn't seems to make a different.
>
> > On Jul 31, 6:38 am, Eric F  wrote:
> > > Yeah this is exactly what I thought too. Just because non-technical
> > > people download task killers from the market doesn't mean that task
> > > killers are necessary. In my opinion it is way more likely that the
> > > explanation is that people are just very bad at shifting their way of
> > > thinking from paradigm to paradigm.
>
> > > And it also made me think of the windows tuner programs. I've noticed
> > > a trend in the way people think these days. I call it the do-nothing
> > > dilemma. We are incapable of doing nothing these days. What I mean is,
> > > when we look at a problem we instantly act for the "solution". Because
> > > we are so advanced these days that we are just used to things being
> > > already solved somewhere by someone, somehow. I am only 30, but I
> > > suspect that people living in the 1920s had more of a grin and bear it
> > > mentality ("man up") when it came to problems and hardship.
>
> > > Now, whether it's a kid hurting him/herself on a swing and people
> > > needing to "Do Something", banning swingsets from all playgrounds. Or
> > > a cellphone chugging along while syncing contacts, people don't think
> > > "huh, my cell phone is not as quick as I want it. Oh well I'll just
> > > deal, it's still a great phone and I'm sure in the future we'll have
> > > faster phones that don't slow down". They think "Wow, surely there
> > > must be someone to blame for this and someone with the fix. Oh here
> > > this task killer allows me to solve my problem". Soon they are
> > > probably having more problems than they started, but they don't care
> > > because now everytime they get disgruntled they can "do something"
> > > about it. And nobody wants to admit that they are administrating
> > > themselves placebos, so feeling like it *is* a valid solution is self
> > > reinforcing.
>
> > > That was a bit long winded. But I agree with Kostya, I don' think
> > > people downloading task killers from the marketplace show a deficiency
> > > in the OS. Only a deficiency in the way people adapt to new things.
>
> > > Obviously the pre-bundled apps that can't be uninstalled are a huge
> > > problem. task killers not really being a good solution there, the real
> > > solution is root -> uninstall. Hopefully Google will be able to nudge
> > > companies in the right direction. I doubt we'll ever be in a crapware
> > > free world, but perhaps they can be convinced to make crapware
> > > uninstallable.
>
> > > -E
>
> > > On Jul 30, 1:33 pm, Kostya Vasilyev  wrote:
>
> > > > Technical details aside, I think it's just human nature.
>
> > > > Some percentage of users just have a strong desire to have something
> > > > "magical" that *supposedly* makes their device (Android phone or
> > desktop
> > > > OS) work much better.
>
> > > > Remember - there used to be all kinds of memory optimizers for Windows?
> > > > Also registry cleaners, various "tweak" and "tune-up" utilities, etc.
> > > > etc. etc. No-one is saying that Windows (or any other OS :) is perfect,
> > > > but these apps promise much more than they actually do, and sometimes
> > > > cause harm.
>
> > > > There is also a whole subculture of users who root and flash their
> > > > phones - I am convinced most do it because it addresses some
> > > > psychological need, more than anything else.
>
> > > > So personally, I am quite happy to see that Google is starting to limit
> > > > what task killers can do. I believe interfering with the platform's
> > core
> > > > functionality is definitely a bad thing.
>
> > > > I have enough bugs in my code to have to deal with someone else's.
>
> > > > -- Kostya
>
> > > > 31.07.2010 0:08, Indicator Veritatis пишет:
>
> > > > > A good article. A little harsh on the OP, but even so, a good
> > article.
>
> > > > > After all: given that that IS the design of Android, that
> > Applications
> > > > > should not quit, but leave termination up to the OS, the article
> > makes
> > > > > its case well, even elegantly.
>
> > > > > But I cannot help but notice: after Android did all that hard work of
> >

[android-developers] Re: Android Market Licensing: Now Available!

2010-07-28 Thread gcstang
Excellent!

Thank you

On Jul 28, 6:44 am, sblantipodi  wrote:
> Hi all...
> When you bought my software you bought a license, this license can be
> ported from android to other platform like Symbian, Winmob, bada,
> JavaME, Blackberry...
>
> Every customers who bought my license is registered on our database,
> (email address and device id),
> this let me generate a new activation code in case he want to switch
> the license from android to xx platform.
>
> Is there an easy way to update my database when a customer bought my
> software with the email address and device id of the customer who
> bought the software or legally activated it?
>
> Thanks.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Market comments disappearing over last few days

2010-07-27 Thread gcstang
I've seen them disappear a lot over the last month or two.

On Jul 26, 9:29 pm, "Maps.Huge.Info (Maps API Guru)"
 wrote:
> Marking a comment as spam only removes it from the marker's device, as
> far as I know, it has no effect on anything else.
>
> Perhaps if enough users mark a comment as spam someone takes a real
> look or it does cause it to go away, don't have any data on that.
>
> -John Coryat

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-26 Thread gcstang
This tells you what changed exactly and why

http://android-developers.blogspot.com/2010/07/adjustment-to-market-legals.html


On Jul 26, 3:52 am, String  wrote:
> On Jul 25, 12:06 am, Zsolt Vasvari  wrote:
>
> > Has the return policy gone from 1 to 2 days now, or has it always been
> > worded like that?
>
> It's not new - I think the 48-hour policy was included in the last
> update to the agreement. AFAIK, though, the reality hasn't changed for
> Market users yet; they still have only 24 hours to get a refund at the
> moment.
>
> String

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-24 Thread gcstang
Thank you, I'll check this out

On Jul 23, 10:08 am, Brion Emde  wrote:
> The Notebook sample application contains a simple ContentProvider and
> a list of Notes.
>
> That lives 
> here:http://developer.android.com/resources/samples/NotePad/index.html
>
> On Jul 23, 9:09 am, gcstang  wrote:
>
> > Does anyone have a easy example to setup the ContentProvider and a
> > psuedo helper object for use with a ListView?
>
> > I would be interested in seeing that.
>
> > Thank you in advance
>
> > On Jul 23, 1:50 am, Indicator Veritatis  wrote:
>
> > > Passing data from Activity to Activity is what ContentProviders are
> > > good at; they even let you pass from application to application.
>
> > > On Jul 22, 5:24 pm, Zsolt Vasvari  wrote:
>
> > > > You cannot pass a SQLiteDatabase object from activity to activity.
> > > > Perhaps you could store it in a global static, but I think that's not
> > > > a good idea.
>
> > > > On Jul 22, 11:18 pm, ecforu  wrote:> But what's 
> > > > the reason for not keeping it open?  Or actually a better
> > > > > question is why do is my database dependent on an activity at all?  
> > > > > These
> > > > > are two totally different pieces to the puzzle (i.e. as in an MVC 
> > > > > pattern or
> > > > > similar design).
>
> > > > > On Wed, Jul 21, 2010 at 8:29 PM, Zsolt Vasvari  
> > > > > wrote:
> > > > > > I never keep an actualy SQLiteDatabase object around ever.  In all 
> > > > > > my
> > > > > > activities, I create a helper object and obtain the SQLDatabase 
> > > > > > object
> > > > > > which I keep around throwing away the helper object.  And I make 
> > > > > > sure
> > > > > > that I close the database in my activities' onDestroy method.
>
> > > > > > On Jul 22, 4:07 am, ecforu  wrote:
> > > > > > > Do I need an instance of my SQLiteOpenHelper class for each 
> > > > > > > Activity I
> > > > > > have?
> > > > > > >  I have 1 currently that all activities access, but started 
> > > > > > > getting an
> > > > > > > exception
>
> > > > > > > "illegal state exception SQLiteDatabase created and never closed "
>
> > > > > > > on simple a simple query and I can't seem to figure out why this 
> > > > > > > is
> > > > > > > happening.  I read online about this, and wanted to try to 
> > > > > > > understand why
> > > > > > > the SQLiteOpenHelper was dependent on an Activity.
>
> > > > > > > Is there a way to just have open SQLiteDatabase object without 
> > > > > > > the Helper
> > > > > > > and have it just exist within all activities?
>
> > > > > > > Thanks
>
> > > > > > --
> > > > > > 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+unsubscr...@googlegroups.com
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/android-developers?hl=en-Hidequotedtext-
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-23 Thread gcstang
Does anyone have a easy example to setup the ContentProvider and a
psuedo helper object for use with a ListView?

I would be interested in seeing that.

Thank you in advance

On Jul 23, 1:50 am, Indicator Veritatis  wrote:
> Passing data from Activity to Activity is what ContentProviders are
> good at; they even let you pass from application to application.
>
> On Jul 22, 5:24 pm, Zsolt Vasvari  wrote:
>
> > You cannot pass a SQLiteDatabase object from activity to activity.
> > Perhaps you could store it in a global static, but I think that's not
> > a good idea.
>
> > On Jul 22, 11:18 pm, ecforu  wrote:> But what's the 
> > reason for not keeping it open?  Or actually a better
> > > question is why do is my database dependent on an activity at all?  These
> > > are two totally different pieces to the puzzle (i.e. as in an MVC pattern 
> > > or
> > > similar design).
>
> > > On Wed, Jul 21, 2010 at 8:29 PM, Zsolt Vasvari  wrote:
> > > > I never keep an actualy SQLiteDatabase object around ever.  In all my
> > > > activities, I create a helper object and obtain the SQLDatabase object
> > > > which I keep around throwing away the helper object.  And I make sure
> > > > that I close the database in my activities' onDestroy method.
>
> > > > On Jul 22, 4:07 am, ecforu  wrote:
> > > > > Do I need an instance of my SQLiteOpenHelper class for each Activity I
> > > > have?
> > > > >  I have 1 currently that all activities access, but started getting an
> > > > > exception
>
> > > > > "illegal state exception SQLiteDatabase created and never closed "
>
> > > > > on simple a simple query and I can't seem to figure out why this is
> > > > > happening.  I read online about this, and wanted to try to understand 
> > > > > why
> > > > > the SQLiteOpenHelper was dependent on an Activity.
>
> > > > > Is there a way to just have open SQLiteDatabase object without the 
> > > > > Helper
> > > > > and have it just exist within all activities?
>
> > > > > Thanks
>
> > > > --
> > > > 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+unsubscr...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en-Hidequoted text -
>
> > > - Show quoted text -

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-22 Thread gcstang
I still see this error when using a ListView even though I have it set
to close and clean up the connection when leaving the view, can't do
it right away or the ListView won't work.

Any way around this?

On Jul 21, 7:29 pm, Zsolt Vasvari  wrote:
> I never keep an actualy SQLiteDatabase object around ever.  In all my
> activities, I create a helper object and obtain the SQLDatabase object
> which I keep around throwing away the helper object.  And I make sure
> that I close the database in my activities' onDestroy method.
>
> On Jul 22, 4:07 am, ecforu  wrote:
>
> > Do I need an instance of my SQLiteOpenHelper class for each Activity I have?
> >  I have 1 currently that all activities access, but started getting an
> > exception
>
> > "illegal state exception SQLiteDatabase created and never closed "
>
> > on simple a simple query and I can't seem to figure out why this is
> > happening.  I read online about this, and wanted to try to understand why
> > the SQLiteOpenHelper was dependent on an Activity.
>
> > Is there a way to just have open SQLiteDatabase object without the Helper
> > and have it just exist within all activities?
>
> > Thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Has anyone get App Inventor accounts?

2010-07-20 Thread gcstang
Same no response

On Jul 20, 6:45 am, nation-x  wrote:
> nada here
>
> On Jul 20, 2:52 am, Eelco  wrote:
>
> > Same here, I registered, but no reply

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to make Rating Bar small and if I click it open a Dialog to change

2010-07-16 Thread gcstang
I've tried using

style="?android:attr/ratingBarStyleIndicator"

but that makes it non interactive, can I wrap it or something to make
it so you can click the bar and it opens a Dialog with a full Rating
Bar that can be changed?

The large one is just huge for the display I'm trying to achieve.

Thank you,

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Newer Market Comments Disappearing?

2010-06-18 Thread gcstang
I've noticed over some time that some comments are disappearing and
not just old ones but ones that have recently been placed, is this a
bug?

The comment that I noticed was placed on 6/3 but doesn't show on the
phone, it only shows on some sites that index the market.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SQLiteCursor on that has not been deactivated or closed

2010-06-18 Thread gcstang
Disregard, I found the issue.

If in your MediaDbAdapter call you get a Cursor check for null
etc..then pass it and close it from another class then the one in
MediaDbAdapter does not get closed, until the system does it for you.

I changed it to pass the cursor directly from the call and deal with
it in the class that called it instead and it worked, no more errors.

On Jun 18, 8:43 am, gcstang  wrote:
> Even with that I still get this error:
>
> INFO/dalvikvm(23250): Uncaught exception thrown by finalizer (will be
> discarded):
> INFO/dalvikvm(23250): Ljava/lang/IllegalStateException;: Finalizing
> cursor android.database.sqlite.sqlitecur...@44887dc8 on media that has
> not been deactivated or closed
> INFO/dalvikvm(23250):     at
> android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
> INFO/dalvikvm(23250):     at dalvik.system.NativeStart.run(Native
> Method)
>
> I don't know how to get rid of this, I've looked everywhere I can
> think of for a solution.
>
> On Jun 18, 3:44 am, Moss  wrote:
>
>
>
> > I always do like this:
>
> > MediaDbAdapter mDbHelper = null;
> > Cursor c = null;
>
> > try {
> >   // Do you DB stuff} catch( Exception e) {
>
> >   // Something went wrong
>
> > }
>
> > // Close and cleanup
> > if ( c != null )
> > {
> >   // You do not need to deactivate the cursor
> >   c.close();}
>
> > if(mDbHelper != null && mDbHelper.isOpen())
> > {
> >   mDbHelper.close();
>
> > }
>
> > On Jun 17, 10:31 pm, gcstang  wrote:
>
> > > I've followed the try/finally approach but still get this error.
>
> > > Is there anything else that can be done?
>
> > > Here is what I have.
>
> > > MediaDbAdapter mDbHelper = null;
> > > Cursor c = null;
> > > try {
> > >         mDbHelper = new MediaDbAdapter(ctxt);
> > >         mDbHelper.open();
> > >         c = mDbHelper.findByX(data.getX());
> > >         if(c != null) {
> > >            //Do an Update on the database
> > >         }
> > >         else if(c == null) {
> > >           //Do an Insert on the database
> > >         }} finally {
>
> > >                         if(c != null) {
> > >                                 c.deactivate();
> > >                                 c.close();
> > >                                 c = null;
> > >                         }
> > >                         if(mDbHelper != null && mDbHelper.isOpen()) {
> > >                                 mDbHelper.close();
> > >                         }
> > >                 }

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SQLiteCursor on that has not been deactivated or closed

2010-06-18 Thread gcstang
Even with that I still get this error:

INFO/dalvikvm(23250): Uncaught exception thrown by finalizer (will be
discarded):
INFO/dalvikvm(23250): Ljava/lang/IllegalStateException;: Finalizing
cursor android.database.sqlite.sqlitecur...@44887dc8 on media that has
not been deactivated or closed
INFO/dalvikvm(23250): at
android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
INFO/dalvikvm(23250): at dalvik.system.NativeStart.run(Native
Method)

I don't know how to get rid of this, I've looked everywhere I can
think of for a solution.

On Jun 18, 3:44 am, Moss  wrote:
> I always do like this:
>
> MediaDbAdapter mDbHelper = null;
> Cursor c = null;
>
> try {
>   // Do you DB stuff} catch( Exception e) {
>
>   // Something went wrong
>
> }
>
> // Close and cleanup
> if ( c != null )
> {
>   // You do not need to deactivate the cursor
>   c.close();}
>
> if(mDbHelper != null && mDbHelper.isOpen())
> {
>   mDbHelper.close();
>
> }
>
> On Jun 17, 10:31 pm, gcstang  wrote:
>
>
>
> > I've followed the try/finally approach but still get this error.
>
> > Is there anything else that can be done?
>
> > Here is what I have.
>
> > MediaDbAdapter mDbHelper = null;
> > Cursor c = null;
> > try {
> >         mDbHelper = new MediaDbAdapter(ctxt);
> >         mDbHelper.open();
> >         c = mDbHelper.findByX(data.getX());
> >         if(c != null) {
> >            //Do an Update on the database
> >         }
> >         else if(c == null) {
> >           //Do an Insert on the database
> >         }} finally {
>
> >                         if(c != null) {
> >                                 c.deactivate();
> >                                 c.close();
> >                                 c = null;
> >                         }
> >                         if(mDbHelper != null && mDbHelper.isOpen()) {
> >                                 mDbHelper.close();
> >                         }
> >                 }

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] SQLiteCursor on that has not been deactivated or closed

2010-06-17 Thread gcstang
I've followed the try/finally approach but still get this error.

Is there anything else that can be done?

Here is what I have.

MediaDbAdapter mDbHelper = null;
Cursor c = null;
try {
mDbHelper = new MediaDbAdapter(ctxt);
mDbHelper.open();
c = mDbHelper.findByX(data.getX());
if(c != null) {
   //Do an Update on the database
}
else if(c == null) {
  //Do an Insert on the database
}
} finally {
if(c != null) {
c.deactivate();
c.close();
c = null;
}
if(mDbHelper != null && mDbHelper.isOpen()) {
mDbHelper.close();
}
}

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Wifi drop Issues on Motorola Droid

2010-05-07 Thread gcstang
I get drops on my Droid as well any where from seconds to minutes
after starting WiFi, whether using a browser or application.

On May 6, 6:52 am, KK  wrote:
> I am trying to develop a streaming application and I am testing it on
> multiple devices. But I am seeing some problems on Motorola Droid with
> regards to wifi connection. The wifi connection drops occasionally and
> comes back in 30 seconds to 1 minute on the Droid. Sometimes while in
> the middle of streaming I get network connection errors even though I
> am standing very next to the wifi router. I am not finding this
> problem with any other devices. Has anyone found any similar issues
> with the Droid? Any idea what can be done in my program to fix this?
>
> Thanks
> KK
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Google should prohibit task killers on Android Market

2010-05-03 Thread gcstang
Way too extreme, without the Task Killers battery life on most phones
would be horrible and the speed even on some phones such as the Droid
would slow down too much waiting for background tasks to die on their
own.

Although I understand your frustration there has to be a better
resolution for now awareness is about your only avenue.

On Apr 30, 3:56 am, Tomáš  Hubálek  wrote:
> Hello,
>
> I'm on developer of Digital World Clock Widget 
> (http://www.appbrain.com/app/net.hubalek.android.worldclock).
>
> I'm receiving a few emails per week with complain that my widget
> stopped working. In all cases when we do investigation the cause is
> some kind of task killer. What is worse that not everybody contacts me
> by email bug gives bad rating even if my application is not working
> incorrectly.
>
> I made remedy: wrote it to documentation (http://android.hubalek.net),
> wrote it to application main screen and wrote it do application
> description but people either don't know what exactly task killers do
> and how they work or just don't read doc.
>
> I think that Google should prohibit all task killers as they are
> malicious and are breaking other apps.
>
> What do you think?
>
> Tom
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Using same sqlite database from multiple Activities and Services

2010-04-29 Thread gcstang
As am I, I'm doing the same with onPause/onResume.

Federico how are you checking if your database connection is open?

On Apr 28, 3:18 am, Federico Paolinelli  wrote:
> An sqllitedb (helper) object for each activity (but the open one is
> only in the active activity). Every time an activity closes or pauses,
> I call the close() method.
> However, I am interested in any more elegant and standard solution of
> this problem.
>
> Federico
>
> On 27 Apr, 21:49, goosedroid  wrote:
>
>
>
>
>
> > Frederico, were you sharing the same SQLiteDatabase instance object
> > between all activities via some singleton helper class, or was each
> > Activity instantiating a new SQLiteDatabase object?
>
> > On Apr 27, 8:58 am, Federico Paolinelli  wrote:
>
> > > On 27 Apr, 13:48, goosedroid  wrote:
>
> > > > I have been trying to find a discussion on the best way to handle a
> > > > common sqlite database which is shared by multiple Activities (or
> > > > multiple Activities and Services). This is all in the same
> > > > application.
>
> > > > It seems that if each Activity has:
>
> > > > void onCreate()
> > > > {
> > > >     SQLiteDatabase db = SQLiteDatabase.openDatabase(...)
> > > >     ...
>
> > > > }
>
> > > > void onDestroy()
> > > > {
> > > >    db.close();
> > > >    ...
>
> > > > }
>
> > > > this would be wasteful, assuming there would be N SQLiteDatabase
> > > > objects with N activities that needed access to the same db.
>
> > > > One could go about making a singleton, but who would be responsible
> > > > for closing the database when the application terminates?
>
> > > > Would it be best to extend the android.app.Application class and hook
> > > > into the onTerminate() to close the database?
>
> > > > Taking a look at NotePadv3Solution, I can't find where it closes the
> > > > database - and that is a pretty straightforward example.
>
> > > > --
>
> > > What I did (which may not be the best solution is to call the
> > > db.close() in onPause() method and call the db.open() in any
> > > onResume() method of all activities.
> > > Be aware that during the activity creation both onCreate() and
> > > onResume() methods are called, so you need to check the db is not
> > > opened yet.
>
> > > Hope this helps,
>
> > >     Federico
>
> > > --
> > > 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+unsubscr...@googlegroups.com
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/android-developers?hl=en
>
> > --
> > 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+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to detect Bluetooth headset key press

2010-04-29 Thread gcstang
I thought this was disabled at the OS levelotherwise wouldn't we
be able to press to start a dialing app on our BT Headsets?

On Apr 29, 1:31 am, mort  wrote:
> Hi,
>
> it's pretty simple: add a broadcast listener to MEDIA_BUTTON:
> 
>     
> 
>
> You need to give it a "priority", which decides whether it's handled
> before or after other apps. In other words, it's pure coincidence who
> picked the highest number...
> If you handled the button press, you should abort the broadcast with
> abortBroadcast(). Trouble with this handling is, the priorities and
> abortBroadcast() work fine as long as each app only responds while
> e.g. something is played. But several users also expect a "default
> player" to be launched (or start playing) upon button press, like the
> default player, so it might happen some app with a higher priority
> number won't let the intent come through to your app... (I already
> filed an issue to improve 
> that:http://code.google.com/p/android/issues/detail?id=7772
> - no response so far...)
>
> In the onReceive, you can get the button event with
> KeyEvent key = (KeyEvent)
> intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
>
> key.getKeyAction() tells you whether the button was released or
> pressed, key.getKeyCode() tells which button. The values are
> documented and pretty self explaining, like KeyEvent.ACTION_DOWN or
> KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE.
> Regarding press and release, keep in mind several headsets do own
> processing which prevents this (like e.g. closing the connection or
> sending "stop" on long press on play/pause) or simply send both at
> once when the key is pressed or released. Also, some BT drivers are a
> bit unreliable in that regard...
>
> If you want to handle single button cable headsets as well, also
> regard the key code KEYCODE_HEADSETHOOK.
>
> btw: HTC Hero doesn't implement this standard, it needs a workaround
> app.
>
> HTH,
> Mirko
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Flash support on android

2010-04-23 Thread gcstang
Android has HTML 5 and from what I've seen most of what can be done in
Flash can be done in HTML 5...is it an option for you?

On Apr 22, 2:12 am, veradis  wrote:
> Hi,
>
>  Can SWF files be played on android 1.5 emulator/phone. My req. is to
> load an SWF in app. can this be done. Also how will the SWF be played
> on webview. I am not able to install flashlite on the emulator. SWF is
> created with Flex SDK version 3.0.
>
>  Please help me on this.
>
> Thanks
> Veradis
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android: Trusting all Certificates using HttpClient over HTTPS

2010-04-15 Thread gcstang
This works for me information found on multiple sites but mostly from
anddev.org :

1. Create a Fake Trust Manager
public class _FakeX509TrustManager implements X509TrustManager {

private static TrustManager[] trustManagers;
private static final X509Certificate[] _AcceptedIssuers = new
X509Certificate[] {};

@Override
public void checkClientTrusted(X509Certificate[] chain, String
authType) throws CertificateException {
}

@Override
public void checkServerTrusted(X509Certificate[] chain, String
authType) throws CertificateException {
}

public boolean isClientTrusted(X509Certificate[] chain) {
return true;
}

public boolean isServerTrusted(X509Certificate[] chain) {
return true;
}

@Override
public X509Certificate[] getAcceptedIssuers() {
return _AcceptedIssuers;
}

public static void allowAllSSL() {
HttpsURLConnection.setDefaultHostnameVerifier(new 
HostnameVerifier()
{
@Override
public boolean verify(String hostname, SSLSession 
session) {
return true;
}

});

SSLContext context = null;
if (trustManagers == null) {
trustManagers = new TrustManager[] { new 
_FakeX509TrustManager() };
}

try {
context = SSLContext.getInstance("TLS");
context.init(null, trustManagers, new SecureRandom());
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (KeyManagementException e) {
e.printStackTrace();
}


HttpsURLConnection.setDefaultSSLSocketFactory(context.getSocketFactory());
}
}

2. Before Establishing your connection over SSL call your Fake Trust
manager above like this:
 _FakeX509TrustManager.allowAllSSL();

3. Establish your HTTPS connection

HttpsURLConnection con = (HttpsURLConnection) new URL("https://
www.somewebsite.com").openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Content-Type", "application/x-www-form-
urlencoded");
con.setRequestProperty("Content-Length", ""
+Integer.toString(urlParameters.getBytes().length));
con.setRequestProperty("Content-Language", "en-US");
con.setRequestProperty("Connection", "close");

con.setUseCaches (false);
con.setDoOutput(true);
con.setDoInput(true);

//Send request
DataOutputStream wr = new DataOutputStream(con.getOutputStream());
wr.writeBytes(urlParameters);
wr.flush();
wr.close();

int statusCode = ((HttpURLConnection) con).getResponseCode();

con.disconnect();



On Apr 14, 11:46 pm, AccuDeveloper  wrote:
> Hi all,
>
> Trying to get HTTPS working with the HttpClient.  I can't seem to find
> an example anywhere that works for me.  Basically, I want my client to
> accept any certificate (because I'm only ever pointing to one server)
> but I keep getting a javax.net.ssl.SSLException: Not trusted server
> certificate exception.  So this is what I have:
>
>     public void connect() throws A_WHOLE_BUNCH_OF_EXCEPTIONS {
>
>         HttpPost post = new HttpPost(new URI(PROD_URL));
>         post.setEntity(new StringEntity(BODY));
>
>         KeyStore trusted = KeyStore.getInstance("BKS");
>         trusted.load(null, "".toCharArray());
>         SSLSocketFactory sslf = new SSLSocketFactory(trusted);
>
> sslf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
>
>         SchemeRegistry schemeRegistry = new SchemeRegistry();
>         schemeRegistry.register(new Scheme ("https", sslf, 443));
>         SingleClientConnManager cm = new
> SingleClientConnManager(post.getParams(), schemeRegistry);
>
>         HttpClient client = new DefaultHttpClient(cm, post.getParams());
>         HttpResponse result = client.execute(post);
>     }
>
> And here's the error I'm getting:
>
>     W/System.err(  901): javax.net.ssl.SSLException: Not trusted
> server certificate
>     W/System.err(  901):        at
> org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
> 360)
>     W/System.err(  901):        at
> org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:
> 92)
>     W/System.err(  901):        at
> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:
> 321)
>     W/System.err(  901):        at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
> 129)
>     W/System.err(  901):        at
> org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
> 164)
>     W/System.err(  901):        at
> org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
> 119)
>     W/System.err(  901):        a

[android-developers] Re: Is there a way to force deletion of User Data on Application upgrade?

2010-04-14 Thread gcstang
So this would get fired when you increment your database version?

On Apr 13, 9:35 pm, NoImJosh  wrote:
> If you're trying to create a more robust database, you don't have to
> delete the existing one.  If you have a class that extends
> SQLiteOpenHelper, you can call the following function (this moves data
> from current table to temp table to remove whichever columns you don't
> specify in the "swap" string, drops current table, renames temp to
> original):
>
>         public void onUpgrade(SQLiteDatabase db, int oldVersion, int
> newVersion) {
>             Log.w(TAG, "Upgrading database from version " + oldVersion
> + " to "
>                     + newVersion + ", which will drop column_A");
>
>                 String tempDB =    "create table temp (" + KEY_ROWID + " 
> integer
> primary key autoincrement, " + KEY_NAME + " text not null;";
>                 db.execSQL(tempDB);
>                 String swap = "insert into temp SELECT " + KEY_ROWID + "," +
> KEY_NAME + " FROM " + DATABASE_TABLE;
>                 db.execSQL(swap);
>             db.execSQL("DROP TABLE IF EXISTS " + DATABASE_TABLE);
>             db.execSQL("ALTER TABLE temp RENAME TO " +
> DATABASE_TABLE);
>         }
>
> If you want to add columns to your existing database, it's even
> simpler:
>
> public void onUpgrade(SQLiteDatabase db, int oldVersion, int
> newVersion) {
>             Log.w(TAG, "Upgrading database from version " + oldVersion
> + " to "
>                     + newVersion + ", which adds SMS, MMS, Bluetooth,
> & WiFi");
>                 String ADD_COLUMN = "ALTER TABLE " + DATABASE_TABLE + " ADD
> column " + KEY_NEWCOLUMN + " TEXT NOT NULL DEFAULT \"The Default\";";
>                 db.execSQL(ADD_COLUMN);
>
> }
>
> On Apr 13, 7:22 pm, eric  wrote:
>
> > I want to force the User Data to be deleted on Application upgrade (to
> > delete internal database).
> > How can I do that?
>
> > Eric

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Progress Bar in every row of ListView

2010-04-13 Thread gcstang
Thank you

On Apr 13, 3:04 pm, Prajakta Shitole  wrote:
> links for Lazy loading ..
>
> http://blog.jteam.nl/2009/09/17/exploring-the-world-of-android-part-2/ Tom
> van 
> Zummerenhttp://evancharlton.com/thoughts/lazy-loading-images-in-a-listview/Evan
> Charltonhttp://code.google.com/p/shelves/from Romain 
> Guyhttp://github.com/commonsguy/cwac-thumbnailfrom Mark Murphy
>
> I have followed the tutorial written by Tom van Zummeren.
>
> Thanks,
> Prajakta
>
> On Mon, Apr 12, 2010 at 4:33 AM, gcstang  wrote:
> > Do you have example code that you used to get the images to work?
> > I've tried this and my listview gets really slow after scrolling
> > through once then trying to go back through it.
>
> > Thank you,
>
> > On Apr 11, 10:46 am, Tunneling  wrote:
> > > I'm also interested in this. I've been able to load a different image
> > > in place of the initial image, and then replace it when the background
> > > processing is completed. However, I would really like to show an
> > > indeterminate progress bar instead of an image.
>
> > > J
>
> > > On Apr 11, 9:48 am, praj  wrote:
>
> > > > Hi,
>
> > > > I am trying to have a progress bar in every row of my list view. My
> > > > list is an iconic list view and have implemented it in the lazy
> > > > loading way..so i want to display a progress bar (spinning progress
> > > > bar) till the images are not loaded. My current approach is that i hv
> > > > placed the progress bar in the layout and in my code in the getView
> > > > method i dismiss it when the image is loaded. However this seems to
> > > > work properly only for the first row of the list view. The progress
> > > > bars are visible on the rest of the rows even if the image is loaded
> > > > and only when i scroll the list do the progress bars disappear so i am
> > > > assuming this is something to do with refreshing the list view. So I
> > > > have tried using notifyDataSetChanged in my getView but it is not
> > > > helping.
>
> > > > Please can anyone let me know if they have worked on anything similar
> > > > to this.
>
> > > > Thanks,
> > > > Prajakta
>
> > --
> > 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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Color Picker Preference

2010-04-13 Thread gcstang
Thank you,

On Apr 13, 2:13 pm, Thomas Gonnin  wrote:
> Hi,
>
> First, your preference activity should implement
> ColorPickerDialog.OnColorChangedListener
> Then add a PreferenceScreen and register setOnPreferenceClickListener to a
> function where you will do a new ColorPickerDialog().show().
> Finally, implement your colorChanged function where you will use your
> preference editor to commit the new color.
>
> I hope it's clear enough, I totally changed my color picker since then.
>
> 2010/4/9 gcstang 
>
> > How did you use it?  I'm faced with the same issue but not sure how to
> > open it and save to a preference key.
>
> > Did you use another preference to open it or something?
>
> > On Mar 14, 11:56 am, Yougli  wrote:
> > > I reply to myself :)
>
> > > I found out that I could actually use the ColorPickerDialog as it is
> > > in my PreferenceActivity...
> > > Don't know why I couldn't use it before.
>
> > > Sorry about that.
>
> > --
> > 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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> > To unsubscribe, reply using "remove me" as the subject.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Progress Bar in every row of ListView

2010-04-13 Thread gcstang
Do you have example code that you used to get the images to work?
I've tried this and my listview gets really slow after scrolling
through once then trying to go back through it.

Thank you,

On Apr 11, 10:46 am, Tunneling  wrote:
> I'm also interested in this. I've been able to load a different image
> in place of the initial image, and then replace it when the background
> processing is completed. However, I would really like to show an
> indeterminate progress bar instead of an image.
>
> J
>
> On Apr 11, 9:48 am, praj  wrote:
>
> > Hi,
>
> > I am trying to have a progress bar in every row of my list view. My
> > list is an iconic list view and have implemented it in the lazy
> > loading way..so i want to display a progress bar (spinning progress
> > bar) till the images are not loaded. My current approach is that i hv
> > placed the progress bar in the layout and in my code in the getView
> > method i dismiss it when the image is loaded. However this seems to
> > work properly only for the first row of the list view. The progress
> > bars are visible on the rest of the rows even if the image is loaded
> > and only when i scroll the list do the progress bars disappear so i am
> > assuming this is something to do with refreshing the list view. So I
> > have tried using notifyDataSetChanged in my getView but it is not
> > helping.
>
> > Please can anyone let me know if they have worked on anything similar
> > to this.
>
> > Thanks,
> > Prajakta

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Color Picker Preference

2010-04-13 Thread gcstang
How did you use it?  I'm faced with the same issue but not sure how to
open it and save to a preference key.

Did you use another preference to open it or something?

On Mar 14, 11:56 am, Yougli  wrote:
> I reply to myself :)
>
> I found out that I could actually use the ColorPickerDialog as it is
> in my PreferenceActivity...
> Don't know why I couldn't use it before.
>
> Sorry about that.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.