[android-developers] TCP Connection - Service design question

2012-04-13 Thread Federico Paolinelli
Hi all, I am developing a simple multiplayer game.

To make the things easy, given that every session is supposed to be quite 
fast, if a player gets disconnected all the other players are notified of 
her disconnection and the game goes on (no reconnection for the 
disconnected player).

The persistent tcp connection is kept on in a couple of threads (one is 
reading from the socket, the other is a looper thread waiting for the 
messages to send). 

I was thinking to use a service, to share the opened connection across two 
or three activities. Now my question is: what kind of service should I 
create? I was thinking of a non sticky one, given that if the os shuts it 
down, the player will automatically be disconnected and I don't mind having 
it reconnected. In this way I could also let it self kill in case of 
disconnection, so that I can be sure I won't leave it active when the user 
is not playing anymore. 

In that case, when I am supposed to create (and re-create) it? In this 
early stage I am creating it in the onCreate() of the first launched 
actiivty, but maybe it's better to create it when the user wants to play 
(and thus, link it to a "login" button). What happens if I try to create it 
and it is already running?

Another approach I thought of was not to use a service and to keep 
everything in a singleton class that hosts the two threads (and keeps track 
of the state of the game), and let the client disconnect during onPause(). 

Any help / consideration may be appreciated,

Thanks in advance,

Federico



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

2012-04-13 Thread Zsolt Vasvari

>
> It appears that no one on this forum has more insight into number 2. Darn. 
>

If Dianne hasn't chimed in, there is probably not much hope that you will 
get an answer.

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

2012-04-13 Thread John Coryat
>> we better start from the number appearing on the 1099-K as that's what 
the IRS gets also.

That's what we did. Don't want to mess with the IRS!

-John Coryat

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

[android-developers] Re: Google's 1099-K

2012-04-13 Thread Zsolt Vasvari
In your case, since you didn't receive a 1099-K, that's probably fine, but 
for those of us who did, we better start from the number appearing on the 
1099-K as that's what the IRS gets also.

Of course, I am no tax accountant, so you better ask a professional.

On Saturday, April 14, 2012 12:57:20 AM UTC+8, niko20 wrote:
>
> One last thing. Google's numbers have *never* made sense, so I just 
> used the payouts for each month and added them up, I mean literally 
> the amount of money that was sent to my checking account. If the IRS 
> wanted to do an audit, that's the number they would finally end up 
> with. If anything, that would show *Google* was full of inaccuracy, 
> and not me. 
>
> -niko 
>
> On Apr 13, 11:53 am, niko20  wrote: 
> > I'm wondering if maybe this form is only sent for apps with ads or 
> > something. I don't have such apps, only paid. And I have never 
> > received such a form and been on the market since early 2009. 
> > 
> > -niko 
> > 
> > On Apr 13, 8:58 am, TreKing  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > On Fri, Apr 13, 2012 at 12:26 AM, Zsolt Vasvari  
> wrote: 
> > > > That makes sense that the commission is an expense, but is it not 
> for 
> > > > Amazon?  Amazon is also sending a 1099-MISC as opposed to a 1099-K. 
> > 
> > > This is my guess: with Google you're on your own. You're using 
> Checkout or 
> > > Wallet or whatever as a payment processor to collect payment, but 
> you're 
> > > essentially selling to users directly. As such, you get 1099-K (for " 
> merchant 
> > > card transactions (e.g., debit or credit cards) " [
> http://www.irs.gov/businesses/article/0,,id=251966,00.html] 
> > 
> > > With Amazon, you sign up with them, give them the right to market, 
> promote, 
> > > and and sell your app on your behalf. They deal with selling to the 
> > > customer, and collecting and processing payments, not you (like how 
> you 
> > > can't issue refunds directly to customers like you can on the Android 
> > > Market). Then they pay you for what they sold for you. As such, you're 
> more 
> > > of an independent contractor, hence 1099-MISC. 
> > 
> > > Again, just postulating - I can barely get through TurboTax so don't 
> take 
> > > this with any authority. 
> > 
> > > 
> --- 
> -- 
> > > 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: Google's 1099-K

2012-04-13 Thread Zsolt Vasvari
Looks like,according to the link TreKing posted, you had to made $20,000 
(before the 30%) OR made 200 transactions.  I don't know what constitutes a 
transaction, individual sales or monthly payouts, but that's what it says.



On Saturday, April 14, 2012 12:51:55 AM UTC+8, niko20 wrote:
>
> I have never received any form from Google, and I've made WELL into 
> the thousands. 
>
> -niko 
>
> On Apr 13, 8:58 am, TreKing  wrote: 
> > On Fri, Apr 13, 2012 at 12:26 AM, Zsolt Vasvari  
> wrote: 
> > > That makes sense that the commission is an expense, but is it not for 
> > > Amazon?  Amazon is also sending a 1099-MISC as opposed to a 1099-K. 
> > 
> > This is my guess: with Google you're on your own. You're using Checkout 
> or 
> > Wallet or whatever as a payment processor to collect payment, but you're 
> > essentially selling to users directly. As such, you get 1099-K (for " 
> merchant 
> > card transactions (e.g., debit or credit cards) " [
> http://www.irs.gov/businesses/article/0,,id=251966,00.html] 
> > 
> > With Amazon, you sign up with them, give them the right to market, 
> promote, 
> > and and sell your app on your behalf. They deal with selling to the 
> > customer, and collecting and processing payments, not you (like how you 
> > can't issue refunds directly to customers like you can on the Android 
> > Market). Then they pay you for what they sold for you. As such, you're 
> more 
> > of an independent contractor, hence 1099-MISC. 
> > 
> > Again, just postulating - I can barely get through TurboTax so don't 
> take 
> > this with any authority. 
> > 
> > 
> --- 
> -- 
> > 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] What qualifies an Android phone to show up in Android Marketplace filter

2012-04-13 Thread Dianne Hackborn
It shows up if what you have specific in your app filtering allows it to
show up.

If you say "I tailored the Manifest files to accepts any devices with
normal,
large and xlarge screen sizes and low, medium and high density", then it
sounds like you are using:
http://developer.android.com/guide/topics/manifest/compatible-screens-element.html

And as the big caution says, don't use this.  This is very fine-grained
filtering, which pretty much guarantees that you will be missing devices in
ways you can't control very well.  Just don't use this.  It isn't good.

Of course, there could be something else you are requiring (such as a
feature) that some devices don't support.  Use "aapt dumpt badging
" to see details on all the requirements being defined by your
app.

On Thu, Apr 12, 2012 at 11:16 AM, ToniL  wrote:

> Could somebody tell me what makes a device qualify to show up in
> Android Marketplace filter when you upload an apk? Do they have to be
> CTS certified only or it needs to meet other criterias?
> I tailored the Manifest files to accepts any devices with normal,
> large and xlarge screen sizes and low, medium and high density. This
> configuration should include most of the newest handsets that are
> already on the market but it doesn't.
> For example there is Motorola Atrix 2 that doesn't appear in the
> filter but I can download any app from the Market place using Play
> Store.
>
> 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
>



-- 
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, 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] Task switcher image

2012-04-13 Thread Dianne Hackborn
Sorry there is no way to change it.  This is a static screenshot of the
last time the user saw your app.

On Thu, Apr 12, 2012 at 5:58 PM, Brett  wrote:

> In ICS especially, there is a new was to switch tasks like the old way
> of holding down the home key.  Now you see a list of your recent tasks
> with their corresponding images of the last view you were on.
>
> Is there any way to programmatically update this image for your task?
> I have a situation where I get background information and want to
> update the view.  I haven't been able to find anything on how this
> image is populated online.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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, 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: Wrote stack trace to '/data/anr/traces.txt', then black screen

2012-04-13 Thread Dianne Hackborn
On Fri, Apr 13, 2012 at 3:29 PM, Deepwinter wrote:

> It's large because it's a JSON document containing a JPEG file.


*thud*

Don't do that.

Don't put a Bitmap of any significant size in the extras.  So definitely
don't put it in there encoded as a JSON array.  If the image is so large
that it is causing you this problem in a JSON array, it is probably so
large that you shouldn't be copying it even via Parcelable.

The extras are not there for you to stuff large amount of data.  Those need
to be copied from your process to a system process, held in the system
process as long as the user could ever return to the newly launching
activity, and copied back to the process running the new activity.  And
copied into that process every time the activity gets recreated.

If you are putting more than 10s of K of data in there, you really need to
stop and do something else.

Plus there are significant limits on the amount of data allowed to go
through IPC calls, so if you stuff a lot of data in there you have a good
chance of hitting those limits and falling on your face.

Big data should go into storage.  Read the file when you need it.  If you
need to transfer it between apps, put it behind a content provider (which
the other app can open a stream on to read the data).

-- 
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, 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] Spam apps in the Play search lists

2012-04-13 Thread Jim Graham
On Fri, Apr 13, 2012 at 05:36:23PM -0700, David Ross wrote:
> Has anyone else experienced spam apps in Google's search results in
> Play?

I heard on the news that Angry Birds Space (Android only) either is a
fake, or there's a fake version of it, that supposedly lets someone
else take control of any device you have it installed on.

Sounds a bit like a late April Fool's joke to me, but  After all,
I've read repeatedly that without custom firmware, no app can do that.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   "Now what *you* need is a proper pint of porter poured in a proper
   pewter porter pot.." --Peter Dalgaard in alt.sysadmin.recovery

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


[android-developers] Spam apps in the Play search lists

2012-04-13 Thread David Ross
Has anyone else experienced spam apps in Google's search results in
Play?

I have a season app for an annual sporting league in Australia, and
aside from the mystery of how the "big players" manage to get their
apps at the top of the search results immediately they publish them,
the more irritating situation for me is where the search results are
poisoned by obsolete, clearly unsupported apps appearing in the search
list.

These apps are from the previous system and have not been updated for
the current season, they have clearly been abandoned, the last updates
were nearly a year ago, but I guess because they have quite a lot of
reviews from the previous season, they trump my app in the search list
ordering. Worse is the developer has made "per team" apps for a league
of 17 teams and most of them (about a dozen) appear in the search list
results for the most likely search term.

I tried to report them as spam, but despite Google's stated developer
policies specifically banning spam apps, there seems to be no way to
report them, no way to get a human being inside Google to look at the
issue.

Anyone else experienced anything similar, and if so were you able to
work out a strategy to deal with it?

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


[android-developers] WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH and 4.0+ touch events not captured

2012-04-13 Thread Bsweet
I have a service that I allow other applications to bind to remotely.
During key events that they record to my service, I show a small
overlay above their app.  I use the following:

WindowManager.LayoutParams params;
params = new WindowManager.LayoutParams();
params.flags =
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN |
 
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL |
 
WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH
 ;
params.format = PixelFormat.RGBA_;
params.gravity = Gravity.CENTER;

params.type = WindowManager.LayoutParams.TYPE_TOAST;
windowManager.addView(this, params);

Pre ICS I was able to capture the "special" touch event as indicated
by FLAG_WATCH_OUTSIDE_TOUCH.  If the touch landed in my overlay, I
would launch an activity.  Otherwise I would ignore the touch event.
In both cases the underlying activity would receive the touch event.

This all works fine until I try to use this code on ICS.  Now I am
unable to capture any touch events for my overlay.

So in summary what I want is this:
  *Draw a temporary view from a remote service
  * Not pause the running activity
  * Not take all touch events from the running activity
  * Detect with my temporary view is touched.

I realize that the method I have used in the past may not be
supported.  If anyone has any suggestions outside of "don't do this"
to get the stated functionality I would very much appreciate it.

Thanks

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


[android-developers] Re: Wrote stack trace to '/data/anr/traces.txt', then black screen

2012-04-13 Thread Lew
Deepwinter wrote:

> It's large because it's a JSON document containing a JPEG file.  Since 
> I'm using a REST interface to get data to the app, it was easier to 
> pass the entire JSON document in putExtra rather than implement 
> Parceable on my POJO.  I'm just going to go out on a limb here and 
> guess that this isn't the best idea, and I should implement Parceable. 
>
 
'Parcelable'?

As in ?

-- 
Lew

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Wrote stack trace to '/data/anr/traces.txt', then black screen

2012-04-13 Thread Kostya Vasilyev
The amount of data you can send over Android's binder mechanism is limited
to 500 Kb (iirc), so yes, if the image is large, you could be exceeding
this limit. When this happens, the logcat is supposed to have a warning,
something like "failed binder transaction".
 14.04.2012 2:30 пользователь "Deepwinter" 
написал:

> It's large because it's a JSON document containing a JPEG file.  Since
> I'm using a REST interface to get data to the app, it was easier to
> pass the entire JSON document in putExtra rather than implement
> Parceable on my POJO.  I'm just going to go out on a limb here and
> guess that this isn't the best idea, and I should implement Parceable.
>
> On Apr 13, 2:58 pm, Kostya Vasilyev  wrote:
> > What is "rather large" in "rather large JSON value" ?
> >
> > 14.04.2012 1:50, Deepwinter написал:
> >
> > > Ok This makes sense.
> >
> > > I've focused the issue down to whether or not I call putExtra on the
> > > Intent I'm launching.  Why would the contents putExtra cause this kind
> > > of error?   The value of the extra is a String, and rather large JSON
> > > value at that which does contain binary data.  Is the size of the JSON
> > > string the problem?  Packing up the JSON is just fine, but the next
> > > activity never even gets the chance to unpack it as onCreate is never
> > > called.
> >
> > --
> > 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Wrote stack trace to '/data/anr/traces.txt', then black screen

2012-04-13 Thread Deepwinter
It's large because it's a JSON document containing a JPEG file.  Since
I'm using a REST interface to get data to the app, it was easier to
pass the entire JSON document in putExtra rather than implement
Parceable on my POJO.  I'm just going to go out on a limb here and
guess that this isn't the best idea, and I should implement Parceable.

On Apr 13, 2:58 pm, Kostya Vasilyev  wrote:
> What is "rather large" in "rather large JSON value" ?
>
> 14.04.2012 1:50, Deepwinter написал:
>
> > Ok This makes sense.
>
> > I've focused the issue down to whether or not I call putExtra on the
> > Intent I'm launching.  Why would the contents putExtra cause this kind
> > of error?   The value of the extra is a String, and rather large JSON
> > value at that which does contain binary data.  Is the size of the JSON
> > string the problem?  Packing up the JSON is just fine, but the next
> > activity never even gets the chance to unpack it as onCreate is never
> > called.
>
> --
> 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


Re: [android-developers] Re: Wrote stack trace to '/data/anr/traces.txt', then black screen

2012-04-13 Thread Kostya Vasilyev

What is "rather large" in "rather large JSON value" ?

14.04.2012 1:50, Deepwinter написал:

Ok This makes sense.

I've focused the issue down to whether or not I call putExtra on the
Intent I'm launching.  Why would the contents putExtra cause this kind
of error?   The value of the extra is a String, and rather large JSON
value at that which does contain binary data.  Is the size of the JSON
string the problem?  Packing up the JSON is just fine, but the next
activity never even gets the chance to unpack it as onCreate is never
called.


--
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: Wrote stack trace to '/data/anr/traces.txt', then black screen

2012-04-13 Thread Deepwinter
Ok This makes sense.

I've focused the issue down to whether or not I call putExtra on the
Intent I'm launching.  Why would the contents putExtra cause this kind
of error?   The value of the extra is a String, and rather large JSON
value at that which does contain binary data.  Is the size of the JSON
string the problem?  Packing up the JSON is just fine, but the next
activity never even gets the chance to unpack it as onCreate is never
called.

On Apr 13, 2:39 pm, Kostya Vasilyev  wrote:
> 14.04.2012 1:32, Deepwinter ???:
>
> > However when I launch the activity later in the program (where it
> > should be launched), I just get a black screen.  I get no android
> > runtime errors, and onCreate on the new activity is never called.  All
> > I get in ADB is 'Wrote stack trace to '/data/anr/traces.txt'' and then
> > nothing else from the app.  I used adb pull to get at the/data/anr/
> > traces.txt but find no reference to any exceptions in that file.
>
> Since it's an ANR rather than a crash, you shouldn't be seeing
> exceptions in there.
>
>
>
> > How can I debug this problem, or what could be the cause?
>
> The cause is something taking too long on your application's UI thread.
>
> To debug, recreate the issue, switch to Debug perspective in Eclipse,
> select your application's UI thread, and press Pause button (top-right)
> to enter the debugger.
>
> Then inspect what the UI thread is doing.
>
> --
> 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


Re: [android-developers] Re: i want to put restriction on an application for particular MAC address of mobile. how???

2012-04-13 Thread Kostya Vasilyev

http://android-developers.blogspot.com/2011/03/identifying-app-installations.html

14.04.2012 1:37, Muhammad Sahil ???:

Hi lbendlin,
Thanks for your great response, is it work for only 
Wi-Fi or any other network like GPRS.



Regards,

Sahil


On Sat, Apr 14, 2012 at 1:04 AM, lbendlin > wrote:


1)  This will only work when the WiFi is actually powered. This
may not be guaranteed in your case (if the user is connecting via
3G etc)

final WifiManager wm = (WifiManager)
(getApplication().getSystemService(Context.WIFI_SERVICE));
final WifiInfo wi = wm.getConnectionInfo();
Log.v(TAG, "WiFi: " + wi.getMacAddress());

2) On your server, keep a whitelist of permitted MAC addresses. In
your app, ask the server if the device MAC is included.

On Friday, April 13, 2012 2:33:02 AM UTC-4, Muhammad Sahil wrote:

hi,
I want to restrict my application for some security
reason. So

1) How can i get the MAC address of my mobile.

2) How can i apply restriction for this MAC address to use my
application.

I hope someone provide me good answer. I am waiting for your kind
help,

Thanks and Regards,

Sahil.

-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, 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 


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

Re: [android-developers] Wrote stack trace to '/data/anr/traces.txt', then black screen

2012-04-13 Thread Kostya Vasilyev


14.04.2012 1:32, Deepwinter ???:

However when I launch the activity later in the program (where it
should be launched), I just get a black screen.  I get no android
runtime errors, and onCreate on the new activity is never called.  All
I get in ADB is 'Wrote stack trace to '/data/anr/traces.txt'' and then
nothing else from the app.  I used adb pull to get at the/data/anr/
traces.txt but find no reference to any exceptions in that file.


Since it's an ANR rather than a crash, you shouldn't be seeing 
exceptions in there.




How can I debug this problem, or what could be the cause?


The cause is something taking too long on your application's UI thread.

To debug, recreate the issue, switch to Debug perspective in Eclipse, 
select your application's UI thread, and press Pause button (top-right) 
to enter the debugger.


Then inspect what the UI thread is doing.

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

Re: [android-developers] Re: i want to put restriction on an application for particular MAC address of mobile. how???

2012-04-13 Thread Muhammad Sahil
Hi lbendlin,
Thanks for your great response, is it work for only Wi-Fi
or any other network like GPRS.


Regards,

Sahil


On Sat, Apr 14, 2012 at 1:04 AM, lbendlin  wrote:

> 1)  This will only work when the WiFi is actually powered. This may not be
> guaranteed in your case (if the user is connecting via 3G etc)
>
> final WifiManager wm = (WifiManager)
> (getApplication().getSystemService(Context.WIFI_SERVICE));
> final WifiInfo wi = wm.getConnectionInfo();
> Log.v(TAG, "WiFi: " + wi.getMacAddress());
>
> 2) On your server, keep a whitelist of permitted MAC addresses. In your
> app, ask the server if the device MAC is included.
>
> On Friday, April 13, 2012 2:33:02 AM UTC-4, Muhammad Sahil wrote:
>>
>> hi,
>> I want to restrict my application for some security reason. So
>>
>> 1) How can i get the MAC address of my mobile.
>>
>> 2) How can i apply restriction for this MAC address to use my
>> application.
>>
>> I hope someone provide me good answer. I am waiting for your kind
>> help,
>>
>> Thanks and Regards,
>>
>> Sahil.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Wrote stack trace to '/data/anr/traces.txt', then black screen

2012-04-13 Thread Deepwinter
I'm launching a new activity with startActivity(intent), an activity
which I have verified to launch successfully when I call startActivity
from onCreate of another activity.

However when I launch the activity later in the program (where it
should be launched), I just get a black screen.  I get no android
runtime errors, and onCreate on the new activity is never called.  All
I get in ADB is 'Wrote stack trace to '/data/anr/traces.txt'' and then
nothing else from the app.  I used adb pull to get at the /data/anr/
traces.txt but find no reference to any exceptions in that file.

How can I debug this problem, or what could be the cause?

Thank you for your help.

M.

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

2012-04-13 Thread Nathan


On Thursday, April 12, 2012 10:22:57 PM UTC-7, Zsolt Vasvari wrote:
>
> I think you just need to stop calling the SD Card and call it "External 
> storage" or something. 


It's really irrelevant what *I* call it. I can't control what the users 
call it, or even what the manufacturers call it. 
 

>  If it's not on the SD card, why do you care?  

I don't. But you've missed most of this thread, and that is the wrong 
question. The question is why do my customers care? They do. I get at least 
two inquiries a week, and more before I gave them this capability to 
switch.  

I think they care because they use my app to create a large (think several 
gigabytes) set of files. I don't force them to do this; they can choose to 
create a much smaller set of files. Not every app will this matter so much; 
but I'm not the only one. 

I think they care about this being the storage volume with the most space. 
They don't care as much which one is a card or internal storage, and they 
certainly don't care which volume is returned by 
GetExternalStorageDirectory, because they don't know. 

I did try leaving it at getExternalStorageDirectory(), and that still is 
the default. 

Then, after getting floods of questions about "why dont you . . ", I 
allowed people to set the path manually.
Then, I would get questions, because noone knows what path to try and I 
don't either.  
But more recently, I am getting people who have made it through the arduous 
process of finding that path and it still doesn't work. Other apps can 
write there, the PC can write there, but I can't. 

...And I am not exaggerating at all that they have become frustrated enough 
to buy an iphone/ipad.   

This is more a technical support issue than a programming question - unless 
there is a programming solution. At the least, I'd like to have a page of 
information for these people that says try this, then try this, and if it 
still doesn't work, talk to your manufacturer because I can only work on 
issues I can actually do something about. 

I'm just hoping for:

   1. Ideas on helping users find their storage location. The environment 
   variables mentioned in this thread might help. 
   2. Ideas on why or how often devices are locking out storage locations 
   to third party apps, and is that coming from the manufacturer, the Android 
   platform, or both?   
   
It appears that no one on this forum has more insight into number 2. Darn. 

Nathan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] i want to put restriction on an application for particular MAC address of mobile. how???

2012-04-13 Thread Kristopher Micinski
What...

This doesn't make any sense...

What are you trying to do...

I can say with high certainty that the SDK probably will not support
what you want to do..

kris

On Fri, Apr 13, 2012 at 2:33 AM, Muhammad Sahil
 wrote:
> hi,
>    I want to restrict my application for some security reason. So
>
> 1) How can i get the MAC address of my mobile.
>
> 2) How can i apply restriction for this MAC address to use my
> application.
>
> I hope someone provide me good answer. I am waiting for your kind
> help,
>
> Thanks and Regards,
>
> Sahil.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: i want to put restriction on an application for particular MAC address of mobile. how???

2012-04-13 Thread lbendlin
1)  This will only work when the WiFi is actually powered. This may not be 
guaranteed in your case (if the user is connecting via 3G etc)

final WifiManager wm = (WifiManager) 
(getApplication().getSystemService(Context.WIFI_SERVICE));
final WifiInfo wi = wm.getConnectionInfo();
Log.v(TAG, "WiFi: " + wi.getMacAddress());

2) On your server, keep a whitelist of permitted MAC addresses. In your 
app, ask the server if the device MAC is included.  

On Friday, April 13, 2012 2:33:02 AM UTC-4, Muhammad Sahil wrote:
>
> hi, 
> I want to restrict my application for some security reason. So 
>
> 1) How can i get the MAC address of my mobile. 
>
> 2) How can i apply restriction for this MAC address to use my 
> application. 
>
> I hope someone provide me good answer. I am waiting for your kind 
> help, 
>
> Thanks and Regards, 
>
> Sahil.

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

2012-04-13 Thread Dianne Hackborn
The base Android platform is verified for each release to be able to boot
with a full data partition and run enough that you can go to settings and
remove files to find space.  If this is not working on your device, your
manufacturer has likely broken something.

On Thu, Apr 12, 2012 at 8:50 PM, priya abc  wrote:

> Hello,
>
> I run application from eclipse .it installed directly on tablet internal
> memory storage.that` why it memory is almost full.
> Then I am trying to uninstall it but it is not removing.
> So i just power off the tablet and did power on..but it is not going into
> home screen ...it showing only starting logo.
> Now What should i do?
>
> It is china tablet 7inch ...model is crane v1.4 somthing like 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




-- 
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, 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] Getting GPS Coordinates From Postal Address

2012-04-13 Thread TreKing
On Fri, Apr 13, 2012 at 12:22 PM, usafrmajor  wrote:

> I saw this but near as I can tell it does not return the latitude and
> longitude of the addresses returned.


It returns a list of Address objects. If you look at the docs for that
class, it has latitude and longitude.

-
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] Getting GPS Coordinates From Postal Address

2012-04-13 Thread usafrmajor
I saw this but near as I can tell it does not return the latitude and 
longitude of the addresses returned.  If I am mistaken can you show me how 
I code for it--just the part where I can assign the latitude and longitude 
values to local variables.

My goal is to create a function that will allow the user to add 
destinations into a database and then be able to map to them later.   I 
have the mapping to part written and it works great but it is based on lat 
and longs not a street address.

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] Getting GPS Coordinates From Postal Address

2012-04-13 Thread TreKing
On Fri, Apr 13, 2012 at 8:07 AM, usafrmajor  wrote:

> Is there a way to get the GPS coordinates from a postal address (street,
> city, state, zip)?


http://developer.android.com/reference/android/location/Geocoder.html#getFromLocationName(java.lang.String,
int)

-
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: Google's 1099-K

2012-04-13 Thread niko20
One last thing. Google's numbers have *never* made sense, so I just
used the payouts for each month and added them up, I mean literally
the amount of money that was sent to my checking account. If the IRS
wanted to do an audit, that's the number they would finally end up
with. If anything, that would show *Google* was full of inaccuracy,
and not me.

-niko

On Apr 13, 11:53 am, niko20  wrote:
> I'm wondering if maybe this form is only sent for apps with ads or
> something. I don't have such apps, only paid. And I have never
> received such a form and been on the market since early 2009.
>
> -niko
>
> On Apr 13, 8:58 am, TreKing  wrote:
>
>
>
>
>
>
>
> > On Fri, Apr 13, 2012 at 12:26 AM, Zsolt Vasvari  wrote:
> > > That makes sense that the commission is an expense, but is it not for
> > > Amazon?  Amazon is also sending a 1099-MISC as opposed to a 1099-K.
>
> > This is my guess: with Google you're on your own. You're using Checkout or
> > Wallet or whatever as a payment processor to collect payment, but you're
> > essentially selling to users directly. As such, you get 1099-K (for " 
> > merchant
> > card transactions (e.g., debit or credit cards) " 
> > [http://www.irs.gov/businesses/article/0,,id=251966,00.html]
>
> > With Amazon, you sign up with them, give them the right to market, promote,
> > and and sell your app on your behalf. They deal with selling to the
> > customer, and collecting and processing payments, not you (like how you
> > can't issue refunds directly to customers like you can on the Android
> > Market). Then they pay you for what they sold for you. As such, you're more
> > of an independent contractor, hence 1099-MISC.
>
> > Again, just postulating - I can barely get through TurboTax so don't take
> > this with any authority.
>
> > --- 
> > --
> > 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 android layout file to pdf format...

2012-04-13 Thread TreKing
On Thu, Apr 12, 2012 at 4:40 AM, parthi  wrote:

>  my project  :once user click submit  button tat file ill convert to
> pdf format using android ... help me
>

http://www.catb.org/~esr/faqs/smart-questions.html

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

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

Re: [android-developers] Moving an image using accelerometer in android

2012-04-13 Thread TreKing
On Thu, Apr 12, 2012 at 8:10 AM, kumar varma  wrote:

>   In my app I need to move the image using accelerometer
> (sensor) in android.If anyone can help me with this will be very
> helpful as I am struggling to understand how this is done.
>

   1. Read the documentation, particularly on the accelerometer and Views.
   2. Try something with what you learn from 1.
   3. If still lost, ask a more detailed question here, explaining what
   work you already have done and where *specifically* you are stuck.

-
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: Google's 1099-K

2012-04-13 Thread niko20
I'm wondering if maybe this form is only sent for apps with ads or
something. I don't have such apps, only paid. And I have never
received such a form and been on the market since early 2009.

-niko



On Apr 13, 8:58 am, TreKing  wrote:
> On Fri, Apr 13, 2012 at 12:26 AM, Zsolt Vasvari  wrote:
> > That makes sense that the commission is an expense, but is it not for
> > Amazon?  Amazon is also sending a 1099-MISC as opposed to a 1099-K.
>
> This is my guess: with Google you're on your own. You're using Checkout or
> Wallet or whatever as a payment processor to collect payment, but you're
> essentially selling to users directly. As such, you get 1099-K (for " merchant
> card transactions (e.g., debit or credit cards) " 
> [http://www.irs.gov/businesses/article/0,,id=251966,00.html]
>
> With Amazon, you sign up with them, give them the right to market, promote,
> and and sell your app on your behalf. They deal with selling to the
> customer, and collecting and processing payments, not you (like how you
> can't issue refunds directly to customers like you can on the Android
> Market). Then they pay you for what they sold for you. As such, you're more
> of an independent contractor, hence 1099-MISC.
>
> Again, just postulating - I can barely get through TurboTax so don't take
> this with any authority.
>
> --- 
> --
> 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: Google's 1099-K

2012-04-13 Thread niko20
I have never received any form from Google, and I've made WELL into
the thousands.

-niko

On Apr 13, 8:58 am, TreKing  wrote:
> On Fri, Apr 13, 2012 at 12:26 AM, Zsolt Vasvari  wrote:
> > That makes sense that the commission is an expense, but is it not for
> > Amazon?  Amazon is also sending a 1099-MISC as opposed to a 1099-K.
>
> This is my guess: with Google you're on your own. You're using Checkout or
> Wallet or whatever as a payment processor to collect payment, but you're
> essentially selling to users directly. As such, you get 1099-K (for " merchant
> card transactions (e.g., debit or credit cards) " 
> [http://www.irs.gov/businesses/article/0,,id=251966,00.html]
>
> With Amazon, you sign up with them, give them the right to market, promote,
> and and sell your app on your behalf. They deal with selling to the
> customer, and collecting and processing payments, not you (like how you
> can't issue refunds directly to customers like you can on the Android
> Market). Then they pay you for what they sold for you. As such, you're more
> of an independent contractor, hence 1099-MISC.
>
> Again, just postulating - I can barely get through TurboTax so don't take
> this with any authority.
>
> --- 
> --
> 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] tablet is hang due to full internal storage memory

2012-04-13 Thread TreKing
On Thu, Apr 12, 2012 at 10:50 PM, priya abc  wrote:

> Now What should i do?


Contact tech support for your carrier and / or manufacturer.

-
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] Unknown Android Packaging Problem: java.lang.ArrayIndexOutOfBoundsException: 13

2012-04-13 Thread Rohit Lagu
Yes. I have purchase new laptop & i am unable to code :(  

Anyone please give me update. 

Thanks

On Friday, April 13, 2012 6:47:59 PM UTC+5:30, mpd wrote:
>
> this is the third issue like this related to the latest eclipse/android 
> tools. I suspect some problems exists with the latest release. maybe 
> someone supporting these new releases will let us know what the issue is. I 
> see you are using windows on a 64 bit machine. 
>
> On Thu, Apr 12, 2012 at 11:30 AM, Rohit Lagu  wrote:
>
>> Hi All,
>> I have installed all latest version software in my machine ( 
>> eclipse-java-indigo-SR2-win32-x86_64, ADT V18 , Android Latest version)
>>
>> When i create a new android application & build it all works fine. but 
>> when i try to run application in simulator i got this error 
>>
>> Description 
>>ResourcePath Location 
>>  Type
>> Error generating final archive: java.lang.ArrayIndexOutOfBoundsException: 
>> 13TestProject Unknown Android Packaging Problem
>>
>> I have search on net for this but did not got anything. same error found 
>> on stack-overflow 
>> 
>> .
>>
>> please help,
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

Re: [android-developers] Re: XML layout and Views

2012-04-13 Thread yyyogev
It works!
Thanks for all the help.

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

[android-developers] Re: ShapeDrawable and setImageMatrix on ICS

2012-04-13 Thread Martin Bruse
Wonderful! That did the trick.

Thank you!

On Apr 10, 1:39 am, Romain Guy  wrote:
> Hi,
>
> This happens when hardware acceleration is turned on. You can disable
> hardware acceleration for this view if you wish using
> View.setLayerType().
>
>
>
>
>
>
>
>
>
> On Sat, Apr 7, 2012 at 5:26 AM, Martin Bruse  wrote:
> > Hello!
>
> > I have an app that constructs a fairly advancedShapeDrawable, and
> > uses ImageView#setImageDrawable to render it on screen.
>
> > Then I use ImageView#setImageMatrix to scale and transpose it for
> > "multitouch zoom and pan".
>
> > In Android < Honeycomb this works beautifully - the ImageView is
> > always crisp and pretty due to theShapeDrawablebeing vector graphics
> > and all.
>
> > But when I try this code on my new HTC One X with Ice cream Sandwich
> > the ImageView seems to scale the rendered bitmap instead of the
> > containedShapeDrawable, and the scaled image gets all pixelly and
> > ugly.
>
> > Is this a bug in ICS, or a change that I should adjust to (and how?)
> > or is it a bug in my phone?
>
> > regards,
> > //Martin
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] Layout selector to switch to tablet layout?!

2012-04-13 Thread Kostya Vasilyev

FWIW, the built-in apps use 600dp as the switchover point.

Modern 7" tablets are typically 1024x600 pix/dp but they aren't -xlarge 
(it being at least 960dp x 720dp).


-- K

13.04.2012 17:27, Mark Murphy написал:

The screen size for the Galaxy Nexus is 320dp x 640dp. The screen size
for the XOOM is 800dp x 1280dp.

So, either use the classic res/layout/ and res/layout-xlarge/ pair, or
use something like res/layout/ and res/layout-w720dp/ (or wherever you
think you want to have your break point). Personally, I would just use
res/layout/ and res/layout-xlarge/, with -land added as needed.


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


Re: [android-developers] Changing Views

2012-04-13 Thread Justin Anderson
>
> I've tried ViewSwitcher and ViewFlipper and neither of them work (or I
> just don't understand how to get them to work like I want).
>
What doesn't work about that?  What have you tried?  I've used both of them
extensively and have never had any problems.

Is there a way to do this, or will I be forced to transition to multiple
> activities?
>
This is generally the best way to go.  Unless you have a REALLY good reason
not to use multiple activities then I would recommend this route...

A *goto* call would work, but it doesn't look like it's implemented.
>
goto is an evil abomination... :-)

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Apr 12, 2012 at 10:03 AM, Tim wrote:

> I've tried ViewSwitcher and ViewFlipper and neither of them work (or I
> just don't understand how to get them to work like I want).

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

2012-04-13 Thread Justin Anderson
Look at ANY of the Android samples that use an XML layout... This is pretty
basic stuff.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Apr 13, 2012 at 7:21 AM, yyyogev  wrote:

> Thanks, I think this is what I need but I'm having implement it.
> Do you have by any chance an example?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Google's 1099-K

2012-04-13 Thread TreKing
On Fri, Apr 13, 2012 at 12:26 AM, Zsolt Vasvari  wrote:

> That makes sense that the commission is an expense, but is it not for
> Amazon?  Amazon is also sending a 1099-MISC as opposed to a 1099-K.


This is my guess: with Google you're on your own. You're using Checkout or
Wallet or whatever as a payment processor to collect payment, but you're
essentially selling to users directly. As such, you get 1099-K (for " merchant
card transactions (e.g., debit or credit cards) " [
http://www.irs.gov/businesses/article/0,,id=251966,00.html]


With Amazon, you sign up with them, give them the right to market, promote,
and and sell your app on your behalf. They deal with selling to the
customer, and collecting and processing payments, not you (like how you
can't issue refunds directly to customers like you can on the Android
Market). Then they pay you for what they sold for you. As such, you're more
of an independent contractor, hence 1099-MISC.

Again, just postulating - I can barely get through TurboTax so don't take
this with any authority.

-
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: duplicate calls to onSurfaceChanged() weirdness (again)

2012-04-13 Thread Latimerius
Okay, if nobody has an answer or explanation, I will hope that moving
non-idempotent code out of onSurfaceChanged() and ignoring the first
onDrawFrame() is enough to work around this bug.

On Thu, Apr 12, 2012 at 5:57 PM, Latimerius  wrote:
> Hello,
>
> googling for the following problem got me a lot of hits where people
> ask or rant about this but no actual explanation so I figured I'll ask
> here, perhaps someone has an update on the problem.
>
> I'm using stock GLSurfaceView, only subclassed to get onTouchEvent(),
> the rest of it is standard.  When coming back to my app (*not*
> starting it anew, that seems to work as expected) I get the following
> sequence of calls:
>
> onSurfaceCreated()
> onSurfaceChanged()
> onDrawFrame()
> onSurfaceChanged()
> onDrawFrame()
> onDrawFrame()
> onDrawFrame()
> ...
>
> The (by now standard ;-)) question is: why is onSurfaceChanged()
> called twice?  The calls are identical as far as the callee can tell,
> the GL10 argument refers to the same GL10 instance, the width & height
> are the same, too.
>
> The other question (might have been asked before, too, I haven't come
> across that if so) is: the single onDrawFrame() call which occurs
> between both onSurfaceChanged() calls is strange because whatever gets
> drawn during that call (might be just a simple glClear(), or a full
> scene render, doesn't matter) never seems to make it to the screen,
> never becomes visible.  Why is that?
>
> I'm trying to figure out whether it's safe to ignore the issue or hack
> around it, and to decide that it'd be very helpful to understand the
> causes.
>
> 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] Regarding Audio effects in Android ICS

2012-04-13 Thread Shashi Kumar
Hi,



In Android phone (ICS version) the testing scenario is below:

1.  Install “Music2.apk” (Google Music application)

2.  Play an mp3 clip.

3.  Menu -> Sound effects

4.  Turn on “Equalizer”/Any sound effect

5.  Return to playback screen.

6.  Go to next clip or previous clip.

In step 6, pop is observed. Without effects, the pop is not observed.


Audio effect module keeps track of effect was applied previously and
on which data. At the beginning of next clip however is silence as
most of the clips, the last effect (low amplitude POP) is applied to
beginning of next buffer.


This is known issue, please let me know.

Thanks and Regards,

Shashi.

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

2012-04-13 Thread TreKing
On Fri, Apr 13, 2012 at 12:43 AM, Put_tiMe  wrote:

> The reason I want to do this is:
> I know I want to send an e-mail. I don't want the user to choose
> 'bluetooth'.
> Because I know I don't want to use the 'bluetooth'.
>

The beauty of Android is that if you set up your Intent correctly, only
those apps that can correctly handle your Intent will be available for
choosing. If Bluetooth can't handle the intent, then it simply won't show.
If Bluetooth can correctly handle your email message, who are you to tell
the user not to use it?

I need to do at least this: the chooser should should only the e-mail
> capable apps. is that possible?


Set up your Intent correctly. There are plenty of samples out there for how
to configure an intent for sending an email.

-
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] Layout selector to switch to tablet layout?!

2012-04-13 Thread Mark Murphy
On Fri, Apr 13, 2012 at 9:12 AM, kodlan  wrote:
> This drives me nuts. I'm developing application where I need to
> provide both tablet layout and simpler layout for phones. I'm
> targeting 4.0. After reading this
> http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts
> I'm totally lost how that should be done.
>
> For example I have two devices Samsung Nexus (720x1280, xhdpi,
> ~315-320dpi) and Motorola Xoom (1280x800, mdpi, 160dpi).
>
> How can I correctly apply tablet layout for xoom and phone layout for
> nexus?!
> Using smallestWidth (-swXXXdp) or Available screen width (-wXXXp) for
> this seems to be wrong, as
> screen size (landscape for both) in dips for nexus is greater that for
> nexus.

Your last sentence does not parse.

The screen size for the Galaxy Nexus is 320dp x 640dp. The screen size
for the XOOM is 800dp x 1280dp.

So, either use the classic res/layout/ and res/layout-xlarge/ pair, or
use something like res/layout/ and res/layout-w720dp/ (or wherever you
think you want to have your break point). Personally, I would just use
res/layout/ and res/layout-xlarge/, with -land added as needed.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re:: [android-developers] Layout selector to switch to tablet layout?!

2012-04-13 Thread Kostya Vasilyev
The nexus screen is only about half as wide and half as tall add that on
the Xoom, if measured in device independent units.

Base your layout switching on "dp" sizes and you'll be fine.
 13.04.2012 17:13 пользователь "kodlan"  написал:

> Hi!
> This drives me nuts. I'm developing application where I need to
> provide both tablet layout and simpler layout for phones. I'm
> targeting 4.0. After reading this
>
> http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts
> I'm totally lost how that should be done.
>
> For example I have two devices Samsung Nexus (720x1280, xhdpi,
> ~315-320dpi) and Motorola Xoom (1280x800, mdpi, 160dpi).
>
> How can I correctly apply tablet layout for xoom and phone layout for
> nexus?!
> Using smallestWidth (-swXXXdp) or Available screen width (-wXXXp) for
> this seems to be wrong, as
> screen size (landscape for both) in dips for nexus is greater that for
> nexus.
>
> Someone please help me to figure this out.
> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: XML layout and Views

2012-04-13 Thread yyyogev
Thanks, I think this is what I need but I'm having implement it. 
Do you have by any chance an example?

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

2012-04-13 Thread mike digioia
this is the third issue like this related to the latest eclipse/android
tools. I suspect some problems exists with the latest release. maybe
someone supporting these new releases will let us know what the issue is. I
see you are using windows on a 64 bit machine.

On Thu, Apr 12, 2012 at 11:30 AM, Rohit Lagu  wrote:

> Hi All,
> I have installed all latest version software in my machine (
> eclipse-java-indigo-SR2-win32-x86_64, ADT V18 , Android Latest version)
>
> When i create a new android application & build it all works fine. but
> when i try to run application in simulator i got this error
>
> Description
>  ResourcePath Location
>Type
> Error generating final archive: java.lang.ArrayIndexOutOfBoundsException:
> 13TestProject Unknown Android Packaging Problem
>
> I have search on net for this but did not got anything. same error found on
>  stack-overflow 
> 
> .
>
> please help,
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Layout selector to switch to tablet layout?!

2012-04-13 Thread kodlan
Hi!
This drives me nuts. I'm developing application where I need to
provide both tablet layout and simpler layout for phones. I'm
targeting 4.0. After reading this
http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts
I'm totally lost how that should be done.

For example I have two devices Samsung Nexus (720x1280, xhdpi,
~315-320dpi) and Motorola Xoom (1280x800, mdpi, 160dpi).

How can I correctly apply tablet layout for xoom and phone layout for
nexus?!
Using smallestWidth (-swXXXdp) or Available screen width (-wXXXp) for
this seems to be wrong, as
screen size (landscape for both) in dips for nexus is greater that for
nexus.

Someone please help me to figure this out.
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] Getting GPS Coordinates From Postal Address

2012-04-13 Thread usafrmajor
Is there a way to get the GPS coordinates from a postal address (street, 
city, state, zip)?  

I have my app working so I can get the address once I have the GPS 
coordinates, but I want to do the reverse.  Sample code would be a plus.  
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] How to integrate Google maps and Facebook page and Twitter in android apps.

2012-04-13 Thread Chandra Sekhar
Go through the Facebook site  or see the following link to integrate
facebook to our android apps

 http://developers.facebook.com/docs/mobile/android/build/
  and for sample app for Facebook(Hackbook in github)
 http://developers.facebook.com/docs/mobile/android/hackbook/

   and do the same thing from Twitter  site

On Fri, Apr 13, 2012 at 4:26 PM, Yogeshkumar Tiwari <
yogeshtiwari2...@gmail.com> wrote:

> Hi Everybody,
>   I'm developing android Restaurant apps for my
> client in that i have to show store locator that means location of my
> clients Restaurants in Google maps and share button for Facebook and
> Twitter button  for tweet. so please any one can help me how to integrate
> all these features in my apps. If any one of them have source code or any
> reference please share with me.
> Thanks a lot in advance!
>
>
>
> --
> With Regards:
> Yogesh Tiwari
> (Android Developer)
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: question about blending bitmaps (Porterduff? matrix?)

2012-04-13 Thread Jim Graham
Adding to the original question:  along with which is the best method
for results, add to that the need to minimize usage of memory.  I am,
of course, recycling all bitmaps one line after I'm finished with them
(there aren't many, but they are quite large).  I really want to give the
user the full resolution that their camera offers while still applying
the filters and other effects.

Also, should I, perhaps, have posted this in the android-for-beginners
group?


On Wed, Apr 11, 2012 at 03:24:40PM -0500, Jim Graham wrote:
> I'm looking for the best way to combine/blend two (or more) solid-color
> bitmap so the colors are combined.  The bitmaps have one color with an
> alpha value of 102 for solid color bitmaps, 102 and decreasing to 0 at
> about 48% of the bitmap's height (from either the top or bottom) for
> graduated color bitmaps, and for split-field, the same, except not a
> gradual change---just 102 then 0 at 50%.

Those alpha values may be wrong, btw.  I'm still doing some testing to
get the levels that match the "real thing" (film +  glass).

> By blending, what I mean is this:  Imagine that you have two sheets
> of colored plastic.  You look through one of them, and you see its
> color over the scene behind it.  You then add the second sheet of
> a different color clear plastic, and now you see the two colors
> interacting to make a new color.  That is what I'm trying to do.
> 
> In the case of graduated or split-field, the transparent area should
> not interfere with a second filter's color where it is colored in
> the transparent area of another.
> 
> Btw, all of these bitmaps are created as needed using
> Bitmap.createBitmap (ARGB_), paint, and drawing on the canvas.
> I was using 60x40 png files for the solid colors, but the transparent
> white background ended up not being so transparent  Now I just
> create larger bitmaps with NO background---just color (alpha 102) or
> completely transparent.
> 
> What would be the best way to do this?  If Porterduff, which mode?
> Or would some type of matrix calculation be better?  Or is there
> another way that I haven't come across yet?
> 
> (If the best way calls for a matrix, a pointer to a good matrix tutorial
> would be really helpful.)
> 
> Thanks,
>--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

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| "My spell checker eloped with a wiccan
spooky1...@gmail.com| and I've not seen it since!"
< Running FreeBSD 7.0 > | 
ICBM / Hurricane:   |(from news.admin.net-abuse.email)
   30.44406N 86.59909W  | 

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


[android-developers] How to integrate Google maps and Facebook page and Twitter in android apps.

2012-04-13 Thread Yogeshkumar Tiwari
Hi Everybody,
  I'm developing android Restaurant apps for my
client in that i have to show store locator that means location of my
clients Restaurants in Google maps and share button for Facebook and
Twitter button  for tweet. so please any one can help me how to integrate
all these features in my apps. If any one of them have source code or any
reference please share with me.
Thanks a lot in advance!



-- 
With Regards:
Yogesh Tiwari
(Android Developer)

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

2012-04-13 Thread Mark Murphy
On Fri, Apr 13, 2012 at 1:43 AM, Put_tiMe  wrote:
> I'm looking at this: if com.android.email package exists, then I want to
> open the "compose" activity, and automatically fill up the fields, such as
> 'to', 'subject', etc...
>
> If the default mail package doesn't exist, then I don't mind showing the
> chooser.
>
> The reason I want to do this is:
> I know I want to send an e-mail. I don't want the user to choose
> 'bluetooth'.
> Because I know I don't want to use the 'bluetooth'.

What if the user does?

And, what if the user is not using the Email app? What if they are
using Gmail? What if they are using K9? What if they are using an
email app supplied by their device manufacturer?

> I need to do at least this: the chooser should should only the e-mail
> capable apps. is that possible?

Use ACTION_SENDTO and a mailto: URL.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Testing program on device

2012-04-13 Thread Mark Murphy
http://developer.android.com/guide/developing/device.html#setting-up

2012/4/12 Aivaras Guobužas :
> Hello,
>
> I'm creating program for Android 2.3.3, but I have got device, which
> has Android version 4.0.3. Is it possible to build and test my program
> in device when I press build project button (because now it runs only
> in emulator, and if I delete emulator, it says device not found or
> smth) or I should always copy .apk file to SD card. I'm using Eclipse.
>
> 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



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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Perform phone call at Overlay.onTap() event

2012-04-13 Thread Mark Murphy
Call startActivity() with an ACTION_DIAL or ACTION_CALL Intent on a
tel: Uri (tel:N, where N is your phone number).

On Thu, Apr 12, 2012 at 10:04 AM, graffiti75  wrote:
> Hi everyone.
>
> I would like to know if there is a way to perform a phone call inside
> the onTap event of a class that extends Overlay. I need this info for
> a project I'm working.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Android and OpenStreetMap

2012-04-13 Thread Mark Murphy
http://code.google.com/p/osmdroid/

On Thu, Apr 12, 2012 at 9:59 PM, Mishka  wrote:
> Hi,
>
> i want to begin a carto app and want to use android and OSM. Some one could
> have a tutorials about OSM API for android or something else.
>
> Regards;
>
> Mishk@
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 Programming Tutorials_ Version 4.1 Available!

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


[android-developers] Re: Media Effect artifact

2012-04-13 Thread hmohtasham
Oh, I forgot to mention that the app occasionally crashes with the
following error:

04-13 09:10:33.890: E/AndroidRuntime(17201): FATAL EXCEPTION: GLThread
2351
04-13 09:10:33.890: E/AndroidRuntime(17201):
java.lang.RuntimeException: Applying effect in wrong GL context!
04-13 09:10:33.890: E/AndroidRuntime(17201):  at
android.media.effect.EffectContext.assertValidGLState(EffectContext.java:
112)
04-13 09:10:33.890: E/AndroidRuntime(17201):  at
android.media.effect.FilterEffect.beginGLEffect(FilterEffect.java:67)
04-13 09:10:33.890: E/AndroidRuntime(17201):  at
android.media.effect.SingleFilterEffect.apply(SingleFilterEffect.java:
71)
04-13 09:10:33.890: E/AndroidRuntime(17201):  at
com.experimental.camera2gl.GLES20TriangleRenderer.onDrawFrame(GLES20TriangleRenderer.java:
208)
04-13 09:10:33.890: E/AndroidRuntime(17201):  at
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:
1462)
04-13 09:10:33.890: E/AndroidRuntime(17201):  at
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)


and also sometimes the following error with no crash:

04-13 09:51:52.780: E/MCA(27518): GL Error: Operation 'Popping Vertex
Attributes' caused GL error (0x506)

Thanks

--Hossein

On Apr 13, 5:17 pm, hmohtasham  wrote:
> Greetings!
>
> I'm experimenting with various effects provided in the android.media.*
> package and I
> have been able to get some output; however, it seems that the
> processed texture
> (the output of the effect) is stretched to the right in a way that
> part of the right side
> of the input is not seen (cropped).
>
> I draw two quads one textured with input image and the other with the
> output,
> within the same OnDrawFrame(). I apply the effect at the end of the
> OnDrawFrame() after
> glDrawArrays(). Almost everything (viewport, transformation, etc.) is
> shared between
> the the two quad; still the above occurs.
>
> I appreciate any feedback, hint, and even general advice on the proper
> use of effects
> in the presence of GLSurface.
>
> Thanks
>
> --Hossein

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

2012-04-13 Thread kenlion
Hi , is there any  solution for this problem  ??

在 2011年1月26日星期三UTC+8下午9时17分56秒,Nandlal Viranni写道:
>
> Hi All , 
>
> I am new to Android . 
>
> I am developing one application . 
>
> In which , i need to use SOAP based web service. 
>
> but i am not able to do this task . 
>
> I need to pass class object as a argumens while calling web service 
> method . 
> And I am getting error regarding "Serialize" . 
>
> Now , I change the way of calling web service and 
>
> I want to pass xml data as a argumens .. 
>
> Is there any solution for this problem ??? 
>
> Is there any relavant link ?? 
>
> thanks & Regards 
>
> Nandlal Virani

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

2012-04-13 Thread Tolriq
This is totally insane they just ban my unlocker application ...

For the exact same reason as the old paying application 

This unlocker is a simple application that does nothing but only it's 
presence is checked by the free application.

The free application is still here.

They just don't want me to sell application but there's no problem to take 
my 25$ for my account.

Any other company than Google would be in big troubles for acting like 
this, but here it's a monster company against indie dev, why bother 
answering them .

Le vendredi 13 avril 2012 09:07:12 UTC+2, Pent a écrit :
>
> >  They even took 
> > down the Support Forum and your only option is to send form letters 
> which 
> > don't even get answered the majority of the time. 
>
> I havn't gotten a single answer since the time they took down the 
> forum. I don't write anymore, I'm worried I'll break my laptop when 
> their automated response comes. 
>
> My opinion of Google as a 'business partner' is heading towards rock 
> bottom from this and other issues. It's incomprehensible when 
> considering the resources they command. 
>
> Sorry for thread-napping :-) 
>
> 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] Re: where does Android store sms.

2012-04-13 Thread Meryeme
in fact I found out where does it store sms in data/data/databases/
mmssms.db thank you for your help Lin :)

On Apr 11, 6:24 am, Alger Lin  wrote:
> You may able to query incoming SMS by content provider, refer to URL 
> below.http://stackoverflow.com/questions/2223296/select-first-sms-on-androi...
>
> And column of SMS table is defined at undocumented class -
> android.provider.Telephony$Sms.Inbox
> You may able to find it out by tool 
> below.http://market.android.com/details?id=com.twrd.yulin.classminer
>
> Meryeme於 2012年4月11日星期三UTC+8上午5時45分43秒寫道:
>
>
>
>
>
>
>
>
>
> > hey guys:!
>
> >     i hope everything is just fine for all of you. please can you help me?
> > I am wondering where does Android store the coming SMS and how can we
> > monitor them? please help me find out this!
>
> > --
> > Meryeme Ayache.*
> > **Third year Computer Science Student Engineer at
> > **Ecole Nationale Supérieure d'Informatique et d'Analyse des Systèmes
> > (Rabat)*
> > *Information Security System Major.
> > *
> > *
> > *
> > *
> > *

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


[android-developers] How to get the network type from the adb command line ?

2012-04-13 Thread chengdong diao
Hi ,
I have add a 3g module to android 2.3. and it showed a "G" at the top
of the screen .
but I remembered the 3g network will show the "3G" . I don't know how
to get the network type on my board.
Can you tell me ?

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

[android-developers] Re: Export relase problem with ADT 18 / SDK 18 (since update to 18 from 17)

2012-04-13 Thread Zsolt Vasvari
File a bug report on b.android.com

Make sure you select "Tools bug report" for the tempate and put Tools R18 
in the title.  I can almost guarantee it will be looked at very quickly. 
 The SDK/tool guys are very good.

On Friday, April 13, 2012 3:41:28 PM UTC+8, xavier dev wrote:
>
> I've 2 Android projects in workspace; first is libray project and 
> other is application that refers to first project. When I try to 
> export release build it gives error: "Conversion to Dalvik format 
> failed with error 1" 
> This is happening since I move from r17 to r18. 
> Is it a known issue ? 
> Thanks for your help

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

[android-developers] contatti rubrica

2012-04-13 Thread marco androidrarz
salve, la mia necessità è quella di salvare i contatti rubrica su più
account contemporaneamente.
dato che il sistema non lo permette volevo sapere se c'era magari
qualche sviluppatore ha sviluppato una app che risolva questo limite.

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

2012-04-13 Thread depot team
Hi All,
  We need help to detect cellstatelocation change events in our app.
We downloaded trackerservice.java from android developer samples site
and ran it to check whether the events are detected are not. Though it
works on GSM phones it didn't work on CDMA phones.
Can anyone have ideas about this . how the cell state change can be
detected on CDMA phones.
Below is the trackerservice.java code

public class TrackerService extends Service {

private List mListeners;

  //  private static final String LOG_TAG = TrackerActivity.LOG_TAG;

// controls which location providers to track
private Set mTrackedProviders;

//private TrackerDataHelper mTrackerData;

private TelephonyManager mTelephonyManager;
private Location mNetworkLocation;

// Handlers and Receivers for phone and network state
private NetworkStateBroadcastReceiver mNetwork;
 //   private static String  = "cell";
// signal strength updates
private static final String SIGNAL_PROVIDER_TAG = "signal";
private static final String WIFI_PROVIDER_TAG = "wifi";
// tracking tag for data connectivity issues
private static final String DATA_CONN_PROVIDER_TAG = "data";

// preference constants
private static final String MIN_TIME_PREF = "mintime_preference";
private static final String MIN_DIS_PREF =
"mindistance_preference";
private static final String GPS_PREF = "gps_preference";
private static final String NETWORK_PREF = "network_preference";
private static final String SIGNAL_PREF = "signal_preference";
private static final String DEBUG_PREF =
"advanced_log_preference";

  //  private PreferenceListener mPrefListener;

public TrackerService() {
}

@Override
public IBinder onBind(Intent intent) {
// ignore - nothing to do
return null;
}

/**
 * registers location listeners
 *
 * @param intent
 * @param startId
 */
@Override
public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
mNetworkLocation = null;
   // Log.i("tracker","before calling init");
initLocationListeners();
Log.i("tracker","tracker service started");
Toast.makeText(this, "Tracking service started",
Toast.LENGTH_SHORT);
}

private synchronized void initLocationListeners() {
   // mTrackerData = new TrackerDataHelper(this);
LocationManager lm = getLocationManager();

mTrackedProviders = getTrackedProviders();

List locationProviders = lm.getAllProviders();
mListeners = new ArrayList(
locationProviders.size());
Log.i("tracker","no of listeners =
"+locationProviders.size());
long minUpdateTime = getLocationUpdateTime();
Log.i("tracker","minUpdateTime = "+minUpdateTime);
float minDistance = getLocationMinDistance();
Log.i("tracker","minDistance = "+minDistance);

for (String providerName : locationProviders) {
if (mTrackedProviders.contains(providerName)) {
Log.d("tracker", "Adding location listener for
provider " +
providerName);
   // if (doDebugLogging()) {
Log.d("tracker","start listening to" + providerName
+" : "+ minUpdateTime+" ms;" +  minDistance +" meters");

  //  }
LocationTrackingListener listener =
new LocationTrackingListener();
lm.requestLocationUpdates(providerName, minUpdateTime,
minDistance, listener);
mListeners.add(listener);
}
}
mTelephonyManager =
(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);

//if (doDebugLogging()) {
// register for cell location updates

mTelephonyManager.listen(mPhoneStateListener,
PhoneStateListener.LISTEN_CELL_LOCATION);
Log.i("tracker","phone state listener intialized");
// Register for Network (Wifi or Mobile) updates
mNetwork = new NetworkStateBroadcastReceiver();
IntentFilter mIntentFilter;
mIntentFilter = new IntentFilter();
 
mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
 
mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
 
mIntentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
Log.d("tracker", "registering wifi beoadcast receiver");
registerReceiver(mNetwork, mIntentFilter);


   // if (trackSignalStrength()) {
mTelephonyManager.listen(mPhoneStateListener,
PhoneStateListener.LISTEN_SIGNAL_STRENGTHS);
//}

// register for preference changes, so we can restart
listeners on
// pref changes
   // mPrefListener = new PreferenceListener();
 //
getPreferences().registerOnSharedPreferenceChangeListener(mPrefListener);
}

private Set getTrackedProviders() {
Set prov

[android-developers] Perform phone call at Overlay.onTap() event

2012-04-13 Thread graffiti75
Hi everyone.

I would like to know if there is a way to perform a phone call inside
the onTap event of a class that extends Overlay. I need this info for
a project I'm working.

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

2012-04-13 Thread Mishka
Hi,

i want to begin a carto app and want to use android and OSM. Some one could 
have a tutorials about OSM API for android or something else.

Regards;

Mishk@

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Export relase problem with ADT 18 / SDK 18 (since update to 18 from 17)

2012-04-13 Thread xavier dev
I've 2 Android projects in workspace; first is libray project and
other is application that refers to first project. When I try to
export release build it gives error: "Conversion to Dalvik format
failed with error 1"
This is happening since I move from r17 to r18.
Is it a known issue ?
Thanks for your help

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


[android-developers] Testing program on device

2012-04-13 Thread Aivaras Guobužas
Hello,

I'm creating program for Android 2.3.3, but I have got device, which
has Android version 4.0.3. Is it possible to build and test my program
in device when I press build project button (because now it runs only
in emulator, and if I delete emulator, it says device not found or
smth) or I should always copy .apk file to SD card. I'm using Eclipse.

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


[android-developers] android telephony information

2012-04-13 Thread MOHAMED HOUIJ
hello, it's been more than a week I'm looking all over the internet
how to get information as BCCH, RxLev, RxQual, BSIC, RAC and
neighboring CellInfo, but unfortunately I have not found any solution.
with android.telephony I managed to extract the CellID, LAC, MNC
etc. .. but this is not enough for my project. please if there is a
solution or an API that allow to have this information please post it
is urgent and thank you.


NB: I work on a Samsung GT-I5700

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

2012-04-13 Thread hmohtasham
Greetings!

I'm experimenting with various effects provided in the android.media.*
package and I
have been able to get some output; however, it seems that the
processed texture
(the output of the effect) is stretched to the right in a way that
part of the right side
of the input is not seen (cropped).

I draw two quads one textured with input image and the other with the
output,
within the same OnDrawFrame(). I apply the effect at the end of the
OnDrawFrame() after
glDrawArrays(). Almost everything (viewport, transformation, etc.) is
shared between
the the two quad; still the above occurs.

I appreciate any feedback, hint, and even general advice on the proper
use of effects
in the presence of GLSurface.

Thanks

--Hossein

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] What qualifies an Android phone to show up in Android Marketplace filter

2012-04-13 Thread ToniL
Could somebody tell me what makes a device qualify to show up in
Android Marketplace filter when you upload an apk? Do they have to be
CTS certified only or it needs to meet other criterias?
I tailored the Manifest files to accepts any devices with normal,
large and xlarge screen sizes and low, medium and high density. This
configuration should include most of the newest handsets that are
already on the market but it doesn't.
For example there is Motorola Atrix 2 that doesn't appear in the
filter but I can download any app from the Market place using Play
Store.

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] Moving an image using accelerometer in android

2012-04-13 Thread kumar varma
Hi All,

In my app I need to move the image using accelerometer
(sensor) in android.If anyone can help me with this will be very
helpful as I am struggling to understand how this is done.

Thanks,
KumarVarma.

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

2012-04-13 Thread Rohit Lagu
Hi All,
I have installed all latest version software in my machine ( 
eclipse-java-indigo-SR2-win32-x86_64, ADT V18 , Android Latest version)

When i create a new android application & build it all works fine. but when 
i try to run application in simulator i got this error 

Description 
   ResourcePath Location   
   Type
Error generating final archive: java.lang.ArrayIndexOutOfBoundsException: 13 
   TestProject Unknown Android Packaging Problem

I have search on net for this but did not got anything. same error found on
 stack-overflow 

.

please help,

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

[android-developers] Changing Views

2012-04-13 Thread Tim
I'm using different views within the same activity as my menu for an app 
I'm working on. I was wondering if there was a way to move freely between 
the views as needed, especially when overriding the back button. I've tried 
ViewSwitcher and ViewFlipper and neither of them work (or I just don't 
understand how to get them to work like I want).

Is there a way to do this, or will I be forced to transition to multiple 
activities? A *goto* call would work, but it doesn't look like it's 
implemented. 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

[android-developers] How can i Recognize exact speech in android application

2012-04-13 Thread Umesh R
i am trying to build an application which should recognize exact
speech with google server.
but when i am speaking it is not showing exact result... can anyone
suggest what else to do..
i have used ...
code...

Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] DeviceOrientation API can't get right data from Orientation Sensor

2012-04-13 Thread dj
hi, all
DeviceOrientation API has been impremented in Android 4.0.
But i can't use javascript to get right data form Orientation Senor.
Accelerometer Sensor and MagneticField Sensor are registered in
DeviceOrientationService.java when i addEventListener
deviceorientation event, so I think the data which javascript get is
not orientation sensor data. Anyone who can tell me why?
javascript code: window.addEventListener('deviceorientation',
function(event){//process orientation sensor data}, false);

thanks

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


[android-developers] Android Emulator not connecting to internet even though there is internet connection on computer

2012-04-13 Thread RAJESH RAJARAM
Hi,

 Android Emulator not connecting to internet even though there is
internet connection on computer.
I done all the things that
1. setting->wirelesssettings->->proxy and port.
But still i have the same problem. last one week i'm searching for the
solution can plz anyone solve my problem

Thanks in advance
--
Regards,

Rajesh Rajaram

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

2012-04-13 Thread parthi
 my project  :once user click submit  button tat file ill convert to
pdf format using android ... help me

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


[android-developers] tablet is hang due to full internal storage memory

2012-04-13 Thread priya abc
Hello,

I run application from eclipse .it installed directly on tablet internal
memory storage.that` why it memory is almost full.
Then I am trying to uninstall it but it is not removing.
So i just power off the tablet and did power on..but it is not going into
home screen ...it showing only starting logo.
Now What should i do?

It is china tablet 7inch ...model is crane v1.4 somthing like 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

Re: [android-developers] Re: Directly accessing the e-mail app.

2012-04-13 Thread Christer Nordvik
Try this magic code: 

Intent i = *new* Intent(android.content.Intent.ACTION_SEND);
//i.setType("text/plain"); //use this line for testing in the emulator  
i.setType("message/rfc822") ; // use from live device*
i.putExtra(Intent.EXTRA_SUBJECT, "Subject of this great email");
i.putExtra(Intent.EXTRA_EMAIL, *new* String[]{"to_my_em...@myemail.no"});
startActivity(Intent.*createChooser*(i, "Choose email app"));

kl. 07:43:34 UTC+2 fredag 13. april 2012 skrev Put_tiMe følgende:
>
> I'm looking at this: if *com.android.email* package exists, then I want 
> to open the "compose" activity, and automatically fill up the fields, such 
> as 'to', 'subject', etc...
>
> If the default mail package doesn't exist, then I don't mind showing the 
> chooser.
>
> The reason I want to do this is:
> I know I want to send an e-mail. I don't want the user to choose 
> 'bluetooth'.
> Because I know I don't want to use the 'bluetooth'.
>
> I need to do at least this: the chooser should should only the e-mail 
> capable apps. is that possible?
>
>
>
>
> On Thursday, April 12, 2012 9:07:45 PM UTC+5:30, TreKing wrote:
>>
>> In addition to what's been said, there exists the remote possibility that 
>> an email app does not even exist on a device, in which case your attempt to 
>> "go directly to the 'default' email app" will fail miserably.
>>
>>
>> -
>> 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: Need help about Play Store banned application.

2012-04-13 Thread Pent
>  They even took
> down the Support Forum and your only option is to send form letters which
> don't even get answered the majority of the time.

I havn't gotten a single answer since the time they took down the
forum. I don't write anymore, I'm worried I'll break my laptop when
their automated response comes.

My opinion of Google as a 'business partner' is heading towards rock
bottom from this and other issues. It's incomprehensible when
considering the resources they command.

Sorry for thread-napping :-)

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