[android-developers] How to install an app programaticaly on Android

2010-05-24 Thread Nando Android
I was hoping to write a service on Android that would list all
applications installed as per previous post.

Then, It would decide to update automatically some apps and install
others.

Is there any class on the SDK that has this kind of functionality?
That is, can I call some API or code to install an application on the
phone? Can I force some updates as well?

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] How to access and change settings for the phone and email accounts

2010-06-01 Thread Nando Android
Hello,

How can I get and connect to the internet Database of the device so that I
can:

- Obtain the phone number and other carrier information associated with the
device?
- Obtain email settings of the device?

Is it possible to change the email settings via an app on the device?

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] Maven and Android

2010-06-02 Thread Nando Android
Hi all,

Is there any documentation out there that shows examples on how to start
Android projects with Maven?

I like Eclipse to develop and debug but I like to use Maven to create the
project and control which jars are on the repository and need to be fetched
from the Internet.

Any suggestions on this?

Thanks.

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

[android-developers] SMS database access

2010-06-03 Thread Nando Android
Hello all,

I believe the Java API does not give full access to the SMS database and
other databases.

Is there any way to have root access to some of those databases such as SMS
and phone settings so that I can fetch some information out of it?

Thanks

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

[android-developers] Exchange server usage and settings

2010-06-03 Thread Nando Android
Hello all,

Is there any way to log how the Exchange server is being used on the device?

What can be obtained about Corporate email traffic and usage?

Is it possible to change settings programatically for those accounts?

Say, a domain is changed or a server is changed. Can I do those settings
changes?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SMS database access

2010-06-03 Thread Nando Android
What does allow for access to SMS regardless? Would that require program the
underlining SDK instead of doing it via the Java API?

I would like to have an agent on the phone that has access to that SMS
database.

Is it possible to do so?

Thanks.

On Thu, Jun 3, 2010 at 8:58 AM, Mike dg  wrote:

> There are undocumented content providers that allow "access" to SMS
> databases. However they are subject to change, and can, and do differ
> between devices.
>
> On Jun 3, 10:41 am, Nando Android  wrote:
> > Hello all,
> >
> > I believe the Java API does not give full access to the SMS database and
> > other databases.
> >
> > Is there any way to have root access to some of those databases such as
> SMS
> > and phone settings so that I can fetch some information out of it?
> >
> > Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] APIs to access email accounts or SMS/MMS messages

2010-06-03 Thread Nando Android
I am interested on that too.

But what I want to do is to know how many SMS messages were sent and
received.

That is, I need to know stats. Is it possible?

Thanks.

On Mon, May 24, 2010 at 6:54 PM, sojan P.R.  wrote:

> What you want to do..reading emails and doing something automatically? I
> think it is not possible from application level.
> You can listen to an sms port for that..just look some push registery
> samples.
>
> If you only want to show the SMS in your application ...i think it is
> better to open the installed client using intents.
>
>
> On Mon, May 24, 2010 at 5:47 PM, Mark Murphy wrote:
>
>> San wrote:
>> > Does anyone know if there is an API available to access all SMS
>> > messages as well as emails in the inbox?
>>
>> There is nothing in the Android SDK for either of these.
>>
>> While there are applications frequently available on Android devices for
>> these functions (SMS, Email, Gmail), device manufacturers can and do
>> replace them with other applications. Also, users can elect to download
>> and install their own email clients (e.g., K9).
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in NYC: 4-6 June 2010: http://guruloft.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
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Code repository to learn by examples

2010-06-03 Thread Nando Android
All,

Is there any source code repository for Android apps so one can learn by
example?

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

Re: [android-developers] Code repository to learn by examples

2010-06-03 Thread Nando Android
Correct. TreKing.

On Thu, Jun 3, 2010 at 12:49 PM, TreKing  wrote:

> On Thu, Jun 3, 2010 at 11:03 AM, Nando Android wrote:
>
>> Is there any source code repository for Android apps so one can learn by
>> example?
>
>
> You mean aside from the samples in the documentation and the source code
> itself?
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Code repository to learn by examples

2010-06-07 Thread Nando Android
Thanks John!

On Thu, Jun 3, 2010 at 7:22 PM, Maps.Huge.Info (Maps API Guru) <
cor...@gmail.com> wrote:

> Try here:
>
> http://code.google.com/hosting/search?q=label%3AAndroid
>
> This is a great place to find quality examples of full apps.
>
> -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

[android-developers] How to setup Exchange progamaticaly

2010-06-24 Thread Nando Android
I would like to write a simple program to enter Exchange setup information.

Is it possible to do so?

Given a phone, this app will run and setup all the server, username,
password, information so that it does not have to be done by hand.

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] How to simulate a SMS

2010-06-24 Thread Nando Android
Hello,

I've once read that you could telnet to a device to simulate a SMS to it.
Meaning, sending a SMS to it.

I do not know where I've read it. Does anyone knows how to do that?

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] How to get the version of installed apps

2010-06-25 Thread Nando Android
Hello all,

How can I get the version information of the current installed apps on my
phone.

If I do :

PackageManager packageManager = getPackageManager();
List packs = packageManager.getInstalledPackages(0);
int size = packs.size();
apps += "\nTotal apps = "+ size+"\n";
for (int i = 0; i < size; i++)
{
PackageInfo p = packs.get(i);
apps += "\nApp name: " +
p.applicationInfo.loadLabel(packageManager).toString();
apps += "\nPackage name: " + p.packageName;
apps += "\nVersion name: " + p.versionName;
apps += "\n";
 }
tv.setText("Installed apps:\n"+apps);

I get all the apps currently installed.

I wasn't able to figure out how to extract their correspondent version
information.

Any suggestions?

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] How to fetch phone's phone number or unique ID

2010-06-25 Thread Nando Android
Hello,

I wonder how could I fetch the phone's phone number or an unique id
to identify it?

Thanks.

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

[android-developers] Accessing APNs on the phone

2010-06-25 Thread Nando Android
Hello,

How can I get the information on this phone regarding its number, carrier,
etc?

I have tried this:

String names = "";

Uri contentUri = Uri.parse("content://telephony/carriers/");

Cursor cursor = null;
try
{
cursor = getContentResolver().query(contentUri, new String[]{"name"}, null,
null, null);
if (cursor != null)
{
while (cursor.moveToNext())
{
String name = cursor.getString(0);
names+= name + "\n";
}
}
}
catch (Exception ex)
{
//Handle exceptions here
}
finally
{
if (cursor != null) cursor.close();
}


tv.setText("TestActivity:\n"+names);

But no success.

I get on the emulator screen:
Android
TelKila

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get the version of installed apps

2010-06-25 Thread Nando Android
Perfect, thanks! I had the VersionName before.

On Fri, Jun 25, 2010 at 3:41 PM, Mark Murphy wrote:

> On Fri, Jun 25, 2010 at 5:36 PM, Nando Android 
> wrote:
> > How can I get the version information of the current installed apps on my
> > phone.
> > If I do :
> > PackageManager packageManager = getPackageManager();
> > List packs = packageManager.getInstalledPackages(0);
> > int size = packs.size();
> > apps += "\nTotal apps = "+ size+"\n";
> > for (int i = 0; i < size; i++)
> > {
> > PackageInfo p = packs.get(i);
> > apps += "\nApp name: " +
> > p.applicationInfo.loadLabel(packageManager).toString();
> > apps += "\nPackage name: " + p.packageName;
> > apps += "\nVersion name: " + p.versionName;
> > apps += "\n";
> > }
> > tv.setText("Installed apps:\n"+apps);
> > I get all the apps currently installed.
> > I wasn't able to figure out how to extract their correspondent version
> > information.
>
> Use p.versionName and p.versionCode.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6
> Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Download and install application

2010-06-26 Thread Nando Android
Hello all,

Is there any howto on donwloading via HTTP an application package and
installing it afterwards?

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

Re: [android-developers] Re: How to fetch phone's phone number or unique ID

2010-06-26 Thread Nando Android
Exactly, I want an unique ID to it.

How can I call it? Do I have to instantiate something?

Thanks,

On Sat, Jun 26, 2010 at 4:25 PM, Indicator Veritatis wrote:

> First of all, you should keep in mind that in the GSM world, the phone
> number identifies the SIM, the user's account; it does not identify
> the phone.
>
> There is, however, in the android.telephony package, an method of the
> TelephonyManager class called getDeviceId() that returns a unique ID
> for the phone: IMEI for a GSM phone and MEID for CDMA.
>
> There is also a getLine1Number() that returns the phone number, which
> is probably not what you really want on a GSM phone. It might not even
> be what you want on a CDMA phone, since there are obsure models with
> two lines, and even more obscure models that take a SIM even on CDMA.
>
> On Jun 25, 2:36 pm, Nando Android  wrote:
> > Hello,
> >
> > I wonder how could I fetch the phone's phone number or an unique id
> > to identify it?
> >
> > Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Download and install application

2010-06-26 Thread Nando Android
I would like to do it via code. Do a HTTP request, get the package and then
install it. Is there any example out there for it?

Thanks.

On Sat, Jun 26, 2010 at 4:10 PM, Lance Nanek  wrote:

> Do you mean doing it via code? Or do you mean how to explain to a user
> how to do it manually?
>
> On Jun 26, 4:47 pm, Nando Android  wrote:
> > Hello all,
> >
> > Is there any howto on donwloading via HTTP an application package and
> > installing it afterwards?
> >
> > Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get the license type of each installed package

2010-06-28 Thread Nando Android
Hello all,

Not all the packages have license information and I am not sure if those
that do have that on the manifest but it doesn't seem like it.

Therefore, is there a way to extract the license of all the packages
installed on a Android system?

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] Removing applications programatically.

2010-06-29 Thread Nando Android
Is it possible to remove an application programatically?

If so, shall I look at the package manager for that or is there an example
some place?

When a package is installed, I believe there is a broadcast message to the
system saying that.

Is it possible to capture that broadcast message?

Maybe the following question should be:

What, also, could be done to avoid an application from being removed
programatically?

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

Re: [android-developers] Removing applications programatically.

2010-06-29 Thread Nando Android
Mark,

But it is possible to disable the application, though?

There is permission flag called:
CHANGE_COMPONENT_ENABLED_STATE<http://developer.android.com/reference/android/Manifest.permission.html#CHANGE_COMPONENT_ENABLED_STATE>

Which seems to do what I want.

On Tue, Jun 29, 2010 at 1:52 PM, Mark Murphy wrote:

> On Tue, Jun 29, 2010 at 3:40 PM, Nando Android 
> wrote:
> > Is it possible to remove an application programatically?
>
> If you write your own firmware, yes. I am not aware of a means in the
> SDK to trigger the uninstall process.
>
> > When a package is installed, I believe there is a broadcast message to
> the
> > system saying that.
> >
> > Is it possible to capture that broadcast message?
>
> I do not believe that it is an ordered broadcast, so probably you
> cannot block it, if that is what you mean by "capture".
>
> > What, also, could be done to avoid an application from being removed
> > programatically?
>
> Write your own firmware, and put the application in the firmware.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training...At Your Office: http://commonsware.com/training
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Removing applications programatically.

2010-06-30 Thread Nando Android
Thank you NightGospel!

On Tue, Jun 29, 2010 at 11:48 PM, NightGospel  wrote:

> Hi Nando,
>
> When a package is installed or removed, system will broadcast out the
> messages: "android.intent.action.PACKAGE_ADDED" or
> "android.intent.action.PACKAGE_REMOVED".
> You can write a broadcast receiver to capture such broadcasts and
> don't forget to define data scheme ("package") for receiver.
>
> NightGospel
>
> On 6月30日, 上午3時40分, Nando Android  wrote:
> > Is it possible to remove an application programatically?
> >
> > If so, shall I look at the package manager for that or is there an
> example
> > some place?
> >
> > When a package is installed, I believe there is a broadcast message to
> the
> > system saying that.
> >
> > Is it possible to capture that broadcast message?
> >
> > Maybe the following question should be:
> >
> > What, also, could be done to avoid an application from being removed
> > programatically?
> >
> > Thanks.
>
> --
>  You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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