[android-developers] Will there be memory leak ?

2012-01-12 Thread sl.laptop@maxis


A byte array is initially allocated:

  byte[] bb;
  bb = new byte[36];

Later condition arises that I need a byte array of 128. And thus:

  bb = new byte[128];

This condition will arise every now and then (with different size  
requirements). Since there is no mechanism to release the previous memory  
block, will there be memory leak ?


Thanks.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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

2012-01-12 Thread Dianne Hackborn
On Wed, Jan 11, 2012 at 8:31 PM, Christopher Van Kirk <
christopher.vank...@gmail.com> wrote:

> Making software is a business. An investment. To reap maximum rewards on
> that investment the product has to have as much reach as possible, meaning
> the OP is absolutely on point about OS upgrades. Who is going to spend 10k,
> 100k, 1m, etc, developing an app whose target market is less than 1% of
> active installs? 4.0 won't be an attractive target for developers until it
> commands at least 80% of the installed market, which will likely take at
> least a year to occur, perhaps longer.
>

How different is this from a new major version of Windows coming out?  It
seems like at least a year until they start to get significant traction.
 Windows does have an advantage in that user can buy a copy of the newer OS
and install it if some app they want needs it...  but as an app developer,
requiring a newer version of the OS than the user has is probably not
likely to get most of those potential users to buy and install an upgrade
to their entire OS.


> Comparing handset differences with browser difference is just absurd. How
> many browser versions are there? Five maybe six? An average Android app has
> to deal with over 600 different devices today. That's a difference of 100x.
> This number is also growing at an exponential rate, so even if you can
> manage to test on all of those devices, in three months you'll probably
> have to do the same number again.
>

You are significantly exaggerating about 600 different devices...  if you
are going to say that, you could just as well say there are hundreds if not
thousands of different PCs running windows...  not to mention all those
different graphics cards and drivers and what-not...  crazy!

Yes it is true that there is some more variation between devices because of
the ability of manufacturers to do customizations...  but for the most part
this doesn't impact apps (see below), and for those situation when it does
you are looking at 3 or 4 major manufacturers with their own
customizations, not 600.


> What you're apparently not appreciating is that unlike the PC/Mac world,
> the Android world lacks strong compatibility standards and more
> importantly, conformance testing.
>

Really?

http://source.android.com/compatibility/index.html

Standards:

http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/en/us/compatibility/4.0/android-4.0-cdd.pdf

Conformance tests:

http://source.android.com/compatibility/cts-intro.html


> As a consequence, devices tend to have niggling and chronic differences
> that in aggregate make for an inconsistent and unstable feel for the
> platform.
>

If there are chronic differences, please file bugs with us to have these
covered in the CTS tests.  Pretty much any time a compatibility issue is
found that isn't caught by CTS, a test for it is added.  Now that Gerrit is
back, you can even go and write and contribute your own tests right to CTS
to make sure none of the manufacturers can again cause whatever problem you
are having.


> You really have to have a very large operation or have a very unambitious
> app to make an app with long reach in the Android world.
>

I think there is plenty of evidence that this is not true.  Of course you
can always wiggle around what "unambitious" means, but I suspect you will
quickly get to the point of it meaning "not doing things that go against
the way one should approach writing an Android app".


> By contrast, the Apple approach is that one size fits all. From a small or
> independent developers perspective this really is preferable, because you
> know if you test it and it works on one device it's going to work on all of
> them, and there are millions of them out there.
>

This is fine, but it only works for someone who is tightly controlling the
entire hardware and software stack and the variety of types of hardware
that people can buy.  Personally I think ultimately that approach is a
niche -- I don't see one company being able to be produce the majority of
all of the phones (not to mention tablets and whatever else) that the
entire world is using.


> Don't get me wrong. I'm not an Apple fan. But having spent considerable
> time fighting with device peculiarities in the Android ecosystem instead of
> adding features to my app, I find that I long for the simplicity that the
> Apple ecosystem guarantees.
>

So what kinds of issues specifically have you had?

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, sen

Re: [android-developers] Re: Why do my post is not shown ?

2012-01-12 Thread Sparky Rhode
Sorry, the Dubai moving service did make it past the moderators. I
deleted their posts yesterday.



On Wed, Jan 11, 2012 at 11:35 PM, Kristopher Micinski
 wrote:
> Is that true?  I don't believe that it used to be..., perhaps the
> rules have changed, but I would sort of doubt it based on the amount
> of spam this list receives (ad for moving service in dubai, for
> example, probably would not have made it past moderators...)
>
> kris
>
> On Wed, Jan 11, 2012 at 3:42 PM, sparky  wrote:
>> All members' posts are moderated initially.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Is this android app possible?

2012-01-12 Thread Yar Lag
My employer asked me to write an Android app for a demo device in our
store front. He wants the app to do the following (essentially a video
demo app):

The app will show a video after it has been idle for a while.
When a user touches the demo video, it stops and goes to home screen.
Prevents a user from uninstalling this app.
Hide the app from the applications list on the home screen.
At each midnight resets the device to a default configuration (home
screens, browser history and contacts information)

Are these 5 things possible?

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


[android-developers] Re: Best encryption method?

2012-01-12 Thread krishna p
think about encrypting the DB file... !!! is it good way to encrypt DB
file???

On Jan 6, 5:16 am, Daniel Drozdzewski 
wrote:
> Ian,
>
> Only AES and 3DES are encryption/decryption solutions (so called ciphers).
> MD5 is a crypto hash function no loger deemed safe (there are few much
> better ones) and Base64 is an encoding used to transfer binary data
> over text based protocols using only ASCII characters.
>
> Daniel
>
> On 6 January 2012 10:04, giles ian  wrote:
>
>
>
>
>
>
>
>
>
> > Hello,
>
> > Which is the best encryption method.
>
> > My need is to encrypt data and store it in DB.
>
> > Which would be the best among:
>
> > 1. Base 64
> > 2. AES
> > 3. 3 DES
> > 4. MD - 5
>
> >  in terms of:
>
> > 1. Security
> > 2. Performance
> > 3. Easy of implementation
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] IPsec Vpn connection on ICS using new VPN API

2012-01-12 Thread huymq85
Hi everybody,

is there anyone who can make IPsec VPN connection using new VPN API? I
don't understand what this API provide? and How to use ? Thank you
very much.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Intercept and update Javascript resource loading from webview

2012-01-12 Thread Ashutosh
Hi Guys,

I am stuck with a situation.
While loading javascript I need to identify resource and , in case it
found I need to replace it with different resource
e.g. in my JS if I have something like 
then while loading I need to intercept it and update this with
different resource.
I am aware of shouldInterceptRequest() but it works only from API
level 11 onwards. How can I do the same thing in earlier release.

Thanks in advance for your help
-Ashutosh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Working With Offline Database Problem

2012-01-12 Thread Bhaumik Thaker
Hi all,

  I want to create a sqlite database by importing data from some
data files, like csv etc., and then put this database into one of my
android application and then deploy into the Android device.

 By now the samples and tutorial what I found are all taliking
about creating the sqlite database at runtime when running the android
application on the device.  Is there anyway I can create it offline
and then attach it to my application later?

Any tools and docs for this?
 Thank you very much!

-- 
Bhaumik Thaker

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

2012-01-12 Thread ludy
i use audiorecord to record morse sound ,and then need to convert
morse sound to text,how to 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] INSTALL_FAILED_MISSING_FEATURE

2012-01-12 Thread ANKUR GOEL
INSTALL_FAILED_MISSING_FEATURE in LG phone ..

i tried with sending the apk through mail , adb command its not running in
LG device

rest of the devices the apk is running fine ..

pls help .

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] YUV to h263/h264 compression on android to stream video

2012-01-12 Thread muhammad.ume...@hotmail.com
hi,

I am trying stream video from android to network and receiving it on a
server that I had written in java.

I am capturing YUV data on onPreviewFrame method on Camera convert
with yuv in jpeg and sending it to the server where I convert this
data to image and displaying it.

Everything works fine but the problem is that there is a lot much
delay and size of images in the streaming process as I am sending the
data directly. Is there some way of encoding this YUV data to h263 or
h264 format so that I can minimize the delay and the size of images?

Also MediaRecorder have ability to record the video in the available
standard video format but it stores the video to a file on sdcard. Is
there any way of getting a stream from that video which is being
recorded so that I can stream it to the network? This will reduce my
efforts in conversion process.


here is my code for conversion.

public void onPreviewFrame(byte[] data, Camera camera) {


Camera.Parameters parameters = camera.getParameters();
int format = parameters.getPreviewFormat();

 //YUV formats require more conversion
if (format == ImageFormat.NV21 /*|| format ==
ImageFormat.YUY2 || format == ImageFormat.NV16*/)
{
int w = parameters.getPreviewSize().width;
int h = parameters.getPreviewSize().height;
// Get the YuV image
YuvImage yuv_image = new YuvImage(data, format, w, h,
null);
// Convert YuV to Jpeg
Rect rect = new Rect(0, 0, w, h);
ByteArrayOutputStream output_stream = new
ByteArrayOutputStream();
yuv_image.compressToJpeg(rect, 100, output_stream);
byte[] byt=output_stream.toByteArray();

and send these bytes to network. how to reduce the size of images in
KB and also delay?

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] Will there be memory leak ?

2012-01-12 Thread Michael Banzon
On Thu, Jan 12, 2012 at 9:02 AM, sl.laptop@maxis  wrote:
> will there be memory leak ?

No. There will be garbage collection.

-- 
Michael Banzon
http://michaelbanzon.com/

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


[android-developers] Disable screenshot within an app in ICS?

2012-01-12 Thread Tom Uhl
Is there a way for an app to disable the new built-in-screenshot
function in ICS?

I don't want to completely disable screenshot for the entire platform;
I only want to disable it when my Activity is in the foreground.

Tom

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


[android-developers] Re: Android source build on Gentoo Linux works

2012-01-12 Thread Adam
> TobuildtheAndroidsource under Linux, you will need Ubuntu. TheAndroidbuildis 
> routinely tested on recent versions of Ubuntu (6.06
> and later), but reports of successes or failures on other
> distributions are welcome.
>
> To set up your Linux development environment, make sure you have the
> following:
> Git 1.5.4 or newer. Instructions for how to install and configure Git
> are below.
> Python 2.4, which you can download from python.org .
> JDK 5.0, update 12 or higher, which you can download from
> java.sun.com .
> The following packages: flex, bison, gperf, libsdl-dev, libesd0-dev,
> libwxgtk2.6-dev (optional),build-essential. To make sure you have all
> these packages, run
>    $ sudo apt-get install flex bison gperf libsdl-dev libesd0-dev
> libwxgtk2.6-devbuild-essential zip curl
> You might also want Valgrind, a tool that will help you find memory
> leaks, stack corruption, array bounds overflows, etc. To install it,
> run
>    $ sudo apt-get install valgrind
> 
>
> Obviously we don't have apt-get here.
>
> Git, python, java, flex, bison, gperf, zip, curl have packages that
> can be emerged if you don't have them already.
>
> For libsdl-dev, I emerged package libsdl.   For libwxgtk2.6-dev, I
> emerged package wxGTK.
>
> And for libesd0-dev, I emerged media-libs/audiofile-0.2.6-r3, media-
> libs/alsa-lib, and media-sound/esound-0.2.38-r1.  The first two
> packages may be unnecessary but the last one should cover it.
>
> I'm not sure whatbuild-essential is - I think it's ubuntu-specific.
> Valgrind has its own package so I emerged that with no problems.
>
> I also had to emerge unzip because thebuildprocess complained about
> unzip missing;  I reran thebuildand didn't get any further
> complaints.

Your post really helps. I got android tree compiled in my gentoo box.
Here is a list of software in addition

## android cannot be built with make-3.82
echo ">sys-devel/make-3.81-r2" >> /etc/portage/package.mask
## 32bit version of basic libs are neccessary
emerge -av emul-linux-x86-baselibs
## pulseaudio deamon with esound wrap
emerge pulseaudio alsa-lib
## misc
emerge -av valgrind unzip

/Adam

>
> So I was able to complete thebuildwith no errors regarding missing
> symbols, etc - hopefully nothing comes up in further testing.  Just
> passing this on to people not using Ubuntu...
>
> -Rob

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Disable screenshot within an app in ICS?

2012-01-12 Thread Michael Banzon
On Thu, Jan 12, 2012 at 10:13 AM, Tom Uhl  wrote:
> Is there a way for an app to disable the new built-in-screenshot
> function in ICS?

I don't think there is. If there is - I'm guessing you're trying to
"protect" something - please keep in mind that the user can also grab
screenshots through USB-debugging or through HDMI.

-- 
Michael Banzon
http://michaelbanzon.com/

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


[android-developers] Re: Problem with Android Market Filters

2012-01-12 Thread xavibq
Thanks for your support Patrick. I'll try setting telephony as not
required.

For someone else interested in this issue I asked the same question to
stackoverflow website ->
http://stackoverflow.com/questions/8800273/application-doesnt-appear-in-android-market-for-a-certain-device-android-marke

Xavi Barrera Quintanilla

On 10 ene, 11:45, patrick  wrote:
> Hello,
>
> You use the SMS permission, so the telephony feature is by default set
> to "mandatory". As the Xoom doesnt have the telephony feature, it cant
> see your app.
>
> If you add   in your manifest, you should be able to
> see your app.
>
> Regards,
> Patrick
>
> On Jan 9, 10:34 am, xavibq  wrote:
>
>
>
>
>
>
>
> > Dear All,
>
> > I have some problems with Android Market filtering system. I have been
> > reading the documentation about Android Market Filters in
> > developer.android.com, and I suppose the problem is related with
> > screen or density restrictions.
>
> > The manifest of my application contains the following:
> >        > android:name="android.permission.ACCESS_FINE_LOCATION"/>
> >       
> >        > android:name="android.permission.READ_PHONE_STATE"/>
> >       
> >        > android:name="android.permission.ACCESS_COARSE_LOCATION"/>
> >        > android:name="android.permission.ACCESS_COARSE_UPDATES"/>
> >       
> >        > android:name="android.permission.ACCESS_NETWORK_STATE" />
> >       
> >        > android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
> >       
>
> > Looking to this uses permissions it is clear that Android Market will
> > restrict the app to those devices which don't have either GPS, 3G/
> > WiFi, Telephony or SD storage.
>
> > However, I have a Motorola Xoom tablet (Android 3.1) which has all
> > these hardware capabilities and it is unable to see my app in the
> > Android Market.
>
> > I'm not declaring any supported screen by means of 
> > element, because when the android:minSdkVersion is set to 4 or higher,
> > the application is considered to support all screen sizes by default.
> > But my application is based on API level 7 and android:xlargeScreens
> > attribute doesn't appear until API level 9.
>
> > Any idea?
>
> > Thanks in advance.
>
> > Xavi Barrera Quintanilla

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

2012-01-12 Thread Stephan Wiesner
I agree and actually profit from it. As a private developer I hate
that I have to write Bugfixes for single devices/Android versions
(just thinking of the Galaxy SI lagfix thing gets me goosebumbs) but
in my professional life I am a software tester and we actually earn
our money by offering our clients to have us test their apps on
different devices/Android versions.
As Dianne mentioned there are actually not _that_ many differences/
bugs, but they are real and they can get very expensive (again think
lagfix).

Greetings from Zurich,
Stephan Wiesner

On 11 Jan., 23:31, Christopher Van Kirk
 wrote:
> Yeah, I would respectfully disagree with your assessment.
>
> Making software is a business. An investment. To reap maximum rewards on
> that investment the product has to have as much reach as possible,
> meaning the OP is absolutely on point about OS upgrades. Who is going to
> spend 10k, 100k, 1m, etc, developing an app whose target market is less
> than 1% of active installs? 4.0 won't be an attractive target for
> developers until it commands at least 80% of the installed market, which
> will likely take at least a year to occur, perhaps longer.
>
> Comparing handset differences with browser difference is just absurd.
> How many browser versions are there? Five maybe six? An average Android
> app has to deal with over 600 different devices today. That's a
> difference of 100x. This number is also growing at an exponential rate,
> so even if you can manage to test on all of those devices, in three
> months you'll probably have to do the same number again.
>
> What you're apparently not appreciating is that unlike the PC/Mac world,
> the Android world lacks strong compatibility standards and more
> importantly, conformance testing. As a consequence, devices tend to have
> niggling and chronic differences that in aggregate make for an
> inconsistent and unstable feel for the platform. You really have to have
> a very large operation or have a very unambitious app to make an app
> with long reach in the Android world.
>
> By contrast, the Apple approach is that one size fits all. From a small
> or independent developers perspective this really is preferable, because
> you know if you test it and it works on one device it's going to work on
> all of them, and there are millions of them out there. You simply don't
> have that guarantee in Android. It's no accident that the most
> profitable app market is to be found on Apple devices.
>
> Don't get me wrong. I'm not an Apple fan. But having spent considerable
> time fighting with device peculiarities in the Android ecosystem instead
> of adding features to my app, I find that I long for the simplicity that
> the Apple ecosystem guarantees.
>
> On 10/28/2011 12:01 AM, Studio LFP wrote:
>
>
>
> > Eh, it's not that bad.
>
> > If you look at the history of developers, we're already use to having
> > to deal with a lot worse fragmentation issues than Android. Anyone
> > that's ever developed a website correctly knows that supporting the
> > available web browsers is a lot more of a challenge than with Android
> > versions.
>
> > Windows, Mac OSX, a ton of server technologies, databases, etc., they
> > all have tons of different versions available to support. Most
> > companies stick with older versions because it is what they have and
> > it is working. When it comes to Android, I've been pleasantly
> > surprised at the efforts Google has gone through to help manufacturers
> > upgrade. Even though 2.1, 2.2 and 2.3 are different, they aren't so
> > much different that in most cases you can't treat them as 2.x. It
> > seems to me that Android is more broken up in 1.x, 2.x, 3.x and now
> > 4.x instead of the individual versions themselves.
>
> > I'd rather a little fragmentation in Android than for them to pull an
> > Apple and everyone is the exact same, right down to the hardware
> > level. Variety is something we need in the mobile market, not a one
> > device fits all concept.
>
> > Steven
> > Studio LFP
> >http://www.studio-lfp.com
>
> > On Thursday, October 27, 2011 10:36:24 AM UTC-5, Greg Donald wrote:
>
> >    http://theunderstatement.com/post/11982112928/android-orphans-visuali...
> >     
> > 
>
> >     Wow.. I knew it was bad, but man.
>
> >     "most app developers will end up targeting an ancient version of the
> >     OS in order to maximize market reach."
>
> >     I totally agree.. It will literally be years before I will begin to
> >     care about the new 4.0.  I'm still supporting devices running 2.1 and
> >     will be for some time to come.
>
> >     --
> >     Greg Donald
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more

[android-developers] Re: how to be a game developers in android

2012-01-12 Thread Ali Chousein
> I wrote a game in it in 1hr.
> No Java required.

Oh come-on, give me a break!

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

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

2012-01-12 Thread Pent
I have a few apks on Market that are purely content holders for icons.
These apks usually respond to a broadcast receiver query with details
of what icons they contain etc.

On ICS, they don't respond after install so they're essentially
invisible to the host app that wants to use the icons.

I remember reading a while ago that apps are now in some kind of
'frozen' state until the user starts them up (or similar). Can anyone
point me to the documentation for this frozen state ?

Thanks,

Pent

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

2012-01-12 Thread Live Happy
On Wed, Jan 11, 2012 at 9:27 PM, TreKing  wrote:

> On Wed, Jan 11, 2012 at 8:36 AM, Live Happy  wrote:
>
>> *how to make android application when the user click on the phone call
>> button than the application provide itself to make call. as skype and viber
>> * ?
>
>
> Read the intent filter documentation.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
i made the intent filter but how can i  call it : by event listener on
phone call action ? or is there any way to register my application in phone
system that it provides call service
thanks for reply

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

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

2012-01-12 Thread Kostya Vasilyev

http://developer.android.com/sdk/android-3.1.html

Under "Launch controls on stopped applications":

>>>
Applications are in a stopped state when they are first installed but 
are not yet launched and when they are manually stopped by the user (in 
Manage Applications).

<<<

And yes, it's a real pain to deal with.

I have a free base app and an unlocker app, and had to structure it so 
that the user actually runs the unlocker app.


As a consequence, the unlocker app has to have a button to "hide its 
icon" where it calls PackageManager.setApplicationEnabledSetting for its 
launcher/main activity (apparently it's a real tragedy for some users to 
have an icon in the apps list that says "... Pro Key").


This works on most devices, but on the Samsung S5830 -- and I suspect 
most/all Samsung devices with TouchWiz -- it only takes effect after a 
reboot, and users think it's my code that's broken.


I really hate it how new Android versions break stuff that used to work 
before, and the painful fallout from those changes.


-- Kostya

12.01.2012 14:39, Pent ?:

I have a few apks on Market that are purely content holders for icons.
These apks usually respond to a broadcast receiver query with details
of what icons they contain etc.

On ICS, they don't respond after install so they're essentially
invisible to the host app that wants to use the icons.

I remember reading a while ago that apps are now in some kind of
'frozen' state until the user starts them up (or similar). Can anyone
point me to the documentation for this frozen state ?

Thanks,

Pent



--
Kostya Vasilyev

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

2012-01-12 Thread Pent

> http://developer.android.com/sdk/android-3.1.html

Ah, 3.1, I had checked 3.0, many many thanks.

> I really hate it how new Android versions break stuff that used to work
> before, and the painful fallout from those changes.

Amen. My app covers an unusually large % of the API so a few things
always break with new Android versions.

Pent

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

2012-01-12 Thread Prathamesh
Hi all,

I want to read received SMS in my application without closing or
minimizing or switching application.

Is there any provision in android for such functionality ?

How to integrate Application and SMS ?



Assumption:

SMS is intended for that application. SMS has some meta-data related
to appplication using which application identifies that SMS.


Any Ideas/ suggestions


Thanks
Prathamesh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] query CallLog.Calls using Date Range

2012-01-12 Thread basant mohamed
I’m a beginner android developer and I’m working on application that
require to select from CallLog.Calls the calls between two dates range

and it require that if I select from date 01-01-2012 to date 01-01-2012 it
will return all calls at this date “01-01-2012”

I just want to help me and tell me  how could I do this ,if you please.



Thanks you & best regards

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [Resolved] Re: ADT Eclipse: Failed to parse the output of 'adb version'

2012-01-12 Thread Lucio Pellecchia
resolved!!! :D

my problem was ANTIVIRUS!!!

On 7 Gen, 12:02, Lucio Pellecchia  wrote:
> Albert ...thank you for your interest
> I don't think the problem is SDK revision, but I think that some
> process on my PC goes into conflation with eclipse ADT and adb,
> because when I turn on my pc and this works very well... I start
> eclipse and the emulator works!!!  but when I close and open eclipse I
> get the following error: "Failed to parse the output of 'adb version'
> "
>
> On 5 Gen, 17:23, Albert Pi  wrote:
>
>
>
>
>
>
>
> > Lucio,
> > Try to use sdk android revision 15. This revision is working on my PC
> > (Windows XP/jdk 1.7.0_02/Eclipse 3.7.1(Indigo)/sdk android revsion
> > 15).
>
> > On Jan 4, 8:33 am, LucPel  wrote:
>
> > > I have the problem with my installation ADT Android on Eclipse Indigo,
> > > the problem is this:
>
> > >                    When I open Eclipse this error appears :  "Failed
> > > to parse the output of 'adb version' "
>
> > > I've read numerous posts on this site but i can not solve my problem.
>
> > > I use:
> > >    Windows 7
> > >    jdk 1.7.0_02
> > >    Eclipse Indigo
> > >    sdk android revision 16
>
> > > I tried:
> > >    adb kill-server
> > >    adb start-server
> > >    restart eclipse
>
> > >    my Environment Variables is ok...
> > >    and when I compile and run it as a prompt, okay! works
>
> > > but I don't solve the problem with eclipse! :(
>
> > > I noticed that immediately restarting Windows and opening Eclipse ...
> > > ADT on Eclipse WORKS!!! I close Eclipse and ADT on Eclipse does NOT
> > > work!!!
>
> > > Help 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] query CallLog.Calls using Date Range

2012-01-12 Thread Mark Murphy
You would need to convert those dates into Unix time values
(milliseconds since the epoch), and use them in a query to constrain
the values of the DATE column in CallLog.Calls.

On Thu, Jan 12, 2012 at 7:31 AM, basant mohamed
 wrote:
> I’m a beginner android developer and I’m working on application that require
> to select from CallLog.Calls the calls between two dates range
>
> and it require that if I select from date 01-01-2012 to date 01-01-2012 it
> will return all calls at this date “01-01-2012”
>
> I just want to help me and tell me  how could I do this ,if you please.
>
>
>
> Thanks you & best regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] All the google accounts of all the phones waiting for C2DM push notifications must be registered on C2DM?

2012-01-12 Thread saex
i'm checking this link: 
http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html

It says that in order tu ouse C2DM, you need to ask for access,
because it is a beta software. Here is the link to the signup form:
http://code.google.com/android/c2dm/signup.html

OK, but wich account must ask for acces? the googleacount used in
the server side? or all the millions of googleaccounts used on the
millions of android phones that will receive notifications from the
server?

thanks

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


[android-developers] Re: All the google accounts of all the phones waiting for C2DM push notifications must be registered on C2DM?

2012-01-12 Thread appel
The developers that wants to use c2dm in their apps. 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] query CallLog.Calls using Date Range

2012-01-12 Thread basant mohamed
could you tell me how to convert the time to Unix time
if u please

On Thu, Jan 12, 2012 at 2:40 PM, Mark Murphy wrote:

> You would need to convert those dates into Unix time values
> (milliseconds since the epoch), and use them in a query to constrain
> the values of the DATE column in CallLog.Calls.
>
> On Thu, Jan 12, 2012 at 7:31 AM, basant mohamed
>  wrote:
> > I’m a beginner android developer and I’m working on application that
> require
> > to select from CallLog.Calls the calls between two dates range
> >
> > and it require that if I select from date 01-01-2012 to date 01-01-2012
> it
> > will return all calls at this date “01-01-2012”
> >
> > I just want to help me and tell me  how could I do this ,if you please.
> >
> >
> >
> > Thanks you & best regards
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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 Training in NYC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: All the google accounts of all the phones waiting for C2DM push notifications must be registered on C2DM?

2012-01-12 Thread saex
the googleaccount used to register on that link, is the google acount
that i must use on the server? or not? i didn't understand it

On 12 ene, 13:46, appel  wrote:
> The developers that wants to use c2dm in their apps.

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

2012-01-12 Thread Mark Murphy
Your manifest has a  element for some feature that the
phone does not have.

On Thu, Jan 12, 2012 at 3:46 AM, ANKUR GOEL  wrote:
> INSTALL_FAILED_MISSING_FEATURE in LG phone ..
>
> i tried with sending the apk through mail , adb command its not running in
> LG device
>
> rest of the devices the apk is running fine ..
>
> pls help .
>
> 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 Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Working With Offline Database Problem

2012-01-12 Thread Mark Murphy
Try:

https://github.com/jgilfelt/android-sqlite-asset-helper

On Thu, Jan 12, 2012 at 12:31 AM, Bhaumik Thaker  wrote:
> Hi all,
>
>       I want to create a sqlite database by importing data from some
> data files, like csv etc., and then put this database into one of my
> android application and then deploy into the Android device.
>
>      By now the samples and tutorial what I found are all taliking
> about creating the sqlite database at runtime when running the android
> application on the device.  Is there anyway I can create it offline
> and then attach it to my application later?
>
>     Any tools and docs for this?
>
>      Thank you very much!
>
> --
> Bhaumik Thaker
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 implementing CA Endless list. How to debug this error?

2012-01-12 Thread Mark Murphy
On Thu, Jan 12, 2012 at 2:26 AM, Satyajit Sarangi
 wrote:
> I tried to implement the endless list but got this error on log chat:
> http://pastebin.com/2WnnJ9KA
>
> The error is caused due to not adding the package name
> com.cware.endless in manifest.xml of my project.

Then don't do that. Nowhere in the documentation or sample code does
it tell you to do that.

> But, my project
> already has its main package that is included in manifest.xml. Thus,
> what changes should I do to seamlessly implement endlesslist?

Read the documentation at:

https://github.com/commonsguy/cwac-endless

and examine the sample project at:

https://github.com/commonsguy/cwac-endless/demo

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

Android Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-developer] storing image in sd card from drawable folder

2012-01-12 Thread surabhi jain
hi

I want to store image from drawable folder into sd card.

plz send me the code.

Thanx to all

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

2012-01-12 Thread John Coryat
Update...

Got a response from the "market support team." I'm not surprised they 
didn't bother to actually read my report and just sent a canned response:

*Hello John,

Thanks for your email. I suggest that you have the buyer write to our
buyer support specialist at
http://www.google.com/support/wallet/bin/request.py?contact_type=contact_policy&policy=wallet&;
and they will be happy to help.

Sincerely,

Komal
The Google Checkout Team*

Well, Komal, you certainly have kept my opinion of the "Google Checkout 
Team" intact.

-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] notifyDataSetChanged() Is not refreshing ArrayAdapter

2012-01-12 Thread rachana govilkar
Hello all,

I have 3 activities.
1.FriendsList
2.MessageList
3.DisplaySingleMessage.

Now in FriendsList activity I display count of messages.And then I
want to decrease that count as I read messages in DisplaySingleMessage
activity.
I do set decreased count in DisplaySingleMessage activity.

So, on FriendsList activity I am using method
friendListAdaptor.notifyDataSetChanged().
This adapter is arrayadapter but it is not giving proper result.
Is there anything I also need to write??
Can anybody help me??
Thank you.

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


Re: [android-developers] notifyDataSetChanged() Is not refreshing ArrayAdapter

2012-01-12 Thread vandana toshniwal
once u decrease the count...also remove that from the array
then call notifyDataSetChanged()




On 12 January 2012 18:52, rachana govilkar wrote:

> Hello all,
>
> I have 3 activities.
> 1.FriendsList
> 2.MessageList
> 3.DisplaySingleMessage.
>
> Now in FriendsList activity I display count of messages.And then I
> want to decrease that count as I read messages in DisplaySingleMessage
> activity.
> I do set decreased count in DisplaySingleMessage activity.
>
> So, on FriendsList activity I am using method
> friendListAdaptor.notifyDataSetChanged().
> This adapter is arrayadapter but it is not giving proper result.
> Is there anything I also need to write??
> Can anybody help me??
> Thank you.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: notifyDataSetChanged() Is not refreshing ArrayAdapter

2012-01-12 Thread rachana govilkar
Thnx vandana,
But hot to remove it?? As I am decreasing count in another activity.
And 1 more thing I noticed if I restart the application it shows me
decreased count but I want this to happen also on click of Back
Button.
Sorry I should have mentioned it in 1st post.

On Jan 12, 6:27 pm, vandana toshniwal 
wrote:
> once u decrease the count...also remove that from the array
> then call notifyDataSetChanged()
>
> On 12 January 2012 18:52, rachana govilkar wrote:
>
>
>
>
>
>
>
> > Hello all,
>
> > I have 3 activities.
> > 1.FriendsList
> > 2.MessageList
> > 3.DisplaySingleMessage.
>
> > Now in FriendsList activity I display count of messages.And then I
> > want to decrease that count as I read messages in DisplaySingleMessage
> > activity.
> > I do set decreased count in DisplaySingleMessage activity.
>
> > So, on FriendsList activity I am using method
> > friendListAdaptor.notifyDataSetChanged().
> > This adapter is arrayadapter but it is not giving proper result.
> > Is there anything I also need to write??
> > Can anybody help me??
> > Thank you.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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

2012-01-12 Thread TreKing
On Wed, Jan 11, 2012 at 10:01 PM, mot12  wrote:

> So you want to be rich? A book won't make you rich.


Sure it will! I can show you how.

Just send me $50 for my book, "How to Get People to Send You $50 For Your
Book", and learn the secrets today!

-
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 provide call

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 4:59 AM, Live Happy  wrote:

> i made the intent filter but how can i  call it


This is not something you call. This is something the OS uses to determine
if your app is a candidate for receiving an Intent.


> by event listener on phone call action ?


Click on a phone number URI.


> or is there any way to register my application in phone system that it
> provides call service


Register the correct Intent Filter in your manifest.

-
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] Re: how to be a game developers in android

2012-01-12 Thread Paco Abato
Beginning Android Games by Mario Zechner is a good first step. Worked
for me anyway. You need to know Java.

Francisco Abato Helguera
pacoab...@gmail.com

SAIG S.L. - www.saig.es
Analista Programador
fab...@saig.es
Tlfno. SAIG: 955 72 33 44

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

2012-01-12 Thread TreKing
On Wed, Jan 11, 2012 at 8:57 PM, Yar Lag  wrote:

> The app will show a video after it has been idle for a while.
> When a user touches the demo video, it stops and goes to home screen.
> Prevents a user from uninstalling this app.
> Hide the app from the applications list on the home screen.
> At each midnight resets the device to a default configuration (home
> screens, browser history and contacts information)
>
> Are these 5 things possible?
>

I think ... yes, yes, no, yes, no.

For the two nos, you have to modify the firmware.

-
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: Want to use Unlock Pattern in my Android App

2012-01-12 Thread TreKing
Replying back to the list.

On Thu, Jan 12, 2012 at 4:09 AM, david joe  wrote:

> Thanks TreKing,
>
> Where it is implemented or where is the source code that i can read.
> Is there any example how to use unlock pattern.
>

These are questions Google can answer for you.

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

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

[android-developers] How to compress images in onPreviewframe??

2012-01-12 Thread muhammad.ume...@hotmail.com
hi,
 I am trying stream video from android to network and receiving it
on a server that I had written in java.
I am capturing YUV data on onPreviewFrame method on Camera convert
with yuv in jpeg and sending it to the server where I convert this
data to image and displaying it.

verything works fine but the size of the image is too large in KB to
send on network that are 20-30 kb, I want to reduce the size(KB)
approximately 2-3 kb. please tell me how can i reduce the size? Is it
possible?

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] How can i get the payment from amazon earning

2012-01-12 Thread TreKing
On Wed, Jan 11, 2012 at 10:58 PM, a a  wrote:

> How can i get the payment from amazon earning


Have you considered contacting Amazon ?

.
...
.

*shakes head*

-
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] Adjusting zoom level according to local area, city, country level area.

2012-01-12 Thread Anieeh
Hi all
i am developing an application on which i am using Google maps
using with MapView, and i am using Geocoder class for Geo coding and
reverse-geocoding and i want to set a zoom level according to the
place i search i.e. city, country, etc. zoom levels. Google maps app
does this, but dont know how but i havent found any Google map API for
such that thing. As well as i havent found any zoom level parameter in
Geocoder or reverse-Geocoder class response such that i can set those
value in the MapController.setZoom() method.

   Plz help me to find this solution if any one knows.

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


[android-developers] Re: How to compress images in onPreviewframe??

2012-01-12 Thread Fred Grott
hmm gzip it before sending assuming you can unzip it on the other end

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

2012-01-12 Thread Harri Smått
Hi,

If you want to have 2-3KB image size it has to be very small by dimension and 
compressed using very low quality. You can try different values on 
Bitmap.compress(..) but I doubt you will ever achieve good enough quality with 
such a small filesize requirement.

--
H

On Jan 12, 2012, at 3:56 PM, muhammad.ume...@hotmail.com wrote:

> hi,
> I am trying stream video from android to network and receiving it
> on a server that I had written in java.
> I am capturing YUV data on onPreviewFrame method on Camera convert
> with yuv in jpeg and sending it to the server where I convert this
> data to image and displaying it.
> 
> verything works fine but the size of the image is too large in KB to
> send on network that are 20-30 kb, I want to reduce the size(KB)
> approximately 2-3 kb. please tell me how can i reduce the size? Is it
> possible?
> 
> 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

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

2012-01-12 Thread Kostya Vasilyev
12 января 2012 г. 17:37 пользователь TreKing  написал:
> On Wed, Jan 11, 2012 at 10:01 PM, mot12  wrote:
>>
>> So you want to be rich? A book won't make you rich.
>
>
> Sure it will! I can show you how.
>
> Just send me $50 for my book, "How to Get People to Send You $50 For Your
> Book", and learn the secrets today!

Now *that* is what I call genius marketing!

>
> -
> 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] A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread saex
i want that when the phone receives a push notification from AC2M, a
notification must be shown in the notification bar, and if the user
press on the notification, my app must be started and show a specific
activity describing that notification, and not the normal fist
activity of my app.

It is possible to achieve this? can someone explain me how?

My app must be started to listen the receiver? or can my app be not
started?

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] A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread Kostya Vasilyev
When creating a notification, you're supposed to supply a
PendingIntent. When the user click on the notification, this
PendingIntent is "fired" by the system.

What the PendingIntent resolves to is entirely up to you - it can be
any of your activities, not necessarily the main/launcher one.

http://developer.android.com/guide/topics/ui/notifiers/notifications.html

http://developer.android.com/reference/android/app/PendingIntent.html

For Android 3.0 and higher, consider using getActivities() / note the
plural / to take the user inside your activity stack.

-- Kostya

12 января 2012 г. 18:45 пользователь saex  написал:
> i want that when the phone receives a push notification from AC2M, a
> notification must be shown in the notification bar, and if the user
> press on the notification, my app must be started and show a specific
> activity describing that notification, and not the normal fist
> activity of my app.
>
> It is possible to achieve this? can someone explain me how?
>
> My app must be started to listen the receiver? or can my app be not
> started?
>
> 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] How to compress images in onPreviewframe??

2012-01-12 Thread Muhammad UMER

hi,
Thanks for your reply, please can you send me a sample code of 
Bitmap.compress(..) that can help me. where here is my code to compress it to 
jpeg


public void onPreviewFrame(byte[] data, Camera camera) {  


Camera.Parameters parameters = camera.getParameters();
int format = parameters.getPreviewFormat();

 //YUV formats require more conversion
if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || 
format == ImageFormat.NV16*/)
{
int w = parameters.getPreviewSize().width;
int h = parameters.getPreviewSize().height;
// Get the YuV image
YuvImage yuv_image = new YuvImage(data, format, w, h, null);
// Convert YuV to Jpeg
Rect rect = new Rect(0, 0, w, h);
ByteArrayOutputStream output_stream = new 
ByteArrayOutputStream();
yuv_image.compressToJpeg(rect, 100, output_stream);
byte[] byt=output_stream.toByteArray();

it gives me 768x428 size of images. i want the QVGA size that is quarter the 
size of normal VGA image, and it doesn't metter how the quality is. Please tell 
me Bitmap.compress(..) is a something 
different technique ? or suggest me another best technique for implementation. 
and on server side i want to create a video with these images.


Thanks


 

> Subject: Re: [android-developers] How to compress images in onPreviewframe??
> From: har...@gmail.com
> Date: Thu, 12 Jan 2012 16:33:20 +0200
> To: android-developers@googlegroups.com
> 
> Hi,
> 
> If you want to have 2-3KB image size it has to be very small by dimension and 
> compressed using very low quality. You can try different values on 
> Bitmap.compress(..) but I doubt you will ever achieve good enough quality 
> with such a small filesize requirement.
> 
> --
> H
> 
> On Jan 12, 2012, at 3:56 PM, muhammad.ume...@hotmail.com wrote:
> 
> > hi,
> > I am trying stream video from android to network and receiving it
> > on a server that I had written in java.
> > I am capturing YUV data on onPreviewFrame method on Camera convert
> > with yuv in jpeg and sending it to the server where I convert this
> > data to image and displaying it.
> > 
> > verything works fine but the size of the image is too large in KB to
> > send on network that are 20-30 kb, I want to reduce the size(KB)
> > approximately 2-3 kb. please tell me how can i reduce the size? Is it
> > possible?
> > 
> > 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
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 to compress images in onPreviewframe??

2012-01-12 Thread Harri Smått

On Jan 12, 2012, at 4:52 PM, Muhammad UMER wrote:

> Rect rect = new Rect(0, 0, w, h);
> ByteArrayOutputStream output_stream = new 
> ByteArrayOutputStream();
> yuv_image.compressToJpeg(rect, 100, output_stream);
> byte[] byt=output_stream.toByteArray();

Since you're using YuvImage.compressToJpeg, you don't need to use Bitmap at 
all. Just change current compression quality 100 to 0, and most importantly, 
you have to drop image size much lower than QVGA. There really isn't much you 
can do within 2-3KB range.

--
H

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread saex
no no, you didn't understand my question, im telling you that the app
must be NOT STARTED, and the broadcastreceiver must start it; please,
read it again and answer me

On 12 ene, 15:49, Kostya Vasilyev  wrote:
> When creating a notification, you're supposed to supply a
> PendingIntent. When the user click on the notification, this
> PendingIntent is "fired" by the system.
>
> What the PendingIntent resolves to is entirely up to you - it can be
> any of your activities, not necessarily the main/launcher one.
>
> http://developer.android.com/guide/topics/ui/notifiers/notifications
>
> http://developer.android.com/reference/android/app/PendingIntent.html
>
> For Android 3.0 and higher, consider using getActivities() / note the
> plural / to take the user inside your activity stack.
>
> -- Kostya
>
> 12 января 2012 г. 18:45 пользователь saex  написал:
>
>
>
>
>
>
>
> > i want that when the phone receives a push notification from AC2M, a
> > notification must be shown in the notification bar, and if the user
> > press on the notification, my app must be started and show a specific
> > activity describing that notification, and not the normal fist
> > activity of my app.
>
> > It is possible to achieve this? can someone explain me how?
>
> > My app must be started to listen the receiver? or can my app be not
> > started?
>
> > 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] Re: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread Streets Of Boston
Yes.

In brief, your application should contain 

(1) a broadcast-receiver getting C2DM messages (
http://code.google.com/android/c2dm/)
which will post a Notification with a PendingIntent. 

(2) An activity whose intent-filter matches the Intent inside the 
PendingIntent.

When the user selects the Notification from the status-bar, its 
PendingIntent's Intent is fired. Any Activity (e.g. your activity) that 
matches this Intent is started.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-developer] storing image in sd card from drawable folder

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 7:13 AM, surabhi jain wrote:

> plz send me the code.


plz learn to program.

-
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] Re: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread Kostya Vasilyev
I believe I did:

> > a
> > notification must be shown in the notification bar, and if the user
> > press on the notification, my app must be started and show a specific
> > activity describing that notification, and not the normal fist
> > activity of my app

 and explained how to go from a notification displayed by some
piece of your code to a particular activity within your app, and not
the main/launcher activity.

Let's try and get the terminology straight(-er):

Executing code in a broadcast receiver, or any code in any application
is only possible in a started application, by definition - code can't
execute surrounded by nothingness, there has to be a process to run
it.

This does not necessarily mean starting the main/launcher activity: a
broadcast receiver or a service have no UI of their own, a
PendingIntent used in a Notification can resolve to something else,
etc.

For a manifest-registered broadcast receiver, Android will do this
(create the process and load the code if necessary) for you, and then
execute the receiver's onReceive.

-- Kostya

12 января 2012 г. 19:07 пользователь saex  написал:
> no no, you didn't understand my question, im telling you that the app
> must be NOT STARTED, and the broadcastreceiver must start it; please,
> read it again and answer me
>
> On 12 ene, 15:49, Kostya Vasilyev  wrote:
>> When creating a notification, you're supposed to supply a
>> PendingIntent. When the user click on the notification, this
>> PendingIntent is "fired" by the system.
>>
>> What the PendingIntent resolves to is entirely up to you - it can be
>> any of your activities, not necessarily the main/launcher one.
>>
>> http://developer.android.com/guide/topics/ui/notifiers/notifications
>>
>> http://developer.android.com/reference/android/app/PendingIntent.html
>>
>> For Android 3.0 and higher, consider using getActivities() / note the
>> plural / to take the user inside your activity stack.
>>
>> -- Kostya
>>
>> 12 января 2012 г. 18:45 пользователь saex  написал:
>>
>>
>>
>>
>>
>>
>>
>> > i want that when the phone receives a push notification from AC2M, a
>> > notification must be shown in the notification bar, and if the user
>> > press on the notification, my app must be started and show a specific
>> > activity describing that notification, and not the normal fist
>> > activity of my app.
>>
>> > It is possible to achieve this? can someone explain me how?
>>
>> > My app must be started to listen the receiver? or can my app be not
>> > started?
>>
>> > 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

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

2012-01-12 Thread ehsan azimzadeh
Hi

I want to build system applications such as "Settings", "Phone" and etc in
eclipse. I got their sources from packages\apps directory but some apps
have used android libraries that not found in my android.jar, for example
"android.os.SystemProperties" in "Settings" app and many others libraries.
I uses android 2.2 platform and API level 8. My question is, *where can I
found these libraries? Are there libraries in android repository?*

Thanks a lot
Ehsan

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

2012-01-12 Thread Muhammad UMER

one thing i want to ask that Is it any delay due to this  
YuvImage.compressToJpeg compression. i mean it can send all the frame to 
network or it can miss some frames?? 
May i want to think towards this?? sorry for my English.


thanks

> Subject: Re: [android-developers] How to compress images in onPreviewframe??
> From: har...@gmail.com
> Date: Thu, 12 Jan 2012 17:05:43 +0200
> To: android-developers@googlegroups.com
> 
> 
> On Jan 12, 2012, at 4:52 PM, Muhammad UMER wrote:
> 
> > Rect rect = new Rect(0, 0, w, h);
> > ByteArrayOutputStream output_stream = new 
> > ByteArrayOutputStream();
> > yuv_image.compressToJpeg(rect, 100, output_stream);
> > byte[] byt=output_stream.toByteArray();
> 
> Since you're using YuvImage.compressToJpeg, you don't need to use Bitmap at 
> all. Just change current compression quality 100 to 0, and most importantly, 
> you have to drop image size much lower than QVGA. There really isn't much you 
> can do within 2-3KB range.
> 
> --
> H
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: SMS and Application Integration! Need Suggestion

2012-01-12 Thread Prathamesh
Any Suggestion please

On Jan 12, 5:14 pm, Prathamesh  wrote:
> Hi all,
>
> I want to read received SMS in my application without closing or
> minimizing or switching application.
>
> Is there any provision in android for such functionality ?
>
> How to integrate Application and SMS ?
>
> Assumption:
>
> SMS is intended for that application. SMS has some meta-data related
> to appplication using which application identifies that SMS.
>
> Any Ideas/ suggestions
>
> Thanks
> Prathamesh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread saex
then i must open the app and close it to activate the broadcast??? how
can i do that?

On 12 ene, 16:26, Kostya Vasilyev  wrote:
> I believe I did:
>
> > > a
> > > notification must be shown in the notification bar, and if the user
> > > press on the notification, my app must be started and show a specific
> > > activity describing that notification, and not the normal fist
> > > activity of my app
>
>  and explained how to go from a notification displayed by some
> piece of your code to a particular activity within your app, and not
> the main/launcher activity.
>
> Let's try and get the terminology straight(-er):
>
> Executing code in a broadcast receiver, or any code in any application
> is only possible in a started application, by definition - code can't
> execute surrounded by nothingness, there has to be a process to run
> it.
>
> This does not necessarily mean starting the main/launcher activity: a
> broadcast receiver or a service have no UI of their own, a
> PendingIntent used in a Notification can resolve to something else,
> etc.
>
> For a manifest-registered broadcast receiver, Android will do this
> (create the process and load the code if necessary) for you, and then
> execute the receiver's onReceive.
>
> -- Kostya
>
> 12 января 2012 г. 19:07 пользователь saex  написал:
>
>
>
>
>
>
>
> > no no, you didn't understand my question, im telling you that the app
> > must be NOT STARTED, and the broadcastreceiver must start it; please,
> > read it again and answer me
>
> > On 12 ene, 15:49, Kostya Vasilyev  wrote:
> >> When creating a notification, you're supposed to supply a
> >> PendingIntent. When the user click on the notification, this
> >> PendingIntent is "fired" by the system.
>
> >> What the PendingIntent resolves to is entirely up to you - it can be
> >> any of your activities, not necessarily the main/launcher one.
>
> >>http://developer.android.com/guide/topics/ui/notifiers/notifications
>
> >>http://developer.android.com/reference/android/app/PendingIntent.html
>
> >> For Android 3.0 and higher, consider using getActivities() / note the
> >> plural / to take the user inside your activity stack.
>
> >> -- Kostya
>
> >> 12 января 2012 г. 18:45 пользователь saex  написал:
>
> >> > i want that when the phone receives a push notification from AC2M, a
> >> > notification must be shown in the notification bar, and if the user
> >> > press on the notification, my app must be started and show a specific
> >> > activity describing that notification, and not the normal fist
> >> > activity of my app.
>
> >> > It is possible to achieve this? can someone explain me how?
>
> >> > My app must be started to listen the receiver? or can my app be not
> >> > started?
>
> >> > 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

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

2012-01-12 Thread Mark Cz
Hi All,

I have an activity with a custom style which has the following
property
true


The activity doesn't restart when there is an orientation change
(There is no call to onDestroy, onConfigurationChanged), it seems like
that this property suppresses any orientation changes.

Why ?

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


[android-developers] binding to service within a service question

2012-01-12 Thread Wall-E
I have a service(A) that binds to service(B).  Service A calls the
bind method in the onHandleIntent and because the bind method is
asynchronous before the onServiceConnected method is started the
onDestroy for service A is called.  Now the methods I need to call
from service B depend on the intent passed into service A.  So what I
did was store the intent as a member variable in service A.  What
confuses me is that in the onServiceConnected, I still have access to
the intent object.  Another thing that confuses me is that in the
onDestroy I also call the unbind method.  So if I'm no longer bound to
service B, how am I able to call service B methods?  Is it because the
unbind method is also asynchronous and is waiting until something is
finished?

Currently the services are doing exactly what I want them to do, which
is service A starts and binds to service B and call methods in service
B using the intent variable from service A.  What concerns me is if
there are any memory leaks with the way I have this set up?

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

2012-01-12 Thread Todd Grigsby
Aes and 3des.  google chilkat.
On Jan 6, 2012 2:04 AM, "giles ian"  wrote:

> Hello,
>
> Which is the best encryption method.
>
> My need is to encrypt data and store it in DB.
>
> Which would be the best among:
>
> 1. Base 64
> 2. AES
> 3. 3 DES
> 4. MD - 5
>
>  in terms of:
>
> 1. Security
> 2. Performance
> 3. Easy of implementation
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Performing changes in a view based on another view

2012-01-12 Thread Boozel
Hi

I have an application the consists of a main activity and a linear layout 
that is the the content view for the main activity. I also then have a pop 
down widow (like the one used in Contacts). When a button is pressed in the 
pop down window i need to call a method in the linear layouts class to 
update the layout but i cannot get this to work.
How can i make the view linear layout used in my main activity available in 
my pop down window.

Sorry for not providing source but my app is quite large and i dont wont to 
paste all the code here.

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] Re: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread Kostya Vasilyev
No, you don't have to.

Quoting myself: :)

> For a manifest-registered broadcast receiver, Android will do this
> (create the process and load the code if necessary) for you, and then
> execute the receiver's onReceive.

I also recommend reading this:

http://developer.android.com/guide/topics/fundamentals.html

In particular, it says:

>>>
Although broadcast receivers don't display a user interface, they may
create a status bar notification to alert the user when a broadcast
event occurs.
<<<

Sounds like exactly what you intend to do.

... and reading this:

http://developer.android.com/reference/android/content/BroadcastReceiver.html

>>>
You can either dynamically register an instance of this class with
Context.registerReceiver() or statically publish an implementation
through the  tag in your AndroidManifest.xml
<<<

>>>
The BroadcastReceiver class (when launched as a component through a
manifest's  tag) is an important part of an application's
overall lifecycle.
<<<

-- Kostya

12 января 2012 г. 19:35 пользователь saex  написал:
> then i must open the app and close it to activate the broadcast??? how
> can i do that?
>
> On 12 ene, 16:26, Kostya Vasilyev  wrote:
>> I believe I did:
>>
>> > > a
>> > > notification must be shown in the notification bar, and if the user
>> > > press on the notification, my app must be started and show a specific
>> > > activity describing that notification, and not the normal fist
>> > > activity of my app
>>
>>  and explained how to go from a notification displayed by some
>> piece of your code to a particular activity within your app, and not
>> the main/launcher activity.
>>
>> Let's try and get the terminology straight(-er):
>>
>> Executing code in a broadcast receiver, or any code in any application
>> is only possible in a started application, by definition - code can't
>> execute surrounded by nothingness, there has to be a process to run
>> it.
>>
>> This does not necessarily mean starting the main/launcher activity: a
>> broadcast receiver or a service have no UI of their own, a
>> PendingIntent used in a Notification can resolve to something else,
>> etc.
>>
>> For a manifest-registered broadcast receiver, Android will do this
>> (create the process and load the code if necessary) for you, and then
>> execute the receiver's onReceive.
>>
>> -- Kostya
>>
>> 12 января 2012 г. 19:07 пользователь saex  написал:
>>
>>
>>
>>
>>
>>
>>
>> > no no, you didn't understand my question, im telling you that the app
>> > must be NOT STARTED, and the broadcastreceiver must start it; please,
>> > read it again and answer me
>>
>> > On 12 ene, 15:49, Kostya Vasilyev  wrote:
>> >> When creating a notification, you're supposed to supply a
>> >> PendingIntent. When the user click on the notification, this
>> >> PendingIntent is "fired" by the system.
>>
>> >> What the PendingIntent resolves to is entirely up to you - it can be
>> >> any of your activities, not necessarily the main/launcher one.
>>
>> >>http://developer.android.com/guide/topics/ui/notifiers/notifications
>>
>> >>http://developer.android.com/reference/android/app/PendingIntent.html
>>
>> >> For Android 3.0 and higher, consider using getActivities() / note the
>> >> plural / to take the user inside your activity stack.
>>
>> >> -- Kostya
>>
>> >> 12 января 2012 г. 18:45 пользователь saex  написал:
>>
>> >> > i want that when the phone receives a push notification from AC2M, a
>> >> > notification must be shown in the notification bar, and if the user
>> >> > press on the notification, my app must be started and show a specific
>> >> > activity describing that notification, and not the normal fist
>> >> > activity of my app.
>>
>> >> > It is possible to achieve this? can someone explain me how?
>>
>> >> > My app must be started to listen the receiver? or can my app be not
>> >> > started?
>>
>> >> > 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
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.co

Re: [android-developers] library for system apps

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 9:28 AM, ehsan azimzadeh
wrote:

> I want to build system applications such as "Settings", "Phone" and etc in
> eclipse.


You need to ask on a list relevant to playing with, building, and modifying
the source code.

-
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] Credit card swiper with API

2012-01-12 Thread Todd Grigsby
have you googled JPOS or UPOS?
On Jan 11, 2012 1:39 PM, "JC"  wrote:

> Hello Everyone,
>
> I have a task to create and Android application that reads the Credit
> Card information from a CC swiper and process the payment through a
> web service in our existing website. The reason for that is so that
> our sales people can simply select the product, swipe the card,  and
> the system does the rest: Charge card, create account, send welcome e-
> mail, and return a confirmation or error back to the device as a
> response.
>
> My issue is that I have not been able to find a swiper (hardware) that
> exposes and API that I can use to build my own application. All the
> swipers I find are tied to a service or gateway. Any suggestions will
> be appreciated.
>
> Thank you,
>
> JC
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] supports-screens smallScreens versus normalScreens

2012-01-12 Thread mcterry
Hello All,

I would like to exclude smallScreens for an application that I'm
working on.  I understand how to do that - supports-screen tag should
set smallScreens to false.

My question is related to how that impacts the normalScreens devices.

For example, if I exclude smallScreens, what does that _actually_
mean?

According to Table 3 for the ScreensSupport Dev Guide, there is a
resolution for 480x640 that is considered a "small screen".
Here is the link...
http://developer.android.com/guide/practices/screens_support.html#testing

I had the understanding that all QVGA class phones were considered
"small".  However, Table 3 seems to indicate that there is some
overlap between resolutions of small and normal screens.

If I exclude small screens, does that have a negative impact of
excluding some of the normal screens?  Or potentially not excluding
all of the small screens?  Or what?

Thanks in advance!

Other information...
I am targeting API 8, for many reasons, so some of the newer filters
will not work for me, I believe.
Wiki article about display resolutions - 
http://en.wikipedia.org/wiki/Graphic_display_resolutions
Dev Guide for android:smallScreens -
http://developer.android.com/guide/topics/manifest/supports-screens-element.html#small


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread saex
But, how can the broadcast listen for push notification's if it is
started by my app, and my app has not been started?

i think i am losing something


On 12 ene, 16:50, Kostya Vasilyev  wrote:
> No, you don't have to.
>
> Quoting myself: :)
>
> > For a manifest-registered broadcast receiver, Android will do this
> > (create the process and load the code if necessary) for you, and then
> > execute the receiver's onReceive.
>
> I also recommend reading this:
>
> http://developer.android.com/guide/topics/fundamentals.html
>
> In particular, it says:
>
>
>
> Although broadcast receivers don't display a user interface, they may
> create a status bar notification to alert the user when a broadcast
> event occurs.
> <<<
>
> Sounds like exactly what you intend to do.
>
> ... and reading this:
>
> http://developer.android.com/reference/android/content/BroadcastRecei...
>
>
>
> You can either dynamically register an instance of this class with
> Context.registerReceiver() or statically publish an implementation
> through the  tag in your AndroidManifest.xml
> <<<
>
>
>
> The BroadcastReceiver class (when launched as a component through a
> manifest's  tag) is an important part of an application's
> overall lifecycle.
> <<<
>
> -- Kostya
>
> 12 января 2012 г. 19:35 пользователь saex  написал:
>
>
>
>
>
>
>
> > then i must open the app and close it to activate the broadcast??? how
> > can i do that?
>
> > On 12 ene, 16:26, Kostya Vasilyev  wrote:
> >> I believe I did:
>
> >> > > a
> >> > > notification must be shown in the notification bar, and if the user
> >> > > press on the notification, my app must be started and show a specific
> >> > > activity describing that notification, and not the normal fist
> >> > > activity of my app
>
> >>  and explained how to go from a notification displayed by some
> >> piece of your code to a particular activity within your app, and not
> >> the main/launcher activity.
>
> >> Let's try and get the terminology straight(-er):
>
> >> Executing code in a broadcast receiver, or any code in any application
> >> is only possible in a started application, by definition - code can't
> >> execute surrounded by nothingness, there has to be a process to run
> >> it.
>
> >> This does not necessarily mean starting the main/launcher activity: a
> >> broadcast receiver or a service have no UI of their own, a
> >> PendingIntent used in a Notification can resolve to something else,
> >> etc.
>
> >> For a manifest-registered broadcast receiver, Android will do this
> >> (create the process and load the code if necessary) for you, and then
> >> execute the receiver's onReceive.
>
> >> -- Kostya
>
> >> 12 января 2012 г. 19:07 пользователь saex  написал:
>
> >> > no no, you didn't understand my question, im telling you that the app
> >> > must be NOT STARTED, and the broadcastreceiver must start it; please,
> >> > read it again and answer me
>
> >> > On 12 ene, 15:49, Kostya Vasilyev  wrote:
> >> >> When creating a notification, you're supposed to supply a
> >> >> PendingIntent. When the user click on the notification, this
> >> >> PendingIntent is "fired" by the system.
>
> >> >> What the PendingIntent resolves to is entirely up to you - it can be
> >> >> any of your activities, not necessarily the main/launcher one.
>
> >> >>http://developer.android.com/guide/topics/ui/notifiers/notifications
>
> >> >>http://developer.android.com/reference/android/app/PendingIntent.html
>
> >> >> For Android 3.0 and higher, consider using getActivities() / note the
> >> >> plural / to take the user inside your activity stack.
>
> >> >> -- Kostya
>
> >> >> 12 января 2012 г. 18:45 пользователь saex  
> >> >> написал:
>
> >> >> > i want that when the phone receives a push notification from AC2M, a
> >> >> > notification must be shown in the notification bar, and if the user
> >> >> > press on the notification, my app must be started and show a specific
> >> >> > activity describing that notification, and not the normal fist
> >> >> > activity of my app.
>
> >> >> > It is possible to achieve this? can someone explain me how?
>
> >> >> > My app must be started to listen the receiver? or can my app be not
> >> >> > started?
>
> >> >> > 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 mo

Re: [android-developers] Re: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread Kostya Vasilyev
Answer: you register it in the manifest, the rest is automatic.

Question: did you open those links to Android documentation?

12 января 2012 г. 20:32 пользователь saex  написал:
> But, how can the broadcast listen for push notification's if it is
> started by my app, and my app has not been started?
>
> i think i am losing something
>
>
> On 12 ene, 16:50, Kostya Vasilyev  wrote:
>> No, you don't have to.
>>
>> Quoting myself: :)
>>
>> > For a manifest-registered broadcast receiver, Android will do this
>> > (create the process and load the code if necessary) for you, and then
>> > execute the receiver's onReceive.
>>
>> I also recommend reading this:
>>
>> http://developer.android.com/guide/topics/fundamentals.html
>>
>> In particular, it says:
>>
>>
>>
>> Although broadcast receivers don't display a user interface, they may
>> create a status bar notification to alert the user when a broadcast
>> event occurs.
>> <<<
>>
>> Sounds like exactly what you intend to do.
>>
>> ... and reading this:
>>
>> http://developer.android.com/reference/android/content/BroadcastRecei...
>>
>>
>>
>> You can either dynamically register an instance of this class with
>> Context.registerReceiver() or statically publish an implementation
>> through the  tag in your AndroidManifest.xml
>> <<<
>>
>>
>>
>> The BroadcastReceiver class (when launched as a component through a
>> manifest's  tag) is an important part of an application's
>> overall lifecycle.
>> <<<
>>
>> -- Kostya
>>
>> 12 января 2012 г. 19:35 пользователь saex  написал:
>>
>>
>>
>>
>>
>>
>>
>> > then i must open the app and close it to activate the broadcast??? how
>> > can i do that?
>>
>> > On 12 ene, 16:26, Kostya Vasilyev  wrote:
>> >> I believe I did:
>>
>> >> > > a
>> >> > > notification must be shown in the notification bar, and if the user
>> >> > > press on the notification, my app must be started and show a specific
>> >> > > activity describing that notification, and not the normal fist
>> >> > > activity of my app
>>
>> >>  and explained how to go from a notification displayed by some
>> >> piece of your code to a particular activity within your app, and not
>> >> the main/launcher activity.
>>
>> >> Let's try and get the terminology straight(-er):
>>
>> >> Executing code in a broadcast receiver, or any code in any application
>> >> is only possible in a started application, by definition - code can't
>> >> execute surrounded by nothingness, there has to be a process to run
>> >> it.
>>
>> >> This does not necessarily mean starting the main/launcher activity: a
>> >> broadcast receiver or a service have no UI of their own, a
>> >> PendingIntent used in a Notification can resolve to something else,
>> >> etc.
>>
>> >> For a manifest-registered broadcast receiver, Android will do this
>> >> (create the process and load the code if necessary) for you, and then
>> >> execute the receiver's onReceive.
>>
>> >> -- Kostya
>>
>> >> 12 января 2012 г. 19:07 пользователь saex  написал:
>>
>> >> > no no, you didn't understand my question, im telling you that the app
>> >> > must be NOT STARTED, and the broadcastreceiver must start it; please,
>> >> > read it again and answer me
>>
>> >> > On 12 ene, 15:49, Kostya Vasilyev  wrote:
>> >> >> When creating a notification, you're supposed to supply a
>> >> >> PendingIntent. When the user click on the notification, this
>> >> >> PendingIntent is "fired" by the system.
>>
>> >> >> What the PendingIntent resolves to is entirely up to you - it can be
>> >> >> any of your activities, not necessarily the main/launcher one.
>>
>> >> >>http://developer.android.com/guide/topics/ui/notifiers/notifications
>>
>> >> >>http://developer.android.com/reference/android/app/PendingIntent.html
>>
>> >> >> For Android 3.0 and higher, consider using getActivities() / note the
>> >> >> plural / to take the user inside your activity stack.
>>
>> >> >> -- Kostya
>>
>> >> >> 12 января 2012 г. 18:45 пользователь saex  
>> >> >> написал:
>>
>> >> >> > i want that when the phone receives a push notification from AC2M, a
>> >> >> > notification must be shown in the notification bar, and if the user
>> >> >> > press on the notification, my app must be started and show a specific
>> >> >> > activity describing that notification, and not the normal fist
>> >> >> > activity of my app.
>>
>> >> >> > It is possible to achieve this? can someone explain me how?
>>
>> >> >> > My app must be started to listen the receiver? or can my app be not
>> >> >> > started?
>>
>> >> >> > thanks
>>
>> >> >> > --
>> >> >> > You received this message because you are subscribed to the Google
>> >> >> > Groups "Android Developers" group.
>> >> >> > To post to this group, send email to 
>> >> >> > android-developers@googlegroups.com
>> >> >> > To unsubscribe from this group, send email to
>> >> >> > android-developers+unsubscr...@googlegroups.com
>> >> >> > For more options, visit this group at
>> >> >> >http://groups.google.com/group/android-developers?hl=en
>>
>> 

[android-developers] Re: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread saex
yes, i readed all the links

i think i'm not explaining me nicely.

yes, the broadcast is on the manifest, but the manifest is never
checked by the system, because my app has not been started yet, the
broadcast receiver must do it...



On 12 ene, 17:34, Kostya Vasilyev  wrote:
> Answer: you register it in the manifest, the rest is automatic.
>
> Question: did you open those links to Android documentation?
>
> 12 ÑÎ×ÁÒÑ 2012šÇ. 20:32 ÐÏÌØÚÏ×ÁÔÅÌØ saex  ÎÁÐÉÓÁÌ:
>
>
>
>
>
>
>
> > But, how can the broadcast listen for push notification's if it is
> > started by my app, and my app has not been started?
>
> > i think i am losing something
>
> > On 12 ene, 16:50, Kostya Vasilyev  wrote:
> >> No, you don't have to.
>
> >> Quoting myself: :)
>
> >> > For a manifest-registered broadcast receiver, Android will do this
> >> > (create the process and load the code if necessary) for you, and then
> >> > execute the receiver's onReceive.
>
> >> I also recommend reading this:
>
> >>http://developer.android.com/guide/topics/fundamentals.html
>
> >> In particular, it says:
>
> >> Although broadcast receivers don't display a user interface, they may
> >> create a status bar notification to alert the user when a broadcast
> >> event occurs.
> >> <<<
>
> >> Sounds like exactly what you intend to do.
>
> >> ... and reading this:
>
> >>http://developer.android.com/reference/android/content/BroadcastRecei...
>
> >> You can either dynamically register an instance of this class with
> >> Context.registerReceiver() or statically publish an implementation
> >> through the  tag in your AndroidManifest.xml
> >> <<<
>
> >> The BroadcastReceiver class (when launched as a component through a
> >> manifest's  tag) is an important part of an application's
> >> overall lifecycle.
> >> <<<
>
> >> -- Kostya
>
> >> 12 ÑÎ×ÁÒÑ 2012šÇ. 19:35 ÐÏÌØÚÏ×ÁÔÅÌØ saex  ÎÁÐÉÓÁÌ:
>
> >> > then i must open the app and close it to activate the broadcast??? how
> >> > can i do that?
>
> >> > On 12 ene, 16:26, Kostya Vasilyev  wrote:
> >> >> I believe I did:
>
> >> >> > > a
> >> >> > > notification must be shown in the notification bar, and if the user
> >> >> > > press on the notification, my app must be started and show a 
> >> >> > > specific
> >> >> > > activity describing that notification, and not the normal fist
> >> >> > > activity of my app
>
> >> >>  and explained how to go from a notification displayed by some
> >> >> piece of your code to a particular activity within your app, and not
> >> >> the main/launcher activity.
>
> >> >> Let's try and get the terminology straight(-er):
>
> >> >> Executing code in a broadcast receiver, or any code in any application
> >> >> is only possible in a started application, by definition - code can't
> >> >> execute surrounded by nothingness, there has to be a process to run
> >> >> it.
>
> >> >> This does not necessarily mean starting the main/launcher activity: a
> >> >> broadcast receiver or a service have no UI of their own, a
> >> >> PendingIntent used in a Notification can resolve to something else,
> >> >> etc.
>
> >> >> For a manifest-registered broadcast receiver, Android will do this
> >> >> (create the process and load the code if necessary) for you, and then
> >> >> execute the receiver's onReceive.
>
> >> >> -- Kostya
>
> >> >> 12 ÑÎ×ÁÒÑ 2012šÇ. 19:07 ÐÏÌØÚÏ×ÁÔÅÌØ saex  
> >> >> ÎÁÐÉÓÁÌ:
>
> >> >> > no no, you didn't understand my question, im telling you that the app
> >> >> > must be NOT STARTED, and the broadcastreceiver must start it; please,
> >> >> > read it again and answer me
>
> >> >> > On 12 ene, 15:49, Kostya Vasilyev  wrote:
> >> >> >> When creating a notification, you're supposed to supply a
> >> >> >> PendingIntent. When the user click on the notification, this
> >> >> >> PendingIntent is "fired" by the system.
>
> >> >> >> What the PendingIntent resolves to is entirely up to you - it can be
> >> >> >> any of your activities, not necessarily the main/launcher one.
>
> >> >> >>http://developer.android.com/guide/topics/ui/notifiers/notifications
>
> >> >> >>http://developer.android.com/reference/android/app/PendingIntent.html
>
> >> >> >> For Android 3.0 and higher, consider using getActivities() / note the
> >> >> >> plural / to take the user inside your activity stack.
>
> >> >> >> -- Kostya
>
> >> >> >> 12 ÑÎ×ÁÒÑ 2012šÇ. 18:45 ÐÏÌØÚÏ×ÁÔÅÌØ saex  
> >> >> >> ÎÁÐÉÓÁÌ:
>
> >> >> >> > i want that when the phone receives a push notification from AC2M, 
> >> >> >> > a
> >> >> >> > notification must be shown in the notification bar, and if the user
> >> >> >> > press on the notification, my app must be started and show a 
> >> >> >> > specific
> >> >> >> > activity describing that notification, and not the normal fist
> >> >> >> > activity of my app.
>
> >> >> >> > It is possible to achieve this? can someone explain me how?
>
> >> >> >> > My app must be started to listen the receiver? or can my app be not
> >> >> >> > started?
>
> >> >> >> > thanks
>
> >> >> >> > --
> >> >> >> > You rec

[android-developers] Develpoer device still in hidding?

2012-01-12 Thread Cactus Mitch
The Nexus as a develpoer device dissappeared after Google bought the
Motorola Mobile.  I was in the process of converting from Verizon to T-
Mobile to get a "rooted" Nexus.  Then... I signed up for a
notification when a new unit became available What is the the big
G plan?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread skink


saex wrote:
> yes, i readed all the links
>
> i think i'm not explaining me nicely.
>
> yes, the broadcast is on the manifest, but the manifest is never
> checked by the system, because my app has not been started yet, the
> broadcast receiver must do it...
>
>

the OS "registers" all of your broadcasts (and other stuff) when your
apk is installed

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


Re: [android-developers] Develpoer device still in hidding?

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 10:52 AM, Cactus Mitch wrote:

> What is the the big G plan?
>

What exactly are you asking?

-
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: A BroadcastReceiver can start my own app? (with my app not started)

2012-01-12 Thread saex
nice! thanks !

On 12 ene, 17:56, skink  wrote:
> saex wrote:
> > yes, i readed all the links
>
> > i think i'm not explaining me nicely.
>
> > yes, the broadcast is on the manifest, but the manifest is never
> > checked by the system, because my app has not been started yet, the
> > broadcast receiver must do it...
>
> the OS "registers" all of your broadcasts (and other stuff) when your
> apk is installed
>
> 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


Re: [android-developers] Performing changes in a view based on another view

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 9:50 AM, Boozel  wrote:

> How can i make the view linear layout used in my main
> activity available in my pop down window.


Use a reference to that View. This is basic Java.

-
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] Disable screenshot within an app in ICS?

2012-01-12 Thread Romain Guy
Add this flag to your window in onCreate():
http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE

On Thu, Jan 12, 2012 at 1:48 AM, Michael Banzon  wrote:
> On Thu, Jan 12, 2012 at 10:13 AM, Tom Uhl  wrote:
>> Is there a way for an app to disable the new built-in-screenshot
>> function in ICS?
>
> I don't think there is. If there is - I'm guessing you're trying to
> "protect" something - please keep in mind that the user can also grab
> screenshots through USB-debugging or through HDMI.
>
> --
> Michael Banzon
> http://michaelbanzon.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



-- 
Romain Guy
Android framework engineer
romain...@android.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] Re: SMS and Application Integration! Need Suggestion

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 9:32 AM, Prathamesh  wrote:

> Any Suggestion please


Suggestion:  http://developer.android.com/search.html#q=sms&t=0

Then explain what you have tried and what is not working.

-
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] Re: Giving away my book: "Genius Android Marketing"

2012-01-12 Thread Christopher Van Kirk
Now you must write another book to tell us how to emulate your ingenius 
book marketing strategies!


On 1/12/2012 3:36 AM, scp89 wrote:

The contest is now over! The PDFs have been sent to the 3 winners -
congrats to you guys!

You can still pick up the ebook on Amazon here:
http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B005WE7S3G/ref=sr_1_3?ie=UTF8&qid=1326310497&sr=8-3

As the softcover here:
http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/1463778406/ref=sr_1_2?ie=UTF8&qid=1326310552&sr=8-2

On Jan 10, 11:24 am, Eloy Mier Pérez  wrote:

Hi Carlos, I would like to get a free copy of your bookthanks very much.

Congrats for the book.

Better luck for me

2012/1/10 Carlos Silva










On Thu, Jan 5, 2012 at 15:50, scp89  wrote:

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

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

--
VID : 225463http://eloy-mp.com
eloyjose.mier.pe...@atsistemas.com
emi...@gmail.com
eloy.mier.pe...@gmail.com
eloy.mierp.054...@correos.es
skype: eloy.mier.perez
msn: emi...@hotmail.com
icq: 41709142
Un saludo. Eloy Mier Pérez.


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

2012-01-12 Thread Lucas de Jesus Matias
if he can root the device is possible prevent to uninstall, installing as
native app, like cerberus have this option.

I think as root is possible all the things, but not sure :P

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

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

2012-01-12 Thread carlosbflores
Please add me to the list, thanks.

On 9 ene, 17:53, John-Marc Desmarais  wrote:
> I'll play.
>
> Sign me up.
> -jm
>
>
>
>
>
>
>
> On Mon, Jan 9, 2012 at 3:45 PM, YuviDroid  wrote:
> > Looks very interesting! Count me in!  :)
>
> > Yuvi
>
> > On Mon, Jan 9, 2012 at 6:04 PM, PhotoSteve  wrote:
>
> >> Add me too...I'm so new to Android I don't even know what I don't know
> >> even to ask questions or how to phrase them right for you nice people
> >> to understand what I'm asking. Any help for the noob is great.
>
> >> Steve
>
> >> On Jan 5, 10:50 am, scp89  wrote:
> >> > I've recently finished writing the first full-length, android-specific
> >> > book on Android Marketing. It covers tips, tricks, strategies,
> >> > competitive analysis, and so much more. Everything I've learned in 2
> >> > years selling android apps, I've put into this book. It is available
> >> > via e-book OR softcover:
>
> >> > E-book:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B...
>
> >> > Softcover:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/...
>
> >> > GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply
> >> > reply to this thread, and 1 week from today I will randomly select 3
> >> > members and PM you a link to your free download of the 130 page book.
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > YuviDroid
> > Check out Launch-X (a widget to quickly access your favorite apps and
> > contacts!)
> >http://android.yuvalsharon.net
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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 to store images in sdcard, at the time of downloading app.?

2012-01-12 Thread Jatin D Patel
Thank you all for your time and opinion.

On Wed, Jan 11, 2012 at 7:44 PM, Kristopher Micinski  wrote:

> On Wed, Jan 11, 2012 at 6:08 PM, Jatin D Patel 
> wrote:
> > How come downloading images is possible in iphone during application
> > installation, from server and not possible in android.
> >
>
> Platforms are different
>
> > Is it one of the limitation of Android?
> >
>
> I suppose you can call it a limitation if you aren't smart enough to
> see that the changes required to do this take a few minutes..
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Thanks,
Jatin D N Patel
You Got To Think HIGH to RISE.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-developer] storing image in sd card from drawable folder

2012-01-12 Thread Jim Graham
On Thu, Jan 12, 2012 at 06:43:06PM +0530, surabhi jain wrote:

> I want to store image from drawable folder into sd card.
> 
> plz send me the code.

I'll send you pseudo-code

1) Look it up in the Developers Guide.
2) Read the appropriate sections until you understand how to do this.
3) Write your own fscking code === OR === pay someone to do it for you.
4) Learn to spell.  "plz" is not a word...at least, not in the English
   language.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| DMR: So fsck was originally called
spooky1...@gmail.com|  something else.
< Running FreeBSD 7.0 > | Q:   What was it called?
ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

Android Apps Listing at http://www.jstrack.org/barcodes.html

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

2012-01-12 Thread Jim Graham
On Thu, Jan 12, 2012 at 06:24:04AM -0800, Fred Grott wrote:
> hmm gzip it before sending assuming you can unzip it on the other end

...from which you MIGHT get 1% compression, if you're lucky.  You most
definitely will not get the level of compression (reducing the image
size down to 2--3 kbits, or a few hundred bytes).  Image data is not
exactly easily compressed by the compression methods used in ordinary
file compression programs.

To reduce your image size, you have a combination of two choices:

1) If you're using an uncompressed format, such as TIFF or PNG, try
   ising JPEG to get at least SOME compression (maybe 20--30 kB down to 
   15--25 kB, depending on the quality settings you choose...you can
   go a lot smaller relative to your original image size, but at the
   cost of potentially a LOT of image quality).

2) reduce the size and/or ppi for the image.  HOWEVER, if you reduce
   the image file to the size you mentioned, specifically, 2--3 kbits
   (which is roughly 250--375 B), your image is going to be of such
   insanely-low quality it probably won't be worth sending it.

3) suck it up and transfer your image files over your 20 to 30 kbit/sec
   network, and depending on the actual file sizes, maybe go out to
   dinner, go see a movie, or do the file transfers overnight while
   you sleep

Good luck.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | 1) "Smoking habanero powder helps defeat that
< Running FreeBSD 7.0 >   |off taste' quite nicely."
spooky1...@gmail.com  | 2) "I figure a couple bong hits of [habanero]
ICBM/Hurr.: / 30.44406N   |powder would defeat just about anything!"
| 86.59909W--seen in Chile-Heads list

Android Apps Listing at http://www.jstrack.org/barcodes.html

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

2012-01-12 Thread Greg Donald
On Thu, Jan 12, 2012 at 7:37 AM, TreKing  wrote:
> Just send me $50 for my book, "How to Get People to Send You $50 For Your
> Book", and learn the secrets today!

Don't forget to pick up a copy of the book on how to write books:

http://www.amazon.com/Elements-Style-4th-William-Strunk/dp/0205313426/ref=sr_1_6?ie=UTF8&qid=1326391750&sr=8-6



-- 
Greg Donald

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

2012-01-12 Thread Jim Graham
On Thu, Jan 12, 2012 at 05:05:43PM +0200, Harri Sm?tt wrote:
> On Jan 12, 2012, at 4:52 PM, Muhammad UMER wrote:

> Just change current compression quality 100 to 0, and
> most importantly, you have to drop image size much lower than QVGA.
> There really isn't much you can do within 2-3kB range.

Except he wanted it even lower...not 2--3 kB ... 2--3 kb (which is
a only few hundred bytes).  That is going to be VERY hard to do and
still maintain ANY image quality at all, unless the image is a
thumbnail.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | 1) "Smoking habanero powder helps defeat that
< Running FreeBSD 7.0 >   |off taste' quite nicely."
spooky1...@gmail.com  | 2) "I figure a couple bong hits of [habanero]
ICBM/Hurr.: / 30.44406N   |powder would defeat just about anything!"
| 86.59909W--seen in Chile-Heads list

Android Apps Listing at http://www.jstrack.org/barcodes.html

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

2012-01-12 Thread Kristopher Micinski
On Wed, Jan 11, 2012 at 9:57 PM, Yar Lag  wrote:
> My employer asked me to write an Android app for a demo device in our
> store front. He wants the app to do the following (essentially a video
> demo app):
>
> The app will show a video after it has been idle for a while.
> When a user touches the demo video, it stops and goes to home screen.
> Prevents a user from uninstalling this app.
> Hide the app from the applications list on the home screen.
> At each midnight resets the device to a default configuration (home
> screens, browser history and contacts information)
>
> Are these 5 things possible?
>

Right, in practice what usually happens is that it would be rare for
the user to uninstall this app, right?  I think that in general the
way around this is to simply hope for the best and reinstall if it
ever happens..

(Or the other answer: it's possible so you're going to have to just
deal with it?)

Right, unless you modify the firmware and include this as a default app..

kris

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

2012-01-12 Thread Paulo Vagner
could you explain how can i apply this patch the kernel???

Thanks

On Dec 27 2011, 11:27 pm, androidicus 
wrote:
> Hi Vlad,
> Take a look 
> athttp://git.alwaysinnovating.com/cgit.cgi/ai.android/diff/?id=7d08e9af
> Its a mouse patch for Gingerbread.  From what I've read, it's been
> tested and works well.  Perhaps it'll meet you needs.
>
> -- A
>
> On Dec 22, 3:10 pm, Vlad  wrote:
>
>
>
>
>
>
>
> > Hi guys,
>
> > I'm interested in simulating a mouse on a mobile device, but
> > unfortunately, as far as i can tell, there is no support for a mouse
> > pointer on gingerbread.
>
> > so i was wondering, is it achievable on the service-app level ( i
> > mean, without applying it on the android source and recompiling the
> > whole thing).
> > making a transparent activity with a pointer image is not a big deal,
> > but i don't see anyway of preforming a click on the activity
> > underneath my own.. so this road is closed..
> > maybe there's someway of doing it using IMF?
>
> > anyways, if anyone has an idea, i would be more than glad to hear
> > it :)
>
> > thanks,
> > vlad

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

2012-01-12 Thread Paulo Vagner
you could apply this patch mentioning down?

On Dec 22 2011, 6:10 pm, Vlad  wrote:
> Hi guys,
>
> I'm interested in simulating a mouse on a mobile device, but
> unfortunately, as far as i can tell, there is no support for a mouse
> pointer on gingerbread.
>
> so i was wondering, is it achievable on the service-app level ( i
> mean, without applying it on the android source and recompiling the
> whole thing).
> making a transparent activity with a pointer image is not a big deal,
> but i don't see anyway of preforming a click on the activity
> underneath my own.. so this road is closed..
> maybe there's someway of doing it using IMF?
>
> anyways, if anyone has an idea, i would be more than glad to hear
> it :)
>
> thanks,
> vlad

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Draw on a WebView control.

2012-01-12 Thread TreKing
On Wed, Jan 11, 2012 at 6:25 PM, Hydro Misco  wrote:

> Is it possible to draw shapes, boxes, lines ... over a webview control, as
> though it was a canvas?
>

Derive a class from it and override onDraw?

-
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] Retrieving Information from the ContactsContract API

2012-01-12 Thread TreKing
On Wed, Jan 11, 2012 at 6:48 PM, Brad Kinnard  wrote:

> I have found a few posts here in the general area, but would really love
> someone just to break it down as to how I can retrieve the contact name,
> email and phone number, and store those in variables.
>

Getting those values and saving them in variables appears fairly
straightforward on the surface.

You should break down what posts you found, why they're incomplete, what
you don't understand, what you've tried, and where specifically you need
help.

-
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] Search WiFi Subnet Devices Details (IP & MAC)

2012-01-12 Thread TreKing
On Wed, Jan 11, 2012 at 9:32 AM, Rajeev Singh <
rajeev.si...@eiceinternational.com> wrote:

> Its very urgent query.
>

No. "I'm bleeding, where is the hospital?" is an urgent query. This is not.

I am new in android development and struggling for finding all devices(Network
> Printers) in WLAN.But i want this feature in my application, but dont
> know the way to do.


What have you tried so far?

-
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 convert morse sound to text???

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 2:13 AM, ludy  wrote:

> i use audiorecord to record morse sound ,and then need to convert morse
> sound to text,how to do that???
>

Write the code to do that or use a library. This has nothing to do with
Android specifically.

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

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

[android-developers] how to...

2012-01-12 Thread dashman
how do i create an overlay over an existing activity
screen.

i want this overlay to be basically transparent with
some "hand-drawn" letters + arrows.

ala pulse app.

any hints.

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

2012-01-12 Thread dashman
how do i create an overlay over an existing activity
screen.

i want this overlay to be basically transparent with
some "hand-drawn" letters + arrows.

ala pulse app.

any hints.

plus maybe some simple animation.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Performing changes in a view based on another view

2012-01-12 Thread Boozel
Thanks for your reply.
Sorry if its a stupid question but all my java is self taught so there may 
be some gaps in my knowledge.

When i use a refernce to that view that reference is not in the scope of my 
pop down only in the main activity. Do i need to pass the reference as an 
extra into the pop down?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Performing changes in a view based on another view

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 1:05 PM, Boozel  wrote:

> When i use a refernce to that view that reference is not in the scope of
> my pop down only in the main activity. Do i need to pass the reference as
> an extra into the pop down?


Show some code. As little as necessary to show what you're doing.

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

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

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 12:50 PM, dashman  wrote:

> any hints.


http://developer.android.com/search.html#q=overlay&t=0

-
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 store images in sdcard, at the time of downloading app.?

2012-01-12 Thread Miguel Morales
What?  How is this possible,  I work with the iphone sdk and I know of no
way to know when the application is first installed and run any code.

Please point to the documentation that describes this, otherwise I'm going
to have to call shenanigans.

On Wed, Jan 11, 2012 at 3:08 PM, Jatin D Patel  wrote:

> How come downloading images is possible in iphone during application
> installation, from server and not possible in android.
>
> Is it one of the limitation of Android?
>
> On Wed, Jan 11, 2012 at 2:53 PM, TreKing  wrote:
>
>> On Wed, Jan 11, 2012 at 1:34 PM, Jatin D Patel wrote:
>>
>>> How can we download images at the time of downloading app, in local
>>> drive.?
>>
>>
>> At time of downloading, you can't. At time of first run, detect if your
>> images are available, if so, use them, if not, download them.
>>
>>
>> -
>> 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
>
>
>
>
> --
> Thanks,
> Jatin D N Patel
> You Got To Think HIGH to RISE.
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

  1   2   >