[android-developers] Best Mobile Video Player/API/Widget for Android apps?

2014-11-13 Thread 'pawpaw17' via Android Developers
I want to start hosting video clips in my app - my main motivation is to be 
able to play short videos less than 4 minutes that are hosted on my 
external server.

Can anybody suggest pointers/suggestions for what technologies I should 
consider? Video is not the most important component of the app and I'd like 
to avoid spending 80% of my time on it, but I need to allow some level of 
playback control to the user (and considering on non-android platforms is 
also on my radar).

I've considered the youtube API, but want to be able to play videos outside 
of youtube.

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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Best Mobile API/Player Technology for Android?

2014-11-13 Thread 'pawpaw17' via Android Developers
I want to start hosting video clips in my app - my main motivation is to be 
able to play short videos less than 4 minutes that are hosted on my 
external server.

Can anybody suggest pointers/suggestions for what technologies I should 
consider? Video is not the most important component of the app and I'd like 
to avoid spending 80% of my time on it, but I need to allow some level of 
playback control to the user (and considering on non-android platforms is 
also on my radar).

I've considered the youtube API, but want to be able to play videos outside 
of youtube.

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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: My BroadcastReceiver receiver not getting called after phone boots, any ideas?

2013-03-08 Thread pawpaw17
Here is most of my manifest file. I changed things around so I'm trying to 
get .MyBootAlarmReceiver to get called both when boot completes and when 
the SD card is finished loading, but my onReceive() method doesn't seem to 
be getting called. Any ideas?

I suspect some simple goofup:


http://schemas.android.com/apk/res/android";
package="x.x.x"
android:installLocation="auto"
android:versionCode="1"
android:versionName="1.0.0" >













































































my class

public class MyBootAlarmReceiver extends BroadcastReceiver {


@Override
public void onReceive(Context context, Intent intent) {

try{
Log.w("DEBUG", "got the receiver");
 Intent launchIntent = new Intent(context, MyAlarmReceiver.class);
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, 
launchIntent, 0);

AlarmManager alarmManager = (AlarmManager) 
context.getSystemService(context.ALARM_SERVICE);
long interval = 8640; // the interval is one day
long firstTime = 0;

// create a Calendar object to set the real time at which the alarm
// should go off
Calendar alarmTime = Calendar.getInstance();
Calendar now = Calendar.getInstance();


alarmTime.setTimeInMillis(now.getTimeInMillis() + 1);
firstTime = alarmTime.getTimeInMillis();


// Repeat every day at 5pm
alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, firstTime, interval,
pendingIntent);
}
catch(Exception e){
 }

}

};

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] My BroadcastReceiver receiver not getting called after phone boots, any ideas?

2013-03-07 Thread pawpaw17
I have implemented an AlarmManager that triggers and Alarm Receiver once 
per day at 5 pm. 

This worked fine, but I noticed that when I rebooted my phone, the alarm 
never went off again. Is right? Should powering off cancel the nofication?

Intent launchIntent = new Intent(this, MyAlarmReceiver.class);
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, 
launchIntent, 0);

AlarmManager alarmManager = (AlarmManager) 
getSystemService(Context.ALARM_SERVICE);
long interval = 8640; // the interval is one day
long firstTime = 0;

// create a Calendar object to set the real time at which the alarm
// should go off
Calendar alarmTime = Calendar.getInstance();
Calendar now = Calendar.getInstance();


alarmTime.setTimeInMillis(now.getTimeInMillis() + 1);
firstTime = alarmTime.getTimeInMillis();


// Repeat every day at 5pm
alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, firstTime, interval,
pendingIntent);
}
catch(Exception e){
 }

So to fix I attempt to get the receiver to also go off when the phone 
boots. I have the following in the manifest:

In my AndroidManifest.xml I have the following:




 
 






My receiver is not getting called after the phone boots, at least I don't 
see the toast and the vibrate. Any ideas

Finally, on my onReceive I want to do something that requires the network. 
When my onReceive does get called after the phone boots, how do I make sure 
the network is there before I proceed to hit the website I'm reading from.

Thanks!

public class MyAlarmReceiver extends BroadcastReceiver {
...
@Override
public void onReceive(Context context, Intent intent) {

Toast.makeText(context, "Don't panik but your time is up.",
Toast.LENGTH_LONG).show();
// Vibrate the mobile phone
Vibrator vibrator = (Vibrator) 
context.getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(2000);
 receivedContext = context;
getEvents();

}

};

pawpaw17

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Ratings & Reviews SDK???

2013-02-14 Thread pawpaw17
I want to implement ratings & reviews in my app, and I'm about to write 
some server side code to do it. Does anyone know of a decent 
ratings/reviews SDK that is restful and appropriate for use in a native 
app? Just wondered if anyone else is in this boat?

Would love to hear from anyone on this topic.

Best!

pawpaw17

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] How to make image tiles with white text overlays like Flipboard

2012-12-22 Thread pawpaw17
Hi Guys,

Can anyone suggest how do create UI elements like what is there on the 
Flipboard landing page? Not the animation on the flip, but the tiled layout 
itself (the tiles with either a solid color or an image with while text 
that responds to button presses).

Thanks so much in advance for any pointers.

Best,

pawpaw17

-- 
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] Is it possible to change App Name and Publisher for existing Android App?

2012-05-23 Thread pawpaw17
Does anyone know how to change the name and publisher info for an app
in google play without having to enter a completely new app? i.e., if
you sell your app to another company and they want to take ownership
of the app, its users, and its place in the market?

Muchas gracias!

pawpaw17

-- 
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] Anyone using content management system for stuff like checkins/ratings/user sign in etc?

2012-01-29 Thread pawpaw17
Guys,

Is anyone using a content management system in an Android App? I'm
wondering if it is possible
to find a system that can handle some of the repeated stuff that a lot
of apps do rather than
writing a new web app each time.

If anyone knows, thanks!

pawpaw17

-- 
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] Any good backends for managing Checkins and/or User sign/ins?

2012-01-28 Thread pawpaw17
Hi Guys,

Does anyone know of any good off-the-shelf backend solutions for
managing checkin or user sign in data appropriate for use in an
Android app? Some web app that supports and Android app managing user
signin process or product checkin via RESTful http service calls?

If anyone has opinions mucho appreciato!

Best,

pawpaw17

-- 
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] getWritableDatabase always throws Exception on database upgrade for certain Android versions

2011-09-12 Thread pawpaw17
Guys,

I'm still pulling my hair out trying to figure out what is up with
this issue. Many of my users report the following exception when I try
to upgrade my onboard database - a database that I create offline and
ship int he assets of my app:

android.database.sqlite.SQLiteException: Can't downgrade database from
version 62 to 1
at
android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:
299)
at
android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:
160)
at x.DataBaseHelper.createDataBase(DataBaseHelper.java:75)
at x.MyApp$11.run(MyApp.java:675)
at java.lang.Thread.run(Thread.java:1020)

This only happens on certain phone versions, my guess being 2.3 and up
and it doesn't happen with the emulator.

My code looks like this:

 public void createDataBase() throws IOException{

boolean dbExist = checkDataBase();

if(dbExist){
//do nothing - database already exists
}else{

// delete the old database

//By calling this method an empty database will be created into
the default system path
//of your application so we can overwrite that database
with our database.
try{
specialWierdDatabaseUpgradeFailure = false;
this.getWritableDatabase();
}
catch(Exception e){
specialWierdDatabaseUpgradeFailure = true;
}

try {

copyDataBase();


} catch (IOException e) {
throw new Error("Error copying database");
}
}

}

I cannot figure out why it thinks I'm "downgrading" to version 1.

Has anyone run into this problem?

Thanks,

pawpaw17









-- 
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 I change Normal app icon in Market?

2011-09-12 Thread pawpaw17
Does anyone know how to change the standard icon used for my app in
Android Market? I think it is pulling the icon from my app resources
rather than the assets you add when you submit an app. Is that right?
Which icons from the app are used in the market? Everything looks good
in the web version of Market, but not on a device version.

Thanks

pawpaw17

-- 
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] Anyone notice app usage trends by month?

2011-09-12 Thread pawpaw17
I've noticed a sharp drop off in the usage of my app starting in July.
My app has been on the market for a couple of years, but I've only
been tracking usage since last October. Anyone else notice any
seasonal variation in app usage? I suspect it might relate to the
new filters added to Android Market in June - in many cases the
filters flipped to "For Everyone" instead of "All Apps" by default,
and users had to know to go and change to setting to see all apps.

Any thoughts or experience would be appreciated.

Best,

pawpaw17

-- 
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] Anyone notice app usage down since early July for High Maturity apps?

2011-08-31 Thread pawpaw17
Hi Guys,

I have an app that has been in the Market since June 2009. I had been
seeing a steady build of users and pageviews for many months, but in
July the trend reversed and I'm down almost 20% both for visitors and
pageviews since then. Some of my users told me the app seemed the
"disappear" from the market - I think google twiddled with the default
maturity filter for some versions of the market, and users - without
knowing it - all of a sudden were filtering for "Everyone" rather than
'All Apps". This might have been fixed now, but I'm not sure.

Anyway, my app might be just sucking wind right now, but I wonder if
any of you have noticed a similar trend since early July.

Thanks!

pawpaw17

-- 
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] Crash on SQLiteOpenHelper::getReadableDatabase when I'm trying to copy new db from raw resources

2011-08-27 Thread pawpaw17
Hi Guys,

I ship a pre-created database as a raw resource and copy it into my
app's
database folder at startup. When I ship updates I overwrite the old db
with
my new db, which sometimes includes new stuff.

I can't reproduce this with any of my devices, but some of my app's
users
get a crash when my app calls this.getReadableDatabase() in my
override for
createDataBase:

android.database.sqlite.SQLiteException:
Can't upgrade read-only database from version 62 to 1: /data/data/
com.myapp.myapp/databases/ls.db
at
android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:
236)
at com.myapp.myapp.DataBaseHelper.createDataBase(DataBaseHelper.java:
75)
at com.myapp.myapp.myapp.MyApp$11.run(MyApp.java:675)
at java.lang.Thread.run(Thread.java:1020)

public void createDataBase() throws IOException{
boolean dbExist = checkDataBase();
if(dbExist){
//do nothing - database already exists
}else{

// delete the old database
this.getReadableDatabase();   <<< Exception is thrown HERE

try {
  copyDataBase();

} catch (IOException e) {
throw new Error("Error copying database");
}
}

}

I copy the database as follows:

private void copyDataBase() throws IOException{

//Open your local db as the input stream
InputStream myInput = null;

// Path to the just created empty db
String outFileName = DB_PATH + DB_NAME;

//Open the empty db as the output stream
OutputStream myOutput = new FileOutputStream(outFileName);


myInput = myContext.getResources().openRawResource(R.raw.ls_db);
//transfer bytes from the inputfile to the outputfile
byte[] buffer = new byte[1024];
int length;
while ((length = myInput.read(buffer))>0){
myOutput.write(buffer, 0, length);
}
myInput.close();



//Close the streams
myOutput.flush();
myOutput.close();
myInput.close();

openDataBase();
myDataBase.setVersion(packageVers);

// Copy stored data to new database
...

close();
}



Is the call to:

// delete the old database
this.getReadableDatabase();

problematic? What I really want to do is

chmod 777 myolddb
rm -f myolddb

if this were plain old Unix. What situations can lead to Android
treating this
as a read-only entity that can't be overwritten? This database is
originally created
by my app, and I only overwrite it on app updates.

Thanks!!

pawpaw17

-- 
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: Help! My App "dissappeared" from Android Market after routine Update

2011-07-29 Thread pawpaw17
My manifest settings are here:

This application is only available to devices with these features, as
defined in your application manifest.
Screen layouts: SMALL NORMAL LARGE XLARGE
Screen densities:
Required device features
android.hardware.location.network
android.hardware.location
android.hardware.location.gps
android.hardware.touchscreen
android.hardware.screen.portrait

Is there any reason this would trigger some Market filter that would
exclude my app from "normal" devices? My app has been live for 2 years
and I've never had any trouble. My update is very minor and does not
involve any manifest changes.

This appears to be a bug in the Market, but I'm not certain.

If anyone from Google is listening and can help me out I'd really
appreciate it.

Best,

pawpaw17




On Jul 29, 6:20 pm, pawpaw17  wrote:
> Hi Guys,
>
> I've just done a regular bugfix update for my app, and now it seems to
> have disappeared from Android Market entirely!! This is the first
> update I've done with the new developer console interface where the
> APK and App Info is separated into different tabs.
>
> If I search by the name of my app, no dice, it is gone. Maybe this is
> an intermittent state while my update is being processed? But I've
> never waited more than 20 minutes or so for an update to appear and it
> has been almost 2 hours.
>
> Please if anyone has info on I'd great appreciate it.
>
> Thanks!
>
> pawpaw17

-- 
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] Help! My App "dissappeared" from Android Market after routine Update

2011-07-29 Thread pawpaw17
Hi Guys,

I've just done a regular bugfix update for my app, and now it seems to
have disappeared from Android Market entirely!! This is the first
update I've done with the new developer console interface where the
APK and App Info is separated into different tabs.

If I search by the name of my app, no dice, it is gone. Maybe this is
an intermittent state while my update is being processed? But I've
never waited more than 20 minutes or so for an update to appear and it
has been almost 2 hours.

Please if anyone has info on I'd great appreciate it.

Thanks!

pawpaw17

-- 
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] Changes in Developer Console - longer time for app update to appear in Market?

2011-07-29 Thread pawpaw17
Has anyone else noticed a much longer latency for your app update to
appear in the Market? Usually I see the update in the "Just In"
section within a few minutes of clicking "publish".

With the recent changes that partition the developer console into two
tabs, and the removal of the "publish" button, I think I've saved my
APK update correctly, but I still don't see my app in "Just In" or
even the new version in my product description.

Anyone else noticing this?

Thanks

pawpaw17

-- 
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] Anyone notice active installs plummet WITHOUT releasing update?

2011-05-03 Thread pawpaw17
Hi Guys,

My active installs plummeted in the last week or so for no apparent
reason. I've noticed this a couple of times in past history, but
almost always related to a release.

I think this is not just smoke and mirrors in the stats kept by
Android Market - I notice that I'm getting less traffic on the app as
well by how hard my servers are getting hit.

Does this seem to be a trend? Any ideas?

Thanks to all

pawpaw17

-- 
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] good open source/precanned reviews/rating solution for server side?

2011-04-11 Thread pawpaw17
I want to implement product reviews/ratings in my app. Anyone using an
open source or precanned solution for this on the server side? Was
hoping to avoid writing a web app for this from scratch. Any opinions
or suggestions greatly appreciated.

Thanks!

pawpaw17

-- 
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] Is anyone using OpenX for android ads? - If not, which ad server?

2011-04-01 Thread pawpaw17
Hi Guys,

I want to serve house ads in my app, but also integrate 3rd party ad
sources like mobfox.

Has anyone used OpenX to serve ads? There are a couple of widgets out
there, but I'm not sure
how well OpenX works with the "app" paradigm. I want to host the
server myself, and I've
considered ad whirl, but I'm hesitant because it is so tied to admob.
Of course the goal
is to add a widget to the appropriate places in the app and then never
change the app-side
code - instead only changing what's on the server side.

Any posts with experience would be greatly appreciated!!

pawpaw17

-- 
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 the "drop down" ads like in the weather channel app work?

2011-03-30 Thread pawpaw17
Does anyone serve ads like in the weather channel app that, when
clicked, expand from about 60 px height
to 240 px? MMA lists this as an emerging mobile standard. Curious if
anyone has integrated a 3rd party
ad source that services these types of ads if the know-how for
expanding to a larger in-app view has
to hardwired into the app? Is it possible to do this without writing
specific app-side code to present the
larger version of the ad?

Very best everyone

pawpaw17

-- 
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] After upgrading to Android 11 I get java.lang.NoSuchMethodError: android.widget.AbsListView.setAdapter

2011-03-25 Thread pawpaw17
Some code that worked perfectly fine from Android 1.5 on is crashing
for me know after I upgraded by API level for builds to 11. It has to
do with the setAdapater method of AbsListView. The documentation says
now that it was introduced in Android 11. I have this code:

lList.setAdapter(aa);
...
}
private AbsListView lList;

This has *always* worked since Android 1.5, but now with Android
1.5/2.2 etc, I get

java.lang.NoSuchMethodError: android.widget.AbsListView.setAdapter

documentation:

void android.widget.AbsListView.setAdapter(ListAdapter adapter)

public void setAdapter (ListAdapter adapter)
Since: API Level 11
Sets the adapter that provides the data and the views to represent the
data in this widget.

Parameters
adapter  The adapter to use to create this view's content.

-

Have others run into this? Is there a work around?

Thanks,

pawpaw17

-- 
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: Bud setAdapter of AbsListView

2011-03-25 Thread pawpaw17
Sergey,

I'm having the same problem, and it just started after I upgraded to
API 11.

Notice this:

--
void android.widget.AbsListView.setAdapter(ListAdapter adapter)

public void setAdapter (ListAdapter adapter)
Since: API Level 11
Sets the adapter that provides the data and the views to represent the
data in this widget.

Parameters
adapter  The adapter to use to create this view's content.
-

Note the API Level 11. Are you only seeing the crash on older phones?
Why is this method limited to API 11 when it used
to work fine with the older APIs ???

Can anyone shed light? I guess our only solution is to work around.
Any ideas? This causes a regression from past
behavior for me, so I think this is and Android bug.



On Mar 22, 11:56 am, TreKing  wrote:
> Yeah, that doesn't help much. Guess you'd have to look at the source to see
> what it's doing at that point.
>
> ---­--
> 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] Mobile Ad Serving Technologies for direct ad sales - which is best?

2011-02-15 Thread pawpaw17
Guys,

I'm trying to pick an ad serving technology that will allow me to
service
ads that I sell directly in my Android app. Hoping is would work
for Android, iPhone, W7P, etc.

Any ideas which technology is good for this?

Thanks so much for any opinions.

Best,

pawpaw17

-- 
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] "Share app" button? Any direct way to send link to launch market to app location?

2011-01-30 Thread pawpaw17
Guys,

Is there any direct way to share a link with friends that if opened on
an Android device, will launch the market
app to your apps location? This would be for a button users could
press to share the app with a friend?

Any pointers would be appreciated.

Thanks!

pawpaw17

-- 
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] Is it possible to integrate authorize.net gateway with Android app?

2011-01-22 Thread pawpaw17
Guys,

I'm working on an Android based shopping cart for an app. This is to
sell items like groupon/ebay/amazon does - not to sell Android
products.

Does anyone know a gateway with an API that can be used from an
Android
app? Do any of you do authorize.net integrations?

There doesn't seem to be much info out there on this subject.

Any ideas very much appreciated.

Best!!

pawpaw17

-- 
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] Is it possible to integrate authorize.net gateway with Android app?

2011-01-22 Thread pawpaw17
Guys,

I'm working on an Android based shopping cart for an app. This is to
sell items like groupon/ebay/amazon does - not to sell Android
products.

Does anyone know a gateway with an API that can be used from an
Android
app? Do any of you do authorize.net integrations?

There doesn't seem to be much info out there on this subject.

Any ideas very much appreciated.

Best!!

pawpaw17

-- 
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] Market Distribution rules prohibiting in-app sales of "Product" - does this apply to books and CDs and glue, or just apps and Android-SDK derived software?

2011-01-18 Thread pawpaw17
Guys,

The Android Market prohibits an app from distributing other apps, or
in-app charges that get around the Market's
right to take a percentage of the sale:

http://www.android.com/us/developer-distribution-agreement.html

However, does this also preclude traditional ecommerce? Can my app let
people
book hair salon appointments and charge their credit card in-app? Can
I sell
books or CDs and charge for them in-app?

I had presumed yes and am digging around for credit card processing
APIs/SDKs
for shopping cart.

Anyone know (answer to either or both questions)??

Many thanks,

pawpaw17

-- 
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 shopping cart API/SDKs out there?

2011-01-18 Thread pawpaw17
Mike,

According to the developer distribution agreement:
http://www.android.com/us/developer-distribution-agreement.html,
I only see discussion on the rules for distributing "Product" outside
the market. The distribution agreement
defines Product to be:

Products: Software, content and digital materials created for Devices
in accordance with the Android SDK and distributed via the Market.

What if you are selling apples or cardboard boxes or consulting time?
Can we create apps that have a shopping cart
for those kinds of sales?

-- 
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] Android shopping cart API/SDKs out there?

2011-01-17 Thread pawpaw17
Guys,

Interested in what people are using for shopping cart/credit card
processing
support for in-app product purchases. I'm having trouble scraping up
good
info on this - any advice would be greatly appreciated.

Best,

pawpaw17

-- 
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] Help - Gecoding is failing on a regular basis - does anyone else notice this?

2010-11-29 Thread pawpaw17
Guys,

In my app, I call the geocoder to get lat,long pairs for zip codes.
This has worked
great for over a year.

However, recently I notice that sometimes as many as 8 out of 10 calls
to get a location
fail - and by fail I mean they return empty lists. However, sometimes
it works.

This is not the same issue as the emulator failure to geocode using
API 8. this is
on the actual device.

Has anyone who relies on the geocoding API noticed this?

Thanks,

pawpaw17

-- 
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] Share via SMS/Email/Facebook/Twitter - sample code?

2010-10-22 Thread pawpaw17
Hi Guys,

Can anyone recommend an example or post that shows how to implement a
share via SMS/Email/Facebook/Twitter kind of thing for your app?

Muchas gracias in advance!!

pawpaw17

-- 
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] Updated my app to use Google Apis level 8, customers complain font now way too small

2010-09-24 Thread pawpaw17
Guys,

I was cooking along with the basic Google Maps 1.5 SDK and have now
updated to Google APIs 8 for Froyo support.

I'm getting complaints now that the "front is way too small".

Will this show in the emulator? Any ideas what would account for this?

Thanks for any advice.

Best

pawpaw17

-- 
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: Where has maps.jar gone to? Can't find in basic SDK install

2010-09-22 Thread pawpaw17
Lance,

Thanks for the reply. What build target should I be using if I want to
continue support Android 1.5 and forward with google maps?

The "project build target" dialog has the following target names:

Android 1.5 Platform 1.5
Andorid 1.6 Platform 1.6
Android 2.1 Platform 2.1
Android 2.2 Platform 2.2
Google APIs Platform 2.2

The thing that worries me about the last one is the Platform 2.2. We
need to support all of the existing versions of Android.

Also, if I do a search on my hard drive, maps.jar doesn't even exist
on the machine after installing the full set of Android APIs.
As and experiment, I switched to the Google Apis build target, and I
still get errors for the maps stuff.

Still presuming I'm doing something wrong...

Thanks,

pawpaw17

-- 
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] Where has maps.jar gone to? Can't find in basic SDK install

2010-09-21 Thread pawpaw17
I'm configuring a new machine for Android development - following the
basic steps. When I brought my app over I get compile
failures the google maps stuff. On my older machine, the maps.jar file
is in the "add-ons" sudirectory fo the sdk, but I can't
find it in the most recent versions of the sdks.

Anyone know what I'm doing wrong or where to grab it from?

Best

pawpaw17

-- 
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] Can't find maps.jar in sdk - add-on subdirectory missing?

2010-09-21 Thread pawpaw17
I'm configuring a new machine for Android and grabbed the SDK kit for
windows from the developer tools download page. On my old machine
the maps.jar JRE is in the add-ons subdirectory of the SDK. I can't
find it anywhere on the new machine. Everything in my project builds
except the maps part. Any idea what I've done wrong and how to remedy?

Thanks!

pawpaw17

-- 
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] Moved Android project to Eclipse 1.5 and new machine and project is missing Android jar

2010-09-21 Thread pawpaw17
Hi Guys,

I configured a new machine and am trying to move my Android project
over. When I look at the project properties under Java Build Path-
>Libraries, on the old machine I see a reference to "Android 1.5" but
nothing on the new machine and so nothing builds. I've installed
Android correctly because sample projects work (I see the Android 1.5
library on a newly minted sample project).

What option do I use to add the correct library? Add JARS..  Add
External JARS.. Add Library?

Thanks!

pawpaw17

-- 
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] Anyone updating their app recently notice unexpected drop in install percentage?

2010-08-30 Thread pawpaw17
Guys,

This happened once before in December 2009. When I released an update
on Friday, my install percentage dropped about 6%.
My install percentage usually goes up when I release an update. Anyone
notice something similar? I'm wondering if it is a problem
with the market stats?

Thanks,

pawpaw17

-- 
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:fastScrollEnabled="true": Is there more to getting the alphabetical index?

2010-01-28 Thread pawpaw17

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] android:fastScrollEnabled="true": Is there more to getting the alphabetical index?

2010-01-27 Thread pawpaw17
Hi Guys,

I added android:fastScrollEnabled="true" to the xml description of my
listview class.
I was (probably mistakenly) expecting this to magically transform the
scrolling of my
really huge listview so that the thumb button and the indexes display
on the right side.

Is there more to hooking up the listview so that the framework knows
what its alphabetizing?
I have custom defined cells.

If anyone knows, or knows a good example, please let me know.

Thanks!!

pawpaw17

-- 
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: Anyone noticing more uninstalls of their app than usual over last weekend/today?

2009-12-21 Thread pawpaw17
I have only "Min SDK" and it is set to 3. If you don't use "Max SDK" I
presume it is not set?

-- 
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: Are the market stats for developers broken?

2009-12-21 Thread pawpaw17
I put out a bug update Saturday night and, like you guys, the
floodgates opened on "uninstalls". What makes no sense is I had a
large number of uninstalls Monday morning which is always light for
activity.

I want someone from Google to respond to this. I think there is
something wrong with the market.

My app hasn't slipped in the rankings.

Also, my app is free, some of the apps mentioned above are paid.

If anyone finds something out, please post!!

pawpaw17

-- 
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] Anyone noticing more uninstalls of their app than usual over last weekend/today?

2009-12-21 Thread pawpaw17
I released an upgrade to my app on Saturday night and since have
noticed an unusual number of uninstalls. My app has been out for 8
months, and this is very unusual. Has anyone else noticed this? I'm
wondering if there is anything related to the market, or a new OS
version hitting, or contracts with one of the phones coming up?

Any thoughts would be very appreciated.

Thanks!

pawpaw17

-- 
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] Users have trouble upgrading my app in Android Market - anyone else?

2009-10-12 Thread pawpaw17

I've had more than one user say they have trouble when they "upgrade"
new versions of my app in Android Market. One woman says it takes her
several "days" to successfully do it (I presume that means multiple
attempts spread out over time).

Can this be on my end? I upgrade my database on each rev - basically I
retreive the user data and stick it in the new database that ships
with my app. But I think the complaint is about something different.

Has anyone else received comments about anything similar? I am
concerned people uninstall my app just because of this issue,.

Thanks!

pawpaw17
--~--~-~--~~~---~--~~
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] ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-10 Thread pawpaw17

Anyone getting a java illegalStateException when running your 1.5
built app on 1.6? Everything has worked fine with my code for months.
Get message "the content of the adapter has chagned but Listview did
not receive a notification. Make sure the content of your adapter is
not modified from a background thread, but only from the UI thread."

I'm sure my adapter mods are not in the UI thread. Has anyone else
seen this? What else could cause this? 1.6 is either finding a problem
that 1.5 didn't care about or there's a bug in 1.6.

Thanks,

pawpaw17
--~--~-~--~~~---~--~~
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] java.lang.IllegalStateException: Content of adapter changed but ListView didn't

2009-10-10 Thread pawpaw17

I'm getting an unhandled exception in my class that fills an
arrayadapter from items in a database:

10-11 04:05:26.883: ERROR/AndroidRuntime(886):
java.lang.IllegalStateException:
The content of the adapter has changed but ListView did not
receive a notification. Make sure the content of your
adapter is not modified from a background thread, but only from the UI
thread.

At the end of my OnCreate method I fire off a background thread:

Thread thread = new Thread(null, doSearchDatabase,
"Background");
thread.start();



I fill the array list in the run method of the thread, and use a
handler to post a message
at the end of the processing:

hh.post(postdoSearchDatabase);

In the run method of the handler, which I presume is a UIThread, I do:

Collections.sort(myArrayList);
aa.notifyDataSetChanged();

Here I do let the array adapter know things have changed.

Does this exception always mean I'm doing something wrong with the
array adapter in a background
thread? I don't seem to be manipulating it at all in the background
thread; only the array list it is
connected to.

Any ideas? the exception isn't thrown every time, and if I step slowly
through in the debugger it is not
thrown. Seems FAR worse running in Android 1.6.

thanks,

pawpaw17
--~--~-~--~~~---~--~~
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] Anyone using Android with Amazon Simple DB?

2009-09-10 Thread pawpaw17

Does anyone know if you can use Amazon Simple DB with Android?
Anyone have an example? If so one thousand thanks.

pawpaw17
--~--~-~--~~~---~--~~
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] Example Populating List from Backend Database?

2009-09-10 Thread pawpaw17

I've been poking around and haven't come across any good examples/
tutorials
of how to populate a list from an external data source such as a
hosted,
mySQL database. Does anyone know of any tutorials or chunks of source
code?
I think the standard Android architecture for this would involve
communicating
via http and receiving data back in XML format. Then on the backend
there
would be some sort of mySQL db with stored procedures and server
extensions
that can talk to the Android app. From the GUI a data refresh is
triggered
as you scroll down the list (and run out of populated items).

Any pointers would be truly appreciated. 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] Will there be an Android 1.6 SDK release?

2009-09-06 Thread pawpaw17

Does anyone know?
--~--~-~--~~~---~--~~
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 force animation to run on ListView?

2009-08-18 Thread pawpaw17

I have a ListView that runs an animation as each child view is
populated. Goes something like
this:

(in Activity onCreate)

lList = (ListView)findViewById(R.id.LsSearchList);
la = AnimationUtils.loadLayoutAnimation(this,
R.layout.populatelistanimation);
lList.setLayoutAnimation(la);

The first time the list is loaded in the animation is played for each
slot in the list.

Here's my question. I have a footer in the list, something like this:

Item 1
Item 2
Item 3
Next 3 Items

When you click "Next 3 items" it loads in the next three.

I want to play the animation again when the next three items are
loaded in, but since the layout
as already been loaded it won't automatically do this (I call
notifyDataSetChanged(); on the array
adapter tied to the ListView to get it to reload items).

Does anyone know the proper way to do this? I know the
animationcontroller class has a "start" method,
but I can't figure out where I would call it.

Best!!

pawpaw17
--~--~-~--~~~---~--~~
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] Bug in Android Browser with Facebook fan pages? Can't bring any fan page up!

2009-08-01 Thread pawpaw17

Does anyone have a facebook fan page for their app? I can't bring any
fan page up at
all in the facebook using the Android browser. Does anyone know what
I'm doing wrong?
I started by trying to add a button to my app that brought it up, but
I get the problem
even typing in the URL to the browser. For example, try to bring up
the fan page for
the band "BROWNTOWN"

http://www.facebook.com/pages/BROWNTOWN/79730185468

Works fine in firefox from my laptop, but in the Android browser:

I get this error:

the page at 'http://x.facebook.com' says:
  There was an error loading this page.

Any ideas?

Thanks

pawpaw17
--~--~-~--~~~---~--~~
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 maintain orange background of selected listview item in getView of ArrayAdapter-derivation when using setBackgroundcolor?

2009-06-28 Thread pawpaw17

Hi everyone,

If you derive a class from ArrayAdapter for the purpose of customizing
the views of listview items, and you vary the background color of
those
items by doing something like this in getView():

// v is the View you are modifying

if (somecondition){
  v.setBackgroundColor(custom color);
} else {
 v.setBackgroundColor(default color);
}

How do you maintain the "orange" background on select?
It completely goes away because I'm forcing the background
color to be the custom color or default theme (black).

I'm being too heavy handed but haven't figured out how to account
for llistitem select.

Thanks!

pawpaw17
--~--~-~--~~~---~--~~
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] calling setBackgroundColor in getView of custom ArrayAdapter causes orange background of listitem to disappear

2009-06-27 Thread pawpaw17

Hi,

I have a listview with a custom ArrayAdapter. I've implemented getView
so I can do different things
in different list items based on the contents. For example I call
setBackgroundColor based on
the contents of the list.

Problem now is that when the listItem is selected, it doesn't get the
orange background. How
do I tell when NOT to call setBackGround color?

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] Any way to get current time or time zone from Address or long/lat pair?

2009-06-20 Thread pawpaw17

Hi Guys,

Does anyone know any tricks for getting the current local time or time
zone
from an "Address" object in the  location package?

Thanks and best,

pawpaw17
--~--~-~--~~~---~--~~
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 I test an exported .apk file before shipping?

2009-06-17 Thread pawpaw17

Guys,

I'm developing in eclipse. I use the Android tools export facility to
export
a signed .apk file for distribution.

I want to run this either on my G1 or the emulator without eclipse
being
involved. I've already messed up a couple of times and accidentally
tested my
source code rather than the .apk file and am trying to avoid this.

On a related note, the export signed .apk facility seems to grab
"stale" stuff sometimes. How do I do a "clean release build" to make
sure
I get the latest code in my release?

Thanks so much for the help everyone!

best,

pawpaw17
--~--~-~--~~~---~--~~
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 often are download stats updated for apps in Android Market

2009-06-14 Thread pawpaw17

Guys,

Does anyone know how often google updates your download count
for your app in your developer section of the Android Market site? It
doesn't
appear to be continuous. Maybe just a few times (one time) per day?
I'm refering to the section that shows total downloads and "active
downloads"

Thanks and best to all!

pawpaw17
--~--~-~--~~~---~--~~
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] Strategies for alerting users about new versions of your app in the appstore?

2009-06-13 Thread pawpaw17

Guys,

Is there a methodology for pushing out new versions of appstore apps
to customers in Android/or via the appstore? Or is this something each
app needs to cook up for itself?

Thanks!

pawpaw17
--~--~-~--~~~---~--~~
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: ListView items in Activity Persist on G1 keyboard slideout, but not Dialog list items

2009-06-10 Thread pawpaw17

Thanks for the pointers. I fixed my issue as well using bundles to
save state.

On Jun 9, 12:55 pm, Streets Of Boston  wrote:
> Ugh.. this is still the case :(
>
> In my app, i program around it. I have some code that determines if
> onPrepareDialog should have been called and, if not, that calls
> onPrepareDialog explicitly.
>
> On Jun 9, 1:04 pm, pawpaw17  wrote:
>
>
>
> > Guys,
>
> > That's what I'm seeing. onPrepareDialog is not called, only
> > onCreateDialog.
> > This is v 1.5.
>
> > Thanks,- 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: ListView items in Activity Persist on G1 keyboard slideout, but not Dialog list items

2009-06-09 Thread pawpaw17

Guys,

That's what I'm seeing. onPrepareDialog is not called, only
onCreateDialog.
This is v 1.5.

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] "10th & Maine" as geo URI hoses "Maps"

2009-06-08 Thread pawpaw17

Has anyone noticed that if you broadcast an intent with Uri

(please pretend my geo URI syntax is right, the import part is "10th &
Maine"):

geo:"10th & Maine, sometown, somestate, somzip"

and when "Maps" tries to grab it and display the address on a map
that it pops up an error like:

Can't understand address "10th"

Seems like 10th & Maine is a pretty common syntax for a location.
Has anyone faced this?

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] If I call dismiss() from my Dialog's onCreate the dialog doesn't disappear

2009-06-08 Thread pawpaw17

I have a dialog that I want to kill off if the android screen is
rotated.
In this case the onCreate of my dialog is called with a non-null
bundle arg.

I want to "send it away" at this point, and thought I'd just call
"dismiss()" from
onCreate. No go, the dialog still pops up.

Does anyone know how to properly kill the thing without having it
flash onto
the screen briefly and then vanish?

In my main Activity I'm managing the dialog by overriding
onCreateDialog and onPrepareDialog.

Thanks,

pawpaw17
--~--~-~--~~~---~--~~
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] ListView items in Activity Persist on G1 keyboard slideout, but not Dialog list items

2009-06-08 Thread pawpaw17

Guys,

When your intent kicks knocked on the head by the OS and then restored/
recreated
(for example when you slide out the keyboard on the G1) if you have a
ListView
populated with items in an activity they appear after the recreate.

However, if you have a dialog box full of list items and do the same
steps, the
ListView comes back up empty when the window is redrawn after the
slide.

Is this an Android bug? My list is a pain in the neck to pack into a
bundle, it consists
of Address objects, and there might be ten of them. Am I doing
something
"un-android?"

I'm thinking of just dimissing the dialog when this happens. But
calling
dismiss in onRestore (for the dialog) doesn't seem to work.

Any ideas? Thanks so much!

best,

pawpaw17
--~--~-~--~~~---~--~~
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] Sample code for obtaining location-on-demand that accounts for life cycle?

2009-06-07 Thread pawpaw17

Hi,

Does anyone know a good example I can look at that supports:

1. Obtaining the current location "on demand" from an available
location provider
(NETWORK, GPS, both/either)

2. robustness. I'm having trouble figuring out how to manage my
location
listener's in the Android life cycle. When I switch from my app to the
settings section to enable/disable location providers, for example,
and then
switch back to my app, sometimes the listener seems to persist,
sometimes no.

Is there any accepted way to persist location listeners? For example,
how does the
onProviderDisabled(String provider), method ever fire if the listener
is killed off when
the user switches to the settings app? In my case sometimes it seems
to persist, other
times it doesn't.

Sorry, this is probably just my neophyte debugging and evolving
understanding
of the nature of the life cyle.

Enlightenment appreciated!

Best,

pawpaw17
--~--~-~--~~~---~--~~
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] Persisting locationListener when app gets killed? How does maps to this?

2009-06-07 Thread pawpaw17

Hi,

I'm creating a location listener in the onCreate method of my main
activity.
If I flip out the keyboard of the G1, onCreate is called again since
the activity
gets recreated. Each time my location listener is started up again.
Same deal if
I go to the system app to change location listeners. I'm trying to
listen to all
location changes so when a user presses the "current location" button
I'm ready
to go.

The location api's seem flaky - at least the way I'm (mis)using them.
"maps" seems
able to deal with location provider changes better than my app. How
can my app continue
to repond to location changes, for example, when the user switches
over to turn the
GPS on. My oncreate gets called again and the location listener is
recreated.

the getLastKnownLocation never works the first time, I have to switch
over to maps
to trigger a location update. Thus I'm using the location listener
strategy to monitor
all location providers.

Any deep thoughts or examples I can look at to fine tune?

Thanks!

Best,

pawpaw17
--~--~-~--~~~---~--~~
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: Why does ProgressDialog launched from OnItemClick wait until a subsequent thread's "run" method returns to show itself

2009-06-03 Thread pawpaw17

Awesome, that's it!! Thanks a million.

On Jun 3, 6:53 pm, Robert Green  wrote:
> Because you're not truly creating a thread unless you call Thread.start
> ().  Thread.run() will just do the runnable part in your current
> thread, which is, with certainty, not what you intended to do :)
>
> On Jun 3, 6:50 pm, pawpaw17  wrote:
>
>
>
> > I have code in my activity's onCreate that sets an onItemClick
> > listener.
> > when it fires I try to show a ProgressDialog that will be up until a
> > subsequent
> > thread "Thread" does it's processing.  Strangely to me, the progress
> > dialog
> > never shows until *after* the thread.run() processing is complete.
> > Almost like it's
> > blocking. Am I doing something wrong? this is true even if the run
> > method of doCurrentLocation
> > doesn't do anything.
>
> > Thanks for any ideas!! pawpaw17
>
> > @Override
> > public void onCreate(Bundle savedInstanceState) {
> >   super.onCreate(savedInstanceState);
> > ...
> >   optionsList.setOnItemClickListener(new OnItemClickListener(){
>
> >         public void onItemClick(AdapterView arg0, View arg1, int arg2,
> >                                         long arg3) {
>
> >         pd = ProgressDialog.show(myContext, getString
> > (R.string.app_name), getString(R.string.thousands), true,
> >                 false);
> >           Thread thread = new Thread(null, doGetCurrentLocation,
> > "Background");
> >           thread.run();
> >       };
> >   });
> >   ...
>
> > };- 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] Why does ProgressDialog launched from OnItemClick wait until a subsequent thread's "run" method returns to show itself

2009-06-03 Thread pawpaw17

I have code in my activity's onCreate that sets an onItemClick
listener.
when it fires I try to show a ProgressDialog that will be up until a
subsequent
thread "Thread" does it's processing.  Strangely to me, the progress
dialog
never shows until *after* the thread.run() processing is complete.
Almost like it's
blocking. Am I doing something wrong? this is true even if the run
method of doCurrentLocation
doesn't do anything.

Thanks for any ideas!! pawpaw17

@Override
public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
...
  optionsList.setOnItemClickListener(new OnItemClickListener(){

public void onItemClick(AdapterView arg0, View arg1, int arg2,
long arg3) {

pd = ProgressDialog.show(myContext, getString
(R.string.app_name), getString(R.string.thousands), true,
false);
  Thread thread = new Thread(null, doGetCurrentLocation,
"Background");
  thread.run();
  };
  });
  ...
};
--~--~-~--~~~---~--~~
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: Why can "Maps" find a location on demand but not my app

2009-06-02 Thread pawpaw17

Mark,

Thanks for the reply. I need to serach harder for blog posts with
"working" code, I've
been reading posts that complain about problems :)

Here's what I do:

// Favor the network location source

String bestProvider = null;
if (locationManager.isProviderEnabled("network")){
   bestProvider = "network";
}
else if (locationManager.isProviderEnabled("gps")){
   bestProvider = "gps";
}
else{
  bestProvider = null;
  locationDisabled = true;
  lastlocation = null;
return;
}

try{

  myLocationListener = new LocationListener(){
  public void onLocationChanged(Location location){
 if (location != null){
lastlocation = location;
 }
  }
  public void onProviderDisabled(String provider){
locationDisabled = true;
lastlocation = null;
   if (locationManager != null && myLocationListener != null){
  locationManager.removeUpdates(myLocationListener);
   }
   myLocationListener = null;
  }

  public void onStatusChanged(String provider, int status, Bundle
extras)
  {
 // 0 means the provider is out of service
if (0 == status){
  locationDisabled = true;
  lastlocation = null;
  if (locationManager != null && myLocationListener != null){
 locationManager.removeUpdates(myLocationListener);
  }
  myLocationListener = null;
}
   else{
 locationDisabled = false;
   }
   }
   public void onProviderEnabled(String arg0) {
   locationDisabled = false;
   }
   };
locationDisabled = false;
locationManager.requestLocationUpdates(bestProvider, 5000, 0,
myLocationListener);
}
catch(Exception e)
{
};

}

I call this code again whever the location provider "goes away."

Thanks for the suggestions about debugging. Will give it a go.











On Jun 2, 8:42 pm, Mark Murphy  wrote:
> pawpaw17 wrote:
> > In my activities onCreate method I start listening for location
> > updates as follows:
>
> > locationManager.requestLocationUpdates(bestProvider, 5000, 0,
> > myLocationListener);
>
> > Previously I used 60,000 ms instead of 5,000 ms.
>
> > The problem is that I have trouble getting the first update.
>
> > public void onLocationChanged(Location location){
> > if (location != null){
> > lastlocation = location;
> > }
> > }
>
> > onLocationChanged doesn't get called.
>
> > Now, if I switch to Maps and find the current location there, then
> > switch back to
> > my app, I finally get the onLocatinoChanged method to fire.
>
> > This whole location changed stuff seems rinky in Android. Is there a
> > way to
> > more directly insist that the Location hardware do it's thing?
>
> You assume the existence of location hardware. Not all devices will have
> location hardware (a.k.a., GPS).
>
> > Any help would be very much appreciated.
>
> 1. What location provider are you attempting to use?
>
> 2. Does LogCat tell you anything? You can examine this via adb logcat,
> DDMS, or the DDMS perspective in Eclipse.
>
> 3. Have you tried any location code that is known to work (e.g., from a
> blog post)?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html- 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] Why can "Maps" find a location on demand but not my app

2009-06-02 Thread pawpaw17

In my activities onCreate method I start listening for location
updates as follows:

locationManager.requestLocationUpdates(bestProvider, 5000, 0,
myLocationListener);

Previously I used 60,000 ms instead of 5,000 ms.

The problem is that I have trouble getting the first update.

public void onLocationChanged(Location location){
if (location != null){
lastlocation = location;
}
}

onLocationChanged doesn't get called.

Now, if I switch to Maps and find the current location there, then
switch back to
my app, I finally get the onLocatinoChanged method to fire.

This whole location changed stuff seems rinky in Android. Is there a
way to
more directly insist that the Location hardware do it's thing?

Any help would be very much appreciated.

Best,

pawpaw17

--~--~-~--~~~---~--~~
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: Maps and StreetView missing in Android SDK 1.5?

2009-05-30 Thread pawpaw17

The first time I get the failure, this is in the logCat:

05-30 23:12:50.607: DEBUG/InetAddress(570):
www.google.com: 209.85.225.104 (family 2, proto 6)
05-30 23:12:50.637: DEBUG/InetAddress(570):
www.google.com: 209.85.225.147 (family 2, proto 6)
05-30 23:12:50.637: DEBUG/InetAddress(570):
www.google.com: 209.85.225.99 (family 2, proto 6)
05-30 23:12:50.637: DEBUG/InetAddress(570):
www.google.com: 209.85.225.103 (family 2, proto 6)

The second time when it succeeds I have this:

05-30 23:14:46.017: DEBUG/LocationMasfClient(570):
getAddressFromProtoBuf(): Ignore feature 0,Douglas

On May 30, 6:01 pm, pawpaw17  wrote:
> Yes, that's it, thanks! Works like a charm. The only other
> nutty thing I keep noticing with Android 1.5, that I noticed
> in 1.1, is the "first" call to geocoding always fails for
> me after I create the geocoder object. In the code below
> I always hit the exception. The second call always works though.
>
> Has anyone else noticed this?
>
> boolean networkfailure = false;
> try{
> locations = gc.getFromLocationName(Zip,1);}
>
> catch (IOException e)
> {
> networkfailure = true;
>
> }
>
> if (networkfailure){
> try{
> locations = gc.getFromLocationName(Zip,1);}
>
> catch (IOException e){}
>
> On May 30, 5:34 pm, patrick  wrote:
>
>
>
> > oops, was too slow :)
>
> > On 31 mai, 00:33, patrick  wrote:
>
> > > in fact, when u create the avd, u have currently 3 target available:
> > > 1.1
> > > 1.5
> > > 1.5 + google maps apis
>
> > > so i guess u choosed the 1.5 target.
>
> > > On 30 mai, 22:50, pawpaw17  wrote:
>
> > > > Everyone,
>
> > > > Thanks in advance for any thoughts on this. In v1.5 of the SDK, the
> > > > Maps/Streetview app
> > > > is not installed in the emulator. I'm relying on launching an implicit
> > > > intent which maps
> > > > my addresses for me. Is there a way to test this in the emulator, i.e,
> > > > do I need to install something
> > > > extra? I'm presuming this is on the actual G1 phone with v1.5. Does
> > > > anyone know?
>
> > > > I'm also getting 100% failures in calls to getFromLocationName(). Is
> > > > this related?
>
> > > > Thanks,
>
> > > > Best,
>
> > > > pawpaw17- Hide quoted text -
>
> > - 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: Maps and StreetView missing in Android SDK 1.5?

2009-05-30 Thread pawpaw17

Yes, that's it, thanks! Works like a charm. The only other
nutty thing I keep noticing with Android 1.5, that I noticed
in 1.1, is the "first" call to geocoding always fails for
me after I create the geocoder object. In the code below
I always hit the exception. The second call always works though.

Has anyone else noticed this?


boolean networkfailure = false;
try{
locations = gc.getFromLocationName(Zip,1);
}
catch (IOException e)
{
networkfailure = true;
}

if (networkfailure){
try{
locations = gc.getFromLocationName(Zip,1);
}
catch (IOException e){}



On May 30, 5:34 pm, patrick  wrote:
> oops, was too slow :)
>
> On 31 mai, 00:33, patrick  wrote:
>
>
>
> > in fact, when u create the avd, u have currently 3 target available:
> > 1.1
> > 1.5
> > 1.5 + google maps apis
>
> > so i guess u choosed the 1.5 target.
>
> > On 30 mai, 22:50, pawpaw17  wrote:
>
> > > Everyone,
>
> > > Thanks in advance for any thoughts on this. In v1.5 of the SDK, the
> > > Maps/Streetview app
> > > is not installed in the emulator. I'm relying on launching an implicit
> > > intent which maps
> > > my addresses for me. Is there a way to test this in the emulator, i.e,
> > > do I need to install something
> > > extra? I'm presuming this is on the actual G1 phone with v1.5. Does
> > > anyone know?
>
> > > I'm also getting 100% failures in calls to getFromLocationName(). Is
> > > this related?
>
> > > Thanks,
>
> > > Best,
>
> > > pawpaw17- 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] Maps and StreetView missing in Android SDK 1.5?

2009-05-30 Thread pawpaw17

Everyone,

Thanks in advance for any thoughts on this. In v1.5 of the SDK, the
Maps/Streetview app
is not installed in the emulator. I'm relying on launching an implicit
intent which maps
my addresses for me. Is there a way to test this in the emulator, i.e,
do I need to install something
extra? I'm presuming this is on the actual G1 phone with v1.5. Does
anyone know?

I'm also getting 100% failures in calls to getFromLocationName(). Is
this related?

Thanks,

Best,

pawpaw17
--~--~-~--~~~---~--~~
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] getFromLocation broken with Android 1.5 SDK?

2009-05-30 Thread pawpaw17

I just upgraded to v1.5 (running in Eclipse on Windows) today and all
calls to getFromLocation()
return immediately without an exception. However the locations object
that is returned contains no
entries. Is anyone else seeing this? I see some earlier posts, but
surely if they are shipping cupcake
this week this must be rectified by now.

Is the message about the maps external library related? See:

http://developer.android.com/sdk/RELEASENOTES.html

I'm only geocoding, I don't have any mapviews. I do, however, invoke
an intent for a google map.
I don't see the maps app installed in the 1.5 emulator. Do I have to
get something extra for that?

Thanks for any help.

Best,

pawpaw17


--~--~-~--~~~---~--~~
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: Geocoder not returning results in 1.5 preview

2009-05-30 Thread pawpaw17

Has anyone heard about the fix for this yet? I updated to 1.5 today
and have the same problem.

On May 21, 8:18 am, Android Users  wrote:
> Any help on this as this is stopping our work. Searched in all android
> forums, but no luck.. :(
--~--~-~--~~~---~--~~
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] getFromLocationName always throws IOException first time, but is successful second time with same input

2009-05-28 Thread pawpaw17

Developers,

My calls to getFromLocationName() always fail the "first" time I start
my app.
I catch the IOException which has reason:

Unable to parse response from server

Then I make a second call and it succeeds. Once things are "awake" all
future
calls to getFromLocationName() succeed, it's just that first one, and
there is a ton
of latency.

I haven't run this on a device yet, just in the emulator. This seems
like a network problem,
but it is so reproducible I'm thinking I'm not initializing something
properly. Any ideas?
I'm using Android SDK 1.1.

Best to all,

pawpaw17
--~--~-~--~~~---~--~~
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] Example code of listview/arrayadapter with rows containing multiple text views?

2009-05-27 Thread pawpaw17

I want to create a listview with rows that have an image and two
textviews. This must be a very
common activity but I can't find a class/or source code that does
this. Any help would be much
appreciated.

thanks!

pawpaw17
--~--~-~--~~~---~--~~
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] getLastKnownLocation() always returns null. What am I doing wrong?

2009-05-21 Thread pawpaw17

I'm having no luck getting getLastKnownLocation to
return a non-null value in the Android emulator running
in Eclipse. The following call always returns null:

locationManager.getLastKnownLocation(bestProvider);

(bestprovider is "gps")

In the intent's onCreate method I spawn a thread that calls
requestFirstUpdate().
The onLocationChanged method fires so I presume the location was
updated (I use the
location section of the DDMS to push out a location first).

private void requestFirstUpdate(){

LocationListener myLocationListener = new LocationListener(){
public void onLocationChanged(Location location){
locationManager.removeUpdates(this);
}

public void onProviderDisabled(String provider){
locationManager.removeUpdates(this);
provisionProvider();
}

public void onStatusChanged(String provider, int status, Bundle
extras)
{
locationManager.removeUpdates(this);
provisionProvider();
}
public void onProviderEnabled(String arg0) {
locationManager.removeUpdates(this);
}
   };
   locationManager.requestLocationUpdates(bestProvider, 0, 0,
myLocationListener);

}

In my manifest I have these lines:

 
 
 

Any ideas? Am I using the emulator incorrectly?

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: Initial database population from large data files, several problems

2009-04-29 Thread pawpaw17

Justin,

I get the same exact error as you do. My thinking is it is because our
DB files are too
big. Have you made any progress on this?

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] coarse grained vs fine grained location -- when to use?

2009-04-21 Thread pawpaw17

Hi,

I was thinking of using just coarse grained location control for a
location app I'm working
on. My thinking was that this service would "always" be available --
as opposed to GPS.

Is there any documenation on the typical accuracy differences? Is
network lookup
(coarse grained) available on all G1 phones?

Best wishes!

Thanks

George F.
--~--~-~--~~~---~--~~
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] My dialog inherited class pops up "gray", want it to be like maps->menu->map mode (white foreground)

2009-04-21 Thread pawpaw17

Hi,

I'm trying to figure out how to make my dialog look like the dialog
you see when you run the maps app and choose menu->map mode.
White foreground and the background is gray (not dimmed slightly).
I think the AlertDialog using the builder looks like this by default,
but
I want to extend the Dialog class instead. I tried

window.setFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND,
WindowManager.LayoutParams.FLAG_DIM_BEHIND);

Does anybody know?

Thanks,

George

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