Re: [android-beginners] Re: Any existed support for ZigBee module?

2010-10-14 Thread Pedro E. Cunha Brigatto
Hi, guys.

I am currently searching for any news about ZigBee support on Android, and
unfortunately got no answers 'til now.
Does anyone have any update about it or a link for me to speed up my
searches?

Thanks in advance,
Pedro

2009/11/17 meetsang 

> Johnson,
>
> Were you able to find the answer for your question? Please let me know
> if ZigBee support is available. Anybody who has done this?
>
> Thank you.
>
>
> On Nov 2, 9:07 pm, defyer  wrote:
> > I'm using TI CC2530 ZigBee module, and I think I'm gonna need ZigBee
> > driver to lay the infrastructure for the application, right? So, does
> > Android support ZigBee communication? And WiFi??
> >
> > Cheers,
> >
> > Johnson
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to android-beginners@googlegroups.com
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Pedro E. Cunha Brigatto

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Lanunch an application at the time of Start up

2010-09-01 Thread Dirk Jäckel
Hi!

You can launch a service at boot time.

You need the permission RECEIVE_BOOT_COMPLETED and a BroadcastReceiver
that listens to  ACTION_BOOT_COMPLETED.

In Your AndroidManifest you need the following:


 



 

In your BroadcastReceiver you need to override:

public void onReceive(Context c, Intent intent)

Inside onReceive() you can start your service.



Dirk



On Tue, Aug 24, 2010 at 12:08, Vinay Prasad B R  wrote:
> Hi,
>
>
>        Is it possible to launch an application at the start up time instead
> of launching an application explicitly.
>
>
> --
> Regards,
> Vinay Prasad.B.R
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. 
> For more information about this change, please read [http://goo.gl/xkfl] or 
> visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Howto integrate 3rd party app to tabhost

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 7:59 AM, daph...@googlemail.com
 wrote:
> I using android 2.2 and I want to integrate a third party application
> into the tabulator. Is that possible and how can I do that?

It is not possible, sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to set location information permanently in the emulator

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 2:43 AM, sunny  wrote:
> I am not sure how to set the location permanently in the emulator.

You can't.

> I use the
> ddms to push the location but I can only see it when I open the map. If I
> exit, it is gone.

Correct.

> Next time when my open my map, it says waiting for
> location details.

Correct. You need to simulate another GPS fix.

> Can someone advice me what is wrong.

Nothing is wrong. The emulator emulates GPS fixes, which are transient events.

> I am not clear how
> to setup location permanently.

You can't -- sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Airplane mode

2010-08-09 Thread Jenus Dong
*public* AirplaneModeEnabler*(*Context context, CheckBoxPreference
airplaneModeCheckBoxPreference*)* *{*

mContext = context;
mCheckBoxPref = airplaneModeCheckBoxPreference;

airplaneModeCheckBoxPreference.setPersistent*(**false**)*;

mPhoneStateReceiver = *new*
PhoneStateIntentReceiver*(*mContext, mHandler*)*;
mPhoneStateReceiver.notifyServiceState*(*EVENT_SERVICE_STATE_CHANGED*)*;
*}*

This is the function code you could trigger when check/uncheck radio in
Setting->wireless network->airplant mode,

mPhoneStateReceiver.notifyServiceState*(*EVENT_SERVICE_STATE_CHANGED*)*;


On Sun, Aug 8, 2010 at 2:31 AM, Webgenius  wrote:

> Hi,
>
> In AirplaneModEnabler.java present in ..\packages\apps\Settings\src\com
> \android\settings, the handler looks for EVENT_SERVICE_STATE_CHANGED
> to toggle the state of the checkbox and to display the summary.
>
> When and from where is EVENT_SERVICE_STATE_CHANGED triggered?
> Currently the airplane mode functionality is very weird. I need to
> debug from the point where this event is triggered.
>
> Any help is greatly appreciated. Thanks in advance.
>
> -Webgenius
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Opening the preferences.xml file

2010-08-07 Thread Mark Murphy
On Sat, Aug 7, 2010 at 2:28 PM, Bret Foreman  wrote:
> The following code does not give the expected results:
>
>                prefInputStream =
> getResources().openRawResource(R.xml.preferences);
>                byte[] rawBytes = new byte[100];
>                prefInputStream.read( rawBytes, 0, 100 );
>
> The bytes read are not printable ASCII characters. The start of the
> file looks like this:
>
> 
> http://schemas.android.com/apk/res/
> android" android:key="main_preferencescreen" android:title="Settings">
>
>
> What gets read is:
>
> [3, 0, 8, 0, -8, 43, 0, 0, 1, 0, 28, 0, 0, 15, 0, 0, 100, 0, 0, 0, 0,
> 0, 0, 0, 0, 0, 0, 0, -84, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0,
> 0, 24, 0, 0, 0, 42, 0, 0, 0, 70, 0, 0, 0, 94, 0, 0, 0, 116, 0, 0, 0,
> -114, 0, 0, 0, -88, 0, 0, 0, -70, 0, 0, 0, -54, 0, 0, 0, -36, 0, 0, 0,
> -12, 0, 0, 0, 8, 1, 0, 0, 26, 1, 0, 0, 114, 1, 0, 0]
>
> Any idea what might be wrong?

1. XML resources are converted into a "binary XML" format as part of
the build process.

2. XML resources are not raw resources.

Use getXml(), not getRawResource().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Default values in SharedPreferences

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 5:38 PM, Bret Foreman  wrote:

> One other consideration is what the next version of Android will do about
> this. It's pretty clear that this is an important missing feature. I expect
> they'll eventually make a version of getXXX that reads the default value
> from preferences.xml if there's no key-value pair in the database yet,
> and throws an exception if no default value is found.
>

I can't imagine this would change anytime soon, if at all. I've never found
this to be that big of a deal personally. Granted, it's annoying when you
have to change the default value, but my suggestion for using resources
should solve that.


> From that perspective, it makes more sense to put a wrapper around getXXX
> and do my own parsing of the default values from preferences.xml. This
> has the added advantage that addition and removal of new preference keys can
> happen in the same file where the defaults are defined. And then when the
> improved version of getXXX comes out, I can just remove the wrapper.
>

Those are big assumptions about what will or will not happen.


> Does this code look right for getting at the raw xml data?
>

Seems like overkill. Assuming you're in Activity:
InputStream is = getResources().openRawResource(R.xml.preferences);

That's it.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread Greg Donald
On Fri, Aug 6, 2010 at 3:52 PM, fadden  wrote:
> I do a daily walk through stackoverflow for questions tagged with
> "android".  Nobody will be searching based on esoteric tags.  I think
> the point of restricting tag generation is to ensure that people *do*
> find your question because it exists in a pool of other similar
> questions that people are examining.

I have a problem with linecache.  There's no tag for it.  I couldn't
create one.  I did go ahead and choose other tags, ones not as
relevant as the ONE I wanted.  But whatever.

It's a stupid restriction.  1500 reputation before I can even properly
tag my question?  I've developed sites that used tags plenty of times
before.. it's just a join table, not a huge deal.  For them to act
like tags are so important n00bs like me can't create one?  Fuck them
and their 1500 reputation tags.

I've never once got help from there.  I tried again today as a last
resort.  I'm expecting nothing, as it's likely that's what I'll be
getting.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Default values in SharedPreferences

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 3:24 PM, Bret Foreman  wrote:

> This is such a generic problem that I'm hoping someone has already solved
> it and I can get something off the shelf. Any suggestions?
>

I haven't done this (yet) but you could probably store your default values
as resources then reference them in the preferences layout and in code as
necessary. Still slightly redundant, but at least then there is only one
place to go modify the default value.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread Greg Donald
On Wed, Aug 4, 2010 at 8:32 PM, Indicator Veritatis  wrote:
> Yes, the distinction has been getting blurred. This is a bad thing.
> Discontinuing this group only makes the blurring worse, as more and
> more beginners will move to android-developers -- where beginning
> questions really do not belong.

Stackoverflow is much, much too restrictive for my taste, especially
for beginners.  I can't properly tag my own question since I'm a
"stackoverflow" beginner  :(


# users with less than 1500 reputation can't create new tags. The tags
'rails3 linecache' are new. Try using existing tags instead.


Good luck only tagging questions that already have "popular" tags.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Kostya Vasilyev

No, calling Thread.sleep() won't work.

Android framework is largely single-threaded, event-driven.

This means that your application and the framework run on the same 
thread, passing control to each other, doing work in small pieces. This 
thread is called the UI thread, and blocking it by calling sleep() can 
do only one thing - cause the "Application Not Responding" dialog to appear.


The right thing to do is call bindService, and return from onResume.

You've done your piece of work (responded to onResume, and requested 
that Android bind a service). Now you need to give Android a chance to 
do its piece of work - by returning from onResume into Android framework 
code, which will start the service (if necessary) and bind it, notifying 
your callback.


Then it's your turn again - once in the ServiceConnection callback, you 
know the service has been bound, and you can talk to the service and 
ultimately populate the UI.


So that's basically the scheme with services.

You might also want to look at ContentProviders. They have a few 
advantages over Services for this case - their lifecycle is managed by 
Android, access is synchronous (using ContentResolver), and they handle 
propagating data changes to existing queries / cursors (so if you have a 
ListView, its data will be "live").


-- Kostya

06.08.2010 12:52, Bender пишет:

I tried the following in my activity:

 mServiceConnection =  new
DbServiceConnection(mDatabaseBinder);
 final Intent databaseServiceIntent = new Intent(this,
DatabaseService.class);
 this.bindService(databaseServiceIntent, mServiceConnection,
Context.BIND_AUTO_CREATE);

 while(mDatabaseBinder == null) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// catch...
}
 }

Did you mean that? Now it should wait until the mDatabaseBinder is set
which should be in the onServiceConnected() method but that code
results in an endless loop, mDatabaseBinder stays null. Maybe I got it
wrong how the components work together. As far as I understood it, you
have a service running in the background, which returns a binder in
onBind(). The service connection "fills" the binder
onServiceConnected() so it can be used in the activity to access the
services variables. Is that wrong?

On 6 Aug., 10:26, Kostya Vasilyev  wrote:
   

Sure. The service connection callback you seem to already have in your code.

--
Kostya Vasilyev --http://kmansoft.wordpress.com
 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Kostya Vasilyev
Sure. The service connection callback you seem to already have in your code.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

06.08.2010 12:10 пользователь "Bender"  написал:

Ok I tried to find out at which point the service is started and when
I can access its database variable. The logs I used showed that the
services onCreate() is called after the onResume() method by my
activity. That is a bit late because I need access to the database
before onResume() to fill the views with data. Is there a way to tell
the activity to wait until the service is started?


On 5 Aug., 22:54, Kostya Vasilyev  wrote:
> Starting / binding to a service is ...
> 06.08.2010 0:49 пользователь "Bender"  написал:

>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners"...

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
For more information abo...

http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
and...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-05 Thread Kostya Vasilyev
Starting / binding to a service is asynchronous. You can't call bindService
and expect it to be already started and bound by the next line.

Call bindService and return control to Android by returning from onCreate or
whatever. Your service connection callback will be invoked a little later,
once the service is started.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

06.08.2010 0:49 пользователь "Bender"  написал:

Thanks for your reply, and sorry for my late answer. :-)

I tried to get it running as a service but I don't really get how I
have to use services, binders and service connections. I'm reading a
book with an example for services but can't adopt it to my problem.
What I tried is the following:

I created one class for the service, which holds the variable for my
database:
__

public class DatabaseService extends Service {

   public DbAdapter mDbAdapter;
   private DatabaseBinder mDatabaseBinder = new DatabaseBinder();

   @Override
   public IBinder onBind(Intent intent) {
   return mDatabaseBinder;
   }

   @Override
   public void onCreate() {
   super.onCreate();
   mDatabaseBinder.mDatabaseService = this;
   mDbAdapter = new DbAdapter(getApplicationContext());
   mDbAdapter.open();
   }

   @Override
   public void onDestroy() {
   super.onDestroy();
   mDatabaseBinder.mDatabaseService = null;
   mDbAdapter.close();
   }

}

This is my database binder:
__

public class DatabaseBinder extends Binder {

   public DatabaseService mDatabaseService;

   public DbAdapter getDbAdapter() {
   return mDatabaseService.mDbAdapter;
   }

}

And this my service connection:
__

public class DbServiceConnection implements ServiceConnection {

   DatabaseBinder mBinder;

   public DbServiceConnection(DatabaseBinder binder) {
   mBinder = binder;
   }

   @Override
   public void onServiceConnected(ComponentName className, IBinder
binder) {
   mBinder = (DatabaseBinder) binder;
   }

   @Override
   public void onServiceDisconnected(ComponentName arg0) {
   }

}

If I want to use this in my activity with this:

   private DatabaseBinder mDatabaseBinder;
   private DbServiceConnection mServiceConnection = new
DbServiceConnection(mDatabaseBinder);

   final Intent databaseServiceIntent = new Intent(this,
DatabaseService.class);
   this.bindService(databaseServiceIntent, mServiceConnection,
Context.BIND_AUTO_CREATE);

   mDb = mDatabaseBinder.getDbAdapter();


I'm getting a nullpointer exception at the last line. I don't know if
I'm using it right (I guess not :D ), I haven't used services before.
Do you know why it is throwing a Nullpointer exception? Is this the
right way to use a service and bind it in the activity or should I do
it somehow different?


On 19 Jul., 00:30, brucko  wrote:
> Bender,
>
> put your db in a local Se...
> http://developer.android.com/resources/samples/ApiDemos/src/com/examp...

>
> but DONT have your binder as a non-static inner class as in the
> example - or you will create a...
ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
For more information about this change, please read [http://goo.gl/xkfl] or
visit the Group home page.


Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Bibrate on screen touch

2010-08-05 Thread Konstantin Burov
((Vibrator) getSystemService(Context.VIBRATOR_SERVICE)).vibrate(200);

You also need to request vibrate permission at manifest:


-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Google Maps on .apk application not showing maps

2010-08-05 Thread TreKing
On Thu, Aug 5, 2010 at 11:47 AM, Ivanico  wrote:

> Does anyone might know what is going on or has came across this as well?
>

If you exported the app with your signing key, you need to generate an
associated release MAP API key. Follow the instructions on the Maps API
documentation page, the section on obtaining a key.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Importing a keystore into Eclipse

2010-08-05 Thread TreKing
On Wed, Aug 4, 2010 at 11:23 PM, Bret Foreman 
 wrote:

> The keystore is in the .android folder but it does not show in the Export
> Wizard.
>

"." folders are hidden by default, maybe that's why?

But why put your keystore in the .android folder? I'd put it somewhere a
little more under your own control, like in your project's folder.


> I can see keystores that were created by the wizard but can't see any that
> are built with the keytool.
>

So just use the wizard?


> The debug/production key paradigm breaks down as soon as you need the API
> key for google maps, which must be generated from the application key. I
> don't notice any automated tool to swap the API keys when you switch
> application keys. It's all manual - error prone and time consuming, in other
> words.
>

Yes, but you really don't do this that often.

See this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/a2c0cf7ecd0c3c7b/2b963ca3abe2eaa5

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-05 Thread Alessandro Pellizzari
Il giorno mer, 04/08/2010 alle 17.16 -0400, Jake Colman ha scritto:

> This "mailing list", along with many, many others can be access via NNTP
> using gmane.  Pretty much any mailing list I care to follow is on gmane
> and, if it isn't, it be easily added.

Cool! I didn't know gmane was accessible through nntp, I though it was
web-only.

Thank you very much.

Bye.


-- 
Alessandro Pellizzari

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Importing a keystore into Eclipse

2010-08-04 Thread TreKing
On Wed, Aug 4, 2010 at 3:57 PM, Bret Foreman  wrote:

> How do I get Eclipse to know about a new keystore?
>

When you use the Export Wizard, it should give you the option to use an
existing keystore and let you browse to it.


> Also, once I have a second keystore, how do I tell the debugger that I
> want to use it rather than the debug keystore for debugging?
>

I don't think you can. And I see no reason to do so.
Why do you need to use a different one for debugging?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread TreKing
2010/8/4 Kostya Vasilyev 

> If there are so many regrets about the closing of this list isn't it
> possible for anyone to create a mailing list with Google Groups? Let's call
> it android-for-beginners or whatever. Anyone?



On Tue, Aug 3, 2010 at 12:52 PM, Greg Donald  wrote:

> I don't see any reason why we can't have one that's not moderated by
> Google:
>
> http://groups.google.com/group/android-for-beginners
>
> Moderator volunteers please contact me after joining.
>

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread Kostya Vasilyev
If there are so many regrets about the closing of this list isn't it
possible for anyone to create a mailing list with Google Groups? Let's call
it android-for-beginners or whatever. Anyone?

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

04.08.2010 20:39 пользователь "Alessandro Pellizzari" 
написал:

Il giorno mar, 03/08/2010 alle 14.49 -0400, Mark Murphy ha scritto:


> For those who find StackOverflow to be ineffective, or find the
> behavior of volunteers there to...
The problem with Stackoverflow, IMVHO, is that it is a QA site, not a
discussion place. You ask something, someone replies. Hadrly I found
even a simple thread discussing different ways to do something.

Plus, I find it unusable for a casual visitor.  You visit it if you have
a question, search for it, maybe post a request.
But it is hard to browse through a topic, or just read some messages to
discover things you didn't even think where possible.

This list has the right amount of traffic for casual reading during work
pauses.
Android-developers is way too big (1000 messages a day? I end up marking
them all as read)

As for searching info, I prefer Google to Stackoverflow. This way I also
find blog posts, newsgroup posts, forums and this mailing list.


> There are other support resources as well (JavaRanch, anddev.org,
> etc.). I do not try to partic...
Too many, I agree, but this one was "official", and was easily usable,
being a mailing list.
I would prefer a NNTP newsgroup, but a ml is good too.
A forum or a website? Not so...


> If this list is discontinued, for the near term, I will be focusing on
> StackOverflow and [andro...
I understand your position.
Thanks to you and the others who bothered to help us newbies.

I too will continue to "read" android-developers and see how it goes.
As for stackoverflow, maybe google will find it sometimes. :)

Bye.


--
Alessandro Pellizzari


-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" g...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread Alessandro Pellizzari
Il giorno mar, 03/08/2010 alle 14.49 -0400, Mark Murphy ha scritto:

> For those who find StackOverflow to be ineffective, or find the
> behavior of volunteers there to be morally reprehensible, or whatever,
> use the [android-developers] Google Group. The dividing line between
> that group and this one has been extremely blurry over the past 9-12
> months.

The problem with Stackoverflow, IMVHO, is that it is a QA site, not a
discussion place. You ask something, someone replies. Hadrly I found
even a simple thread discussing different ways to do something.

Plus, I find it unusable for a casual visitor.  You visit it if you have
a question, search for it, maybe post a request.
But it is hard to browse through a topic, or just read some messages to
discover things you didn't even think where possible.

This list has the right amount of traffic for casual reading during work
pauses.
Android-developers is way too big (1000 messages a day? I end up marking
them all as read)

As for searching info, I prefer Google to Stackoverflow. This way I also
find blog posts, newsgroup posts, forums and this mailing list.

> There are other support resources as well (JavaRanch, anddev.org,
> etc.). I do not try to participate in all of them, as I would never
> get any sleep. :-)

Too many, I agree, but this one was "official", and was easily usable,
being a mailing list.
I would prefer a NNTP newsgroup, but a ml is good too.
A forum or a website? Not so...

> If this list is discontinued, for the near term, I will be focusing on
> StackOverflow and [android-developers], and we will see where things
> go from there.

I understand your position.
Thanks to you and the others who bothered to help us newbies.

I too will continue to "read" android-developers and see how it goes.
As for stackoverflow, maybe google will find it sometimes. :)

Bye.


-- 
Alessandro Pellizzari

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread TreKing
On Wed, Aug 4, 2010 at 11:16 AM, Bret Foreman wrote:

> I was thinking that publish meant placing in the Marketplace.
>

I believe that's what is meant. I could be wrong, of course - I didn't write
it :)


> Perhaps we should log a bug against the documentation to make that clearer?
>

If by "we", you mean you, go for it =P

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread TreKing
On Wed, Aug 4, 2010 at 10:45 AM, Bret Foreman wrote:

> Except I don't have a production/release signing key yet.
>

I would generate one, then a corresponding release Maps API key and try
that.


> I've only ever generated the debug key, which I also used to generate the
> maps API key. I'm using the Export wizard in Eclipse with the "sign
> the package" box checked and my debug key chosen.
>

Out of curiosity, why are you exporting with a debug key? You can just run
from Eclipse ...

AFAIK, exporting is for generating a release build. I would not be surprised
if there's something under the hood that's breaking because it's a debug
key.


> I shouldn't be able to even install an unsigned package, right?
>

No idea, but I don't see why not, if you know what you're doing.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Google map tiles missing with adb install

2010-08-04 Thread TreKing
On Tue, Aug 3, 2010 at 8:26 PM, Bret Foreman  wrote:

> If I export to an apk file and install it to the same phone from the
> command line (adb install path/ filename.apk) then the MapView shows the
> Google logo and the grid, but
> no map. Any ideas what might be going wrong?
>

How are you exporting?
How are you signing your APK after exporting?

Normally, when you export it's for a production / release build, which
requires a corresponding production / release Maps API key. My money's on
you using a debug Maps API key with your release signing key.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread Mark Murphy
On Tue, Aug 3, 2010 at 11:34 PM, Bret Foreman  wrote:
> Is it kosher to sign an apk file with a debug key or is that only for
> inside Eclipse?

That should be kosher. I suspect there's still something wrong with
your process here -- perhaps signed by both production and debug keys?
I don't know how else to explain your map symptoms.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] SecurityException in AccountManager.get(mContext).getPassword(account);

2010-08-04 Thread Kostya Vasilyev
Looks like Google has a special process that deals with account 
management. Only this process is allowed to get / set account passwords. 
It's probably also signed with a special key, which is checked by the 
kernel when it's started (guessing here).


If any application was allowed this, think how many web sites would be 
offering Google account passwords - 1,000 for $10.-, and 10,000 for 
$75.- (a 25% discount! only this month!)


-- Kostya

04.08.2010 12:26, parul пишет:

I'm trying to  retrieve the password of google account, but getting
security exception.
Also i have given permissions in androidManifest.xml to
account_manager, aunthenticator, get_account, manage account.

code :
=
android.accounts.Account[] googleAccount =
AccountManager.get(mContext).getAccounts();
for (android.accounts.Account account: googleAccount ) {
  String pwd = AccountManager.get(mContext).getPassword(account);
  AccountManager.get(mContext).setPassword(account, null);
}
=
Exception:
=
08-04 06:38:30.821: WARN/AccountManagerService(2248): caller uid 1000
is different than the authenticator's uid
08-04 06:38:30.821: INFO/parul(2804): exception thrown for account
manager try block
08-04 06:38:30.821: WARN/System.err(2804):
java.lang.SecurityException: caller uid 1000 is different than the
authenticator's uid
08-04 06:38:30.821: WARN/System.err(2804): at
android.os.Parcel.readException(Parcel.java:1218)
08-04 06:38:30.821: WARN/System.err(2804): at
android.os.Parcel.readException(Parcel.java:1206)
08-04 06:38:30.821: WARN/System.err(2804): at
android.accounts.IAccountManager$Stub
$Proxy.getPassword(IAccountManager.java:397)
08-04 06:38:30.821: WARN/System.err(2804): at
android.accounts.AccountManager.getPassword(AccountManager.java:157)
08-04 06:38:30.821: WARN/System.err(2804): at
com.samsung.mttwo.service.MtSmsHandler.handleMessage(MtSmsHandler.java:
421)
08-04 06:38:30.826: WARN/System.err(2804): at
com.samsung.mttwo.service.MtSmsHandler.handleMTSmsReceived(MtSmsHandler.java:
146)
08-04 06:38:30.826: WARN/System.err(2804): at
com.samsung.mttwo.service.MTSmsReceiver.onReceive(MTSmsReceiver.java:
30)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2637)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.access$3100(ActivityThread.java:119)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
08-04 06:38:30.826: WARN/System.err(2804): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-04 06:38:30.826: WARN/System.err(2804): at
android.os.Looper.loop(Looper.java:123)
08-04 06:38:30.826: WARN/System.err(2804): at
android.app.ActivityThread.main(ActivityThread.java:4363)
08-04 06:38:30.826: WARN/System.err(2804): at
java.lang.reflect.Method.invokeNative(Native Method)
08-04 06:38:30.826: WARN/System.err(2804): at
java.lang.reflect.Method.invoke(Method.java:521)
08-04 06:38:30.826: WARN/System.err(2804): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:862)
08-04 06:38:30.826: WARN/System.err(2804): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
08-04 06:38:30.826: WARN/System.err(2804): at
dalvik.system.NativeStart.main(Native Method)
=

If anybody is aware why i'm getting this problem plz help.
Thanks

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-04 Thread Kostya Vasilyev

Then do it the same way web applications do.

Implement login functionality in your application, and you can check 
credentials. If the app has a web service-based backend, pass some kind 
of login token to the server can track usage.


-- Kostya

04.08.2010 1:09, Kevin Brooks пишет:
My original question was misleading. Let's forget the Android device 
for a moment. If a user logs into a computer, his credentials are 
checked on the network and he has access the Admin grants to him/her.


So without changing the whole Android System, I need a way to 
authenticate the user on the network through my application.



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to configure proxy settings on my Droid with Android 1.6 ?? plz help

2010-08-04 Thread wahib haq
Thanks anderson for responding. Apologies for posting a vague question. My
issue is like a very common one .. There is no option to set up proxy
settings on droid. I have searched and there a like hundreds of post with
the same issue. I wanted to know if there has been a kind of hack available
by which i can use wifi internet in my university behind a proxy. Not just
on browser but also with applications.

Thanks in advance.

regards,
wahib

On Wed, Aug 4, 2010 at 1:19 AM, Justin Anderson wrote:

> And even if that isn't the case and your problem lies with something else,
> your question is way to vague to expect to get any help whatsoever...
>
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
> On Tue, Aug 3, 2010 at 2:18 PM, Justin Anderson 
> wrote:
>
>> *> I am unable to use internet in university network due to proxy issue*
>> Meaning you need to set up proxy settings in order to connect to the
>> internet at your university?  If that is the case you need to contact the
>> university's IT department... only they will be able to give you the
>> settings you need.
>>
>>
>> --
>> There are only 10 types of people in the world...
>> Those who know binary and those who don't.
>> --
>>
>>
>>
>> On Tue, Aug 3, 2010 at 2:10 PM, wahib  wrote:
>>
>>> hey experts,
>>>
>>> I have this issue with my droid phone running 1.6 OS. I am unable to
>>> use internet in university network due to proxy issue. I cant find out
>>> a way to setup proxy settings :S I cant even use applications which
>>> require internet access .. so need to get it resolved. plz help me
>>> out.
>>>
>>>
>>> regards,
>>>
>>> wahib
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Beginners" group.
>>>
>>> ATTENTION: Android-Beginners will be permanently disabled on August 9
>>> 2010. For more information about this change, please read [
>>> http://goo.gl/xkfl] or visit the Group home page.
>>>
>>> Try asking and tagging your question on Stack Overflow at
>>> http://stackoverflow.com/questions/tagged/android
>>>
>>> To unsubscribe from this group, send email to
>>> android-beginners+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-beginners?hl=en
>>>
>>
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Wahib-ul-haq

3rd year Communications Engineering Student,
NUST, Pakistan.
Microsoft Student Partner
NUST-SEECS Open Mobile Squad ( Android Dev Team )
Software Internee @ Cogilent Solutions
Blog: www.livetechpro.com
web: http://www.google.com/profiles/wahib.tech
follow me on twitter @wahibhaq

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Abridged summary of android-beginn...@googlegroups.com - 18 Messages in 10 Topics

2010-08-03 Thread Jerome
Go on! android-beginners+nore...@googlegroups.com编写:>=>Today's Topic Summary>=>>Group: android-beginners@googlegroups.com>Url: http://groups.google.com/group/android-beginners/topics>>  - second activity error onClick package is duplicating in intent line [2 Updates]>    http://groups.google.com/group/android-beginners/t/43f1d360aedf9a51>  - Default Permission with Eclipse ? [2 Updates]>    http://groups.google.com/group/android-beginners/t/d4dd55e3bf375f7b>  - Android Scan [1 Update]>    http://groups.google.com/group/android-beginners/t/ff793e4a081e3c29>  - confirmation routine [1 Update]>    http://groups.google.com/group/android-beginners/t/c8168da6043f1770>  - How to close/hide the Android Soft Keyboard? [1 Update]>    http://groups.google.com/group/android-beginners/t/3c391e9291486045>  - custom listview add button above listeview [1 Update]>    http://groups.google.com/group/android-beginners/t/6f0f929805456fce>  - Pre-loading an SQLite database [3 Updates]>    http://groups.google.com/group/android-beginners/t/84e7b34ae294882f>  - I joined in a match on mobile app developing and i need an idea on GPS [2 Updates]>    http://groups.google.com/group/android-beginners/t/5a1197aeb7829d31>  - How to reuse and include another package? [2 Updates]>    http://groups.google.com/group/android-beginners/t/5dddfddbe33016ab>  - Cannot pass Byte Array using Intents (help!) [3 Updates]>    http://groups.google.com/group/android-beginners/t/3bfb83cc7b1560fe>>>=>Topic: second activity error onClick package is duplicating in intent line>Url: http://groups.google.com/group/android-beginners/t/43f1d360aedf9a51>=>>-- 1 of 2 -->From: Dean Rochester >Date: Aug 01 09:28AM -0400>Url: http://groups.google.com/group/android-beginners/msg/ba2c549a12bdc4c5>>I am trying to create a two activity test application using eclipse.>>I have been pulling my hair out on this one.>>In my main activity class in a package called  com.deano  I have the>>-- 2 of 2 -->From: RichardC >Date: Aug 01 06:54AM -0700>Url: http://groups.google.com/group/android-beginners/msg/6b1b41486160ab10>>You have nested your second activity inside your 1st activity inthe>manifest. Change the lines>>from:>  >>    =>Topic: Default Permission with Eclipse ?>Url: http://groups.google.com/group/android-beginners/t/d4dd55e3bf375f7b>=>>-- 1 of 2 -->From: Romain360 >Date: Aug 01 03:00AM -0700>Url: http://groups.google.com/group/android-beginners/msg/1a6500ef323ab3b7>>Hi,>I'm doing, as a training, a calculator.>I have an issue with Eclipse :  I exported my project into an .apk,>with no "uses-permission" in my Manifest (I don't need any), and as I>>-- 2 of 2 -->From: RichardC >Date: Aug 01 05:13AM -0700>Url: http://groups.google.com/group/android-beginners/msg/d3842a814a90d3a4>>Some new premission were introduced in Android v1.6 (API level 4).  In>your project if you are targeting Android v1.5 (API level 3) or>earlier these permissions will automatically get added to your>>>=>Topic: Android Scan>Url: http://groups.google.com/group/android-beginners/t/ff793e4a081e3c29>=>>-- 1 of 1 -->From: Jerome Hwang >Date: Jul 29 01:54PM -0700>Url: http://groups.google.com/group/android-beginners/msg/cf787ce61c476626>>Is it possible for Android Devices to scan nearby devices?>>by either edge, 3G, or wireless? (not bluetooth)>>Thank you in advance=>Topic: confirmation routine>Url: http://groups.google.com/group/android-beginners/t/c8168da6043f1770>=>>-- 1 of 1 -->From: john brown >Date: Jul 29 12:22PM -0700>Url: http://groups.google.com/group/android-beginners/msg/adfcfb07fc0f5f0>>Hello,>>What is the recommended best practice for a "confirm routine"? A toast>object is something like a visual basic MsgBox() routine but I have>not found any variations for a toast that returns>>>=>Topic: How to close/hide the Android Soft Keyboard?>Url: http://groups.google.com/group/android-beginners/t/3c391e9291486045>=>>-- 1 of 1 -->From: Chirag Patel >Date: Jul 29 11:52PM -0700>Ur

Re: [android-beginners] Google map tiles missing with adb install

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 9:26 PM, Bret Foreman  wrote:
> If I run my application on a physical phone from within the SDK then
> the Google MapView works perfectly.

What do you mean by "from within the SDK"? Do you mean from Eclipse?

> If I export to an apk file and
> install it to the same phone from the command line (adb install path/
> filename.apk) then the MapView shows the Google logo and the grid, but
> no map. Any ideas what might be going wrong?

If you are signing the APK with a different key (e.g., production
key), you need a different Maps API key to match.

The no-tiles symptom usually means one of the following:

-- you don't have an API key that matches the signing key

-- you don't have the INTERNET permission

-- your device/emulator does not have connectivity to the Internet
(e.g., airplane mode)

-- you are experiencing a tear in the fabric of space-time, and have
not recently looked out the window to notice that the world around you
is now a gray grid, and that in the distance the theme music to The
Twilight Zone is playing softly :-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Kevin Brooks
My original question was misleading.  Let's forget the Android device for a
moment.  If a user logs into a computer, his credentials are checked on the
network and he has access the Admin grants to him/her.

So without changing the whole Android System, I need a way to authenticate
the user on the network through my application.

On Tue, Aug 3, 2010 at 4:03 PM, Chris Ross

> wrote:

>
>  "The other side", as in something beyond the network level, or do you mean
> the authentication used to connect to the WiFi network, via enterprise WPA
> or some such?  If the authentication is done after the WiFi connection is
> established, than the way you asked the original question seems unusual.
>
>  I'd assumed you were talking about per-user authentication to/with the
> Access Point, which is fairly common in enterprise/corporate environments...
>
>  - Chris
>
> On Aug 3, 2010, at 4:54 PM, Kevin Brooks wrote:
>
> > The real issue is logging into the network that is on the other side of
> that Access Point.  I apologize for not making that clear before.
> >
> > On Tue, Aug 3, 2010 at 2:21 PM, Mark Murphy 
> wrote:
> > On Tue, Aug 3, 2010 at 3:06 PM, Kevin Brooks 
> wrote:
> > > I am not looking to create a true Multi-user Android environment.  My
> idea
> > > would be for my application to change the WiFi settings then connect.
> >
> > Well, WifiManager has addNetworkConfiguration(),
> > getConfiguredNetworks(), disconnect(), and so on. It is not out of the
> > question you can use this for your aims. I do not know what
> > permissions you need, if any, and I do not know if the API is rich
> > enough for your needs.
> >
> > However, I don't see where any of that will do you any good. Most WiFi
> > access points do not support multiple configurations, one per user,
> > regardless of what your device expects. Similarly, most households and
> > businesses do not have one WiFi access point per user. I don't know
> > where your other accounts are going to come from.
> >
> > --
> > Mark Murphy (a Commons Guy)
> > http://commonsware.com | http://github.com/commonsguy
> > http://commonsware.com/blog | http://twitter.com/commonsguy
> >
> > Android Development Wiki: http://wiki.andmob.org
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
> >
> > ATTENTION: Android-Beginners will be permanently disabled on August 9
> 2010. For more information about this change, please read [
> http://goo.gl/xkfl] or visit the Group home page.
> >
> > Try asking and tagging your question on Stack Overflow at
> > http://stackoverflow.com/questions/tagged/android
> >
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-beginners?hl=en
> >
> >
> >
> > --
> > Kevin
> > Proverbs 21:6
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
> >
> > ATTENTION: Android-Beginners will be permanently disabled on August 9
> 2010. For more information about this change, please read [
> http://goo.gl/xkfl] or visit the Group home page.
> >
> > Try asking and tagging your question on Stack Overflow at
> > http://stackoverflow.com/questions/tagged/android
> >
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-beginners?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Kevin
Proverbs 21:6

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Chris Ross

  "The other side", as in something beyond the network level, or do you mean 
the authentication used to connect to the WiFi network, via enterprise WPA or 
some such?  If the authentication is done after the WiFi connection is 
established, than the way you asked the original question seems unusual.

  I'd assumed you were talking about per-user authentication to/with the Access 
Point, which is fairly common in enterprise/corporate environments...

  - Chris

On Aug 3, 2010, at 4:54 PM, Kevin Brooks wrote:

> The real issue is logging into the network that is on the other side of that 
> Access Point.  I apologize for not making that clear before.
> 
> On Tue, Aug 3, 2010 at 2:21 PM, Mark Murphy  wrote:
> On Tue, Aug 3, 2010 at 3:06 PM, Kevin Brooks  wrote:
> > I am not looking to create a true Multi-user Android environment.  My idea
> > would be for my application to change the WiFi settings then connect.
> 
> Well, WifiManager has addNetworkConfiguration(),
> getConfiguredNetworks(), disconnect(), and so on. It is not out of the
> question you can use this for your aims. I do not know what
> permissions you need, if any, and I do not know if the API is rich
> enough for your needs.
> 
> However, I don't see where any of that will do you any good. Most WiFi
> access points do not support multiple configurations, one per user,
> regardless of what your device expects. Similarly, most households and
> businesses do not have one WiFi access point per user. I don't know
> where your other accounts are going to come from.
> 
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
> 
> Android Development Wiki: http://wiki.andmob.org
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> 
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. 
> For more information about this change, please read [http://goo.gl/xkfl] or 
> visit the Group home page.
> 
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
> 
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
> 
> 
> 
> -- 
> Kevin
> Proverbs 21:6
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>  
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. 
> For more information about this change, please read [http://goo.gl/xkfl] or 
> visit the Group home page.
>  
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>  
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Kostya Vasilyev
If "the other side" requires logging in, perhaps you could track usage
there?

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

04.08.2010 0:54 пользователь "Kevin Brooks"  написал:

The real issue is logging into the network that is on the other side of that
Access Point.  I apologize for not making that clear before.



On Tue, Aug 3, 2010 at 2:21 PM, Mark Murphy  wrote:
>
> On Tue, Aug 3, 20...
-- 
Kevin
Proverbs 21:6



-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" ...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Kevin Brooks
The real issue is logging into the network that is on the other side of that
Access Point.  I apologize for not making that clear before.

On Tue, Aug 3, 2010 at 2:21 PM, Mark Murphy  wrote:

> On Tue, Aug 3, 2010 at 3:06 PM, Kevin Brooks  wrote:
> > I am not looking to create a true Multi-user Android environment.  My
> idea
> > would be for my application to change the WiFi settings then connect.
>
> Well, WifiManager has addNetworkConfiguration(),
> getConfiguredNetworks(), disconnect(), and so on. It is not out of the
> question you can use this for your aims. I do not know what
> permissions you need, if any, and I do not know if the API is rich
> enough for your needs.
>
> However, I don't see where any of that will do you any good. Most WiFi
> access points do not support multiple configurations, one per user,
> regardless of what your device expects. Similarly, most households and
> businesses do not have one WiFi access point per user. I don't know
> where your other accounts are going to come from.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Development Wiki: http://wiki.andmob.org
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Kevin
Proverbs 21:6

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to configure proxy settings on my Droid with Android 1.6 ?? plz help

2010-08-03 Thread Justin Anderson
And even if that isn't the case and your problem lies with something else,
your question is way to vague to expect to get any help whatsoever...

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Aug 3, 2010 at 2:18 PM, Justin Anderson wrote:

> *> I am unable to use internet in university network due to proxy issue*
> Meaning you need to set up proxy settings in order to connect to the
> internet at your university?  If that is the case you need to contact the
> university's IT department... only they will be able to give you the
> settings you need.
>
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
>
> On Tue, Aug 3, 2010 at 2:10 PM, wahib  wrote:
>
>> hey experts,
>>
>> I have this issue with my droid phone running 1.6 OS. I am unable to
>> use internet in university network due to proxy issue. I cant find out
>> a way to setup proxy settings :S I cant even use applications which
>> require internet access .. so need to get it resolved. plz help me
>> out.
>>
>>
>> regards,
>>
>> wahib
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> ATTENTION: Android-Beginners will be permanently disabled on August 9
>> 2010. For more information about this change, please read [
>> http://goo.gl/xkfl] or visit the Group home page.
>>
>> Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>> To unsubscribe from this group, send email to
>> android-beginners+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-beginners?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to configure proxy settings on my Droid with Android 1.6 ?? plz help

2010-08-03 Thread Justin Anderson
*> I am unable to use internet in university network due to proxy issue*
Meaning you need to set up proxy settings in order to connect to the
internet at your university?  If that is the case you need to contact the
university's IT department... only they will be able to give you the
settings you need.


--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Aug 3, 2010 at 2:10 PM, wahib  wrote:

> hey experts,
>
> I have this issue with my droid phone running 1.6 OS. I am unable to
> use internet in university network due to proxy issue. I cant find out
> a way to setup proxy settings :S I cant even use applications which
> require internet access .. so need to get it resolved. plz help me
> out.
>
>
> regards,
>
> wahib
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: NullPointerException when trying to create TelephonyManager

2010-08-03 Thread Justin Anderson
Glad you were able to figure it out!

On Aug 3, 2010 1:11 PM, "Wall-E"  wrote:

Ok, so the problem was that I was calling those methods before the
application was fully created.  So I did the getSystemService call
inside of an onCreate method and all is well and dandy now.


On Aug 3, 10:39 am, Wall-E  wrote:
> Did some more searching and I found out t...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 3:06 PM, Kevin Brooks  wrote:
> I am not looking to create a true Multi-user Android environment.  My idea
> would be for my application to change the WiFi settings then connect.

Well, WifiManager has addNetworkConfiguration(),
getConfiguredNetworks(), disconnect(), and so on. It is not out of the
question you can use this for your aims. I do not know what
permissions you need, if any, and I do not know if the API is rich
enough for your needs.

However, I don't see where any of that will do you any good. Most WiFi
access points do not support multiple configurations, one per user,
regardless of what your device expects. Similarly, most households and
businesses do not have one WiFi access point per user. I don't know
where your other accounts are going to come from.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Kevin Brooks
I am not looking to create a true Multi-user Android environment.  My idea
would be for my application to change the WiFi settings then connect.

I apologize for posting this one on here.  Most of my questions are more
beginning in Nature than this one.

On Tue, Aug 3, 2010 at 1:59 PM, Mark Murphy  wrote:

> On Tue, Aug 3, 2010 at 2:41 PM, Kevin Brooks  wrote:
> > It is my understanding that the WiFi connection is based on only one user
> > for the device. Here is my situation.  We have an Android device that can
> > be used by different users.  We want to be able to track which data is
> > entered by each user.  This requires a different login.  Is there a way I
> > can access and change the network login?
>
> What do you consider a "network login" to be?
>
> A true multi-user Android environment would require substantial
> firmware modifications, to the point where it may not resemble Android
> anymore.
>
> BTW, since you're one who is decrying the shutdown of this list --
> IMHO, this is nowhere remotely near a "beginner" question.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Development Wiki: http://wiki.andmob.org
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Kevin
Proverbs 21:6

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 2:41 PM, Kevin Brooks  wrote:
> It is my understanding that the WiFi connection is based on only one user
> for the device. Here is my situation.  We have an Android device that can
> be used by different users.  We want to be able to track which data is
> entered by each user.  This requires a different login.  Is there a way I
> can access and change the network login?

What do you consider a "network login" to be?

A true multi-user Android environment would require substantial
firmware modifications, to the point where it may not resemble Android
anymore.

BTW, since you're one who is decrying the shutdown of this list --
IMHO, this is nowhere remotely near a "beginner" question.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ERROR... No package identifier when getting value for resource number

2010-08-03 Thread Justin Anderson
BTW... I am planning on looking into this one, but I just haven't had
time...

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Aug 3, 2010 at 12:58 PM, Justin Anderson wrote:

> Please don't double post if you don't get any responses...  It just makes
> for more stuff to sift through.  Instead, reply to your own post.  Everyone
> will then get an email which will bring the post back to the forefront.
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
>
> On Tue, Aug 3, 2010 at 12:48 PM, Dean-O  wrote:
>
>> Both activities are in the same package
>>
>> Second activity uses second layout file
>>
>> setContentView(R.layout.main2);
>>
>> Errors on this line in the second activity
>>
>> EditText text1 = (EditText) findViewById(R.id.EditText03);
>>
>> Here is the layout file for the second activity
>>
>> 
>> http://schemas.android.com/apk/res/
>> android"
>>android:orientation="vertical"
>>android:layout_width="fill_parent"
>>android:layout_height="fill_parent"
>>>
>>
>> >android:id="@+id/LinearLayout01"
>>android:layout_width="wrap_content"
>>android:layout_height="wrap_content">
>>
>>>android:id="@+id/TextView01"
>>android:layout_width="wrap_content"
>>android:layout_height="wrap_content"
>> android:text="Answer Is : ">
>>
>>
>>>android:id="@+id/EditText03"
>>android:layout_width="wrap_content"
>>android:layout_height="wrap_content">
>>
>>
>> 
>>
>> >android:id="@+id/Button01"
>>android:layout_width="wrap_content"
>>android:layout_height="wrap_content"
>>android:onClick="onClick"
>>android:text="Calling an intent">
>> 
>>
>> 
>>
>> Here are the errors in the LogCat window
>>
>> 08-01 19:32:20.340: WARN/ResourceType(8875): No package identifier
>> when getting value for resource number 0x0005
>>
>> 08-01 19:32:20.390: ERROR/AndroidRuntime(8875): Caused by:
>> android.content.res.Resources$NotFoundException: String resource ID
>> #0x5
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> ATTENTION: Android-Beginners will be permanently disabled on August 9
>> 2010. For more information about this change, please read [
>> http://goo.gl/xkfl] or visit the Group home page.
>>
>> Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>> To unsubscribe from this group, send email to
>> android-beginners+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-beginners?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ERROR... No package identifier when getting value for resource number

2010-08-03 Thread Justin Anderson
Please don't double post if you don't get any responses...  It just makes
for more stuff to sift through.  Instead, reply to your own post.  Everyone
will then get an email which will bring the post back to the forefront.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Aug 3, 2010 at 12:48 PM, Dean-O  wrote:

> Both activities are in the same package
>
> Second activity uses second layout file
>
> setContentView(R.layout.main2);
>
> Errors on this line in the second activity
>
> EditText text1 = (EditText) findViewById(R.id.EditText03);
>
> Here is the layout file for the second activity
>
> 
> http://schemas.android.com/apk/res/
> android"
>android:orientation="vertical"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>>
>
> android:id="@+id/LinearLayout01"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content">
>
>android:id="@+id/TextView01"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
> android:text="Answer Is : ">
>
>
>android:id="@+id/EditText03"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content">
>
>
> 
>
> android:id="@+id/Button01"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:onClick="onClick"
>android:text="Calling an intent">
> 
>
> 
>
> Here are the errors in the LogCat window
>
> 08-01 19:32:20.340: WARN/ResourceType(8875): No package identifier
> when getting value for resource number 0x0005
>
> 08-01 19:32:20.390: ERROR/AndroidRuntime(8875): Caused by:
> android.content.res.Resources$NotFoundException: String resource ID
> #0x5
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 1:59 PM, Kevin Brooks  wrote:
> I just joined the new group.  Hopefully Mark Murphy will decide to join as
> well an Volunteer to be a Moderator.

Personally, I would recommend people use StackOverflow.

For those who find StackOverflow to be ineffective, or find the
behavior of volunteers there to be morally reprehensible, or whatever,
use the [android-developers] Google Group. The dividing line between
that group and this one has been extremely blurry over the past 9-12
months.

There are other support resources as well (JavaRanch, anddev.org,
etc.). I do not try to participate in all of them, as I would never
get any sleep. :-)

If this list is discontinued, for the near term, I will be focusing on
StackOverflow and [android-developers], and we will see where things
go from there.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Justin Anderson
I have joined it as well, and will continue to provide support and help on
that list...  Hopefully a few of the other major contributors will join and
help out as well.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Aug 3, 2010 at 11:59 AM, Kevin Brooks  wrote:

> I just joined the new group.  Hopefully Mark Murphy will decide to join as
> well an Volunteer to be a Moderator.
>
>
> On Tue, Aug 3, 2010 at 12:52 PM, Greg Donald  wrote:
>
>> On Tue, Aug 3, 2010 at 12:36 PM, Kevin Brooks 
>> wrote:
>> > I agree with everyone else that has commented on this thread.
>>
>> I don't see any reason why we can't have one that's not moderated by
>> Google:
>>
>> http://groups.google.com/group/android-for-beginners
>>
>> Moderator volunteers please contact me after joining.
>>
>>
>> --
>> Greg Donald
>> destiney.com | gregdonald.com
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> ATTENTION: Android-Beginners will be permanently disabled on August 9
>> 2010. For more information about this change, please read [
>> http://goo.gl/xkfl] or visit the Group home page.
>>
>> Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>> To unsubscribe from this group, send email to
>> android-beginners+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-beginners?hl=en
>>
>
>
>
> --
> Kevin
> Proverbs 21:6
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Kevin Brooks
I just joined the new group.  Hopefully Mark Murphy will decide to join as
well an Volunteer to be a Moderator.

On Tue, Aug 3, 2010 at 12:52 PM, Greg Donald  wrote:

> On Tue, Aug 3, 2010 at 12:36 PM, Kevin Brooks  wrote:
> > I agree with everyone else that has commented on this thread.
>
> I don't see any reason why we can't have one that's not moderated by
> Google:
>
> http://groups.google.com/group/android-for-beginners
>
> Moderator volunteers please contact me after joining.
>
>
> --
> Greg Donald
> destiney.com | gregdonald.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Kevin
Proverbs 21:6

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Greg Donald
On Tue, Aug 3, 2010 at 12:36 PM, Kevin Brooks  wrote:
> I agree with everyone else that has commented on this thread.

I don't see any reason why we can't have one that's not moderated by Google:

http://groups.google.com/group/android-for-beginners

Moderator volunteers please contact me after joining.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Kevin Brooks
I agree with everyone else that has commented on this thread.  I have
personally receive a fare amount of help from this group.  I also have
attempted to answer a couple questions.  I really feel the loss of this
group will be a large set back for new developers.

On Mon, Aug 2, 2010 at 4:37 PM, Roman N (Google Employee) <
romannu...@google.com> wrote:

> Hi all,
>
> Next week, on Monday, August 9th, 2010 at 9am PDT, this Google Group
> and associated email alias will be permanently disabled and placed
> into archive mode. All new messages and replies will be automatically
> rejected. Existing messages and threads will still be available online
> at http://groups.google.com/group/android-beginners, but closed to
> further discussion.
>
> Please direct your questions to other discussion forums, as per these
> recommendations:
>
> - All new, beginner-level questions related to Android application
> development should be posted on Stack Overflow:
>
>  Android questions: http://stackoverflow.com/questions/tagged/android
>  Stack Overflow FAQ: http://stackoverflow.com/faq
>  Ask a question: http://stackoverflow.com/questions/ask
>
> For more background on Android and Stack Overflow, please see this
> blog post:
>
>
> http://android-developers.blogspot.com/2009/12/hello-stack-overflow.html
>
> - All existing, unanswered questions on Android-Beginners, that are
> directly related to Android application development, should be posted
> to Stack Overflow. Please read the Stack Overflow FAQ and look at
> examples of popular questions on the site before posting.
>
> - All new, advanced questions related to Android application
> development should be posted to either Stack Overflow or the Android-
> Developers group:
>
>  http://groups.google.com/group/android-developers
>
> - As before, all new Android questions not directly related to Android
> application development should be posted to the Android-Discuss group:
>
>  http://groups.google.com/group/android-discuss
>
> Please reply to this thread if there are any questions or concerns.
>
> Thanks,
>
> Roman Nurik
> Android Developer Relations
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Kevin
Proverbs 21:6

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Nick Richardson
I have to agree with the others.  This is a great group, because of the
content as well as the fact that it's a mailing list and therefore can be
easily monitored.  I have received quite a bit of help from this list, as
well as learned a LOT by reading everyone else's questions and answers.  I
also actively read and post to StackOverflow.

I feel disabling this list would be more detrimental then beneficial because
the ease of getting questions distributed would likely be diminished by the
removal of the group.  Plus, the android-developers list, which seems to be
more suited for seasoned developers will likely begin to be flooded by low
level and beginner questions, which may end up being detrimental to that
list as well.

Please consider leaving this list in operation.  If the reasons for
disabling the list are related to overhead in administering it, i would
gladly offer my services in taking over such tasks in order to keep this
group up and running.

Thanks,
//Nick

On Tue, Aug 3, 2010 at 8:17 AM, cellurl  wrote:

> I will probably move to the android-developers group and take the
> wrath of the experts like a man...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
//Nick Richardson
//richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Cannot load kml files through Emulator Control in Eclipse..

2010-08-03 Thread TreKing
On Tue, Aug 3, 2010 at 6:57 AM, prasad  wrote:

> I cannot load kml file through Load KML option in Emulator Control of
> Eclipse
>

Why not?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Problem sending variable to java activity.

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 6:00 AM, Justin  wrote:
> The error I get is "The Application has stopped unexpectedly. Please
> try again", but it only happens as if I use tthe following 2 lines:
>            Intent intent = getIntent();
>            int position = intent.getIntExtra("ImagePosition", -1);
>
> If I create the variable in this activity and blank those lines out it
> works, but I need the variable bringing accross.

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
the Java stack trace associated with your "error".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Eclipse lockups and crashes

2010-08-03 Thread Kostya Vasilyev
1.6 update 21 indeed has an issue with Eclipse, was discussed recently 
either here or on android-developers. Either roll back, or use search.


-- Kostya

03.08.2010 13:19, blindfold пишет:

I'm having the same problem with the latest r06 Android SDK and using
Java SDK 1.6.0_21 (C:\Program Files\Java\jdk1.6.0_21) and the latest
Eclipse updates on my Windows 7 64-bit system. It is a lot worse than
it was in the past (on the same PC) with older SDKs. I use Eclipse SDK
3.6.0, build id I20100608-0911. Perhaps Java SDK 1.6.0_21 is "too new"
but I did no further testing. It is indeed very annoying and I have to
be continuously prepared for Eclipse locking up.

Regards

On Aug 3, 2:33 am, -DC-  wrote:
   

I'm using Eclipse (eclipse-java-galileo-SR2-win32) with ADT rev 6 and
have Java SDK 1.6.0_21 installed on my system. Eclipse locks up and/or
crashes on me regularly while coding. I've lost unsaved code and even
my Eclipse preferences before. It's maddening! Does anyone know what
might be causing this?

(I really wish Google would make an ADT plug-in for NetBeans...)
 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


RE: [android-beginners] Controlling Camera Settings

2010-08-02 Thread tinyang
If you create your own custom camera activity, you can control most if not
all of the settings you list.

 
http://developer.android.com/reference/android/hardware/Camera.Parameters.ht
ml


-Original Message-
From: android-beginners@googlegroups.com
[mailto:android-beginn...@googlegroups.com] On Behalf Of rh4games
Sent: Monday, August 02, 2010 5:57 PM
To: Android Beginners
Subject: [android-beginners] Controlling Camera Settings

Hi,

My app needs to control the camera settings to make over & under- exposed
pictures, amongst other special effects.

Is there a way (and how?) to control the camera's shutter speed, aperture,
pseudo-ISO, ..., etc.

My device is the HTC EVO 4G, so the question applies both to the front a
back facing cameras.

Any pointers are much appreciated.

Thanks & Best Regards

R/

--
You received this message because you are subscribed to the Google Groups
"Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
For more information about this change, please read [http://goo.gl/xkfl] or
visit the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Plug for "Beginning Android 2"

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 6:32 PM, brucko  wrote:
> I agree with you Doug on all points.
>
> There is however another benefit. The Warescription model. Since I
> started with Android about 12mths ago we have gone from version 1.5 to
> 1.6, 2.0, 2.1 and now 2.2.
>
> Books go out of date very quickly with Android.

Thanks!

To clarify, though, _Beginning Android 2_ isn't on the Warescription,
per se. _Beginning Android 2_ (published by Apress) is based on _The
Busy Coder's Guide to Android Development_, which is in the
Warescription and updated more frequently (though I'm a bit behind on
that specific title).

BTW, if anyone has questions on these books, the [cw-android] Google
Group is a better spot than here for them:

http://groups.google.com/group/cw-android

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to populate a ViewFlipper child view with a ListView??

2010-08-02 Thread Victoria Busse
The logat says the NPE is located at 08-03 00:07:57.464:
ERROR/AndroidRuntime(8898): at
com.mobilevideoeditor.moved.EditorView.onClick(EditorView.java:81), which
would be lv.setAdapter(new ArrayAdapter(this,
R.layout.specialeffectsview, specialEffects));


Here is the output:

08-03 00:07:57.454: ERROR/AndroidRuntime(8898): Uncaught handler: thread
main exiting due to uncaught exception
08-03 00:07:57.464: ERROR/AndroidRuntime(8898):
java.lang.NullPointerException
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
com.mobilevideoeditor.moved.EditorView.onClick(EditorView.java:81)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.view.View.performClick(View.java:2364)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.view.View.onTouchEvent(View.java:4179)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.view.View.dispatchTouchEvent(View.java:3709)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:924)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:924)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:924)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:924)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:924)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1695)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1116)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.app.Activity.dispatchTouchEvent(Activity.java:2068)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1679)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1724)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.os.Looper.loop(Looper.java:123)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
android.app.ActivityThread.main(ActivityThread.java:4603)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
java.lang.reflect.Method.invokeNative(Native Method)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
java.lang.reflect.Method.invoke(Method.java:521)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at
dalvik.system.NativeStart.main(Native Method)


On Mon, Aug 2, 2010 at 11:00 PM, Justin Anderson wrote:

> Where exactly does the NullPointerException occur?  If you aren't sure you
> can find this by looking for a "caused by" line in the logcat information
> after your app crashes.
>
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
> On Mon, Aug 2, 2010 at 3:56 PM, Victoria wrote:
>
>> Hi there,
>>
>> I am trying to set up a ViewFlipper that changes a SlidingDrawers
>> content each time a button is pressed. So far every view I set up
>> worked fine, but now I am trying to create a ListView (including
>> single_choice_mode) within a child view of the ViewFlipper, but my
>> attempt only let to a NullPointerException. As I only discovered
>> ViewFlipper today, I am not yet familiar with it and may not have
>> understood it completely...if someone could give me a hand and help me
>> find out what I have done wrong, that would be great.
>>
>> Thank you in advance.
>>
>> Here is what I have done:
>>
>> The code for the onClick event of the ImageButtons:
>>
>>public void onClick(View v){
>>   if (v == btnExposure){
>>
>>mFlipper.setDisplayedChild(0);
>>
>>   }
>>   else if (v == btnProperties){
>>mFlipper.setDisplayedChild(1);
>>   }
>>
>>   else if (v == btnSpecialEffects){
>>mFlipper.setDisplayedChild(2);
>>String[] specialEffects =
>> getResources().getStringArray(R.array.special_effects_array);
>>  lv.setAdapter(new ArrayAdapter(this,
>> R.layout.specialeffectsview, specialEffects));
>>  lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
>>   }
>>
>>  }
>> The XML code of the ViewFlipper within my main xml file:
>>
>> >   android:layout_width="wrap_content"
>>   android:layout_height="wrap_content"
>>   android:id="@+id/flipper"
>> 

Re: [android-beginners] How to populate a ViewFlipper child view with a ListView??

2010-08-02 Thread Justin Anderson
Where exactly does the NullPointerException occur?  If you aren't sure you
can find this by looking for a "caused by" line in the logcat information
after your app crashes.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Aug 2, 2010 at 3:56 PM, Victoria wrote:

> Hi there,
>
> I am trying to set up a ViewFlipper that changes a SlidingDrawers
> content each time a button is pressed. So far every view I set up
> worked fine, but now I am trying to create a ListView (including
> single_choice_mode) within a child view of the ViewFlipper, but my
> attempt only let to a NullPointerException. As I only discovered
> ViewFlipper today, I am not yet familiar with it and may not have
> understood it completely...if someone could give me a hand and help me
> find out what I have done wrong, that would be great.
>
> Thank you in advance.
>
> Here is what I have done:
>
> The code for the onClick event of the ImageButtons:
>
>public void onClick(View v){
>   if (v == btnExposure){
>
>mFlipper.setDisplayedChild(0);
>
>   }
>   else if (v == btnProperties){
>mFlipper.setDisplayedChild(1);
>   }
>
>   else if (v == btnSpecialEffects){
>mFlipper.setDisplayedChild(2);
>String[] specialEffects =
> getResources().getStringArray(R.array.special_effects_array);
>  lv.setAdapter(new ArrayAdapter(this,
> R.layout.specialeffectsview, specialEffects));
>  lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
>   }
>
>  }
> The XML code of the ViewFlipper within my main xml file:
>
>android:layout_width="wrap_content"
>   android:layout_height="wrap_content"
>   android:id="@+id/flipper"
>   android:layout_toRightOf="@id/button_exposure">
>   
>   
>   
>  
> The string array within my strings.xml:
>
> 
>None
>Greyscale
>Sepia
>Negative
>Solarize
>Polarize
>
>
> And finally the specialeffectsview.xml (the layout file for the
> ListView):
>
> 
>   android:layout_width="fill_parent"
>  android:layout_height="fill_parent"
>  xmlns:android="http://schemas.android.com/apk/res/android";>
>   android:layout_height="wrap_content"
>  android:layout_width="fill_parent">
> 
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Interaction between an Activity and a Service ?

2010-08-02 Thread Justin Anderson
You can pass information via the Intents used to start the service, and vice
versa, with the various put and get methods on Intent.

For more information, see this link:
http://developer.android.com/resources/faq/framework.html#3


--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sun, Aug 1, 2010 at 2:30 PM, Rajesh Bachani wrote:

> Hello friends!
>
> I am trying to explore how information can be exchanged between
> activities and services.
> So, if we have Activity A and a Service S is started from A, using the
> startService() method - is there a way to pass parameters to the
> Service - and also receive values from the Service into the Activity
> once the stopService() method is called?
>
> I am using Intent to start the service, as one would expect.
>
> And further what is the advantage of calling the onBind method, as
> opposed to the onStart().
>
> Thanks,
> Rajesh.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-02 Thread Justin Anderson
I have been providing help on this group for well over a year now... The
only reason I am really able to do this is because it is a mailing list... I
get an email for every post on this group and I do my best to answer every
one that I can.

Is there a similar functionality with StackOverflow?  I looked when using
StackOverflow was officially announced on this group but couldn't find
anything.

If this functionality does not exist in StackOverflow then the only way I
will be able to provide help for new users is when I myself have a question
and happen to come across a question I know the answer to while searching
for an answer to my question...

Not that I think the loss of my help is particularly disastrous to the
Android Beginners out there (some would probably say that it is actually a
blessing, really) but I have enjoyed answering questions and I don't feel I
will be able to provide the same level of help on StackOverflow.

Why is this list getting disabled but the others are not?  Are the others
going to be disabled at some later point?

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Aug 2, 2010 at 3:37 PM, Roman N (Google Employee) <
romannu...@google.com> wrote:

> Hi all,
>
> Next week, on Monday, August 9th, 2010 at 9am PDT, this Google Group
> and associated email alias will be permanently disabled and placed
> into archive mode. All new messages and replies will be automatically
> rejected. Existing messages and threads will still be available online
> at http://groups.google.com/group/android-beginners, but closed to
> further discussion.
>
> Please direct your questions to other discussion forums, as per these
> recommendations:
>
> - All new, beginner-level questions related to Android application
> development should be posted on Stack Overflow:
>
>  Android questions: http://stackoverflow.com/questions/tagged/android
>  Stack Overflow FAQ: http://stackoverflow.com/faq
>  Ask a question: http://stackoverflow.com/questions/ask
>
> For more background on Android and Stack Overflow, please see this
> blog post:
>
>
> http://android-developers.blogspot.com/2009/12/hello-stack-overflow.html
>
> - All existing, unanswered questions on Android-Beginners, that are
> directly related to Android application development, should be posted
> to Stack Overflow. Please read the Stack Overflow FAQ and look at
> examples of popular questions on the site before posting.
>
> - All new, advanced questions related to Android application
> development should be posted to either Stack Overflow or the Android-
> Developers group:
>
>  http://groups.google.com/group/android-developers
>
> - As before, all new Android questions not directly related to Android
> application development should be posted to the Android-Discuss group:
>
>  http://groups.google.com/group/android-discuss
>
> Please reply to this thread if there are any questions or concerns.
>
> Thanks,
>
> Roman Nurik
> Android Developer Relations
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: NullPointerException when trying to create TelephonyManager

2010-08-02 Thread Justin Anderson
*> My code will run right until it gets to creating the telephony manager
instance but will not actually create it and it throws aNullPointerException
(I think).*
What do you mean "I think"?  Have you looked at the logcat info to determine
what the problem may be?  Look specifically for a "caused by" line...
*
> Is there something I'm doing wrong?*
Yes... otherwise you wouldn't get the exception.  :-)

*> Do I have to create a context and call getSystemService(...) with
context.getSystemService(...)?*
Application is a Context... so you don't need to create a new one.  You
should be able to call this method just fine from an Application subclass.

I've never subclassed Application before so I'm not super qualified on the
subject, but what does your application tag in your manifest look like?  I
ask that because the documentation for the Application class (
http://developer.android.com/reference/android/app/Application.html) says
this:

*"Base class for those who need to maintain global application state. You
can provide your own implementation by specifying its name in your
AndroidManifest.xml's  tag, which will cause that class to be
instantiated for you when the process for your application/package is
created."
*
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Aug 2, 2010 at 1:42 PM, Wall-E  wrote:

> Oh, and I do add the following permission:
>
> 
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Problem sending variable to java activity.

2010-08-02 Thread TreKing
On Mon, Aug 2, 2010 at 5:14 AM, Justin  wrote:

> I am writing a app, and basically I want to carry accross a variable
> from one java file to another.
>
> So from my first java file I am calling the second one by:
>

Just to clarify, a "java file" is something you edit, not something your
"call" or "carry variables across". Those are instances of your Activity.


> Which loads up the new page fine, but then causes a error and forces
> close.
>

And the error and force close message would be what?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Checking to See if I directory is there and if not creating one?

2010-08-02 Thread TreKing
On Mon, Aug 2, 2010 at 5:09 AM, Justin  wrote:

> If I wanted to check to see if a directory called "mypictures" was on
> my SD Card, and if it wasn't created one, how would I do this
> please.
>

Like this: http://tinyurl.com/34sjymt


> If I then wanted to make this appear in my gallerys, do I need to do
> anything special?
>

Make what appear? The name of the folder? The path to the folder? The
contents of the folder?
What are your "gallerys"?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Problem launching another java file from app.

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 6:06 AM, Justin  wrote:
> Which loads up the new page fine, but then causes a error and forces
> close.

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
the Java stack trace associated with your "force close".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Closing the activity completely

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 4:53 AM, Revathi K J Ramanan
 wrote:
> I have a back button in my activity window on right corner of the
> title bar.
>
> I want to kill the activity completely on clicking the close button.
> Can I reuse the same function and will it have any major effect?

Just call finish(), please.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Pre-loading an SQLite database

2010-08-01 Thread Brian Cowan

On 8/1/2010 11:59 AM, Bret Foreman wrote:

Ben,

I agree with you about the crying need. From a product roadmap point
of view, this is a really obvious value for many developers. But I
wouldn't jump to a solution too quickly. I've been thinking about the
problem for a few days now and my opinion is that initial load data
should come from an online web services source, not packaged in the
assets. This allows developers the option of updating their database
without releasing a new version of their app. And you have to remember
that users will always have a network connection when they are
installing from the Marketplace, so we should take advantage of that.

   
Now that wireless companies are moving to metered data plans, I would be 
very annoyed if I found that the initial install of an app required a 
network connection to download an undetermined amount of data. If anyone 
does this, they should make sure that they tell the user how much data 
is going to get downloaded. That way, if they are at the limit of their 
plan (Like the AT&T $15/mo + $15 per 250MB over the initial 250), they 
can defer the data download until they get somewhere with WiFi...


--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Plug for "Beginning Android 2"

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 1:05 PM, Doug Gordon  wrote:
> For that purpose, I would highly recommend "Beginning Android 2" by some guy
> named Mark Murphy who shows up in these forums on occasion :-).

I dunno. I hear he's balding. Can you really trust a book from a guy
who can't keep his hair?

Anyway, thanks for the vote of confidence!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Pre-loading an SQLite database

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 11:59 AM, Bret Foreman  wrote:
> I'm going to investigate the option of using Amazon S3. There exists a
> Java library for S3 access along with methods to access all the AWS
> services: http://aws.amazon.com/sdkforjava/
> The question remains, if I just use the S3 objects and methods in this
> library, will it pull in a big fat tail of unrelated code that I don't
> want weighing down my mobile app.

S3 uses a REST-style interface; the library wrappers are mostly to
assist with authentication and URL construction and such. If the JAR
is too big, fall back to rolling the REST yourself with HttpClient.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Pre-loading an SQLite database

2010-08-01 Thread Ben Orchard
But this is still just a hack to solve what shouldn't be an issue at all.  I
understand that there are security concerns and all sorts of other reasons
to be careful with databases, but bluntly put, there's no good reason that
an easy to use and implement method of using a pre-loaded db doesn't exist.
 Apps need data.  Databases are a good (if not perfect) way to store &
access data.  Therefore the methods for doing so should be readily
accessible.  It shouldn't require any extra action on the part of the user,
and it shouldn't require that developers do all sort of contortions to make
it work.  This should be a simple thing.  Including a db as an asset should
make it accessible, and you should be able to do so with less than 5 lines
of code.

On Sat, Jul 31, 2010 at 8:59 PM, peter f miller  wrote:

> On Fri, Jul 30, 2010 at 4:39 PM, Bret Foreman 
> wrote:
> > I currently have a flat file in my assets directory that I read into
> > SQLite the first time I need something from the appropriate table.
> > That works OK, but I'm effectively doubling the space required for
> > that data and it's a lot of data.
> >
> > I'd like to recover that space. I did some searching and this appears
> > to be one of the most common unsolved issues with Android. It appears
> > the only clean way to do it is to connect to some online storage
> > service like S3. I'd like something easier than that. Any ideas?
>
> I've seen several dictionary apps that include the data in an app that
> you download separately. When you download the data app, all it does
> is copies the data to SD and then puts up a message saying you can
> remove the app.
>
> The process does involve a little extra work from the user the first
> time they use your app so it's not perfect, but I've never been
> bothered by it.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
I have no bit of wisdom to include as a signature.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: custom listview add button above listeview

2010-07-31 Thread Mark Murphy
Sorry for the delay in responding.

On Fri, Jul 30, 2010 at 10:01 PM, calmchess  wrote:
> yes i think this does what i'm looking for do I need to write it from
> scratch or can i modify this code to suite my needs and use it?

It is licensed under the Apache License 2.0.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Pre-loading an SQLite database

2010-07-31 Thread peter f miller
On Fri, Jul 30, 2010 at 4:39 PM, Bret Foreman  wrote:
> I currently have a flat file in my assets directory that I read into
> SQLite the first time I need something from the appropriate table.
> That works OK, but I'm effectively doubling the space required for
> that data and it's a lot of data.
>
> I'd like to recover that space. I did some searching and this appears
> to be one of the most common unsolved issues with Android. It appears
> the only clean way to do it is to connect to some online storage
> service like S3. I'd like something easier than that. Any ideas?

I've seen several dictionary apps that include the data in an app that
you download separately. When you download the data app, all it does
is copies the data to SD and then puts up a message saying you can
remove the app.

The process does involve a little extra work from the user the first
time they use your app so it's not perfect, but I've never been
bothered by it.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Pre-loading an SQLite database

2010-07-31 Thread Ben Orchard
I've got no ideas, but this is the reason that I pretty much gave up on
android as a platform for me: this activity should be simple.  Instead
accessing a db is difficult, and using a preloaded db results in larger
apps.

Somehow it is easier to use a db in JAVAFREAKINGSCRIPT than in android.
 Jquery makes this so painless, so why does it have to be such a pain in the
backside.  This should be simple!  Yes, some apps will require greater
flexibility than the simple method would allow, but that doesn't mean that
there shouldn't *BE* a simple method.

Get it fixed!

Ben

On Fri, Jul 30, 2010 at 7:39 PM, Bret Foreman wrote:

> I currently have a flat file in my assets directory that I read into
> SQLite the first time I need something from the appropriate table.
> That works OK, but I'm effectively doubling the space required for
> that data and it's a lot of data.
>
> I'd like to recover that space. I did some searching and this appears
> to be one of the most common unsolved issues with Android. It appears
> the only clean way to do it is to connect to some online storage
> service like S3. I'd like something easier than that. Any ideas?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
I have no bit of wisdom to include as a signature.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to reuse and include another package?

2010-07-31 Thread TreKing
On Sat, Jul 31, 2010 at 2:52 PM, Victoria wrote:

> I found some already existing code.
>

Where? In the SDK? On the interwebs? In your basement?


> I was wondering if I could reuse an existing package within my java and
> xml code without having to code it all again?
>

Depends on the code and the license behind it.


> If it is possible to reuse the existing code how could I do that??
>

Sure, just copy the files into your project, assuming the aforementioned
license allows this.

I have a feeling I've misunderstood your question though ...

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 9:25 PM, calmchess  wrote:
> and now i think we are at the root of my problem...how do
> i seperate the row from the container??

Well, your source code got cut off, so it is difficult to answer.

Somewhere, your Activity is calling setContentView().

Ideally, particularly for this case, setContentView() is passed a
resource ID pointing to a layout resource (e.g., R.layout.main). This
is the layout file that Nick demonstrated and Kostya referred to. That
layout for your whole activity needs to have your Button and your
ListView, wrapped in a RelativeLayout or LinearLayout.

Here is an example project, albeit one with a TextView instead of a
Button above the ListView:

http://github.com/commonsguy/cw-android/tree/master/Selection/List/

Here is a variation on that sample project, using a custom ListAdapter:

http://github.com/commonsguy/cw-android/tree/master/FancyLists/Recycling/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 9:16 PM, calmchess  wrote:
> for the billionth time i'm useing  a CUSTOM LISTVIEW it inflates the
> xml

Which has nothing to do with anything.

< and getview gets called as many times as there is items in the
> array...if you put a button in the xml no matter what way you format
> the XML the button gets displayed multiple times not 1 time multiple
> times

The XML that was supplied is not for the *row*. It is for the
*container around the ListView*.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 8:55 PM, calmchess  wrote:
> I'm sorry i didn't try your code this isn't somthing that can be fixed
> by formatting XML

Yes, it can be. What you say you want is precisely what Nick and
Kostya have supplied in the answers.

> the button is always inside the  listview no matter
> what i do although yours came close to doing what i want.i want a
> button outside the listview and doesn't get highlighted by the list
> viewthankyou for your time.

Which is precisely what Nick and Kostya have supplied in the answers.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Nick Richardson
How can you still be having an issue?  I literally gave you the XML that you
need to accomplish what you're trying to do.

On Fri, Jul 30, 2010 at 8:24 AM, Kostya Vasilyev  wrote:

> Declare the button in the activity's layout xml, above the ListView.
>
> -- Kostya
>
> 30.07.2010 19:20, calmchess пишет:
>
>  I'm useing custom list view.which inflates the view..if you put a
>> button in the  XML it will put a button in each cell of the list view
>> i only want 1 button above the list view here is some more code to
>> make it clear.
>>
>> public class customlistview extends Activity implements
>> OnClickListener{
>>ListView l1;
>> private static class EfficientAdapter extends BaseAdapter  {
>>private LayoutInflater mInflater;
>>private ArrayList>  ret=null;
>>
>> public EfficientAdapter(Context context) {
>>  Sax sax1 = new Sax();
>>  try {
>>ret =  sax1.SaxIni();
>>} catch (Exception e) {
>>
>>e.printStackTrace();
>>}
>>
>>
>>   mInflater = LayoutInflater.from(context);
>>
>>
>>
>>  }
>>
>>
>>
>
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget --
> http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
//Nick Richardson
//richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to populate a ViewStub using different ImageButtons?

2010-07-30 Thread Justin Anderson
No problem, glad I could help!
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Fri, Jul 30, 2010 at 3:58 PM, Victoria Busse  wrote:

> Awesome,thanks Justin!
>
> On 30 Jul 2010 22:42, "Justin Anderson"  wrote:
>
> Create a different ViewStub for each case and then inflate the one you want
> based on the button clicked.  ViewStubs don't take up any space until they
> are inflated so this approach should give you the desired effect.
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
>
>
> On Fri, Jul 30, 2010 at 3:29 PM, Victoria 
> wrote:
> >
> > Hi there,
> >
> > ...
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Placing a MapView inside a LinearLayout

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 4:53 PM, Bret Foreman wrote:

> Well, you see, that's the thing. What I really want is a MapView
> embedded in a larger Activity where one half the screen is a
> (smallish) map and the other is an address and other details about the
> particular location of a marker on the map.
>

You didn't answer the question, but I'm going to assume "no" =)

MapView must be used inside a MapActivity. What you do besides that is up to
you.


> Think of how the pushpins work in Yelp when you mouse over them. Except you
> don't want the text to appear on the map the way it does on Yelp because the
> user's hand
> obscures it.
>

Don't know about yelp, but pretty much all map-based apps (including my own)
show a small popup directly on the map screen above the icon that was
tapped.


> My idea is that the user uses their left thumb to activate a pushpin and
> the relevant text appears on the right-side panel in a TextView. Naturally,
> right or left handedness would be a preferences setting. ;)
>

OK. That's perfectly doable with MapActivity. Just add the relevant view
before or after the MapView and deal with it like any other activity.

Although I would question the idea of using half the screen to the left or
right for this. Most phones are held vertically, meaning they're longer from
top to bottom than side-to-side. If you're going to split this narrow space
in half, it's going to look really strange. Splitting the screen vertically
would make more sense IMO.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to populate a ViewStub using different ImageButtons?

2010-07-30 Thread Victoria Busse
Awesome,thanks Justin!

On 30 Jul 2010 22:42, "Justin Anderson"  wrote:

Create a different ViewStub for each case and then inflate the one you want
based on the button clicked.  ViewStubs don't take up any space until they
are inflated so this approach should give you the desired effect.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--




On Fri, Jul 30, 2010 at 3:29 PM, Victoria 
wrote:
>
> Hi there,
>
> ...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to populate a ViewStub using different ImageButtons?

2010-07-30 Thread Justin Anderson
Create a different ViewStub for each case and then inflate the one you want
based on the button clicked.  ViewStubs don't take up any space until they
are inflated so this approach should give you the desired effect.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Fri, Jul 30, 2010 at 3:29 PM, Victoria wrote:

> Hi there,
>
> I am trying to populate a ViewStub with a new view depending on which
> ImageButton is clicked, but as I just discovered ViewStubs I am not
> exactly
> sure how this would work...
>
> e.g. can I provide the ViewStub with different inflatedIds and within
> the
> onClick event of a Button inflate the ViewStub by calling a specific
> inflatedId???
>
> If someone could give me hand, that would be really great.
> Thank you very much in advance :o)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] List Preference not taking up default value

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 2:04 PM, Bret Foreman wrote:

> The list of values has 7 choices and I'm setting the default value in one
> case to 2 (3rd item
> in list) and the other case to 3 (4th item in list).
>

Is "2" and "3" what the user sees or what you use as the setting in the
background?
It should be the latter.

For example, if you have a font size setting and the user's options are
"Small, Medium, Large" and the corresponding values are 12, 14, 16, the
default value for Medium would be 14, not "Medium".

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Placing a MapView inside a LinearLayout

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 3:51 PM, Bret Foreman wrote:

> I'm sure it's something basic. Any advice?


You're using this inside a MapActivity, of course?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: how to self-close an Activity

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 1:04 PM, cellurl  wrote:

> Its not actually closing an "about-box", its on a "things-are-progressing"
> type pop-up window.
>

Well that makes quite the difference =)

I still wonder why a "things-are-progressing" type pop-up would close after
some time and not, you know, when "things-are-done-progressing" ... but it's
your app.

Regardless, I would go with Justin's suggestion to use a Timer.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] app will not load admob?

2010-07-30 Thread Edmund Higgins
Wow that log is long. I'll delete and repost. Thanks

On Jul 30, 2010 11:14 AM, "Justin Anderson"  wrote:

A couple things:

   1. Have you contacted AdMob for support?
   2. You have not given any code showing how you are trying to go about
   adding the ad bar...
   3. You have not specified what the behavior is... is it crashing?  Is
   everything working but the ad bar is just not showing up?
   4. This logcat dump is WAY too long...you should clear out the log and
   only post stuff relating to your app.  I am not going to spend my time
   reading through this whole log, and I doubt anyone else will either


--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Fri, Jul 30, 2010 at 12:05 PM, Official  wrote:

> >
> > I am trying to create an tutorial app which I did. Then I am trying to
> > ad admob advertising ba...
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

 --
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Kostya Vasilyev


The key was having both action and category in the intent filter. Either 
one by itself didn't match the intent.


-- Kostya

30.07.2010 21:30, Mark Murphy пишет:

Yes, I think I barked up the wrong tree by suggesting to get rid of
the DEFAULT category. Glad to know this works!

On Fri, Jul 30, 2010 at 12:33 PM, Kostya Vasilyev  wrote:
   

Bret&  Mark,

Sorry for interrupting, but I also got curious about this. It seems like a
neat way to bring up the About box without making the context menu too
large.

This works, no problems at all:

values/prefs.xml:

.



.

the manifest:








-- Kostya

30.07.2010 19:29, Bret Foreman пишет:
 

Mark,

Well, the manifest documentation is pretty sparse so it's not
surprising that it doesn't mention this case. A good example is the
screen of choices that face you when you look at the Application tab
in the manifest editor in Eclipse and click on one of the activities
or services. That calls up a form with about 25 choices, none of which
include an "action", by the way. A document that describes what all
these choices mean would be very helpful. Note that there's a choice
called "clear task on launch", a phrase that you can search in vain
for in the manifest documentation.

It seems like people mostly build projects by copy-paste from other
projects, which is a fine approach as far as it goes but it can grow
into a nightmare if people start propagating unsupported hacks. Then
you have hundreds of apps that break at the same time when a new
release invalidates the hack.

OK, down off my soapbox. The change you suggest below didn't work.
Same exception in logcat. I can think of several approaches to take it
from here:

1) I build a simple test project that illustrates the problem and
submit it as a bug.
2) We decide that this approach is unsupported, in which case I submit
a bug against the documentation.
3) We take another swing at it, recognizing that we are implementing
something that lives on shaky ground, since undocumented behavior can
change at any time.

What do you think?

Bret

On Jul 29, 7:02 pm, Mark Murphywrote:

   

I can't find where what you're doing is documented, so I have no idea
what the right behavior is. Do you have a link to where it describes
thischild element of?

Regardless, I see where I went wrong before.

Your error is:

E/AndroidRuntime(  376): android.content.ActivityNotFoundException: No
Activity
found to handle Intent { act=com.shipmate.AboutShipMateActivity }

Notice the "act=com.shipmate.AboutShipMateActivity" part. That says
the Intent it is trying to use has an *action* of
com.shipmate.AboutShipMateActivity. So, add anwith an
of com.shipmate.AboutShipMateActivity to your activity, and
you should have better luck.


 


   


--
Kostya Vasilev -- WiFi Manager + pretty widget --
http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

 



   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 11:29 AM, Bret Foreman  wrote:
> Note that there's a choice
> called "clear task on launch", a phrase that you can search in vain
> for in the manifest documentation.

Ah, but if you remove the spaces, clearTaskOnLaunch is in the docs.

> It seems like people mostly build projects by copy-paste from other
> projects, which is a fine approach as far as it goes but it can grow
> into a nightmare if people start propagating unsupported hacks. Then
> you have hundreds of apps that break at the same time when a new
> release invalidates the hack.

Bingo. That's one of the reasons I've been jumping up and down more
recently when people use undocumented stuff.

In my case, I just figured there was some documentation that I had
missed somewhere.

> 1) I build a simple test project that illustrates the problem and
> submit it as a bug.
> 2) We decide that this approach is unsupported, in which case I submit
> a bug against the documentation.
> 3) We take another swing at it, recognizing that we are implementing
> something that lives on shaky ground, since undocumented behavior can
> change at any time.

Try Kostya's sample, perhaps just by adding back in the DEFAULT
category I, um, had you remove. (sorry) I suspect we can get this
working.

That being said, if you keep a roster of "things that might go 'boom'
in future releases" for your apps, add this to the list, since for all
we know they'll dump this feature in favor of some other
implementation (e.g., dedicated IntentPreference class). In fact, if
you wanted to be super-safe, implementing an IntentPreference class
may not be that difficult, and you then aren't dependent on an
undocumented feature.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Getting Force Close when Service calls activity

2010-07-30 Thread Justin Anderson
None of that information really helps us figure out the problem... What you
need to do is look at the logcat info when the FC occurs.  There should be a
"caused by" line that will tell you what the problem is, along with the file
and line number.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Fri, Jul 30, 2010 at 11:18 AM, Glenn  wrote:

> Hi Everyone,
>
> I have a background service that sleeps for a minute then starts an
> activity that I've created. The problem is everytime the service calls
> the activity, an FC error displays.
>
> My project so far is very simple, these are the components (3):
> -MyActivity0
> -MyActivity1
> -MyService0
>
> How it works:
> a. MyActivity0 has a button that starts MyService0.
> b. MyService0 then runs and should start MyActivity1 (but this is
> where I get an FC).
>
> This is the calling code the crashes:
> startActivity(new Intent(MyService0.this, MyActivity1.class));
>
> This is the AndroidManifest.xml:
> 
>
>
>
> android:name="android.intent.category.LAUNCHER" />
>
>
>
>
> 
>
> -I'm using Eclipse with the latest Android SDK targetting 2.2.
> -I'm seeing it crash both on the emulator and on the NexusOne.
> -I've tried searching the group, and haven't found a similar problem.
>
> Any help would be much appreciated for this beginner. Thanks in
> advance.
>
> Best Regards,
> Glenn
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 1:56 PM, Bret Foreman  wrote:
> Now, how do we get this documented so the capability doesn't disappear
> in later releases? Ideally, this would become part of the Android
> regression tests. Any ideas?

File an issue on b.android.com, or submit a documentation patch and
see if it gets approved. Or implement the capability using a
documented means -- Kostya's suggestion of
setOnPreferenceClickListener() is probably simplest.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Mark Murphy
Yes, I think I barked up the wrong tree by suggesting to get rid of
the DEFAULT category. Glad to know this works!

On Fri, Jul 30, 2010 at 12:33 PM, Kostya Vasilyev  wrote:
> Bret & Mark,
>
> Sorry for interrupting, but I also got curious about this. It seems like a
> neat way to bring up the About box without making the context menu too
> large.
>
> This works, no problems at all:
>
> values/prefs.xml:
>
> .
>  android:title="About title"
> android:summary="About summary">
> 
> 
> .
>
> the manifest:
>
>  android:label="@string/about_activity"
> android:theme="@android:style/Theme.Dialog">
> 
> 
> 
> 
> 
>
> -- Kostya
>
> 30.07.2010 19:29, Bret Foreman пишет:
>>
>> Mark,
>>
>> Well, the manifest documentation is pretty sparse so it's not
>> surprising that it doesn't mention this case. A good example is the
>> screen of choices that face you when you look at the Application tab
>> in the manifest editor in Eclipse and click on one of the activities
>> or services. That calls up a form with about 25 choices, none of which
>> include an "action", by the way. A document that describes what all
>> these choices mean would be very helpful. Note that there's a choice
>> called "clear task on launch", a phrase that you can search in vain
>> for in the manifest documentation.
>>
>> It seems like people mostly build projects by copy-paste from other
>> projects, which is a fine approach as far as it goes but it can grow
>> into a nightmare if people start propagating unsupported hacks. Then
>> you have hundreds of apps that break at the same time when a new
>> release invalidates the hack.
>>
>> OK, down off my soapbox. The change you suggest below didn't work.
>> Same exception in logcat. I can think of several approaches to take it
>> from here:
>>
>> 1) I build a simple test project that illustrates the problem and
>> submit it as a bug.
>> 2) We decide that this approach is unsupported, in which case I submit
>> a bug against the documentation.
>> 3) We take another swing at it, recognizing that we are implementing
>> something that lives on shaky ground, since undocumented behavior can
>> change at any time.
>>
>> What do you think?
>>
>> Bret
>>
>> On Jul 29, 7:02 pm, Mark Murphy  wrote:
>>
>>>
>>> I can't find where what you're doing is documented, so I have no idea
>>> what the right behavior is. Do you have a link to where it describes
>>> this  child element of?
>>>
>>> Regardless, I see where I went wrong before.
>>>
>>> Your error is:
>>>
>>> E/AndroidRuntime(  376): android.content.ActivityNotFoundException: No
>>> Activity
>>> found to handle Intent { act=com.shipmate.AboutShipMateActivity }
>>>
>>> Notice the "act=com.shipmate.AboutShipMateActivity" part. That says
>>> the Intent it is trying to use has an *action* of
>>> com.shipmate.AboutShipMateActivity. So, add an  with an
>>>   of com.shipmate.AboutShipMateActivity to your activity, and
>>> you should have better luck.
>>>
>>>
>>
>>
>
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget --
> http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Kostya Vasilyev

Ditto - I was also about to suggest this.

Base Preference class is quite complete, it handles drawing the title 
and summary with proper fonts, and has an onClick() method.


Another way - instead of subclassing Preference, add a bit of code with 
setOnPreferenceClickListener.


-- Kostya

30.07.2010 21:36, Mark Murphy пишет:

That being said, if you keep a roster of "things that might go 'boom'
in future releases" for your apps, add this to the list, since for all
we know they'll dump this feature in favor of some other
implementation (e.g., dedicated IntentPreference class). In fact, if
you wanted to be super-safe, implementing an IntentPreference class
may not be that difficult, and you then aren't dependent on an
undocumented feature.
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Kostya Vasilyev

Bret & Mark,

Sorry for interrupting, but I also got curious about this. It seems like 
a neat way to bring up the About box without making the context menu too 
large.


This works, no problems at all:

values/prefs.xml:

.



.

the manifest:

android:label="@string/about_activity"

android:theme="@android:style/Theme.Dialog">






-- Kostya

30.07.2010 19:29, Bret Foreman пишет:

Mark,

Well, the manifest documentation is pretty sparse so it's not
surprising that it doesn't mention this case. A good example is the
screen of choices that face you when you look at the Application tab
in the manifest editor in Eclipse and click on one of the activities
or services. That calls up a form with about 25 choices, none of which
include an "action", by the way. A document that describes what all
these choices mean would be very helpful. Note that there's a choice
called "clear task on launch", a phrase that you can search in vain
for in the manifest documentation.

It seems like people mostly build projects by copy-paste from other
projects, which is a fine approach as far as it goes but it can grow
into a nightmare if people start propagating unsupported hacks. Then
you have hundreds of apps that break at the same time when a new
release invalidates the hack.

OK, down off my soapbox. The change you suggest below didn't work.
Same exception in logcat. I can think of several approaches to take it
from here:

1) I build a simple test project that illustrates the problem and
submit it as a bug.
2) We decide that this approach is unsupported, in which case I submit
a bug against the documentation.
3) We take another swing at it, recognizing that we are implementing
something that lives on shaky ground, since undocumented behavior can
change at any time.

What do you think?

Bret

On Jul 29, 7:02 pm, Mark Murphy  wrote:
   

I can't find where what you're doing is documented, so I have no idea
what the right behavior is. Do you have a link to where it describes
this  child element of?

Regardless, I see where I went wrong before.

Your error is:

E/AndroidRuntime(  376): android.content.ActivityNotFoundException: No
Activity
found to handle Intent { act=com.shipmate.AboutShipMateActivity }

Notice the "act=com.shipmate.AboutShipMateActivity" part. That says
the Intent it is trying to use has an *action* of
com.shipmate.AboutShipMateActivity. So, add an  with an
  of com.shipmate.AboutShipMateActivity to your activity, and
you should have better luck.

 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Kostya Vasilyev

Declare the button in the activity's layout xml, above the ListView.

-- Kostya

30.07.2010 19:20, calmchess пишет:

I'm useing custom list view.which inflates the view..if you put a
button in the  XML it will put a button in each cell of the list view
i only want 1 button above the list view here is some more code to
make it clear.

public class customlistview extends Activity implements
OnClickListener{
ListView l1;
 private static class EfficientAdapter extends BaseAdapter  {
private LayoutInflater mInflater;
private ArrayList>  ret=null;

 public EfficientAdapter(Context context) {
  Sax sax1 = new Sax();
  try {
ret =  sax1.SaxIni();
} catch (Exception e) {

e.printStackTrace();
}


   mInflater = LayoutInflater.from(context);



  }

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] custom listview add button above listeview

2010-07-30 Thread TreKing
On Thu, Jul 29, 2010 at 7:25 PM, calmchess wrote:

> i want to add a single button above the listview without useing addheader
>

Why not?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] custom listview add button above listeview

2010-07-29 Thread Nick Richardson
Perhaps i'm not understanding what you're saying, but why can you not do it
with your xml layout?





Here's an example XML that seems to work, maybe you can tailor it to your
needs?
http://schemas.android.com/apk/res/android";
  android:id="@+id/MainPageLayout"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" >





On Thu, Jul 29, 2010 at 5:25 PM, calmchess wrote:

> Hi I'm using a  custom list view by extending  a class with
> BaseAdapter this works well displays all my data however i want to add
> a single button above the listview without useing addheader but I
> don't know how to add it to the baseAdapter or getView method if i add
> the button to main.xml each cell of the listview is populated with a
> button this is undesireable i only want 1 button above the
> listview.please help me to add the button. the below code is for
> refrence
>
> public class customlistview extends Activity implements
> OnClickListener{
>ListView l1;
> private static class EfficientAdapter extends BaseAdapter  {
>private LayoutInflater mInflater;
>private ArrayList> ret=null;
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
//Nick Richardson
//richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-29 Thread Mark Murphy
On Thu, Jul 29, 2010 at 9:15 PM, Bret Foreman  wrote:
> I removed the intent filter and still got the FC with the
> ActivityNotFoundException. Is there a better way to debug this stuff
> rather than trial and error?

I can't find where what you're doing is documented, so I have no idea
what the right behavior is. Do you have a link to where it describes
this  child element of ?

Regardless, I see where I went wrong before.

Your error is:

E/AndroidRuntime(  376): android.content.ActivityNotFoundException: No
Activity
found to handle Intent { act=com.shipmate.AboutShipMateActivity }

Notice the "act=com.shipmate.AboutShipMateActivity" part. That says
the Intent it is trying to use has an *action* of
com.shipmate.AboutShipMateActivity. So, add an  with an
 of com.shipmate.AboutShipMateActivity to your activity, and
you should have better luck.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] read flat file from resources

2010-07-29 Thread Nick Richardson
If you need to write info to a file, you can simply create a new file and
write to that instead.

So for example: on first run, read info from your resource and write it to a
new file.  On every subsequent run, check to see if the new file exists, and
read/write your data there instead.

On Thu, Jul 29, 2010 at 3:35 PM, Mark Murphy wrote:

> On Thu, Jul 29, 2010 at 6:33 PM, Droid  wrote:
> > I want to read words from a flat text file in res. Is that possible -
> > snippet of code please?
>
> getResources().openRawResource(R.raw.your_file_name)
>
> > Also, can I write to a similar file in resources.
>
> No, sorry.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 2.9 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
//Nick Richardson
//richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-29 Thread Mark Murphy
Try getting rid of the .

On Thu, Jul 29, 2010 at 7:45 PM, Bret Foreman  wrote:
> I changed the manifest to look as below and it still exits with the
> same error.
>
>      
>                
>                         android:name="android.intent.category.DEFAULT"/>
>                
>                
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] read flat file from resources

2010-07-29 Thread Mark Murphy
On Thu, Jul 29, 2010 at 6:33 PM, Droid  wrote:
> I want to read words from a flat text file in res. Is that possible -
> snippet of code please?

getResources().openRawResource(R.raw.your_file_name)

> Also, can I write to a similar file in resources.

No, sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Big Issue with running and testing app on phone while still being connected to PC

2010-07-29 Thread Victoria Busse
Thanks ;) I fixed this error :D

On Thu, Jul 29, 2010 at 10:26 PM, Nick Richardson  wrote:

> Your error is here:
> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): Caused by:
> java.lang.NullPointerException
> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
> com.mobilevideoeditor.moved.EditGalleryView.init_phone_video_grid(EditGalleryView.java:78)
>
> Line 78 of EditGalleryView.java is throwing an NPE.
>
> On Tue, Jul 27, 2010 at 5:04 PM, Victoria Busse <
> victoriasarabu...@gmail.com> wrote:
>
>> Hi there,
>>
>> I have a huge problem testing my app on my HTC Wildfire. It was working
>> fine until recently, but now I always get a force close error when I run or
>> debug a new version of the app.
>>
>> When I try to run the app on the emulator it still works, when I
>> disconnect the phone from the PC, the app also runs on the phone (including
>> all changes)... I was working on a xml file when this happened. If someone
>> could help me out here, that would be great...because this is really weird
>> and I really don't know what I should do now...
>>
>> Thanks in advance...
>>
>> This is the logcat output I get from the phone:
>>
>> 07-28 00:54:56.707: ERROR/AndroidRuntime(14315): Uncaught handler: thread
>> main exiting due to uncaught exception
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315):
>> java.lang.RuntimeException: Unable to start activity
>> ComponentInfo{com.mobilevideoeditor.moved/com.mobilevideoeditor.moved.GalleryView}:
>> java.lang.RuntimeException: Unable to start activity
>> ComponentInfo{com.mobilevideoeditor.moved/com.mobilevideoeditor.moved.EditGalleryView}:
>> java.lang.NullPointerException
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.ActivityThread.access$2200(ActivityThread.java:126)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.os.Handler.dispatchMessage(Handler.java:99)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.os.Looper.loop(Looper.java:123)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.ActivityThread.main(ActivityThread.java:4603)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> java.lang.reflect.Method.invokeNative(Native Method)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> java.lang.reflect.Method.invoke(Method.java:521)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> dalvik.system.NativeStart.main(Native Method)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): Caused by:
>> java.lang.RuntimeException: Unable to start activity
>> ComponentInfo{com.mobilevideoeditor.moved/com.mobilevideoeditor.moved.EditGalleryView}:
>> java.lang.NullPointerException
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.ActivityThread.startActivityNow(ActivityThread.java:2411)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:648)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.widget.TabHost.setCurrentTab(TabHost.java:320)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.widget.TabHost.addTab(TabHost.java:213)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> com.mobilevideoeditor.moved.GalleryView.onCreate(GalleryView.java:33)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2544)
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): ... 11 more
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): Caused by:
>> java.lang.NullPointerException
>> 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
>> com.mobilevideoeditor.moved.EditGalleryView.init_phone_video_grid(EditGalleryView.java:78)

Re: [android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-29 Thread Nick Richardson
Join the club... I've made $8 in three weeks from mine.  At this rate, i'll
pay for my market account about the time it starts to snow :)

On Thu, Jul 29, 2010 at 2:39 PM, Justin Anderson wrote:

> I figured I would let him figure out Step 5 the hard way  ;-)
>
> Unless you have an absolutely freaking amazing app there is no profit.  I
> have an app on the market that I think is pretty cool.  There is a free
> version and a donate key for $0.99 that unlocks a few extra features.
>
> I've made about $170 or so since last October...  With the amount of time I
> put in to it I think I am making less than a penny per hour.  But I do it
> for the fun of programming and because it is an app that I wanted on my
> phone and couldn't find any that fully suited my needs...
>
>
>
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
> On Thu, Jul 29, 2010 at 3:34 PM, Nick Richardson <
> richardson.n...@gmail.com> wrote:
>
>> Indeed it would - I was hoping celluri would pick that part up on his own,
>> but you had to go and ruin the surprise!! :)
>>
>> On Thu, Jul 29, 2010 at 1:58 PM, Justin Anderson > > wrote:
>>
>>> > Step 4: 
>>> That would be onActivityResult()... taken directly from the link you
>>> posted
>>>
>>> --
>>> There are only 10 types of people in the world...
>>> Those who know binary and those who don't.
>>> --
>>>
>>>
>>> On Thu, Jul 29, 2010 at 2:53 PM, Nick Richardson <
>>> richardson.n...@gmail.com> wrote:
>>>
 Step 1: Create new activity
 Step 2: Create intent to launch that activity
 Step 3: startActivityForResult()
 Step 4: 
 Step 5: Profit!


 http://developer.android.com/reference/android/app/Activity.html#StartingActivities


 On Wed, Jul 28, 2010 at 7:57 PM, cellurl  wrote:

> Can you elaborate a bit please? Intent covers so much material.
> Thank you very much!
> Jim
>
>
> On Jul 25, 10:36 am, Paul Turchenko  wrote:
> > Use intent to pick a picture and start activity for result
> >
> > On Jul 24, 10:47 pm, cellurl  wrote:
> >
> > > How do I launch some external application to show phone pictures
> and
> > > let users pick one?
> >
> > > The picture will serve as a background in my app.
> > > So all in all, I just need their selection. e.g. the path/name once
> > > they have chosen it.
> >
> > > Something simple would be nice ;-)
> >
> > > thanks
> > > jim
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



 --
 //Nick Richardson
 //richardson.n...@gmail.com

 --
 You received this message because you are subscribed to the Google
 Groups "Android Beginners" group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Beginners" group.
>>>
>>> NEW! Try asking and tagging your question on Stack Overflow at
>>> http://stackoverflow.com/questions/tagged/android
>>>
>>> To unsubscribe from this group, send email to
>>> android-beginners+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-beginners?hl=en
>>>
>>
>>
>>
>> --
>> //Nick Richardson
>> //richardson.n...@gmail.com
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> NEW! Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>> To unsubscribe from this group, send email to
>> android-beginners+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-beginners?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questio

Re: [android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-29 Thread Justin Anderson
I figured I would let him figure out Step 5 the hard way  ;-)

Unless you have an absolutely freaking amazing app there is no profit.  I
have an app on the market that I think is pretty cool.  There is a free
version and a donate key for $0.99 that unlocks a few extra features.

I've made about $170 or so since last October...  With the amount of time I
put in to it I think I am making less than a penny per hour.  But I do it
for the fun of programming and because it is an app that I wanted on my
phone and couldn't find any that fully suited my needs...



--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Thu, Jul 29, 2010 at 3:34 PM, Nick Richardson
wrote:

> Indeed it would - I was hoping celluri would pick that part up on his own,
> but you had to go and ruin the surprise!! :)
>
> On Thu, Jul 29, 2010 at 1:58 PM, Justin Anderson 
> wrote:
>
>> > Step 4: 
>> That would be onActivityResult()... taken directly from the link you
>> posted
>>
>> --
>> There are only 10 types of people in the world...
>> Those who know binary and those who don't.
>> --
>>
>>
>> On Thu, Jul 29, 2010 at 2:53 PM, Nick Richardson <
>> richardson.n...@gmail.com> wrote:
>>
>>> Step 1: Create new activity
>>> Step 2: Create intent to launch that activity
>>> Step 3: startActivityForResult()
>>> Step 4: 
>>> Step 5: Profit!
>>>
>>>
>>> http://developer.android.com/reference/android/app/Activity.html#StartingActivities
>>>
>>>
>>> On Wed, Jul 28, 2010 at 7:57 PM, cellurl  wrote:
>>>
 Can you elaborate a bit please? Intent covers so much material.
 Thank you very much!
 Jim


 On Jul 25, 10:36 am, Paul Turchenko  wrote:
 > Use intent to pick a picture and start activity for result
 >
 > On Jul 24, 10:47 pm, cellurl  wrote:
 >
 > > How do I launch some external application to show phone pictures and
 > > let users pick one?
 >
 > > The picture will serve as a background in my app.
 > > So all in all, I just need their selection. e.g. the path/name once
 > > they have chosen it.
 >
 > > Something simple would be nice ;-)
 >
 > > thanks
 > > jim

 --
 You received this message because you are subscribed to the Google
 Groups "Android Beginners" group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

>>>
>>>
>>>
>>> --
>>> //Nick Richardson
>>> //richardson.n...@gmail.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Beginners" group.
>>>
>>> NEW! Try asking and tagging your question on Stack Overflow at
>>> http://stackoverflow.com/questions/tagged/android
>>>
>>> To unsubscribe from this group, send email to
>>> android-beginners+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-beginners?hl=en
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> NEW! Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>> To unsubscribe from this group, send email to
>> android-beginners+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-beginners?hl=en
>>
>
>
>
> --
> //Nick Richardson
> //richardson.n...@gmail.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-29 Thread Nick Richardson
Indeed it would - I was hoping celluri would pick that part up on his own,
but you had to go and ruin the surprise!! :)

On Thu, Jul 29, 2010 at 1:58 PM, Justin Anderson wrote:

> > Step 4: 
> That would be onActivityResult()... taken directly from the link you posted
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
> On Thu, Jul 29, 2010 at 2:53 PM, Nick Richardson <
> richardson.n...@gmail.com> wrote:
>
>> Step 1: Create new activity
>> Step 2: Create intent to launch that activity
>> Step 3: startActivityForResult()
>> Step 4: 
>> Step 5: Profit!
>>
>>
>> http://developer.android.com/reference/android/app/Activity.html#StartingActivities
>>
>>
>> On Wed, Jul 28, 2010 at 7:57 PM, cellurl  wrote:
>>
>>> Can you elaborate a bit please? Intent covers so much material.
>>> Thank you very much!
>>> Jim
>>>
>>>
>>> On Jul 25, 10:36 am, Paul Turchenko  wrote:
>>> > Use intent to pick a picture and start activity for result
>>> >
>>> > On Jul 24, 10:47 pm, cellurl  wrote:
>>> >
>>> > > How do I launch some external application to show phone pictures and
>>> > > let users pick one?
>>> >
>>> > > The picture will serve as a background in my app.
>>> > > So all in all, I just need their selection. e.g. the path/name once
>>> > > they have chosen it.
>>> >
>>> > > Something simple would be nice ;-)
>>> >
>>> > > thanks
>>> > > jim
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Beginners" group.
>>>
>>> NEW! Try asking and tagging your question on Stack Overflow at
>>> http://stackoverflow.com/questions/tagged/android
>>>
>>> To unsubscribe from this group, send email to
>>> android-beginners+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-beginners?hl=en
>>>
>>
>>
>>
>> --
>> //Nick Richardson
>> //richardson.n...@gmail.com
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> NEW! Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>> To unsubscribe from this group, send email to
>> android-beginners+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-beginners?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
//Nick Richardson
//richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


  1   2   3   4   5   6   7   8   9   10   >