[android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
As I said, this code works for 20,000 users, but not this one.

If you understood Java object references, you would know that just
because you assing an object, it's still the same object, so

this.getApplicationContext() is the same as

Context parentcontext;
parentcontext = this;
parentcontext.getApplicationcontext();
-



On Jan 24, 3:47 pm, Zsolt Vasvari  wrote:
> What's your point?
>
> On Jan 24, 3:23 pm, Mukesh Srivastav  wrote:
>
>
>
> > Why not create a parentcontext and use this context for calling
> > getApplicationcontext().
>
> > like
>
> > Context parentcontext;
>
> > parentcontext = this; //must be the contrustor, pass the calling context
> > here.
>
> > and try using parentcontext.getApplicationcontext();
>
> > --
> > Warm Regards,
> > *Mukesh Kumar*,
> > Android Consultant/Freelancer,
> > India,Hyderabad.
>
> > On Tue, Jan 24, 2012 at 12:49 PM, Zsolt Vasvari  wrote:
> > > To ellaborate, it's inside the doWakefulWork() method.
>
> > > On Jan 24, 3:16 pm, Zsolt Vasvari  wrote:
> > > > In a Service...   Actually, it's WakefulIntentService, extending your
> > > > class.
>
> > > > I only got a single report of this failure (I use ACRA) and it's in a
> > > > commonly executed code.
>
> > > > On Jan 24, 8:34 am, Mark Murphy  wrote:
>
> > > > > Where are you executing this statement?
>
> > > > > On Mon, Jan 23, 2012 at 6:41 PM, Zsolt Vasvari 
> > > wrote:
> > > > > > Has anybody seen this happen?
>
> > > > > > I have the following line in my code:
>
> > > > > > XmlResourceParser xml =
>
> > > getAppplicationContext().getResources().getXml(R.xml.database_tables);
>
> > > > > > Somebody reported a NPE on that line, so it can either be
> > > > > > getAppplicationContext() or getResources() returning a null.   The
> > > > > > same line works for countless other users.
>
> > > > > > Anybody has any clues?
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "Android Developers" group.
> > > > > > To post to this group, send email to
> > > android-developers@googlegroups.com
> > > > > > To unsubscribe from this group, send email to
> > > > > > android-developers+unsubscr...@googlegroups.com
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > > --
> > > > > Mark Murphy (a Commons Guy)http://commonsware.com|
> > >http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > > > Android App Developer Books:http://commonsware.com/books-Hidequoted
> > > text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en-Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
What's your point?

On Jan 24, 3:23 pm, Mukesh Srivastav  wrote:
> Why not create a parentcontext and use this context for calling
> getApplicationcontext().
>
> like
>
> Context parentcontext;
>
> parentcontext = this; //must be the contrustor, pass the calling context
> here.
>
> and try using parentcontext.getApplicationcontext();
>
> --
> Warm Regards,
> *Mukesh Kumar*,
> Android Consultant/Freelancer,
> India,Hyderabad.
>
>
>
> On Tue, Jan 24, 2012 at 12:49 PM, Zsolt Vasvari  wrote:
> > To ellaborate, it's inside the doWakefulWork() method.
>
> > On Jan 24, 3:16 pm, Zsolt Vasvari  wrote:
> > > In a Service...   Actually, it's WakefulIntentService, extending your
> > > class.
>
> > > I only got a single report of this failure (I use ACRA) and it's in a
> > > commonly executed code.
>
> > > On Jan 24, 8:34 am, Mark Murphy  wrote:
>
> > > > Where are you executing this statement?
>
> > > > On Mon, Jan 23, 2012 at 6:41 PM, Zsolt Vasvari 
> > wrote:
> > > > > Has anybody seen this happen?
>
> > > > > I have the following line in my code:
>
> > > > > XmlResourceParser xml =
>
> > getAppplicationContext().getResources().getXml(R.xml.database_tables);
>
> > > > > Somebody reported a NPE on that line, so it can either be
> > > > > getAppplicationContext() or getResources() returning a null.   The
> > > > > same line works for countless other users.
>
> > > > > Anybody has any clues?
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > Mark Murphy (a Commons Guy)http://commonsware.com|
> >http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > > Android App Developer Books:http://commonsware.com/books-Hidequoted
> > text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Encoder???

2012-01-23 Thread muhammad.ume...@hotmail.com
hi,
   Please anyone tell me that, which encoder i can use on
onPreviewFrame to create a video, and i want to send this encoded
video to network, please suggest me which encoder that android
support.

Thanks and Regards

umer

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Mukesh Srivastav
Why not create a parentcontext and use this context for calling
getApplicationcontext().

like

Context parentcontext;

parentcontext = this; //must be the contrustor, pass the calling context
here.


and try using parentcontext.getApplicationcontext();

-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Tue, Jan 24, 2012 at 12:49 PM, Zsolt Vasvari  wrote:

> To ellaborate, it's inside the doWakefulWork() method.
>
> On Jan 24, 3:16 pm, Zsolt Vasvari  wrote:
> > In a Service...   Actually, it's WakefulIntentService, extending your
> > class.
> >
> > I only got a single report of this failure (I use ACRA) and it's in a
> > commonly executed code.
> >
> > On Jan 24, 8:34 am, Mark Murphy  wrote:
> >
> >
> >
> > > Where are you executing this statement?
> >
> > > On Mon, Jan 23, 2012 at 6:41 PM, Zsolt Vasvari 
> wrote:
> > > > Has anybody seen this happen?
> >
> > > > I have the following line in my code:
> >
> > > > XmlResourceParser xml =
> > > >
> getAppplicationContext().getResources().getXml(R.xml.database_tables);
> >
> > > > Somebody reported a NPE on that line, so it can either be
> > > > getAppplicationContext() or getResources() returning a null.   The
> > > > same line works for countless other users.
> >
> > > > Anybody has any clues?
> >
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
> >
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
> >
> > > Android App Developer Books:http://commonsware.com/books-Hide quoted
> text -
> >
> > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
To ellaborate, it's inside the doWakefulWork() method.

On Jan 24, 3:16 pm, Zsolt Vasvari  wrote:
> In a Service...   Actually, it's WakefulIntentService, extending your
> class.
>
> I only got a single report of this failure (I use ACRA) and it's in a
> commonly executed code.
>
> On Jan 24, 8:34 am, Mark Murphy  wrote:
>
>
>
> > Where are you executing this statement?
>
> > On Mon, Jan 23, 2012 at 6:41 PM, Zsolt Vasvari  wrote:
> > > Has anybody seen this happen?
>
> > > I have the following line in my code:
>
> > > XmlResourceParser xml =
> > > getAppplicationContext().getResources().getXml(R.xml.database_tables);
>
> > > Somebody reported a NPE on that line, so it can either be
> > > getAppplicationContext() or getResources() returning a null.   The
> > > same line works for countless other users.
>
> > > Anybody has any clues?
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android App Developer Books:http://commonsware.com/books-Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Is Android developers website down?

2012-01-23 Thread Oli Wright
No issues here connecting using sky broadband or 3 mobile broadband in London.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
In a Service...   Actually, it's WakefulIntentService, extending your
class.

I only got a single report of this failure (I use ACRA) and it's in a
commonly executed code.

On Jan 24, 8:34 am, Mark Murphy  wrote:
> Where are you executing this statement?
>
>
>
>
>
> On Mon, Jan 23, 2012 at 6:41 PM, Zsolt Vasvari  wrote:
> > Has anybody seen this happen?
>
> > I have the following line in my code:
>
> > XmlResourceParser xml =
> > getAppplicationContext().getResources().getXml(R.xml.database_tables);
>
> > Somebody reported a NPE on that line, so it can either be
> > getAppplicationContext() or getResources() returning a null.   The
> > same line works for countless other users.
>
> > Anybody has any clues?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Starting with game development

2012-01-23 Thread Peter Webb
There are lots of examples on the web, but they generally of poor
quality. Even the game demos in the SDK (eg Lunar Lander) have serious
bugs.

The book "Beginning Android Games" by Mario Zechner provides a very
good introduction and supplies a 2D Game engine that actually works.

http://www.amazon.com/Beginning-Android-Games-Mario-Zechner/dp/1430230428/ref=sr_1_1?ie=UTF8&qid=1327388052&sr=8-1

Spending $24 on buying this book will be more useful than spending 100
hours searching the net. It explains exactly how to build a 2D game.



On Jan 19, 12:29 am, Rohit Sharma  wrote:
> I am going to start with android game development (initially 2D). Now
> please let me know about how to embed objects into games. Does it
> require using some game engine or we need to manually do this b
> performing lots of coding. Also let me know about some good references
> to start with.Thanks in advance !

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to reload app without restarting emulator

2012-01-23 Thread Etienne
To reload an app without restarting emulator, just uninstall the app on the 
emulator, then in Eclipse choose to run the application.  This will 
reinstall the application and run the latest version of your app on the 
current emulator.  This is the fastest process of reloading an app that I 
have discovered.  Has anyone else been able to reload an app with a faster 
process?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: find out which activity resumed/started my activity?

2012-01-23 Thread for android
I was able to figure out a way to achieve my requirement of having a
password entered whenever my app has been triggered from another
application.Basically extend this class except for my lancher activity.

public abstract class BaseActivity_old extends Activity {
 boolean isCreated = false;

protected abstract void setLayout();

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
isCreated = true;

}



@Override
public void onBackPressed() {
// TODO Auto-generated method stub
Log.d("BaseActivity", "this is onBackPressed");
setResult(RESULT_OK, getIntent());
finish();
super.onBackPressed();
}


@Override
protected void onResume() {
// TODO Auto-generated method stub
super.onResume();
 if (isCreated) {
isCreated = false;
setLayout();// my app specific imple.. app is called from my own application
return;
}


if (hasNavigatedFromAppBackButton) {
Log.d("BaseActivity", "this is called from my application");
setLayout();// my app specific imple
} else {

setValidationLayout();
Log.d("BaseActivity", "this is not called from my application");
}
hasNavigatedFromAppBackButton = false;
}

private void setValidationLayout() {
///my app specific imple
}

protected void callMyAppActivity(Intent intent) {
intent.putExtra("my_app", true);
startActivityForResult(intent, 123);
}

boolean hasNavigatedFromAppBackButton = false;

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent
data) {
// TODO Auto-generated method stub
hasNavigatedFromAppBackButton = true;
Log.d("BaseActivity", "onActivityResult " + requestCode);
super.onActivityResult(requestCode, resultCode, data);
}

}


On Mon, Jan 23, 2012 at 10:29 PM, Mark Murphy wrote:

> On Mon, Jan 23, 2012 at 11:24 AM, uday kiran jandhyala
>  wrote:
> > So far in Android, there is no way we could query WindowManager to
> > retrieve a list of titles of all such "Windows"...
> > Is this statement right?
>
> Correct.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How can use node.js in android

2012-01-23 Thread Mukesh Srivastav
Instead of using Android native SDK, you need to switch to PhoneGap for
Android that helps.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Tue, Jan 24, 2012 at 8:15 AM, Kristopher Micinski  wrote:

> Right, which is why I point out that, if you're developing a web app,
> and running node.js, this isn't really the place to be asking those
> questions.  If he asks technical questions about how, for example,
> node.js (and javascript in general) can interact with a WebView, this
> would be appropriate, but in general web app development starts to
> wander off from the Android SDK..
>
> kris
>
> On Mon, Jan 23, 2012 at 9:38 PM, Kumar Bibek  wrote:
> > When he says node.js, he probably meant an web app. And for that, you
> > will need to do a lot more.
> >
> > On Jan 24, 7:01 am, Kristopher Micinski 
> > wrote:
> >> Didn't I say that:
> >>   "If you are writing a web app which will run on Android, this is
> >> more applicable,"
> >>
> >> I guess you could argue that there is a difference between a web app
> >> and an app that runs in browser on the device, But I don't think it's
> >> that great of one..
> >>
> >> kris
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> On Mon, Jan 23, 2012 at 8:47 PM, John Coryat  wrote:
> >> > He might be asking if he can use node.js within a webview... That
> would be
> >> > applicable to this group.
> >>
> >> > -John Coryat
> >>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to
> android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Unable to open my own apk

2012-01-23 Thread Mukesh Srivastav
Hi There,

Please follow the below steps to find out the version of your phone.

1.Go to Settings

2. Scroll down till the end of the Settings, there you will find 'About
phone'-- TAP That 'About Phone'


There you will find the Android Version.  check it and build the apk
according to that version.'

2nd. I had similar problem, I had to 'Delete' the bin directory of the
application source and then re-compiled it,deployed.


Try that as well.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Mon, Jan 23, 2012 at 10:01 PM, Rémy CASTALDI wrote:

> Hi everybody
>
> I'm new on this forum (and sorry for my frenchy english)
> I'm an Android developer and I have no problem to produce apk for all
> phones excepted for the XPERIA X10 Mini pro.
> With this device I always obtain : "Problem during the kit
> analysis" (my translation of the french message).
> When I try to open details of the apk (with a file manager) I obtain :
> "Unable to open x.apk as an APK" (still my translation of the
> french message).
>
> Of course the option to allow installation of an application which
> doesn't come from the market is checked.
>
> I tried to build the apk from 1.6 to 2.3 android version for the same
> result.
>
> Microsoftware version : 2.1-update 1
> Kernel version : 2.6.29
> Build version : 2.0.2.A.0.24
>
> First question : What is the version of my android in those 3 values ?
> Second question : Is there any specific thing to know for this
> device ?
>
> Thanks for your answers
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




--

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to set the preferred APN through code?

2012-01-23 Thread Putti Me
Thanks Sayed for the sample code. But unfortunately even that didn't work.
The 'insert' i.e. the line:


getContentResolver().insert(*PREFERRED_CONTENT_URI*, values);


always returns null.

I'm using 2.3.3. Looks like there is something missing.


> Note that, as of Android 4.0, this is no longer possible.
We can at least change the individual APN values, right.

i.e. use the following line of code:


getContentResolver().update(Uri.*parse("content://telephony/carriers"**),
values, blah, blah, blah);
*

Otherwise APNDroid won't work.


Thanks

On Tue, Jan 24, 2012 at 12:17 AM, Tom  wrote:

> Note that, as of Android 4.0, this is no longer possible.
>
> The permission still exists, but any attempt to write the APN will fail.
>
> Presumably the carriers put pressure on Google to block this capability...
>too bad.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Starting with game development

2012-01-23 Thread Kristopher Micinski
This group gets a near carbon copy of this email about once every five
days, I'm starting to wonder if someone has a clever email generation
algorithm that asks the same question in a variety of ways.. :-).

So search "beginning android game development" and I think you'll find
probably a hundred threads on this topic in this group's history..

kris

On Wed, Jan 18, 2012 at 8:29 AM, Rohit Sharma  wrote:
> I am going to start with android game development (initially 2D). Now
> please let me know about how to embed objects into games. Does it
> require using some game engine or we need to manually do this b
> performing lots of coding. Also let me know about some good references
> to start with.Thanks in advance !
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How can use node.js in android

2012-01-23 Thread Kristopher Micinski
Right, which is why I point out that, if you're developing a web app,
and running node.js, this isn't really the place to be asking those
questions.  If he asks technical questions about how, for example,
node.js (and javascript in general) can interact with a WebView, this
would be appropriate, but in general web app development starts to
wander off from the Android SDK..

kris

On Mon, Jan 23, 2012 at 9:38 PM, Kumar Bibek  wrote:
> When he says node.js, he probably meant an web app. And for that, you
> will need to do a lot more.
>
> On Jan 24, 7:01 am, Kristopher Micinski 
> wrote:
>> Didn't I say that:
>>   "If you are writing a web app which will run on Android, this is
>> more applicable,"
>>
>> I guess you could argue that there is a difference between a web app
>> and an app that runs in browser on the device, But I don't think it's
>> that great of one..
>>
>> kris
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Jan 23, 2012 at 8:47 PM, John Coryat  wrote:
>> > He might be asking if he can use node.js within a webview... That would be
>> > applicable to this group.
>>
>> > -John Coryat
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can use node.js in android

2012-01-23 Thread Kumar Bibek
When he says node.js, he probably meant an web app. And for that, you
will need to do a lot more.

On Jan 24, 7:01 am, Kristopher Micinski 
wrote:
> Didn't I say that:
>   "If you are writing a web app which will run on Android, this is
> more applicable,"
>
> I guess you could argue that there is a difference between a web app
> and an app that runs in browser on the device, But I don't think it's
> that great of one..
>
> kris
>
>
>
>
>
>
>
> On Mon, Jan 23, 2012 at 8:47 PM, John Coryat  wrote:
> > He might be asking if he can use node.js within a webview... That would be
> > applicable to this group.
>
> > -John Coryat
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Spinner itemselectedlistener not working after extending ArrayAdapter

2012-01-23 Thread Kumar Bibek
You are probably setting/un-setting the listener somewhere else as well in
your code. May be in the on pause method.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jan 24, 2012 at 7:54 AM, James Black wrote:

> In the onCreate method I define this:
> userNameSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {
> @Override
>  public void onItemSelected(AdapterView parentView,
> View selectedItemView, int position, long id) {
>  Log.i(TAG, position);
> }
> });
>
> In onResume and after calling a dialog where a new row can be added to my
> list I call this, and it displays the Spinner as I expect when I touch it,
> but, the OnItemSelectedListener doesn't appear to be working, as it never
> calls the Log method in onItemSelected.  I am curious what I did wrong, or
> if my order is wrong.
>  userNameSpinner.setAdapter(new ArrayAdapter(mContext,
> android.R.layout.simple_list_item_1, mylist
>  .toArray(new String[0])) {
> @Override
> public View getDropDownView(int position, View convertView,
>  android.view.ViewGroup parent) {
> View v = convertView;
> if (v == null) {
>  Context mContext = this.getContext();
> LayoutInflater vi = (LayoutInflater) mContext
>  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
> v = vi.inflate(R.layout.row, null);
>  }
> TextView tv = (TextView) v.findViewById(R.id.spinnerTarget);
> tv.setText(mylist.get(position));
>  tv.setTextColor(Color.RED);
> return v;
> }
>  });
>
>
> --
> "I know that you believe you understand what you think I said, but I'm not
> sure you realize that what you heard is not what I meant."
> - Robert McCloskey
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Spinner itemselectedlistener not working after extending ArrayAdapter

2012-01-23 Thread James Black
In the onCreate method I define this:
userNameSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView parentView,
View selectedItemView, int position, long id) {
 Log.i(TAG, position);
}
});

In onResume and after calling a dialog where a new row can be added to my
list I call this, and it displays the Spinner as I expect when I touch it,
but, the OnItemSelectedListener doesn't appear to be working, as it never
calls the Log method in onItemSelected.  I am curious what I did wrong, or
if my order is wrong.
userNameSpinner.setAdapter(new ArrayAdapter(mContext,
android.R.layout.simple_list_item_1, mylist
.toArray(new String[0])) {
@Override
public View getDropDownView(int position, View convertView,
android.view.ViewGroup parent) {
View v = convertView;
if (v == null) {
Context mContext = this.getContext();
LayoutInflater vi = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(R.layout.row, null);
}
TextView tv = (TextView) v.findViewById(R.id.spinnerTarget);
tv.setText(mylist.get(position));
tv.setTextColor(Color.RED);
return v;
}
});


-- 
"I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant."
- Robert McCloskey

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How can use node.js in android

2012-01-23 Thread Kristopher Micinski
Didn't I say that:
  "If you are writing a web app which will run on Android, this is
more applicable,"

I guess you could argue that there is a difference between a web app
and an app that runs in browser on the device, But I don't think it's
that great of one..

kris

On Mon, Jan 23, 2012 at 8:47 PM, John Coryat  wrote:
> He might be asking if he can use node.js within a webview... That would be
> applicable to this group.
>
> -John Coryat
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How can use node.js in android

2012-01-23 Thread John Coryat
He might be asking if he can use node.js within a webview... That would be 
applicable to this group.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Swipe controls

2012-01-23 Thread HairyPlotter
 Heres a bit of the code that manages the movement.. what do i need to
do to it

if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) {
            if (mDirection != NORTH) {
                mNextDirection = SOUTH;
            }
            return (true);
        }

On Jan 23, 4:54 pm, HairyPlotter  wrote:
> I wanted to add swipe controls to my app. Like if you swipe up on the
> screen it will move the character up.  I already have it set up with
> the Dpad controls but i wanted to make this a secondary option.  Where
> can i find this action. I know dpad controls are in the key event
> class, where are swipe or touch controls.  Will i be able to add them
> like i did with the other ones or is there a whole code to go with
> them
> -Hope this made sense (im kinda new to java and android), Matt

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Kristopher Micinski
I would agree with that, there are other uses as well: phones sitting
in a store, privacy or other filters, etc.,

kris

On Mon, Jan 23, 2012 at 7:38 PM, Zsolt Vasvari  wrote:
> I assume the real requirement is prevent employees with messing with
> the phone's settings.
>
> IMO, this should probably a part of the android.app.admin package.
> Seems like a common and reasonable thing to restrict.
>
> On Jan 24, 8:18 am, Chris Mawata  wrote:
>> Actually my employer told me to create an android app that prevents
>> other apps from
>> blocking access to the settings menus. Do you see this couldn't
>> possible work? There
>> are shared aspects of the framework that no one app should have
>> hegemony over.
>>
>> On Jan 23, 1:35 pm, Yar Lag  wrote:
>>
>>
>>
>> > My employer has told me to create an android app to do the following:
>>
>> > The ability to password protect specific submenus in the Settings menu
>> > (i.e. specifically Privacy, Applications, and Location & Security).
>>
>> > Is this possible without rooting?- Hide quoted text -
>>
>> - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Zsolt Vasvari
I assume the real requirement is prevent employees with messing with
the phone's settings.

IMO, this should probably a part of the android.app.admin package.
Seems like a common and reasonable thing to restrict.

On Jan 24, 8:18 am, Chris Mawata  wrote:
> Actually my employer told me to create an android app that prevents
> other apps from
> blocking access to the settings menus. Do you see this couldn't
> possible work? There
> are shared aspects of the framework that no one app should have
> hegemony over.
>
> On Jan 23, 1:35 pm, Yar Lag  wrote:
>
>
>
> > My employer has told me to create an android app to do the following:
>
> > The ability to password protect specific submenus in the Settings menu
> > (i.e. specifically Privacy, Applications, and Location & Security).
>
> > Is this possible without rooting?- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: ACTION_POWER_CONNECTED broadcast receiver not recognize by ICS

2012-01-23 Thread Mark Murphy
You cannot register for ACTION_BATTERY_CHANGED from the manifest. It
has to be via registerReceiver() in Java code.

On Mon, Jan 23, 2012 at 5:21 PM, SimonP  wrote:
> No idea but I'm also looking for a solution, I'm using a nearly
> identical bit of code to you and getting the same error.
>
> The really weird thing was I changed a load of code to see if I could
> get an event from just the battery level changing instead.
>
> I used the following in the manifest:
>  android:enabled="true" android:exported="true">
>     
>          android:name="android.intent.action.ACTION_BATTERY_CHANGED" />
>     
> 
>
>  and it still happened, even placing it into a new project and new
> AVB.
>
> Basically I know I have not referenced ACTION_POWER_CONNECTED in
> anything I put in there but in the eclipse LogCat logs I still get the
> exact same error as before referencing it;  The only value I have seen
> change is the number in brackets in PowerUI().
>
> Anyone got any ideas?  What am I doing wrong, I know it'll be
> something obvious but I'm battering my head off the desk at this
> point...
>
>
> On Jan 8, 1:32 pm, cl  wrote:
>> I wanted to detect when the phone is pluged into the charger.
>>
>> I created a BroadcastReceiver as below
>>
>> public class PowerReceiver extends BroadcastReceiver {
>>     public void onReceive(Context context, Intent intent) {
>>         if (intent.getAction().equals(Intent.ACTION_POWER_CONNECTED))
>> {
>>             Log.d("DEBUG", "Power connected...");
>>         }
>>     }
>>
>> }
>>
>> with following in the manifest
>>
>>     
>>         
>>             > android:name="android.intent.action.ACTION_POWER_CONNECTED" />
>>         
>>     
>>
>> Everything work as expected on 2.2 (emulator and phone), but on ICS
>> (emulator 4.0.3 and phone 4.0.1),
>> the LogCat show
>>
>> 01-08 21:02:02.090: W/PowerUI(143): unknown intent: Intent
>> { act=android.intent.action.ACTION_POWER_CONNECTED flg=0x1010 }
>>
>> Anybody know reason, and a solution. Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] "Editor Framework" in android?

2012-01-23 Thread Mark Murphy
No, sorry, there is no equivalent of GWT's editor framework built into Android.

On Mon, Jan 23, 2012 at 3:01 PM, Elhanan Maayan  wrote:
> hi..
>
> while i'm new to android development i just finishing the notepad tutorial
> (v3) and form what i can tell there is a lot of "DTO" boiler plate code
> going around (in case of the bundle save and bundle load in instance
> state management.
>
> coming from gwt's world, i'm got to know gwt's editor framwork, which allows
> you to bind simple model beans to the view part by using
> naming conventions and implementing a marker  interface for the view, i
> guess there by now a lot of EXTERNAL frameworks for data binding in
> android.
> but i'd like to know if there's an internal build-in functionality for this.
> (i'm not sure exactly but i i think the AdapterViews may do that.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Is Android developers website down?

2012-01-23 Thread Mark Murphy
I was having some odd DNS resolution issues that seemed to be tied to
Googly domains a little bit ago. Otherwise, I haven't had any hiccups
accessing the site.

On Mon, Jan 23, 2012 at 8:54 AM, hooman os  wrote:
> Hi Guys
>
> I am from the UK and trying to access android developers website. But I keep
> getting server timeout. (I can access internet. )
>
> Do you guys have any news if the server is on maintenance?
>
> Hooman
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] getApplicationContext() returns null?

2012-01-23 Thread Mark Murphy
Where are you executing this statement?

On Mon, Jan 23, 2012 at 6:41 PM, Zsolt Vasvari  wrote:
> Has anybody seen this happen?
>
> I have the following line in my code:
>
> XmlResourceParser xml =
> getAppplicationContext().getResources().getXml(R.xml.database_tables);
>
> Somebody reported a NPE on that line, so it can either be
> getAppplicationContext() or getResources() returning a null.   The
> same line works for countless other users.
>
> Anybody has any clues?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Using multiple API versions

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 6:50 PM, Bret Foreman  wrote:
> I made an exact copy of the project under a new name, did a rebuild,
> and the ClassNotFoundException went away. Chalk it up to another weird
> artifact of the Android build system.

I think the California Raisins were trying to stage a breakout of
their fellow dried fruit.

:-)

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Chris Mawata
Actually my employer told me to create an android app that prevents
other apps from
blocking access to the settings menus. Do you see this couldn't
possible work? There
are shared aspects of the framework that no one app should have
hegemony over.

On Jan 23, 1:35 pm, Yar Lag  wrote:
> My employer has told me to create an android app to do the following:
>
> The ability to password protect specific submenus in the Settings menu
> (i.e. specifically Privacy, Applications, and Location & Security).
>
> Is this possible without rooting?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Using multiple API versions

2012-01-23 Thread Bret Foreman
I made an exact copy of the project under a new name, did a rebuild,
and the ClassNotFoundException went away. Chalk it up to another weird
artifact of the Android build system.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
Has anybody seen this happen?

I have the following line in my code:

XmlResourceParser xml =
getAppplicationContext().getResources().getXml(R.xml.database_tables);

Somebody reported a NPE on that line, so it can either be
getAppplicationContext() or getResources() returning a null.   The
same line works for countless other users.

Anybody has any clues?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How can use node.js in android

2012-01-23 Thread Kristopher Micinski
Are you writing an App?  If this is the case, then you *can't* use
node.js, because node.js is written to run on browsers, it's
Javascript, it's not Java, and it doesn't fit within the framework.
If you are writing a web app which will run on Android, this is more
applicable, but this is not the right group to ask such a question, as
this group is strictly for development with the Android SDK.

kris

On Mon, Jan 23, 2012 at 10:56 AM, jose daniel cardona
 wrote:
> Hi everybody, i'm started in the world of the android development and
> I've run into a problem: I need to use node.js in the mobile device,
> the architecture like as P2P, I would like to know experiences of this
> kind, feasibility, and if possible some success or a working sample of
> these technologies together
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Using multiple API versions

2012-01-23 Thread Bret Foreman
Here's the exception I'm getting: 01-23 15:11:07.436: E/
AndroidRuntime(5677): java.lang.RuntimeException: Unable to
instantiate activity ComponentInfo{com.sensor2cloud.raisin/
com.sensor2cloud.raisin.RaisinMainActivity}:
java.lang.ClassNotFoundException:
com.sensor2cloud.raisin.RaisinMainActivity in loader
dalvik.system.PathClassLoader[/data/app/com.sensor2cloud.raisin-2.apk]

Note that the PathClassLoader is looking for the class in
raisin-2.apk, which is odd. My project is called raisin, not raisin-2.
I'm guessing I need to clean out some stale build targets somewhere. I
tried a "clean" and then build and still get the same exact error. I
tried uninstalling/reinstalling the app from the phone and still get
the same error. Any idea what might be wrong?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ACTION_POWER_CONNECTED broadcast receiver not recognize by ICS

2012-01-23 Thread SimonP
No idea but I'm also looking for a solution, I'm using a nearly
identical bit of code to you and getting the same error.

The really weird thing was I changed a load of code to see if I could
get an event from just the battery level changing instead.

I used the following in the manifest:

    
        
    


 and it still happened, even placing it into a new project and new
AVB.

Basically I know I have not referenced ACTION_POWER_CONNECTED in
anything I put in there but in the eclipse LogCat logs I still get the
exact same error as before referencing it;  The only value I have seen
change is the number in brackets in PowerUI().

Anyone got any ideas?  What am I doing wrong, I know it'll be
something obvious but I'm battering my head off the desk at this
point...


On Jan 8, 1:32 pm, cl  wrote:
> I wanted to detect when the phone is pluged into the charger.
>
> I created a BroadcastReceiver as below
>
> public class PowerReceiver extends BroadcastReceiver {
>     public void onReceive(Context context, Intent intent) {
>         if (intent.getAction().equals(Intent.ACTION_POWER_CONNECTED))
> {
>             Log.d("DEBUG", "Power connected...");
>         }
>     }
>
> }
>
> with following in the manifest
>
>     
>         
>              android:name="android.intent.action.ACTION_POWER_CONNECTED" />
>         
>     
>
> Everything work as expected on 2.2 (emulator and phone), but on ICS
> (emulator 4.0.3 and phone 4.0.1),
> the LogCat show
>
> 01-08 21:02:02.090: W/PowerUI(143): unknown intent: Intent
> { act=android.intent.action.ACTION_POWER_CONNECTED flg=0x1010 }
>
> Anybody know reason, and a solution. Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Is Android developers website down?

2012-01-23 Thread hooman os
Hi Guys

I am from the UK and trying to access android developers website. But I
keep getting server timeout. (I can access internet. )

Do you guys have any news if the server is on maintenance?

Hooman

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] "Editor Framework" in android?

2012-01-23 Thread Elhanan Maayan
hi..

while i'm new to android development i just finishing the notepad tutorial 
(v3) and form what i can tell there is a lot of "DTO" boiler plate code 
going around (in case of the bundle save and bundle load in instance 
state management.

coming from gwt's world, i'm got to know gwt's editor framwork, which 
allows you to bind simple model beans to the view part by using 
naming conventions and implementing a marker  interface for the view, i 
guess there by now a lot of EXTERNAL frameworks for data binding in 
android. 
but i'd like to know if there's an internal build-in functionality for 
this. (i'm not sure exactly but i i think the AdapterViews may do that. 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How can use node.js in android

2012-01-23 Thread jose daniel cardona
Hi everybody, i'm started in the world of the android development and
I've run into a problem: I need to use node.js in the mobile device,
the architecture like as P2P, I would like to know experiences of this
kind, feasibility, and if possible some success or a working sample of
these technologies together

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Problem with my C2DM account

2012-01-23 Thread shmulik-sharon
I have signed up for C2DM 4 days ago, and I get an aprroval with the
account shmulikc...@gmail.com
when I try to get the authentication token I get 403 error (but when I
use my regular gmail account I get a respond)
can anybody help me? (I tried to sign up again but the problem wasn't
solved)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] MP3Decoder.cpp vs SoftMp3.cpp

2012-01-23 Thread tejas
I was interested in finding out the major differences from the design
point of view between the new and the old mp3 decoder.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Swipe controls

2012-01-23 Thread HairyPlotter
I wanted to add swipe controls to my app. Like if you swipe up on the
screen it will move the character up.  I already have it set up with
the Dpad controls but i wanted to make this a secondary option.  Where
can i find this action. I know dpad controls are in the key event
class, where are swipe or touch controls.  Will i be able to add them
like i did with the other ones or is there a whole code to go with
them
-Hope this made sense (im kinda new to java and android), Matt

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Unable to open my own apk

2012-01-23 Thread Rémy CASTALDI
Hi everybody

I'm new on this forum (and sorry for my frenchy english)
I'm an Android developer and I have no problem to produce apk for all
phones excepted for the XPERIA X10 Mini pro.
With this device I always obtain : "Problem during the kit
analysis" (my translation of the french message).
When I try to open details of the apk (with a file manager) I obtain :
"Unable to open x.apk as an APK" (still my translation of the
french message).

Of course the option to allow installation of an application which
doesn't come from the market is checked.

I tried to build the apk from 1.6 to 2.3 android version for the same
result.

Microsoftware version : 2.1-update 1
Kernel version : 2.6.29
Build version : 2.0.2.A.0.24

First question : What is the version of my android in those 3 values ?
Second question : Is there any specific thing to know for this
device ?

Thanks for your answers

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Hi

2012-01-23 Thread Er.Swapnil Malviya
Presently i am using iball tablet slide after i am trying to root then the root 
unsubscribed not install properly lot of area and application tried but result 
are same but thats not a mazer problem to me,  after that my tab volume totally 
muted but the device notification shown volume level not worked it and 
offcource even iam self test by the netquin antivirus appication siron in the 
lost phone demo feature the siron volume worked few second all time it mean 
thats not a hardware probleme.

 I humbly requested to you plz help me to solved out because the service 
centere or Customer support  not available here also no one Er. Or repairing 
shop not able to solved out, behalf of humanity plz give the solution.

  Thanks in advance i am wauting positive responce inside of yours .


Yours sincerely


Comman persion, india

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Using multiple API versions

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 5:38 PM, Bret Foreman  wrote:
>> > Something in the Activity constructor for API 10 is barfing in Android
>> > 2.2.2, which I guess is no real surprise.
>>
>> It's surprising to me. What class is not being found?
>
> The MainActivity class is not being found. In other words, it can't
> instantiate an Activity. This is my first time trying to build at one
> level and run at another. Is it supposed to work?

Absolutely. It's part of the bedrock of Android itself -- the ability
to code to higher API levels yet run them on older devices, so long as
you don't try *executing* anything that is too new (though the story
gets a bit more complicated for Android 1.x). I do it every damn day
and twice on Sundays. :-)

> I'll re-code the section using Build.VERSION and see if I can get the
> other developer to drop that in.

There are certainly places where just handling the runtime exception
is OK (e.g., ActivityNotFoundException), but I wouldn't do that here.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Using multiple API versions

2012-01-23 Thread Bret Foreman


On Jan 23, 2:20 pm, Mark Murphy  wrote:
> On Mon, Jan 23, 2012 at 5:09 PM, Bret Foreman  wrote:
> > But if I build with API 10 on run on Android 2.2.2 then my
> > MainActivity throws a ClassNotFoundException.
>
> > Something in the Activity constructor for API 10 is barfing in Android
> > 2.2.2, which I guess is no real surprise.
>
> It's surprising to me. What class is not being found?
>

The MainActivity class is not being found. In other words, it can't
instantiate an Activity. This is my first time trying to build at one
level and run at another. Is it supposed to work?

> > Is there a good way to fix this short of modifying the other guy's
> > code to remove the call to createInsecureRfcommSocketToServiceRecord
> > and always call createRfcommSocketToServiceRecord?
>
> Compile it to a JAR using API Level 10. Reference the JAR from your
> API Level 8 project. I'm a bit dubious about NoSuchMethodError (I
> would expect a VerifyError), but otherwise this might work.
>
> The other developer really should be using Build.VERSION, just for
> this sort of reason.
>

I'll re-code the section using Build.VERSION and see if I can get the
other developer to drop that in.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Using multiple API versions

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 5:09 PM, Bret Foreman  wrote:
> But if I build with API 10 on run on Android 2.2.2 then my
> MainActivity throws a ClassNotFoundException.
>
> Something in the Activity constructor for API 10 is barfing in Android
> 2.2.2, which I guess is no real surprise.

It's surprising to me. What class is not being found?

> Is there a good way to fix this short of modifying the other guy's
> code to remove the call to createInsecureRfcommSocketToServiceRecord
> and always call createRfcommSocketToServiceRecord?

Compile it to a JAR using API Level 10. Reference the JAR from your
API Level 8 project. I'm a bit dubious about NoSuchMethodError (I
would expect a VerifyError), but otherwise this might work.

The other developer really should be using Build.VERSION, just for
this sort of reason.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Kostya Vasilyev
The requirement is to protect Android *system settings*, not those of a
third-party application.

What a great idea :)

-- Kostya

24 января 2012 г. 2:01 пользователь Bret Foreman
написал:

> I would put the settings you want to protect in an encrypted file on
> the phone. Then your IT department can generate and distribute a new
> file when they want to update everyone's settings.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Using multiple API versions

2012-01-23 Thread Bret Foreman
I've got a library built by another developer. I have the source, but
I'd rather not hack it up in case he releases any updates that might
over-write my changes. But he's got some problematic code in it.
Namely:

public BluetoothSocket createSocket(final BluetoothDevice
device)
throws IOException {
try {
// We're trying to create an insecure socket,
which is
// only supported
// in API 10 and up. If we fail, we try a
secure socket
// with is in API
// 7 and up.
return
device.createInsecureRfcommSocketToServiceRecord(UUID

.fromString("1101--1000-8000-00805F9B34FB"));
} catch (NoSuchMethodError e) {
return
device.createRfcommSocketToServiceRecord(UUID

.fromString("1101--1000-8000-00805F9B34FB"));
}
}

When I was building at API 10 and running on Android 2.3.3 everything
was fine. But I want this code to run on Android 2.2.2 (API 8).

If I try to build with API 8 (all my code will work on either API
version) I get a build error complaining about
createInsecureRfcommSocketToServiceRecord, which did not exist in 8.

But if I build with API 10 on run on Android 2.2.2 then my
MainActivity throws a ClassNotFoundException.

Something in the Activity constructor for API 10 is barfing in Android
2.2.2, which I guess is no real surprise.

Is there a good way to fix this short of modifying the other guy's
code to remove the call to createInsecureRfcommSocketToServiceRecord
and always call createRfcommSocketToServiceRecord?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Possible to protect settings menu with an android app?

2012-01-23 Thread Kristopher Micinski
There seem to be a long list of questions lately that involve things
like "I'd like to change a piece of the platform, how can I do it?"
In general, it's not possible to do this.  This is like say, "on
windows, how do I make it impossible to click on the start menu?" or
"In firefox, how can I stop the user from modifying their privacy
settings."  In general, it's best to treat the things outside of your
app as impossible to modify, because for most intents and purposes
they are..

kris

On Mon, Jan 23, 2012 at 1:40 PM, Mark Murphy  wrote:
> It is not even possible *with* rooting. It is only possible by
> rebuilding the firmware with a custom implementation of Settings that
> incorporates your desired feature.
>
> On Mon, Jan 23, 2012 at 1:35 PM, Yar Lag  wrote:
>> My employer has told me to create an android app to do the following:
>>
>> The ability to password protect specific submenus in the Settings menu
>> (i.e. specifically Privacy, Applications, and Location & Security).
>>
>> Is this possible without rooting?
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Bret Foreman
I would put the settings you want to protect in an encrypted file on
the phone. Then your IT department can generate and distribute a new
file when they want to update everyone's settings.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Want help regarding videos security in android application

2012-01-23 Thread James Black
If he stores it on the SD card can't anyone get to it?
On Jan 23, 2012 6:56 AM, "Mark Murphy"  wrote:

> On Sun, Jan 22, 2012 at 11:47 PM, Harshal Patil 
> wrote:
> > I am developing an application for android froyo tablet. I wish to
> > store approx 15GB video on inbuilt memory of tablet with some security
> > and access that video only through my application. So that no one can
> > able to copy that videos.
> > So plse some one suggest how i will make security for videos.
>
> Anyone who roots their device will be able to access the videos.
> Either stream them off the Internet or do not worry about rooted
> device users.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Custom volume buttons

2012-01-23 Thread Oliviu Vais
Done that :)

On Jan 23, 10:20 pm, TreKing  wrote:
> On Sat, Jan 21, 2012 at 2:49 AM, Oliviu Vais  wrote:
> > I cannot get them to work. Can anyone please help?
>
> Want to elaborate on "cannot get them to 
> work"?http://www.catb.org/~esr/faqs/smart-questions.html
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android FaceDetector issue when using 4.0 Platform

2012-01-23 Thread Brad Williams
I have used close up faces as well as a few group shots taken at the
office and none seem to be working. I have tried my own face as well
with the front camera and no luck there either. Whether its an image
from the internet, my gallery, or one on the fly with my phones camera
- all return empty whereas at least one face will detect in 2.3


On Jan 23, 1:21 pm, Mark Murphy  wrote:
> Have you tried using an actual face?
>
>
>
>
>
>
>
>
>
> On Mon, Jan 23, 2012 at 3:04 PM, Brad Williams  
> wrote:
> > 0 down vote favorite
> > share [fb] share [tw]
>
> > I am hoping that someone might be able to shed some light on this
> > situation:
>
> > I am using the built in FaceDetector class through Android on three
> > different devices and I am getting 2 different results, hence the
> > title of a problem with the 4.0 platform.
>
> > When I run the FaceDetector code in 2.1 or 2.3 - I get a full array of
> > information any time I take photos of various faces.
>
> > However when I use the exact same photo within 4.0 - I get 0 returned
> > results within my FaceDetector array? Has anyone found a fix for this?
> > Is there something that may need to be tweaked or checked to increase
> > the possibility of results?
>
> > Any information on this is greatly appreciated.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] when I log into my developer account to publish it's asking me to register all over again

2012-01-23 Thread TreKing
http://support.google.com/androidmarket/?hl=en

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android FaceDetector issue when using 4.0 Platform

2012-01-23 Thread Mark Murphy
Have you tried using an actual face?

On Mon, Jan 23, 2012 at 3:04 PM, Brad Williams  wrote:
> 0 down vote favorite
> share [fb] share [tw]
>
>
> I am hoping that someone might be able to shed some light on this
> situation:
>
> I am using the built in FaceDetector class through Android on three
> different devices and I am getting 2 different results, hence the
> title of a problem with the 4.0 platform.
>
> When I run the FaceDetector code in 2.1 or 2.3 - I get a full array of
> information any time I take photos of various faces.
>
> However when I use the exact same photo within 4.0 - I get 0 returned
> results within my FaceDetector array? Has anyone found a fix for this?
> Is there something that may need to be tweaked or checked to increase
> the possibility of results?
>
> Any information on this is greatly appreciated.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Custom volume buttons

2012-01-23 Thread TreKing
On Sat, Jan 21, 2012 at 2:49 AM, Oliviu Vais  wrote:

> I cannot get them to work. Can anyone please help?


Want to elaborate on "cannot get them to work"?
http://www.catb.org/~esr/faqs/smart-questions.html

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android FaceDetector issue when using 4.0 Platform

2012-01-23 Thread Brad Williams
0 down vote favorite
share [fb] share [tw]


I am hoping that someone might be able to shed some light on this
situation:

I am using the built in FaceDetector class through Android on three
different devices and I am getting 2 different results, hence the
title of a problem with the 4.0 platform.

When I run the FaceDetector code in 2.1 or 2.3 - I get a full array of
information any time I take photos of various faces.

However when I use the exact same photo within 4.0 - I get 0 returned
results within my FaceDetector array? Has anyone found a fix for this?
Is there something that may need to be tweaked or checked to increase
the possibility of results?

Any information on this is greatly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: anybody looking for android trainer

2012-01-23 Thread sparky
Offering or soliciting work is off-topic for android-developers. Would you 
please consider moving it to android-discuss?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to keep -pre-build across "android update project"?

2012-01-23 Thread petter
How to keep -pre-build across "android update project"?

It seems like buld.xml has a section where one can uncomment and
customize the -pre-build and other targets:





If I change this to:




  This is pre-build


  This is pre-compile



  This is post-compile


I'm will see these trigger during the build. However, on the next
"android project update" the code is removed and the comments are back
in the code, despite that I've changed


to


and I even tried


I also tried to put everything between the version-tag comment and
import target like this:



  This is pre-build



and also using quote:


but it will be overwritten by the next "android project update". So
how do you add -pre-build targets to the build.xml file so that they
are not overwritten by the a project update?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] When to use the 'App Engine Connected Android' wizard?

2012-01-23 Thread Tom
I need general purpose, client initiated communications with the server.   
I was attracted to the wizard because I'm looking for simplicity - this is 
my first Android app.  I don't see why I would need C2DM, so I'm inclined 
to try and remove it from the generated projects.

Platform independence would be nice, but it is not a requirement.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to set the preferred APN through code?

2012-01-23 Thread Tom
Note that, as of Android 4.0, this is no longer possible.

The permission still exists, but any attempt to write the APN will fail.

Presumably the carriers put pressure on Google to block this capability... 
   too bad.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Possible to protect settings menu with an android app?

2012-01-23 Thread Mark Murphy
It is not even possible *with* rooting. It is only possible by
rebuilding the firmware with a custom implementation of Settings that
incorporates your desired feature.

On Mon, Jan 23, 2012 at 1:35 PM, Yar Lag  wrote:
> My employer has told me to create an android app to do the following:
>
> The ability to password protect specific submenus in the Settings menu
> (i.e. specifically Privacy, Applications, and Location & Security).
>
> Is this possible without rooting?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Possible to protect settings menu with an android app?

2012-01-23 Thread Yar Lag
My employer has told me to create an android app to do the following:

The ability to password protect specific submenus in the Settings menu
(i.e. specifically Privacy, Applications, and Location & Security).

Is this possible without rooting?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Adding Four fragments on a layout cause crash during orientation change on Android honeycomb

2012-01-23 Thread Kumar Bibek
A little more stack trace would give more clues .

But seems like its complaining of the fourth view / fragment not having an
id where its not able to save the state after orientation change.

Sent from my Nexus S
On Jan 23, 2012 11:17 PM, "kiriri"  wrote:

> When I add four fragments in a same container and I change the
> orientation the app crashes.
> When I test with only three fragments, no crash appears regardless of
> the three selected fragments from four.
>
> The error message is :
> java.lang.IllegalArgumentException: No view found for id ...  for
> fragment ...
>
> This error ever appears on the first added fragment regardless the
> order used to add the fragments.
>
> Is it a limit of the sdk ?
>
> Anyone have already managed four fragments on the same container ?
>
> Thank you in advance for your help
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ad network which makes quick payment

2012-01-23 Thread emre önal
Hi

Do you know any reliable ad network which make payments faster. Admob
payments come 2 months later, mobclix says 3 months. It is difficult to
make a quick try for different networks.

My ad incomes are not bad but novadays it would be good to get somethings
earlier for me :)


Thanks for help.



--

http://www.drokid.com/ 


Emre

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] UI requirement

2012-01-23 Thread Kumar Bibek
A list view would also suffice as long as you don't need to expand or
collapse .

Sent from my Nexus S
On Jan 23, 2012 11:18 PM, "James Black"  wrote:

> How about making an expandable list then.
> On Jan 23, 2012 3:59 AM, "Rachna Sharma"  wrote:
>
>> Hi Group,
>>
>> I have UI requirement shown below:
>>
>> |---|
>> |Header-1  |
>> | Checkbox1[]|
>> | Checkbox2[]|
>> | Checkbox3[]|
>> |---|
>> |Header-2  |
>> | Checkbox1 []   |
>> | Checkbox2 []   |
>> | Checkbox3 []   |
>> and so on clicking below button.
>> BUTTON  -> clicking on this button on bottom will create header and 3
>> checkbox everytime. How can i achieve this? This is very urgent. I can
>> not take these in XML laypout as these need to be added dynamically on
>> runtime.
>>
>> If possible, Please provide any sample code and guide me.
>>
>> Thanks,
>> Rachana
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] UI requirement

2012-01-23 Thread James Black
How about making an expandable list then.
On Jan 23, 2012 3:59 AM, "Rachna Sharma"  wrote:

> Hi Group,
>
> I have UI requirement shown below:
>
> |---|
> |Header-1  |
> | Checkbox1[]|
> | Checkbox2[]|
> | Checkbox3[]|
> |---|
> |Header-2  |
> | Checkbox1 []   |
> | Checkbox2 []   |
> | Checkbox3 []   |
> and so on clicking below button.
> BUTTON  -> clicking on this button on bottom will create header and 3
> checkbox everytime. How can i achieve this? This is very urgent. I can
> not take these in XML laypout as these need to be added dynamically on
> runtime.
>
> If possible, Please provide any sample code and guide me.
>
> Thanks,
> Rachana
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Adding Four fragments on a layout cause crash during orientation change on Android honeycomb

2012-01-23 Thread kiriri
When I add four fragments in a same container and I change the
orientation the app crashes.
When I test with only three fragments, no crash appears regardless of
the three selected fragments from four.

The error message is :
java.lang.IllegalArgumentException: No view found for id ...  for
fragment ...

This error ever appears on the first added fragment regardless the
order used to add the fragments.

Is it a limit of the sdk ?

Anyone have already managed four fragments on the same container ?

Thank you in advance for your help

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Unable to execute Bluetooth HDP Demo

2012-01-23 Thread vijay Badawadagi
HI Jorge,

thanks that solves the problem, now i can see the data from the Nonin.


Regards
Vijay
On Mon, Jan 23, 2012 at 3:13 AM, jfernandez <
jorge.fernandez.gonza...@gmail.com> wrote:

> Hi vijay,
>
> I'm seeing that you obtain the following error:
>
> onHealthDeviceConnectionResult: D-Bus
> error: org.bluez.Error.HealthError (No matching MDEP found)
>
> I guess your Nonin device is a pulse oximeter. Are you sure you are
> registering in the HDP code an application interesting in pulse
> oximeter data type (0x1004)?
>
> Regards.
>
> On 20 ene, 23:39, vijay  wrote:
> > could you please share the changes need to get it working.
> > connection seems to working but i don't see data coming to device
> > running Android 4.0.3
> >
> > On Jan 20, 10:00 am, Raul Ruiz  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi all,
> >
> > > I have Nonin working withHDP, if someone need help tell me.
> >
> > > On 14 ene, 13:07, jfernandez 
> > > wrote:
> >
> > > > Hi Fernando,
> >
> > > > I have introduced a change in the implementation of the
> > > > BluetoothHealthCallback mHealthCallback. Exactly, in its method
> > > > onHealthChannelStateChange(...). I detected that the state machine
> > > > during the stablishment of a newHDPconnection is: Disconnected-
> > > > Connecting-Connected. However, you can see that the example is
> > > > checking the case Disconnected-Connected, but not the case
> Connecting-
> > > > Connected. I added this new case Connecting-Connected, and now it
> > > > works and I'm able to read/write data from/to UA-767PBT-C and a board
> > > > that emulates several biomedical devices.
> >
> > > > I hope it help you.
> >
> > > > Regards.
> >
> > > > On 14 ene, 12:35, Fernando Almeida  wrote:
> >
> > > > > Hi jfernandez... i upgrade my android version to 4.03 and still
> can't
> > > > > connect...
> >
> > > > > Could you please show me the changes that you made?
> >
> > > > > Thank you
> >
> > > > > On 13 Jan, 10:57, jfernandez 
> > > > > wrote:
> >
> > > > > > Hi again,
> >
> > > > > > Well, after upgrading my Android 4.0 to 4.03, and adding some
> changes
> > > > > > to the BluetoothHDPsample, I'm able to connect to the biomedical
> > > > > > device, as well as I'm able to read/write data from/to theHDP
> > > > > > channel. So, it seems the problem has been fixed in this new
> Android
> > > > > > version.
> >
> > > > > > Regards.
> >
> > > > > > On 15 dic 2011, 18:30, jfernandez <
> jorge.fernandez.gonza...@gmail.com>
> > > > > > wrote:
> >
> > > > > > > Hi all,
> >
> > > > > > > I'm executing theBluetoothHDPDemo [1]  (offered from Android
> 4.0
> > > > > > > Ice Cream Sandwich) in my Android smartphone. When I have
> registered
> > > > > > > the application in order to receive data, and I have paired the
> > > > > > > biomedical device with the smartphone, I try to open the
> channel
> > > > > > > connection and I can see that the device starts sending data
> to the
> > > > > > > smartphone. However, the smartphone is unable to open the
> channel
> > > > > > > connectionHDP.
> >
> > > > > > > At the end of this message you can see the output obtained in
> the
> > > > > > > LogCat.
> >
> > > > > > > Has anybody achieved to run successfully this sample about the
> use of
> > > > > > > theBluetoothHealth Profile API? Any ideas?
> >
> > > > > > > Thanks. Regards.
> >
> > > > > > > [1]
> http://developer.android.com/resources/samples/BluetoothHDP/index.html
> >
> > > > > > > This is the log that I obtain:
> >
> > > > > > > 12-15 16:40:54.048: I/BluetoothHDPService(1105):
> connectChannel()
> > > > > > > 12-15 16:40:54.068: D/BluetoothService(147):
> CONNECTION_STATE_CHANGE:
> > > > > > > 00:80:25:14:A1:BC: 0 -> 1
> > > > > > > 12-15 16:40:55.169: D/ConnectivityService(147):
> > > > > > > handleInetConditionHoldEnd: net=1, condition=0, published
> condition=0
> > > > > > > 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property
> > > > > > > changed: 00:80:25:14:A1:BC property: Connected value: true
> > > > > > > 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device :
> > > > > > > devicePath:
> /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/
> > > > > > >bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue
> > > > > > > 12-15 16:41:00.034: E/BluetoothService.cpp(147):
> > > > > > > getChannelApplicationNative
> > > > > > > 12-15 16:41:00.044: E/bluetooth_common.cpp(147):
> > > > > > > dbus_func_args_timeout_valist: D-Bus error in Acquire:
> > > > > > > org.bluez.Error.HealthError (Cannot reconnect: MDL is not
> closed)
> > > > > > > 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error
> > > > > > > obtaining fd for
> channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/
> > > > > > > chan3115
> > > > > > > 12-15 16:41:00.074: E/BluetoothService.cpp(147):
> destroyChannelNative
> > > > > > > 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147):
> > > > > > > onHealthDeviceConnectionResult: D-Bus error:
> > > > > > > org.bluez.Error.HealthError (Mdl is not created)
> > > > > > >

[android-developers] Re: anybody looking for android trainer

2012-01-23 Thread Oliviu Vais
I could also use one...

On Jan 23, 10:26 am, "T.M.S.VIJAYKUMARR" 
wrote:
> Hi,
>
> anybody looking for android trainer?
>
> --
>
> -
> Thanks & Regards,
> T.M.S.VIJAYKUMARR
> BloG:http://iamvijayakumar.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] anybody looking for android trainer

2012-01-23 Thread νιяιη¢нソ
i am the one badly in need of ithelp me please.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: find out which activity resumed/started my activity?

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 11:24 AM, uday kiran jandhyala
 wrote:
> So far in Android, there is no way we could query WindowManager to
> retrieve a list of titles of all such "Windows"...
> Is this statement right?

Correct.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] how to hide softtkeyboard pressedkey popup?

2012-01-23 Thread Oli Wright
Maybe he means that really useful feature where it'll show you the last 
character typed into a password field so you can check you haven't fat 
fingered it.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] FragmentTransaction commitAllowingStateLoss problem

2012-01-23 Thread Nick Parker
Hi Mark, 

I pieced together an example to post and eventually was able to reproduce the 
behavior I was seeing.  I had a nested layout and within my layout I was 
including the initial list fragment.  When I removed the fragment entry from 
the layout markup and subsequently added it to the container in the onCreate of 
the parent activity everything works smoothly now.  Not sure if this is related 
to the compatibility library or not, but the issue seems to be resolved by 
loading the control dynamically.  Thanks for your time.

Nick Parker


On Friday, January 20, 2012 at 1:09 PM, Mark Murphy wrote:

> On Fri, Jan 20, 2012 at 2:01 PM, Nick Parker  (mailto:npar...@zetetic.net)> wrote:
> > I am invoking the context menu selection from the ListFragment, which is the
> > first fragment, not the new'ed up fragment.  On the selection of the menu
> > item from the context menu I want to perform the fragment transaction, which
> > is failing following the screen rotation.  Any ideas why the call to
> > getActivity() would fail at that point, the lifecycle should have completed
> > at that point, correct?  Thanks.
> > 
> 
> 
> Beats me, based on the descriptions in this thread. If you create a
> sample project that demonstrates the issue, post it somewhere and I'll
> take a peek at it. Or, if you try creating a sample project and can't
> reproduce the problem, that'll help you narrow down where the
> differences between the two projects are.
> 
> Unfortunately, I don't have a ListFragment-with-context-menu sample in
> my stable, otherwise I'd point you to it.
> 
> -- 
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
> 
> Android 4.0 Programming Books: http://commonsware.com/books
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com 
> (mailto:android-developers@googlegroups.com)
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com 
> (mailto:android-developers+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> 
> 


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: find out which activity resumed/started my activity?

2012-01-23 Thread uday kiran jandhyala
Hi,
Am really not sure if its possible, but just trying to think out
loud..

Is my understanding correct that WindowManager component in Android
platform maintains a list of all 'Windows'
created thus far by different Applications' Activities (Including
those of decorations like StatusManager etc.)

say for example, if User goes from Home->Launcher->Calculator, and now
he receives a call, a windows stack
could possibly look like :

CALL (on top)
CALCULATOR
LAUNCHER
HOME
STATUSBAR (bottom most... am guessing, I may be wrong)

Long ago, when I worked on Maemo, Meego & GNOME there used to be a
DBUS Call that can be made from command
line, to list down windows titles and their respective process IDs.

So far in Android, there is no way we could query WindowManager to
retrieve a list of titles of all such "Windows"...
Is this statement right? If there does exist a way to this, we could
possibly build a logic to check from where our
Activity has come to focus right?!

I may be totally wrong to imagine like this.. But am open to learning
and being corrected on this :)

Best regards
Uday

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] how to hide softtkeyboard pressedkey popup?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 8:22 AM, genxsol  wrote:

> is it possible to force the keyboard not to display pressed key popup?


What is "pressed key popup"?

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Java code for xml arrtibute

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 10:13 AM, giles ian  wrote:
> Thanks for the reply. And there is such attribute and the use of that is to
> remove the default radio button image.

Ah, it's just not in the right spot in the documentation. My apologies.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
Thanks

On Mon, Jan 23, 2012 at 8:45 PM, TreKing  wrote:

> On Mon, Jan 23, 2012 at 9:12 AM, Hitendrasinh Gohil <
> hitendrasin...@gmail.com> wrote:
>
>> Because first time i have upload it to market in debug mode.(Forget to
>> change it for release mode).
>
>
> Oh, you are screwed. I believe I've heard of the Market allowing this
> early on when it shouldn't have (Google it). Now it enforces that no debug
> key rule. So you basically can't update the current app and will have to
> create a new package with an official release key. Whoops.
>
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
regards,
Hitendrasinh Gohil

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Scroll View

2012-01-23 Thread Oliviu Vais
I am trying to scroll a HorizontalScrollView by 2 buttons, one left,
one right.
What am i doing wrong? Which one to choose?
sw - scroll view
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
switch(v.getId()){
case R.id.bRight:
sw.smoothScrollBy(20, 0);
break;
case R.id.bLeft:
sw.smoothScrollBy(-20, 0);
break;
}
return false;
}
public boolean onLongClick(View arg0) {
// TODO Auto-generated method stub
switch(arg0.getId()){
case R.id.bRight:
sw.smoothScrollBy(50, 0);
break;
}
return false;

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 9:12 AM, Hitendrasinh Gohil <
hitendrasin...@gmail.com> wrote:

> Because first time i have upload it to market in debug mode.(Forget to
> change it for release mode).


Oh, you are screwed. I believe I've heard of the Market allowing this early
on when it shouldn't have (Google it). Now it enforces that no debug key
rule. So you basically can't update the current app and will have to create
a new package with an official release key. Whoops.

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Java code for xml arrtibute

2012-01-23 Thread giles ian
Hi Mark,

Thanks for the reply. And there is such attribute and the use of that is to
remove the default radio button image.

I also found the solution for the same

newRadioButton.setButtonDrawable(android.R.id.empty);



On Mon, Jan 23, 2012 at 7:56 PM, Mark Murphy wrote:

> There is no android:button attribute on RadioButton. Simply delete it.
>
> On Mon, Jan 23, 2012 at 9:23 AM, giles ian  wrote:
> > Hello,
> >
> > I have below code in xml.
> >
> >  >   android:layout_margin="5dip"
> >  android:layout_width="wrap_content"
> >  android:layout_height="wrap_content"
> >  android:background="@drawable/button_radio"
> >  android:gravity="center"
> >  android:button="@null"/>
> >
> > I need java code for highlighted text as I'm creating radio buttons
> > programmatically.
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
I am sure for that.

That's true that i am uploading debug version of an app.Because first time
i have upload it to market in debug mode.(Forget to change it for release
mode).

" Because the error would indicate you're trying to upload the debug
version of the app. I would re-export your app and re-sign it and try
again. "

if i need to send u apk and debug certificate?

When was the last time you uploaded an update?
3rd oct 2011

On Mon, Jan 23, 2012 at 8:33 PM, TreKing  wrote:

> On Mon, Jan 23, 2012 at 9:01 AM, Hitendrasinh Gohil <
> hitendrasin...@gmail.com> wrote:
>
>> I am using the same certificate that used to signed the first app.
>
>
> Are you sure about that? Because the error would indicate you're trying to
> upload the debug version of the app. I would re-export your app and re-sign
> it and try again.
>
> When was the last time you uploaded an update?
>
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
regards,
Hitendrasinh Gohil

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

RE: [android-developers] Unable to send text messages on some Android Phones using SmsManager

2012-01-23 Thread Admin
Abhijeet Tomar, 

I tried everything even with PendingIntent for Delivered, with no Intends,
or with both of them and it still does not work :( 

 

Any other ideas?

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of abhijeet tomar
Sent: Monday, January 23, 2012 7:18 AM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Unable to send text messages on some
Android Phones using SmsManager

 

Hello...use this code to solve ur problem
you have missed to call PendingIntent deliveredPI..
this code working fine...i am already used in a project...

PendingIntent sentPI = PendingIntent.getBroadcast(this, 0,new Intent(SENT),
0); 

PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0,new
Intent(DELIVERED), 0);

sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 9:01 AM, Hitendrasinh Gohil <
hitendrasin...@gmail.com> wrote:

> I am using the same certificate that used to signed the first app.


Are you sure about that? Because the error would indicate you're trying to
upload the debug version of the app. I would re-export your app and re-sign
it and try again.

When was the last time you uploaded an update?

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to set the preferred APN through code?

2012-01-23 Thread Sayed Atif Ali
You need to set the MCC )(Mobile Country Code) and MNC (Mobile Network
Code) values too in your code to set and display the APN's on Android UI.

Try the following code and see what happens:

>
> *private static* *final* Uri *PREFERRED_CONTENT_URI* = Uri.*parse*(
> "content://telephony/carriers/preferapn");
>
>
>
> // getCurrentPreferredAPN is an internal function to retrieve the "_id" of
> the current APN.
> String strCurrent = getCurrentPreferredAPN();
>
> ContentValues values =  *new* ContentValues();
>
> Uri ret;
>
   String MCC = null, MNC = null;
   TelephonyManager tel = (TelephonyManager)
getSystemService(this.TELEPHONY_SERVICE);
   String networkOperator = tel.getNetworkOperator();
   if (networkOperator != null) {
MCC = networkOperator.substring(0, 3);
MNC = networkOperator.substring(3);
}

>
>
// create the dummy ID
>
> values.put(*SZ_NAME*, *"blah"*);
> values.put(*SZ_APN*, *"blah"*);
>
> values.put(*SZ_TYPE*
> , *"blah"*);
>
> values.put("current", "1");
>
> values.put("mcc", MCC);
> values.put("mnc", MNC);
>
>
>  // 'delete' the current entry.
> nUpdated = getContentResolver().delete(PREFERRED_CONTENT_URI, "_id=?",
> new String[] { strCurrent };
>
> // 'insert' a new entry.
> ret = getContentResolver().insert(PREFERRED_*CONTENT_URI*, values);
> *if*(*null* == ret)
>
> {
>
> Log.*i*("Add Dummy APN", "Failed");
>
> *return*;
>
> }
>
>
>
> The call   ==> "insert"* ==>*  is always returning null for me.
>
>
>
> What is the right way of doing this?
>
>
>
>
>
> **
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] widget stop working after force close in setting page

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 8:13 AM, dara kok  wrote:

> But from a user point of view, it is weird to have a widget on screen that
> is not usable after a force stop.


That's your opinion. IMO, if, as a user, you deliberately navigate to an
app's detail's screen in the settings, click the "Force Stop" button, and
accept the warning that this may cause the app to misbehave, it should not
come as a shock that the widget for that app no longer works.

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
I am using the same certificate that used to signed the first app.

On Mon, Jan 23, 2012 at 8:21 PM, TreKing  wrote:

> On Mon, Jan 23, 2012 at 8:41 AM, Hitendrasinh Gohil <
> hitendrasin...@gmail.com> wrote:
>
>> But if i make a new certificate then i need to unpublish the previous
>> version and then i can upload the apk as new version,right?
>>
>
> No.
>
>
>> I want to update my existing app,so what should i do?
>>
>
> Use the same certificate you used to upload the app to begin with.
>
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
regards,
Hitendrasinh Gohil

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 8:41 AM, Hitendrasinh Gohil <
hitendrasin...@gmail.com> wrote:

> But if i make a new certificate then i need to unpublish the previous
> version and then i can upload the apk as new version,right?
>

No.


> I want to update my existing app,so what should i do?
>

Use the same certificate you used to upload the app to begin with.

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
But if i make a new certificate then i need to unpublish the previous
version and then i can upload the apk as new version,right?

I want to update my existing app,so what should i do?



On Mon, Jan 23, 2012 at 8:02 PM, TreKing  wrote:

> On Mon, Jan 23, 2012 at 8:28 AM, Hitendrasinh Gohil <
> hitendrasin...@gmail.com> wrote:
>
>> how can i resolve this?
>
>
> Don't sign with the Debug Certificate, as the error clearly states.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
regards,
Hitendrasinh Gohil

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 8:28 AM, Hitendrasinh Gohil <
hitendrasin...@gmail.com> wrote:

> how can i resolve this?


Don't sign with the Debug Certificate, as the error clearly states.

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
Hi,

I want to upload new apk(updated version) for my app.But while
uploading new apk to market i am getting the following error.
"Market does not accept apks signed with the debug certificate. Create
a new certificate that is valid for at least 50 years."
I have made the certificate for 25years and uploaded the first version
in 2011.

how can i resolve this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Java code for xml arrtibute

2012-01-23 Thread Mark Murphy
There is no android:button attribute on RadioButton. Simply delete it.

On Mon, Jan 23, 2012 at 9:23 AM, giles ian  wrote:
> Hello,
>
> I have below code in xml.
>
>            android:layout_margin="5dip"
>          android:layout_width="wrap_content"
>          android:layout_height="wrap_content"
>          android:background="@drawable/button_radio"
>          android:gravity="center"
>          android:button="@null"/>
>
> I need java code for highlighted text as I'm creating radio buttons
> programmatically.
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Java code for xml arrtibute

2012-01-23 Thread giles ian
Hello,

I have below code in xml.



I need java code for highlighted text as I'm creating radio buttons
programmatically.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how to hide softtkeyboard pressedkey popup?

2012-01-23 Thread genxsol
could anyone please help me to solve the problem below?

I have set my edittext to accept passwords by android:password="true"
problem is , when i press any key on softkeyboard, it displays the
pressed key on popup as well.

is it possible to force the keyboard not to display pressed key popup?

Thanks in advance for the help

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] widget stop working after force close in setting page

2012-01-23 Thread dara kok
Totally agree with what you said technically. But from a user point of view, it 
is weird to have a widget on screen that is not usable after a force stop. 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Limit App Usage

2012-01-23 Thread Oli Wright
Before this gets over complicated, is it worth rolling back to the actual 
requirement here?  Might be worth listing out a few things:
1. How many users you're talking about
2. What your distribution method is (i.e. there's no reason this has to be 
market distributed if it's an internal app right?)
3. What about the app are you trying to restrict access to?  Is it remote 
data (in which case then isn't this a problem of securing the remote data 
itself) or app functions (could be easier to lock functionality down with a 
fixed device list or something in the app)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to support Single Listener And Multiple Date-picker Dialog

2012-01-23 Thread skink


MOHIT SHARMA wrote:
> Hi ,
>
> what are u trying to say ? I already know that we have *DatePicker view in
> onDateSet *. I am asking how use it .But from this view we cant get the id
> of the DatePicker created in Activity :(
>

you have four references to four different DatePickerDialog instances,
right?

now take a look into DatePickerDialog docs and you will find out what
to do next

as always, reading documentation really helps

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How I use Web Services in android.?

2012-01-23 Thread Harpreet Singh
Actually the website is developed in .NET, they are going to provide
me WebServices information.
I studied regarding web services on internet and going to develop it
using ksoap2, wsdl and whatever it needs.
Sorry actually I am new to this stuff.
Please do suggest whatever you like, like::
What concept should I use and all.
Thanks.

On Jan 22, 4:50 pm, unicus unicus  wrote:
> Is your web service is soap based or simple servlet?.
>
> --
> More info,http://androidbasic-answer.blogspot.com/
>
>
>
>
>
>
>
> On Fri, Jan 20, 2012 at 11:21 PM, TreKing  wrote:
> > On Thu, Jan 19, 2012 at 6:39 AM, Harpreet Singh wrote:
>
> >> How can I communicate with the database which that site is using?
>
> > Have the site developers provide you an api.
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Best Practices: Which SDK should I choose for a new project?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 4:12 AM, Paolo  wrote:

> For example: I have to develop an app that must be supported on
> Android OS version from v2.1 to v4.0 (included).
> Which target should I choose?
>

In general, use the latest SDK but set your "targetSDK" in the manifest to
the version you are primarily focusing on (either the most popular one as
Kris points out or one that you have a device to thoroughly test for).

Then test for compatibility for other versions / screens using the emulator.

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] webview with transparent background

2012-01-23 Thread TreKing
On Sun, Jan 22, 2012 at 8:41 AM, أحمد العصيمي  wrote:

> I have webview in my application and I want to make the background
> transparent color ..
>
> Can anybody help please?
>

What have you tried?

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Unable to create AVD

2012-01-23 Thread Harpreet Singh
Have you updated the sdk from SDK Manager?

On Jan 21, 8:39 pm, Muhammad Shoaib  wrote:
> Hi everyone..
> I m new to android development world
> I set all essential elements jdk,eclipse etc but when I want to create AVD
> it gives me  a message "unable to find userdata.img"
> plz guide me

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


  1   2   3   >