[android-developers] Re: How get button event in Notification panel?

2011-06-29 Thread shubh
hi thanks Murphy,

so is there any other way to get two events from Notification panel.

On Jun 28, 9:33 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jun 28, 2011 at 11:47 AM, shubh shubhampatn...@gmail.com wrote:
  any one have idea how to get button event from Notification panel.

 You can't, at least on Android 1.x and 2.x, AFAIK.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-06-29 Thread Zsolt Vasvari
By ranking we are referring to the position the app appears in your
category if you are browsing the Market on the phone or on the web
site.

On Jun 29, 1:02 pm, James W jpbwebs...@gmail.com wrote:
 What is the ranking that everybody it talking about? I don't see any
 ranking statistic on the Market App, or in the Developer Console for
 either of my apps. Where do you find the ranking number?

 Is it because they dont have sufficient downloads yet? My free one has
 8000, which admittedly is not huge, but still...

 James

 http://duskjockeys.blogspot.com/
 Home of Photokube Live Wallpaper

 On Jun 29, 8:47 am, Zsolt Vasvari zvasv...@gmail.com wrote:



  The ranking I see is the same as what the users see as I check it on a
  device I am not a user on.

  I am very familiar with my ranking and my competitors'.  The EXACT
  same apps that hadn't dropped in the ranking the last time this was
  going on (in April/May?) hadn't dropped this time aroundt.  Especially
  there is one app that has much fewer installs, much lower rated and
  much newer than mine has now overtaken me.   There is no other
  explanation that the ranking systems sees my app as not getting any
  active users and lowers the ranking.  Perhaphs there is a secret sauce
  formula based on the color of the icon or something, but I don't
  beleive it -- the simplest explanation (which is usually right) is
  that the lowered install% + having no new users (as far as the Market
  is concerned) effecting the rating.

  On Jun 29, 8:06 am, Nathan critter...@crittermap.com wrote:

   On Jun 28, 4:23 pm, Zsolt Vasvari zvasv...@gmail.com wrote:

I don't believe this happens to everybody.  Everybody who's
complaining about this is also saying that their ranking had dropped.
I haven't seen a single person said that their ranking had gone up
while there install % is stuck.

   The key word being complaining. If ranking had improved, they
   wouldn't be complaining.

   Even if the stuck stats are hitting everyone, they could certainly
   affect ranking in different ways, based on all the other secret
   factors.

   I'll bite. My install percentage is probably down about 7%. As for
   ranking, well, are you assuming that the ranking you see is exactly
   what users see? Because it ain't. My rank in category this month has
   fluctuated between  six different positions, and my rank in category
   for the last week has also fluctuated between those same six
   positions. No real change.

   If I had up to the minute accurate active install count, I can't
   figure out how I would run my business differently. (Not that isn't
   silly that Google can't get it right.)

   Nathan- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

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


Re: [android-developers] Re: How get button event in Notification panel?

2011-06-29 Thread Marcin Orlowski
On Jun 29, 2011 8:17 AM, shubh shubhampatn...@gmail.com wrote:

 hi thanks Murphy,

 so is there any other way to get two events from Notification panel.

not on pre 3.x

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Files that I write to the sdcard do not show in Windows explorer, for Acer Iconiatab?

2011-06-29 Thread Marcin Orlowski
iconia does not mount as usb drive same way most devices do, so i'd blame
their drivers here if oddities occur.

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

2011-06-29 Thread Marcin Orlowski
i'd go with own server (assuming 'bulk' means figures justyfying all the
efforts) or with special builf just for them. creating one shareable email
is wrong as you got no control on number of installations
On Jun 28, 2011 11:58 PM, Justin Anderson magouyaw...@gmail.com wrote:
 You could do the following:

 - Have them create a company-wide gmail account: companyn...@gmail.com
 - On launch of your app, make sure that the specified account is on the
 device
 - If it is not do the normal license checking
 - If it is, bypass the normal license check and unlock the app

 Admittedly, it is not the most elegant approach... but it is a lot less
work
 than implementing your own license server.

 Perhaps you could do the above as an interim solution while you look for
 something more robust like building your own license server.

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


 On Tue, Jun 28, 2011 at 2:52 PM, Ab abe.oppenh...@gmail.com wrote:

 A company would like to purchase a large number of licenses of my
 application. They do not want to have individual device users make the
 purchase on their individual Google accounts. Also, I would prefer not
 to build them an unlocked apk out of fear of it being distributed. Do
 I have any intelligent option other then implementing some sort of
 license server, providing them with license keys, and associating
 license keys to device ids?

 I searched a lot for solutions, but could not find anything. Any
 advice would be helpful.

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

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

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

[android-developers] how to download and continue the editing a patch on review server

2011-06-29 Thread Zhihong GUO
hi all,

I have a patch on review server https://review.source.android.com. I can
download it by repo download command.

but when I made a change and use git add -A, git commit --amend and repo
upload, I got error no branches ready for upload. I check the active
branches by git branch:
* (no branch)
branch_a
branch_b
I think the repo download does not create a branch on my local repository,
so that I can not upload branch. how to fix the issue?

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

2011-06-29 Thread Michael Schollmeyer
The statement that they received reports from some developers doesn't mean 
it only affects some developers. It could still affect all but only some 
of us are complaining.

Anyway, the email contains a link and I would encourage everybody to click 
open the sections and click on report for every issue that applies. 
Hopefully they get these counters right this time.

Here is the link:

https://www.google.com/support/androidmarket/developer/bin/static.py?page=known_issues.cs

On Wednesday, June 29, 2011 3:18:29 AM UTC+2, Zsolt Vasvari wrote:

 Even Google knows it's NOT ALL developers. 

 Here's their (canned) response: 

 ...We're aware of reports from SOME developers that they see no 
 change, or have a value of 0 (zero), in the active install number 
 displayed in developer console... 

 The highlight is mine.  Some != All and it's not even the majority -- 
 of course, that's assuming that they are not flat out lying. 




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

[android-developers] Re: How do I know in the screen EditText is the last one?

2011-06-29 Thread Ali Chousein
The link http://developer.android.com/reference/android/view/View.html
explains View::isFocused(). This should help you solve your problem.
How exactly it's going to help you, it depends on your situation and
you should implement your own solution.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/


On Jun 29, 5:49 am, wang svnzk...@gmail.com wrote:
 Hi All,

 I want to know how to check which view is current focus? Please give
 me some suggestions.

 On Jun 27, 10:01 pm, wang svnzk...@gmail.com wrote:


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


[android-developers] Re: how to make my app as the only one NFC tag handler

2011-06-29 Thread Dominik
simply define your own mime-type and write your private text in your
own format, i.e. as

new NdefRecord(
NdefRecord.TNF_MIME_MEDIA,
text/x-yourcompany.getBytes(),
new byte[0],
payload);

and define an intent filter for exactly this mime type, then only your
application will react on your strings.
Dominik

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

2011-06-29 Thread jjoe64
I'm not sure about your problem, but maybe something like that will help 
you:

- start the activity LOGIN from activity HOME with the method startForResult
- LOGIN-activity: when back pressed set the result to -1
- HOME-acitivty: check the result and if it's -1 call finish again.

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

2011-06-29 Thread shubh
Hi friends,

I establish connection among network devices using UDP, these devices
may be a mob or may be any PC.
Now i am sending some data to those device by locate their ip address.

When i send some message string from mob to PC it get as it is on PC ,
but when i get data from PC to mob ..it showing me some garbage
character sequence.
why it is happening,



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

2011-06-29 Thread Danny S.
Hello,

I have a SQLite database with two tables. I want to use table A and
link it to the layout views (using a SimpleCursorAdapter), but I need
one column from table B to show this in the same layout. How can I
realize this using a automatically mapping of the CursorAdapter? Is
this possible?

Thanks a lot!
-Danny Schimke

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

2011-06-29 Thread Sudeep Jha
Hi All,

When I am putting the apk file on Windows server,  testing team is able to
download the file and install.
But if I am putting the same on AIX server , team is able to download but
can't install the application.
Everytime we are getting the following error.
*
 **“Parse Error:
There is a problem parsing the package.”

* Client wants us to deploy that on the AIX server for their testing team to
test the same.

Once the application is tested , then only we can upload the application to
Android Market.
This seems to be the show stopper for us.

Warm Regards,
Sudeep

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

2011-06-29 Thread WeiLong
Dear who may concern,

I'm looking for a language exchange partners of Android developing who
can help on various language translation.

This is the application that I developed , “Stop dog barking”
https://market.android.com/details?id=com.wuhome.stopDogBarking

Although I’m using “Google translation” to do roughly translation, I’m
searching for help to make it more colloquialism and easy to
understand.

As a partner, I will provide Traditional Chinese  simple Chinese
translation service for you.

Below is language exchange partners that I'm looking for.
1.  Russian
2.  Dutch
3.  Italian
4.  Czech
5.  Polish
6.  Portuguese
7.  Finnish
8.  Swedish
9.  Norwegian Bokmål
10. Danish
File list: http://dl.dropbox.com/u/25164515/filelist.html

If you are interesting, please contact me at wuwei...@gmail.com

Weilong 2011/6/24
Taiwan, Taipei

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

2011-06-29 Thread andrew.simpso...@ntlworld.com
Hi Folks,

I have an application (written for Windows Mobile) that make a socket
connection to a Server.  The Server Windows Service detects whether to
send data back to the calling client.  If data (image) then sends that
image.  If no image available sends 2 bytes back to signify no image.
When the client either finishes downloading the image or acknowledges
no image is available it sends 2 bytes to the Server to start the
whole process cycle again.

1) Is this the right approach? Bearing in mind this application has to
receive images as best to real-time as it can manage.

2). Whilst i may get away with this in WM can i implement the same
design pattern in Android (my test mobile target).

Best

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

2011-06-29 Thread andrei-dmitriev

Hi All,

is there a way to tell the View not to clear the background on repaint?
I'm trying to draw a complex content and one of the approaches I'm 
trying to implement is to draw some piece of content and call 
invalidate. Unfrotunately the old content is missing after that. So any 
clues?


Thanks,
  Andrei

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

2011-06-29 Thread Goat666
I have an application that can be started through the launcher but
also through the browser via a custom URL such as appname://parameters.

The root activity is called ActivityA.  The launchmode for ActivityA
was set to singleTop.

I do the following --
1.  Go to the launcher and click the app icon.
2.  ActivityA is launched.
3.  Click a button in the app that takes us to ActivityB.
4.  Hit the HOME key to put our task in the background.

Now we go to a website that launches a url that is handled by our
application through an intent-filter, e.g. appname://parameters
1.  This seems to launch ActivityA as intended but under the same task
as the browser.
2.  Launch ActivityB
Result is that we have two different tasks with the same app.

Task 1
---
ActivityB
ActivityA


Task 2
---
ActivityB
ActivityA
Browser

Of course this behavior is not desired. That is the imperative for
using singleTask, since another application launches ActivityA.

In this case on launching from the browser, ActivityA comes to the
forefront within Task1 and ActivityB is killed.  This is the desired
behavior.

However, launching again from the launcher also seems to clear Task 1.

For example,

1.  Go to the launcher and click the app icon.
2.  ActivityA is launched.
3.  Click a button in the app that takes us to ActivityB.
4.  Hit the HOME key to put our task in the background.
5.  From the launcher click the app icon again.

ActivityB will be killed and ActivityA will come to the foreground.
How do you prevent this behavior?  Originally, Intent.Action.MAIN was
used to launch ActivityA and I dont want the entire stack to be
cleared when I click the same icon again thus relaunching
Intent.Action.MAIN.

How do I prevent this?

Thanks!

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


[android-developers] 3rd party SMTP servers for an android application

2011-06-29 Thread ankit sablok
Can anybody tell where can we find some 3rd party SMTP servers for an
android email application to be syncronized 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


Re: [android-developers] Java.net.UnknownHostException using httpGet on Android

2011-06-29 Thread ANKUR GOEL
Just try reloading it sometimes it does not get the host name.

you can use the IP instead of that it will work fine.

Thanks and Regards:-

Ankur Goel



On Fri, Jun 24, 2011 at 7:39 PM, My Email connectmyem...@gmail.com wrote:

 Exception  :

 Java.net.UnknownHostException using httpGet on Android


 String requestTpServer = www.google.com;
 HttpClient client = new DefaultHttpClient();
 HttpResponse response = null ;

 try {

  HttpGet get = new HttpGet(requestToServer);


  response = client.execute(getm);  ///Problem here

 } catch (ClientProtocolException e) {

  e.printStackTrace();
 } catch (IOException e) {

  e.printStackTrace();
 }

 String res = response.toString();

 I have already set  uses-permission
 android:name=android.permission.INTERNET /

 and also run String requestTpServer = www.google.com;  in android
 emulater browser

 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] Fail to install Apk on device

2011-06-29 Thread ANKUR GOEL
go to platform tools from command prompt

type : adb install path of apk file



On Tue, Jun 28, 2011 at 6:26 PM, Ankit Kasliwal kasliwalankit2...@gmail.com
 wrote:

 Shashidhar i m try to install apk on device on emulator.

 On Tue, Jun 28, 2011 at 6:20 PM, Shashidhar shashi.zep...@gmail.comwrote:

 What does the logcat say

 On Tue, Jun 28, 2011 at 6:07 PM, Ankit Kasliwal 
 kasliwalankit2...@gmail.com wrote:

 Hello Everyone please any one tell how i install apk file on my device.
 when i install apk file it should show me a message Application not
 install .

 please any one help me or how i install application directly on my device
 connecting with USB.

 Thanks in advance

 --

 Thanks and Regards,

 Ankit Kasliwal
 kasliwalankit2...@gmail.com
 +91-9300-940-136

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




 --

 Thanks and Regards,

 Ankit Kasliwal
 kasliwalankit2...@gmail.com
 +91-9300-940-136

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

2011-06-29 Thread ANKUR GOEL
can anybody tell how to make xml file for rectangle of half width of screen
size

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

2011-06-29 Thread ANKUR GOEL
Hi ,

can you tell the exact problem ..

what you want to do ..

you must be having some condition to delete that particular node ..or
something .

or you can parse that node but dont use that value in your application



On Tue, Jun 28, 2011 at 10:35 AM, HariRam hariram1...@gmail.com wrote:

 Hi all,
 Thanks for valuable replies.

 I have two node having same name with different data. i want to remove one
 particular node instead of deleting two nodes. For example:
 names
   nameApple/name
   nameBall/name
   nameCat/name
   nameDoll/name
   nameElephant/name
 /names
 In the above example there is 5 different names contains same node value.
 in that how to delete one particular node. i want to delete cat. Is this
 possible to do in DOM.?? pls guide me to solve this issue.

 --
 Thanks and
 Regards
 Hariram

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

2011-06-29 Thread ANKUR GOEL
Hi all,

i want to use two list view in a screen ...

can anyone give me idea how to go for it .

Thanks
Ankur

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

[android-developers] Is there any alternative to apps for extending android OS ?

2011-06-29 Thread Ashwini Verma
Hi All,
 Is it possible to install anything other than android app on android OS
?
Thanks  Regards
Ashwini Verma

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

Re: [android-developers] Re: how to make my app as the only one NFC tag handler

2011-06-29 Thread Zhihong GUO
Thank you so much Dominik.

so that I need also define the intent filter of my activity:
intent-filter
action android:name=android.nfc.action.NDEF_DISCOVERED /
data android:mimeType=text/x-yourcompany /
category android:name=android.intent.category.DEFAULT /
/intent-filter

right?

2011/6/29 Dominik dominik.gru...@fhnw.ch

 simply define your own mime-type and write your private text in your
 own format, i.e. as

new NdefRecord(
NdefRecord.TNF_MIME_MEDIA,
text/x-yourcompany.getBytes(),
new byte[0],
payload);

 and define an intent filter for exactly this mime type, then only your
 application will react on your strings.
 Dominik

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

2011-06-29 Thread Brian Hodge
Hey,

I've been looking around for a while now and can't really find much of
the subject. I've got a sudoku puzzle on the go to try and learn how
to use Android. The problem i have is that i want the smaller 3x3
grids to have a thin line separation the squares and a thicker line
separating the bigger grid.

I have the black colour stored in an XML file and am using:

canvas.drawLine(0, i * height, getWidth(), i * height, lineColour);

To draw a line.

Anyone now how to get thicker lines? Im sure it'll be something silly
that im over looking.

Thanks for your time.

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

2011-06-29 Thread Gabe S
You can't have a focusable object inside a ListView and still set an
onItemClickListener, so you can't have a checkbox and an onItemClickListener
and have them both work out of the box. Change the xml for the CheckBox to

   CheckBox
   android:id=@+id/checkBox
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   android:layout_alignParentRight=true
   android:button=@layout/checkbox_state
   android:focusable=false
   /CheckBox

and your onItemClickListener will work again, but your checkbox won't.  You
might try setting up an onItemClickListener to toggle the checkbox, and set
what you had intended for the original onItemClickListener to an
onItemLongClickListener.  That way tapping it would toggle the checkbox and
holding it would activate whatever else you had planned to do.

On Mon, Jun 27, 2011 at 4:16 PM, Manish Garg mannishga...@gmail.com wrote:

 Hi All,

 I have a simple list view in my application. I am implementing its
 setOnItemClickListener but it is not getting called:

ListView android:layout_width=fill_parent
android:layout_height=wrap_content
android:id=@+id/sender_added
android:layout_weight=1
android:cacheColorHint=#
android:dividerHeight=1dip
android:listSelector=@drawable/tab_regular
android:divider=@drawable/listview_seperator
/ListView

 I am inflating it with the following row:
 ?xml version=1.0 encoding=utf-8?
 RelativeLayout
 xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=match_parent
 android:layout_height=wrap_content
 android:layout_gravity=center_vertical
 android:padding=10dip
ImageView
android:layout_width=wrap_content
android:layout_height=wrap_content
android:id=@+id/ImageView
/ImageView
TextView
android:id=@+id/Name
android:layout_width=wrap_content
android:layout_height=wrap_content
android:textColor=#00
android:textSize=12dip
android:layout_toRightOf=@id/ImageView
/TextView
CheckBox
android:id=@+id/checkBox
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentRight=true
android:button=@layout/checkbox_state
/CheckBox
 /RelativeLayout

 Regards,
 Manish Garg

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

2011-06-29 Thread Danny.Zubiate
If you are trying to change the size of the rectangle the .left and
.top should use the opposite operation from the .right and
.bottom.  So if you want to increase the size of a rectangle, you
should use -= for top and left, and += for right and bottom.

/Danny Zubiate
Developer Support Engineer
Sony Ericsson Mobile Communications

On Jun 21, 2:00 am, Enrique López Mañas eenriquelo...@gmail.com
wrote:
 Hello,

 I'm developing a small image editor. Basically, the user can insert
 some images in a canvas, and through interaction with the fingers
 moving them around. I'm having some trouble with the Zooming. I have
 followed the idea of this tutorial (http://blogs.sonyericsson.com/wp/
 2010/05/18/android-one-finger-zoom-tutorial-part-1) to use a bitmap,
 and to apply transformations to two rectangles. Afterwards, if we draw
 the bitmap over the canvas with
 `android.graphics.Canvas.drawBitmap(Bitmap bitmap, Rect src, Rect dst,
 Paint paint)`, the transformation is applied. So far, is not working
 for me.

 I store all the images in an array of images, `ColorBall`. When I
 detect there is a zoom gesture, and only if it was over a certain
 image (this works so far), I apply over that image the transformations
 (the values are dummy, just wanted to check if it works):

     colorballs.get(balID-1).getmRectDst().left   = getLeft();
     colorballs.get(balID-1).getmRectDst().top    = getTop();
     colorballs.get(balID-1).getmRectDst().right  = getRight();
     colorballs.get(balID-1).getmRectDst().bottom = getBottom();

     colorballs.get(balID-1).getmRectSrc().left   += 10;
     colorballs.get(balID-1).getmRectSrc().top    += 10;
     colorballs.get(balID-1).getmRectSrc().right  += 10;
     colorballs.get(balID-1).getmRectSrc().bottom += 10;

 On the OnDraw event, for all the pictures in the array I locate them,
 and then I scale them using the rectangles. So far, the part of
 scaling is not working:

     //draw the balls on the canvas
     for (ColorBall ball : colorballs) {
         canvas.drawBitmap(ball.getBitmap(), ball.getX(), ball.getY(),
 null);
         canvas.drawBitmap(ball.getBitmap(), ball.getmRectSrc(),
 ball.getmRectDst(), mPaintBalls);
     }

 Any suggestion of what can I be missing here? Thanks in advance!

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


[android-developers] Re: Android sdk insatllation problem?

2011-06-29 Thread Samuel
Hi,

I have similar problem.
I've installed Java(TM) 6 Update 26 and Java(TM) SE Development Kit 6
Update 26 but I got same error message when installing Android SDK
tool installer_r11-windows.exe

thanks in advance.
Samuel

On Jun 27, 4:06 pm, 121914r sona0...@gmail.com wrote:
 On Jun 26, 10:46 am, SIVAKUMAR j.sivakumar...@gmail.com wrote:

  Hi,

    I had a windows xp.I also had jdk6. I downloaded android insatller
  r11 for windows.When i click the installer.The error message is
  displayed as alertr Java se development kit is not found,Then the
  installation cannot happen. But in my system i had a java SE 6. I
  cannot find y it is not take the java.Please help me

  Thanks  Regards,
  Sivakumar.J

 Just Wait for a few secondsit will detect the JDK if the same
 version is present in your system

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


Re: [android-developers] Re: Android sdk insatllation problem?

2011-06-29 Thread Harsh Vardhan
make sure you have your environment variables at right place..

On Mon, Jun 27, 2011 at 2:36 PM, 121914r sona0...@gmail.com wrote:



 On Jun 26, 10:46 am, SIVAKUMAR j.sivakumar...@gmail.com wrote:
  Hi,
 
I had a windows xp.I also had jdk6. I downloaded android insatller
  r11 for windows.When i click the installer.The error message is
  displayed as alertr Java se development kit is not found,Then the
  installation cannot happen. But in my system i had a java SE 6. I
  cannot find y it is not take the java.Please help me
 
  Thanks  Regards,
  Sivakumar.J

 Just Wait for a few secondsit will detect the JDK if the same
 version is present in your system

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




-- 
Regards
Harsh Vardhan

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

2011-06-29 Thread J05HYYY
Hello, I have installed the NDK and managed to run ndk-build to
compile a terminal program, which was written in C. Trouble is, all I
can find is a libmyterminalapp.so. But usually, when I compile on
linux I get a binary instead.

I want to be able to use the application Terminal Emulator to run my
program, how would I go about doing this? Need I write a java wrapper?

Any help much appreciated.

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


[android-developers] AggregationExceptions and raw contacts

2011-06-29 Thread Ju
Hi,

I have created a raw contact synced with my own sync adapter, I add
some datas on him and I linked him with an already existing and synced
contact (on a google account) using an aggregation exception type
KEEP_TOGETHER.
All works perfectly, untill I don't edit this aggregated contact in
the native phone book, when I click on this contact the DetailActivity
is displayed showing me the right informations, so I click on menu,
Edit, and I can see the 2 aggregated contacts (all is still ok), now i
pressed back (it display a dialog saying : saving contact... ?!?!? I
haven't made any modifications).
When I reopen this contact in edition mode my raw contact isn't
visible, so I extract the contact2.db and I noticed that my contact
has lost the reference to contact_id in raw_contacts table (even if
the aggregation is still present) and my contact is now flagged as
deleted, dirty, need_aggregation and aggregation mode = DISABLED ...
Do I have to do something more to keep this contact aggregated with
the original raw_contact ??

Please help, I was totally disapointed ...

Thanks in advance for answsers.
Ju

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

2011-06-29 Thread Dennys Freire
Another very interesting way of working would be to use LocationManager. 
When loading LocationListener can specify the shipping time and the 
distance from the last point of notification. The following example:


String provider = LocationManager.GPS_PROVIDER;
int t = 5000; // milliseconds
int distance = 5; // meters

LocationListener myLocationListener = new LocationListener() {

public void onLocationChanged(Location location) {
// Update application based on new location.
}

public void onProviderDisabled(String provider){
// Update application if provider disabled.
}

public void onProviderEnabled(String provider){
// Update application if provider enabled.
}

public void onStatusChanged(String provider, int status, Bundle extras){
// Update application if provider hardware status changed.
}

};


*locationManager.requestLocationUpdates(provider, t, distance,
myLocationListener);*

Em 14/06/2011 19:10, jtoolsdev escreveu:

Depends on what you mean by easy.  You can get the last known
location without waiting using GPS but it if is out of date may
return nothing.  You can get the coarse location or the longitude and
latitude of the cell tower quickly too.  GPS to update and synchronize
can take a while so it is good to run it on a thread.  So whatever you
use depends on the granularity and how long you want to work.  None of
the APIs for this are all that daunting.

On Jun 14, 12:55 pm, bobb...@coolgroups.com  wrote:

is there any easy way I can get the latitude and longitude from my
phone?

I want to get it and plug it into Google maps on my PC.


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

2011-06-29 Thread huru
Hi all,

I'm a newbee and i've just investigating about android SDK emulator.
I have a problem when copy an python project to sdcard and run it.

When i trying to run that code, there announcing that android module
unknowned.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] App crashes on Samsung devices shortly after startup.

2011-06-29 Thread gvd
I'm getting emails from users (and 1 star comments) complaining that
my app crashes shortly after startup. At start-up my app uses
runOnFirstFix which will get the location and center/zoom on it (it's
uses Google Maps API). What it also does is download an animated GIF
image that is used as an overlay.
I did get a few crash reports a while back where I see:

java.lang.OutOfMemoryError: bitmap size exceeds VM budget
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:677)

I'm aware that Bitmaps are created on the native heap.
However, the app works fine on my LG optimus and many other phones.
The people who actually send me information all seem to be using
Samsung devices (Samsung Epic, galaxy prevail,  Verizon Galaxy Tab,
Samsung Captivate).

Does anybody have an idea on why this seems to happen on Samsung
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] Is it possible to extend the Eclipse Plugin?

2011-06-29 Thread James
Hi all,

can anyone tell me if it's possible to extend the Eclipse Plugin by
hooking into the editing events?
E.g. if I wanted to hook into the editing of nodes in the resource xml
files in much the same way as the completion suggestion works?

thanks,

James

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

2011-06-29 Thread GopalaKrishnan D
dear friends
can any one send the sample code for latitude and longitude sample code
please

-- 
~* Regards*
*GopalaKrishnan D*

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

2011-06-29 Thread chris kang
Hi, all..
I want to display alert dialog when device is idle state..
I just check andrioid launcher, however, it can't cover 3rd party
launcher.
Do they support it by api or who can solve this issue?

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

2011-06-29 Thread felipe aniceto
Hi anybody

I'm trying to connect my device with a barcode reader Opticon using
bluetooth, however when I set connection using
bluetoothsocket.connect, generates exception connection refused. What
should I do?

best regards

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


[android-developers] Insecure Rfcomm Socket

2011-06-29 Thread D. Sav
Hi,

I am trying to establish an insecure connection between my client (Android) 
and server (PC) using Bluetooth by 
using device.createInsecureRfcommSocketToServiceRecord
But given that it was included starting with Android API Level 10 (or 
Android 2.3), it wouldnt work with Android 2.2
Is there a way around this?

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] force close loop due to root all 2 sd

2011-06-29 Thread jacko
Hi please help i have a zte v9 2.2 optus my tab and done the stupid
thing  of rooting parts of system to sd thinking i had a permanent
root but tried getting photos off at a friends my tab reset losing its
root which made root all to sd not work as phone needs  to be rooted
now once booted brings up sorry force close just about everything
cause parts of system isnt there.i reflashed optus update but still
the same so i need to wipe root all 2 sd off phone memory but can only
get into ftm mode to do anything as sd is write protected and the
other stupid thing was usb debbuging was turned off when this happened
any help would be a god send as my tab is usless like this please help
ive searched high  low to find what i can do with no luck cheers:-(

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ] emulator: could not find virtual device named 'my_avd'

2011-06-29 Thread david
Hello All,
building 'hello world' on Windows XP, installer_r11-windows.exe
(latest) , helios

everything fine...until


[2011-06-27 07:45:47 - HelloWorld14] Automatic Target Mode: Preferred
AVD 'my_avd' is not available. Launching new emulator.
[2011-06-27 07:45:47 - HelloWorld14] Launching a new emulator with
Virtual Device 'my_avd'
[2011-06-27 07:45:49 - Emulator] emulator: ERROR: unknown virtual
device name: 'my_avd'
[2011-06-27 07:45:49 - Emulator] emulator: could not find virtual
device named 'my_avd'



tried a few things:


building avd 'in' eclipse
building avd outside of eclipse
setting ANDROID_SDK_HOME to
C:/documents and settings/username
C:/documents and settings/username/.android
C:/documents and settings/username/.android/avd/my_avd.avd

I have tried moving the .android directory to
(Location where it is placed on my windows 7 box)
C:/User/username
C:/

even to the tools directory from which i manually ran the emulator

and any directory at all that might be labeled under username

I have searched (via set) the command to find anyother directory the
emulator
might be looking for. (past posts have indicated this...)

it appears to be putting it in the correct place  no place to set
a link to
(that i can think of)


I also noticed issues with a virtual disk assigned - no evidence of
this but i
have also tried to set the emulator to look for an 's' directory for
the same
above mentioned directory locations.


I have copied .android to anything reasonable:

C:\
C:\Documents and settings\any and every username
C:\...sdk tools

I have set paths to the .android locations under username


I have also verified the avd from the manual tools  - it exists and
looks fine

I have examined the config created by the avd - does not appear to
have
anything askew.

I get the 'not find virtual device' from the tool directory as well as
from eclipse



never in my life has 'hello world' been so difficult - please help me
android
community to run 'hello world' on XP - ( it works on windows 7 )
before i die
(of old age)

regards
David

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Localization of launcher image not working in OS 2.2.2

2011-06-29 Thread Chris
While testing our Android app it is observed that on the devices that
have Android OS 2.2.2 the icons do not change the language even after
the language setting is changed.  This same bundle works on OS 2.1 and
OS 2.3.

We have tested this on the Motorola Droid 2 which has OS 2.2.2 and
also on the emulator. Both show the same behavior.

Is there a known issue here relating to localization of launcher icons
in 2.2.2?

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

2011-06-29 Thread piyush
Hi,

I have to use a month view and day view calender binded with job
shifts. I am new to android so not much aware of android sdk to build
a new component for this.

Could anyone please let me know how to do this or where can I get the
source code for this.

Thanks,
Piyush

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

2011-06-29 Thread James Wright
Hey all,

I've been working on my first app (card game) and almost everything
works fine when testing on my Samsung Epic 4G except for this one
thing, the following scenario which I can consistently reproduce:

Launch Game
Click the home button and launch ~10 other applications until the game
is forced out of memory
Relaunch Game

From logcat I can see that the game gets a NullPointerException in
OnCreate when it tries to read the bundle.  But normally this works
fine (when saving state and resuming), bundle is saved in Activity's
saveInstanceState as follows:

protected void onSaveInstanceState(Bundle b) {
b.putParcelable(this.gameState.getClass().getName(),
this.gameState);
super.onSaveInstanceState(b);
}

and retrieved in Activity's OnCreate as follows:

if (bundle != null  !bundle.isEmpty()) {
gameState = (GameState) 
bundle.getParcelable(GameState.class
.getName());
gameState.setState(State.REGULAR);
}

Here are the relevant parts from GameState:

public class GameState implements Parcelable {

public void writeToParcel(Parcel out, int flags) {
out.writeInt(shufflesLeft);
for (int row = 0; row  Card.NUM_SUITS; row++) {
out.writeTypedArray(this.board[row], 0);
}
}

public static final Parcelable.CreatorGameState CREATOR = new
Parcelable.CreatorGameState() {
public GameState createFromParcel(Parcel in) {
return new GameState(in);
}

public GameState[] newArray(int size) {
return new GameState[size];
}
};

private GameState(Parcel in) {
shufflesLeft = in.readInt();
for (int row = 0; row  Card.NUM_SUITS; row++) {
in.readTypedArray(this.board[row], Card.CREATOR);
}
}

And Card:

public class Card implements Parcelable {

public void writeToParcel(Parcel out, int flags) {
out.writeInt(this.suit.getValue());
out.writeInt(this.rank.getValue());
}

public static final Parcelable.CreatorCard CREATOR
= new Parcelable.CreatorCard() {
public Card createFromParcel(Parcel in) {
return new Card(in);
}

public Card[] newArray(int size) {
return new Card[size];
}
};

private Card(Parcel in) {
this.suit = Suit.fromInt(in.readInt());
this.rank = Rank.fromInt(in.readInt());
}


Thanks so much for your help!
James Wright

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

2011-06-29 Thread νιנαソkum
http://iamvijayakumar.blogspot.com/2011/06/android-simple-calender-in-gridview.html

check this blog

On Tue, Jun 28, 2011 at 3:57 PM, piyush er.piyushverm...@gmail.com wrote:

 Hi,

 I have to use a month view and day view calender binded with job
 shifts. I am new to android so not much aware of android sdk to build
 a new component for this.

 Could anyone please let me know how to do this or where can I get the
 source code for this.

 Thanks,
 Piyush

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




-- 




Nobody can go back and start a new beginning, but anyone can start today
and make a new ending
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.com/
Mob.No:09048382536(Kerala)
Mob.No:09751076707(TN)

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

[android-developers] Re: Android LifeCycle and Singleton Instances

2011-06-29 Thread Nemanja Nedic
Regarding the networking on Android, last year on Google IO there was
a session about developing REST clients on Android (http://
www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html).
In the first pattern described there is a Service Helper component
that acts as a thin layer above the service that actually do the
networking. This Service Helper is a singleton. Is this the safe way
to implement this component? In this example, what is the guarantee
that the singleton will live long enough to receive a binder callback
from the service?

On Jun 4, 10:10 pm, Dianne Hackborn hack...@android.com wrote:
 Regardless of ANRs, doing networking on the same thread as UI is unavoidably
 going to result in a janky and crummy UI experience.  Heck, even doing disk
 IO will result in some amount of UI jerkiness and significant IO like
 database operations should always be done on another thread.

 On Sat, Jun 4, 2011 at 12:33 PM, Chris crehb...@gmail.com wrote:
  It is if you want to do anything smartly with remote content.  Five seconds
  or so before an ANR isn't much time to get stuff over HTTP with even a 3g
  connection.

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


[android-developers] Documentation error on Activity class

2011-06-29 Thread Mathieu Boniface
Hi,


I reveal an error on the official documentation of the Activity class
right here : 
http://developer.android.com/reference/android/app/Activity.html#showDialog(int,
android.os.Bundle)

At the end of the description, you can see : onCreateDialog(int,
Bundle) returns false.

It would be onCreateDialog(int, Bundle) returns null.

Regards,
Mathieu Boniface

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

2011-06-29 Thread MissNoob
I'm a complete noob, so I apologise in advance if my questions reveal
my total ignorance of what I am doing.  :-)

I am trying to build apps to point to each of my websites. Just like
appsgeyser.com, but with no advert, and with my certificate. I have
spent all day on it, but have finally managed to get Java SDK,
Eclipse, and Android SDK Manager running on my PC. OMG... I can't
believe how hard it was!

I have two questions... in the hope of kindness (or pity!).

1. Can someone post the code I need to send the user to my site when
they click the app?  I guess it is simple... for you... but not for
me. I can then just change the URL for each site I have.

2. I have some 'hello world' code in Eclipse, and can run it in the
emulator. BUT, how do I make an APK file from that? How do I get from
the code to the apk?


I know I have to sign it with my certificate after that, but that's a
battle for another day.

If I can get these two questions sorted, I think I might make it
through... perhaps.

Can someone help? Please?

Miss Noob

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

2011-06-29 Thread Neil
Built HelloWorld using NetBeans and Android in about 10 mins, nice offering 
http://bit.ly/jS9DpO

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

2011-06-29 Thread mikan
I  would like to know how to take a whole log , not one application
but all application. Could 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] 1st problem

2011-06-29 Thread Lwe
when i run eclipse they give me error
adb]'adb version' failed!
Failed to parse the output of 'adb version'
what is the solution

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

2011-06-29 Thread PPCS
Hello All,

When I enable soft keyboard in froyo, we get PinyIn IME as the default
IME, right?

Is there any way in PinyIn IME we can select the key on the display
using arrow keys (by highlighting the key)?

Thanks,
PPCS

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

2011-06-29 Thread Yang Zhang
What exactly is the MediaStore?  How do users interact with the
MediaStore?  It's woefully under-documented.  My most nagging question
at the moment is: what are its playlists and how are they used?  Do
these correspond to playlists in the Music app?

Some background: I have a simple TTS app that synthesizes to files,
and I'd like to just reuse an existing media player to play these
files instead of creating yet another media player.  I noticed there's
a Music app preinstalled on my phone (LG Optimus V running Android
2.2).  Its GUI shows an empty library.  I'm looking at populating it
from my app, but despite the presence of a Playlists API, there's no
way to create playlists or otherwise populate the Music app (and I
can't seem to create a new playlist from the GUI either - there are no
menus, context menus, help, etc.).

[BTW, is this app the same thing/an older version of (Google) Music,
which I also have just installed?  Basically, I have two Music apps,
one 2.2.1/8KB/blue speaker icon and one 3.0.1/7.36MB/headphone icon.
I similarly can't do anything in the 3.0.1 app either.]

Thanks in advance for any answers.

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


[android-developers] replicating SmsManager.sendDataMessage on CDMA phones

2011-06-29 Thread Ben Fleischhacker
I'm having trouble with the sendDataMessage method in SmsManager
(http://developer.android.com/reference/android/telephony/
SmsManager.html).

Sending a data sms between 2 gsm emulator's appears to at least
partially work, but I get a NullPointerException when using the same
method on a verizon cdma phone.

I found this link to a bug report (http://code.google.com/p/android/
issues/detail?id=7319) for the same issue, but I'm wondering if
there's a way to work around this problem or something similar i can
use on CDMA phones

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


[android-developers] code to run/install apk file

2011-06-29 Thread Paulsen J Siahaan
Hi all,

somebody know how can i install apk file from sdcard programmatically and
also run that application ??

let me explain, first i download the apk file, and placed in
data/data/package/sdcard. now i want to install and run that application as
soon as after download completed..

somebody can tell me the codes to install and run apk file??

thx b4, and sorry for my english


-- 
Warm Regards,

 --
Paulsen J Siahaan
GTalk : paulsenjs5
YM : siahaan_piter
Phone : 70293135

-don't just be a dreamer, be an actor !!-

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

2011-06-29 Thread Krish
Hi,

I am trying to use the style @android:style/
TextAppearance.StatusBar.EventContent to have default color on the
notification.

I am using Android SDK 2.3 (API Level 9), but I am getting error res
not found.

Whatever I read it says the style is supported from API level 9.

Here is the sample from 
http://developer.android.com/resources/samples/HoneycombGallery/res/layout/notification.html

Can someone please tell me what I am missing here.

Thanks,
Krish

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


[android-developers] problem

2011-06-29 Thread Lwe
adb.exe illegal system dll reclocation

the system dll user32.dll was reclocated in memory. the

application will not run properly.the reclocation

occurred because the dll c:\windows\system32\shell32.dll

occupied an address range reserved for windows system

dlls.the vendor supplying the dll should be contacted

for a new dll

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

2011-06-29 Thread pleplepl...@hotmail.com
Hi I am a new Android developer and am still learning how to use the
software.
I had an idea for a game but wasn't too sure if this was possile.

Can a software be created using the android to show TV shows while
adding effects or altering the video?
Not referring to videos rom the Internet side of the smart TV but the
actual broadcasting side of things.

Also I was wondering if the android is able to gather TV program
information as users watch TV shows.
Information such as genre, name of the show, duration, etc

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] Webview - Resize items

2011-06-29 Thread Rafael Decker
Hi,

On my extended webview class i have:

@Override
   public boolean onTouchEvent(MotionEvent ev) {
   boolean consumed = super.onTouchEvent(ev);

   if (isClickable())
   if (ev.getAction() == MotionEvent.ACTION_DOWN)
   {
  this.loadUrl(javascript: updatePoints(););
   }
   if (ev.getAction() == MotionEvent.ACTION_UP)
{
this.loadUrl(javascript: updatePoints(););
}
   return consumed;
   }


The updatePoints() called on js side resize all the elements on my
webview. On Android 2.2 and Android 3.0 It works fine, but on the
2.3.4 sometimes the webview doesn't resize anything. It happens just
with pinch zoom.

If i click on zoom in button (that open on the right bottom of
screen), on the end of zoom, all elements are resized.


I was looking to zoomIn() implementation:

public boolean zoomOut() {
// TODO: alternatively we can disallow this during draw history mode
switchOutDrawHistory();
// Center zooming to the center of the screen.
mZoomCenterX = getViewWidth() * .5f;
mZoomCenterY = getViewHeight() * .5f;
mAnchorX = viewToContentX((int) mZoomCenterX + mScrollX);
mAnchorY = viewToContentY((int) mZoomCenterY + mScrollY);
return zoomWithPreview(mActualScale * 0.8f, true);
}


http://grepcode.com/file/repository.gre ... omIn%28%29

I can't access it with my extended class.

I don't know what part of this code enable all resizes on my JS.

Does anyone knows how can i fix 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] need to search photos contains in phone

2011-06-29 Thread sri ram
Hi Guys,

 This is my first post. is it possible to search all songs that we
have in our phones and memory sticks. we are knew that it is simple to
view contacts from our using the Intent of the activity. i have tried
with some codings .. but i have no luck in that..can u give
suggestions if you feel free...

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

2011-06-29 Thread Rahul Garg
Hi,

I am trying to add BOOT_COMPLETED Action in 
the TestingSettingsBroadcastReceiver file. But the problem is I am not able 
to receive any broadcast. I have added the permission as well as the action 
in the Manifest file. Any one any idea about it.

Regards
Rahul Garg

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

2011-06-29 Thread Satya728
Hi,

I am newbie on android. I want to create photo collage app.
please reply me some idea how to create this?


Thanks
Satya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Developers] Virtual Device with 1024 mb ram not responding

2011-06-29 Thread Sergio Michels
Hi all,

I created one virtual device with 1024 mb of ram. The virtual device not
start (not respond). If I run an device with 256 (default), then it runs,
but sooo slow.

How can I improve the performance of my virtual device? I have 6GB of ram on
my computer, so it don't is a problem.

Regards,
Sérgio

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

2011-06-29 Thread Sati
Hi,
I am trying to read accelerometer sensor values on Samsung Galaxy Fit
mobile.

With reference to the android documentation, sensor has to output
9.81m/s2 when phone lies flat on table. But, I am getting values
passed on from the sensor even in idle state.

1. Can i know the reason for it or is it the desired behavior ?
2. How can i tune the frequency of events received from the sensor
aprt from DELAY_FASTEST, DELAY_NORMAL etc ?

Can some one throw some light on this ?

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


[android-developers] receiving Google Contacts update notifications

2011-06-29 Thread Shaun
I'm assuming that the Google Contacts syncadapter is somehow tied into
a C2DM listener so that it knows when an update has occurred on the
server and it needs to sync.  Am I correct? (ie, someone updates a
contact via the website, Google sends an update notification message
from their servers to your phone, your phone initiates an update)

If so, is there a way that my syncadapter can also be notified at the
same time?  Can I just register myself as a listener somehow?  Polling
doesnt seem like the correct solution here, but maybe that is the only
option.

I've noticed a few people posting questions about extending
contacts, so its possible they are trying to do the same thing I am.
I simply want to store some values in the gContact:userDefinedField
fields (as defined in the Contacts API
http://code.google.com/apis/contacts/docs/3.0/reference.html#gcUserDefinedField),
and have them synchronized on the device.  Has anyone succeeded with
this?

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


[android-developers] Intercept the screen-off key press

2011-06-29 Thread CloudStrife91
Hi everyone, i'd like to know if there is a method to prevent the
screen from turning off and the phone to lock when i press the screen
off button and, instead, launch a new activity, without touching the
kernel itself.

Many thx!

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

2011-06-29 Thread suresh sharma
i m facing the Problem While trying to access Vedio in Smaller Chuncks

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

2011-06-29 Thread suresh sharma
Thanks for the Previous satisfactory answers.Now i m working in
Android division  challenge is now to play vedio file from sdcard.it
sounds easy.But Obstacle is File is 300 MB (like 1 GB). Android
sdcard accessing doesn't support 300 MB. So I decided to derive the
Vedio in Smaller Chunks. My code is as below.But Error is, Vedio can't
be played.please have a look  also see the DDMS CatLog at last.
**CODE:**

public class VideoViewDemo extends Activity {
private static final String TAG = VideoViewDemo;

private VideoView mVideoView;
private EditText mPath;
private ImageButton mPlay;
private ImageButton mPause;
private ImageButton mReset;
private ImageButton mStop;
private String current;

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
mVideoView = (VideoView) findViewById(R.id.surface_view);

mPath = (EditText) findViewById(R.id.path);
mPath.setText(sdcard/E0010023.mp4);

mPlay = (ImageButton) findViewById(R.id.play);
mPause = (ImageButton) findViewById(R.id.pause);
mReset = (ImageButton) findViewById(R.id.reset);
mStop = (ImageButton) findViewById(R.id.stop);

mPlay.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
playVideo();
}
});
mPause.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
if (mVideoView != null) {
mVideoView.pause();
}
}
});
mReset.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
if (mVideoView != null) {
mVideoView.seekTo(0);
}
}
});
mStop.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
if (mVideoView != null) {
current = null;
mVideoView.stopPlayback();
}
}
});
runOnUiThread(new Runnable(){
public void run() {
playVideo();

}

});
}

private void playVideo() {
try {
final String path = mPath.getText().toString();
Log.v(TAG, path:  + path);
if (path == null || path.length() == 0) {
Toast.makeText(VideoViewDemo.this, File 
URL/path is empty,
Toast.LENGTH_LONG).show();

} else {
// If the path has not changed, just start the 
media player
if (path.equals(current)  mVideoView != null) 
{
mVideoView.start();
mVideoView.requestFocus();
return;
}
current = path;








int chunkCount=0;

for(int i=0;inumberOfChunks:i++)
{
mVideoView.setVideoPath(getDataSource( 
/sdcard/+mRecordingFile +
. + i));

}

mVideoView.setOnTouchListener(new 
View.OnTouchListener() {

public boolean onTouch(View v, 
MotionEvent event) {
int width = 
mVideoView.getMeasuredWidth();
int height = 
mVideoView.getMeasuredHeight();
//we add 10 pixels to the current 
size of the video view
every time you touch
//the media controller.
LayoutParams params = new 
LinearLayout.LayoutParams(width+10,
height+10);
mVideoView.setLayoutParams(params);

return true;
}


});

mVideoView.start();
mVideoView.requestFocus();

}
} catch (Exception e) {
   

Re: [android-developers] Camera preview crashes without SURFACE_TYPE_PUSH_BUFFERS

2011-06-29 Thread Latcho

Person:
I want to do A). Am i doing something wrong?
Mark:
You are trying to do A). Please don't do that.



On 6/27/2011 1:01 PM, Mark Murphy wrote:

On Sat, Jun 25, 2011 at 4:16 AM, alexandros mouzakidis
greatalexand...@gmail.com  wrote:

HI, i want to create a camera preview that is invisible, i have read
(here) that i only have to not use the SURFACE_TYPE_PUSH_BUFFERS but
when i do it my application crashes (i have tested it on the emulator)
the code is this

public CameraPreview(SCamera context, DrawView view) {
super(context);

mSurfaceView = new SurfaceView(context);
addView(mSurfaceView);

// Install a SurfaceHolder.Callback so we get notified when
the
// underlying surface is created and destroyed.
mHolder = mSurfaceView.getHolder();
mHolder.addCallback(this);
//mHolder.setType(SurfaceHolder.SURFACE_TYPE_NORMAL);
mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
drawView = view;
}

Am i doing something wrong?

You are trying to make the SurfaceView invisible. Please don't do that.



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


[android-developers] feeding 1spinner to the other

2011-06-29 Thread debai
I am trying to feed onclick item of one spinner to another spinner

Here is the complete code

package com.indusnet;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.Toast;

public class AddDel extends Activity {

private Spinner m_myDynamicSpinner;
private Spinner m_myDynamicSpinner1;
private EditText m_addItemText;
private ArrayAdapterCharSequence m_adapterForSpinner;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.edittxtspinner);

m_myDynamicSpinner =
(Spinner)findViewById(R.id.Spinner01);

m_addItemText = (EditText)findViewById(R.id.EditText01);

Button addButton = (Button)findViewById(R.id.Button01);

m_adapterForSpinner = new
ArrayAdapterCharSequence(AddDel.this,
android.R.layout.simple_spinner_item);
 
m_adapterForSpinner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
m_myDynamicSpinner.setAdapter(m_adapterForSpinner);
m_adapterForSpinner.add(dummy item);

addButton.setOnClickListener(new OnClickListener(){

@Override
public void onClick(View v) {
addNewSpinnerItem();
}
private void addNewSpinnerItem() {
CharSequence textHolder =  + 
m_addItemText.getText();
m_adapterForSpinner.add(textHolder);

}
});
m_myDynamicSpinner1=(Spinner)findViewById(R.id.Spinner02);
m_myDynamicSpinner.setOnItemSelectedListener(new
OnItemSelectedListener() {
 @Override
 public void onItemSelected(AdapterView? arg0, View arg1,
int position, long id) {
 String selectedItemString = (String)
m_myDynamicSpinner.getSelectedItem();



 Toast.makeText(AddDel.this,!+selectedItemString,
Toast.LENGTH_LONG).show();
 }
@Override
public void onNothingSelected(AdapterView? arg0) {
// TODO Auto-generated method stub

}
});


}
public void setM_myDynamicSpinner1(Spinner m_myDynamicSpinner1) {
this.m_myDynamicSpinner1 = m_myDynamicSpinner1;
}
public Spinner getM_myDynamicSpinner1() {
return m_myDynamicSpinner1;
}
}


Would appreciate if anybody can give me answer to how to feed the
other spinner from the clicked item in one.

thanking You

siddhartha

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

2011-06-29 Thread Rajesh
Hi all,

I've done some coding for accessing a Restful WCF Service through
android,, It is throwing the following error..

Message :

No command output when running: 'am start -n com.beacon.android/
com.beacon.android.AndroidBeaconActivity -a android.intent.action.MAIN
-c android.intent.category.LAUNCHER' on device emulator-5554

Exception Stack Trace :

com.android.ddmlib.ShellCommandUnresponsiveException
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:
408)
at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
at
com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(ActivityLaunchAction.java:
74)
at
com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchApp(AndroidLaunchController.java:
1147)
at
com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.clientChanged(AndroidLaunchController.java:
1493)
at
com.android.ddmlib.AndroidDebugBridge.clientChanged(AndroidDebugBridge.java:
870)
at com.android.ddmlib.Device.update(Device.java:398)
at com.android.ddmlib.Client.update(Client.java:835)
at com.android.ddmlib.HandleAppName.handleAPNM(HandleAppName.java:90)
at com.android.ddmlib.HandleAppName.handleChunk(HandleAppName.java:
64)
at com.android.ddmlib.MonitorThread.callHandler(MonitorThread.java:
414)
at
com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:
322)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)


I am new to both Java and Android

Pls help me in this.

Thanks Rajesh

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


[android-developers] Unable to invoke ResultReceiver from an intent Service

2011-06-29 Thread Shailja
Hi, I am developing an android application in which I have a
background service that implements Generic Result Receiver.  The
service calls an Intent Service to fetch some details about each
event. Now, the problem which I am facing is when I start the
intentservice , the onreceive result of background Service is no t
invoked.
Here is the code snippet:
Background Service:
AppService.Class
public class AppService extends Service implements
GenericResultReceiver.Receiver {
public GenericResultReceiver mReceiver;
Public AppService(String name) {
super();
}
public AppService() {
super();
}

@Override
public void onCreate() {
super.onCreate();
mReceiver = new GenericResultReceiver(new Handler());
mReceiver.setReceiver(this);

final Intent intt = new Intent(Intent.ACTION_SYNC, null,
getApplicationContext(), myservice.class);
intt.putExtra(receiver, mReceiver);
startService(intt);
}

public void onReceiveResult(int resultCode, Bundle resultData) {
switch (resultCode) {
case MeetingQueryService.STATUS_RUNNING:
// control not coming here
break;
case MeetingQueryService.STATUS_FINISHED:
//Control not coming here
break;
case MeetingQueryService.STATUS_ERROR:
break;
}
}

IntentService :myservice.java
public class myservice extends IntentService {
public  myservice(String name) {
super(name);}

public  myservice() {
super(myservice.class.getSimpleName());
}
@Override
public void onCreate() {
super.onCreate();
   }
@Override
protected void onHandleIntent(Intent callerIntent) {
final ResultReceiver receiver =
callerIntent.getParcelableExtra(receiver);
receiver.send(STATUS_RUNNING, Bundle.EMPTY);
// the above command not invoking onReceive

receiver.send(STATUS_FINISHED, b);
// the above command not invoking onReceive
}
}

So, after the onhandle intent of Meetingqueryservice is called, the
onReceiveResult of AppService is not invoked.

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

2011-06-29 Thread tde.sur...@yahoo.de
Dear developers,
My name is Thomas  and I am a student at the Karlsruher Institut für
Technologie in Germany.
I am writing a term paper about frameworks for app developement and I
have created a short survey.
I would like to invite you to participate in this survey about
frameworks for app development.
The survey is of course anonymous and the data will soley be collected
for scientific purposes.
The survey consists of 10 questions, and you will probably not need
more than 5 minutes. If you participate
please answer truthfully.
The survey addresses those, who use HTML/CSS/JavaScript frameworks
like:
PhoneGap, Mitanium Mobile, iWebKit, WebApp.net, jQTouch,iphone-
universal, winktoolkit, jpint, iphone user interface framework,
quickconnectfamily, appML

The survey can be found by the following link until 01.07.2011
Link: http://edu.surveygizmo.com/s3/570112/Frameworks-for-App-Development

If you have any questions or suggestions, please feel free to write an
e-mail to tde.sur...@yahoo.de
You can also write an e-mail to me, if you want to see the end
results.

Thank you for your attention and help. I really appreciate it.
Yours faithfully Thomas D.

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

2011-06-29 Thread Yip
Hi,

I'm developing a tablet app on 3.1. Is it possible to implement a
design in such a way that each ActionBar Tab has different Fragments?

For example, I have 4 ActionBar tabs. My first tab has 3 fragments,
the second one has 2 fragments and the remaining tabs have 1 fragment
each.

I'm not sure if this design makes sense. Any pointers would be greatly
appreciated.

Thanks,
Yip

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

2011-06-29 Thread Tonmoy
Hi,

I need to write a program which takes backup of android home screen.
And then restore it.
How is it possible? Is this I need to read/write from  launcher.db
stored in Launcher application?
If so, how can I do it?

Regards
Tonmoy

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

2011-06-29 Thread tde.sur...@yahoo.de
Dear developers,
My name is Thomas and I am a student at the Karlsruher Institut für
Technologie in Germany.
I am writing a term paper about frameworks for app developement and I
have created a short survey.
I would like to invite you to participate in this survey about
frameworks for app development.
The survey is of course anonymous and the data will soley be collected
for scientific purposes.
The survey consists of 10 questions, and you will probably not need
more than 5 minutes. If you participate
please answer truthfully.
The survey addresses those, who use HTML/CSS/JavaScript frameworks
like:
PhoneGap, Mitanium Mobile, iWebKit, WebApp.net, jQTouch,iphone-
universal, winktoolkit, jpint, iphone user interface framework,
quickconnectfamily, appML

The survey can be found by the following link until 01.07.2011
Link: Frameworks for App Development

If you have any questions or suggestions, please feel free to write an
e-mail to tde.sur...@yahoo.de
You can also write an e-mail to me, if you want to see the end
results.

Thank you for your attention and help. I really appreciate it.
Yours faithfully Thomas D.

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


[android-developers] Re: Best option to get low latency streaming over RTSP

2011-06-29 Thread michal
Hi,
If you decided to develop your own (low latency) player, you might
want to check this page: http://www.ciufek.net .
Perhaps it could get you started somehow.
Cheers


On Jun 17, 7:52 am, pragnesh imprg...@gmail.com wrote:
 Hi All,

 I am a streaming and multimedia developer, I am currently developing a
 streaming receiver for android based devices. I observed the RTSP
 streaming latency with default players but it very high (5 secs in 2.2
 and 5 secs in 2.3 and 3.x) even in local LAN also. So my question is,
 Is there any possibility of getting low latency streaming using the
 default players? If not is it possible to access decoder from the JAVA
 or using the JNI interface, so that I can develop my own player?

 I show the opencore and stagefright frameworks but can I use any of
 that to access the codec directly from my application?

 I am streaming H.264 baseline video at 512Kbps.

 Thanks in advance...

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


Re: [android-developers] how to use .so

2011-06-29 Thread Vinod Pache
ask him the java file where he has written the Loadlibrary(...) function.
then make object of that class file and call the appropriate function from
the .so file.


regards
Vinodkumar



On Mon, Jun 27, 2011 at 12:19 PM, TreKing treking...@gmail.com wrote:

 On Mon, Jun 27, 2011 at 1:22 AM, cindy ypu01...@yahoo.com wrote:

 My cowork give me a .so as library for my android project? How could I
 use that? I am java programmar. I am confused.


 Did you try asking your cowork?


 -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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

Re: [android-developers] Re: Is it possible to create pdf files in android using 3rd party library

2011-06-29 Thread Vinod Pache
try this


http://java-source.net/open-source/pdf-libraries

On Tue, Jun 28, 2011 at 6:39 PM, nothing nsantos.pess...@gmail.com wrote:

 Hi,

 I think that the iText library doesn't work in android. Besides, the
 performance probably would be unsatisfactory.
 Probably the best solution would be for you to have a server to which
 you could send the data you want to transform to pdf and having the
 server returning the pdf to your android device. (web services or
 something.)

 Nuno Santos

 On Jun 28, 12:45 pm, ABS ravi.chavan...@gmail.com wrote:
  Hi All,
  I am new in android development, i am  working on one
  application where i have to create pdf files through source code, Is
  it possible to use iText library in andoid?
  If  someone have solution for my problem please let me know.
 
  Thanks in advance

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


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

[android-developers] Google license verification

2011-06-29 Thread Tim in Boulder
I've got the LVL code up and running in my app, and with my small
number of purchases I've already seen what appears to be one false
response from the Google licensing server.

I was under the impression that I'd just need to cover cases where the
server request would FAIL several times (servers down, internet
connection poor, etc.) before returning LICENSED or NOT_LICENSED. Do I
also need to ignore a few NOT_LICENSED responses as occasionally
spurious? Or do I need to look more carefully at my application logic?

An early customer (luckily someone I know) bought the game, and it
initially worked, but then had to factory reset his phone. After the
reinstall, it's failing the LVL check. Is this a known issue? Or is
this likely my bug?

Tim

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


[android-developers] Unable to draw route between two locations

2011-06-29 Thread Md.Fazla Rabbi OPU
Hi all,
I am working with google map for some days. I have developed a small project
through which i can track my location and five nearest ATM booths in a list.
When i click on a booth then it shows two markers in google map: one is my
location and the other is a ATM booth. Now i want to draw the route between
my location and the booth. How can i do this? Please anyone help me.

Best wishes
Md. Fazla Rabbi

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

2011-06-29 Thread Satya728
I needed help how to create photo collage in android.




Thanks
Satya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 call a function after certain time limit set in the activity ie., i want to know how it is implemented and its related apis

2011-06-29 Thread sarap karthik.....!!
how to call a function after certain time limit set in the activity
ie., i want to know how it is implemented and its related apis

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


[android-developers] Is it possible to fix the orientation of a particular view in Honeycomb?

2011-06-29 Thread Neil
Hi guys,

In my activity I have a SurfaceView which I want to lock the
orientation when rotating the device. But I still want other views in
the activity to be rotated with the device which means I can not use
Activity.setRequestedOrientation to lock the orientation. So is there
a way to achieve this?

Thanks.

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


Re: [android-developers] Noob Questions (Probably Embarressing)

2011-06-29 Thread Raghav Sood
I doubt anyone will give you the code for free.

As for the apk question when you compile the app to run it in the emulator
an apk is generated automatically. You can find it in the /bin directory of
your project. You can transfer it to your device and install it like any
normal app. To sign your apk follow the instructions at
http://developer.android.com/guide/publishing/app-signing.html

On Mon, Jun 27, 2011 at 11:12 PM, MissNoob madam.ge...@gmail.com wrote:

 I'm a complete noob, so I apologise in advance if my questions reveal
 my total ignorance of what I am doing.  :-)

 I am trying to build apps to point to each of my websites. Just like
 appsgeyser.com, but with no advert, and with my certificate. I have
 spent all day on it, but have finally managed to get Java SDK,
 Eclipse, and Android SDK Manager running on my PC. OMG... I can't
 believe how hard it was!

 I have two questions... in the hope of kindness (or pity!).

 1. Can someone post the code I need to send the user to my site when
 they click the app?  I guess it is simple... for you... but not for
 me. I can then just change the URL for each site I have.

 2. I have some 'hello world' code in Eclipse, and can run it in the
 emulator. BUT, how do I make an APK file from that? How do I get from
 the code to the apk?


 I know I have to sign it with my certificate after that, but that's a
 battle for another day.

 If I can get these two questions sorted, I think I might make it
 through... perhaps.

 Can someone help? Please?

 Miss Noob

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




-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 call a function after certain time limit set in the activity ie., i want to know how it is implemented and its related apis

2011-06-29 Thread Kumar Bibek
Setup a timer thread. A simple thread which sleeps for certain amount of
time, and then call your method.

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



On Mon, Jun 27, 2011 at 12:29 PM, sarap karthik.!! 
sarap.kart...@gmail.com wrote:

 how to call a function after certain time limit set in the activity
 ie., i want to know how it is implemented and its related apis

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] [Android Developers] Virtual Device with 1024 mb ram not responding

2011-06-29 Thread Raghav Sood
Which android version are you emulating? What CPU do you have?

Android 3.0 and 3.1 are extremely slow on basically any machine. For the
others I use 512mb RAM and they work fine. Your CPU is also important.

On Wed, Jun 29, 2011 at 6:20 AM, Sergio Michels sergiomiche...@gmail.comwrote:

 Hi all,

 I created one virtual device with 1024 mb of ram. The virtual device not
 start (not respond). If I run an device with 256 (default), then it runs,
 but sooo slow.

 How can I improve the performance of my virtual device? I have 6GB of ram
 on my computer, so it don't is a problem.

 Regards,
 Sérgio

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




-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

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

2011-06-29 Thread Marcin Orlowski
On Mon, Jun 27, 2011 at 11:12 PM, MissNoob madam.ge...@gmail.com wrote:

  I'm a complete noob, so I apologise in advance if my questions reveal
 my total ignorance of what I am doing.  :-)



You are asking so basic and elementary question that imho right answer for
you is: hire someone who knows what it is all about. You are not a
programmer and you will not work it out yourself.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

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

2011-06-29 Thread Marcin Orlowski
You can't unless launcher offers ContentProvied for this (most likely it
does not). Or be rooted for that.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

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

2011-06-29 Thread James Wang
Android 3.1 introduced two new Intent flag
FLAG_EXCLUDE_STOPPED_PACKAGESFLAG_INCLUDE_STOPPED_PACKAGES.

If user stopped my app by settings app and my app was expected to be
started by BOOT_COMPLETED Intent. BOOM!
My app will not start untill user click my app's shortcut.

So if my app include only services and there is no shortcut for it in
launcher, user have no way to let it back, right?
How can I to resolve such problem?




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


[android-developers] Re: how to call a function after certain time limit set in the activity ie., i want to know how it is implemented and its related apis

2011-06-29 Thread skink


On Jun 29, 11:18 am, Kumar Bibek coomar@gmail.com wrote:
 Setup a timer thread. A simple thread which sleeps for certain amount of
 time, and then call your method.

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

 On Mon, Jun 27, 2011 at 12:29 PM, sarap karthik.!! 



 sarap.kart...@gmail.com wrote:
  how to call a function after certain time limit set in the activity
  ie., i want to know how it is implemented and its related apis

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

Too much hassle, use Handlers/Messages instead

pskink

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


Re: [android-developers] App crashes on Samsung devices shortly after startup.

2011-06-29 Thread Raghav Sood
Your error clearly states that your app is running out of memory. I don't
know why this is happening only on Samsung devices but maybe you could
modify your app to use less memory to prevent the error.

On Wed, Jun 29, 2011 at 2:30 AM, gvd g.h.vando...@gmail.com wrote:

 I'm getting emails from users (and 1 star comments) complaining that
 my app crashes shortly after startup. At start-up my app uses
 runOnFirstFix which will get the location and center/zoom on it (it's
 uses Google Maps API). What it also does is download an animated GIF
 image that is used as an overlay.
 I did get a few crash reports a while back where I see:

 java.lang.OutOfMemoryError: bitmap size exceeds VM budget
 at android.graphics.Bitmap.nativeCreate(Native Method)
 at android.graphics.Bitmap.createBitmap(Bitmap.java:677)

 I'm aware that Bitmaps are created on the native heap.
 However, the app works fine on my LG optimus and many other phones.
 The people who actually send me information all seem to be using
 Samsung devices (Samsung Epic, galaxy prevail,  Verizon Galaxy Tab,
 Samsung Captivate).

 Does anybody have an idea on why this seems to happen on Samsung
 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




-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

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

2011-06-29 Thread sparky
Put it in a layout together with some other components, set 
android:layout_weight, and let the layout manager sort it out.

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

[android-developers] Re: How to deal with bulk licensing?

2011-06-29 Thread sparky
Have you thought about using the Android License Verification Library?  

http://developer.android.com/guide/publishing/licensing.html

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

Re: [android-developers] Is it possible to fix the orientation of a particular view in Honeycomb?

2011-06-29 Thread Marcin Orlowski
On 28 June 2011 12:10, Neil wan...@gmail.com wrote:

 Hi guys,

 In my activity I have a SurfaceView which I want to lock the
 orientation when rotating the device. But I still want other views in
 the activity to be rotated with the device which means I can not use
 Activity.setRequestedOrientation to lock the orientation. So is there
 a way to achieve this?


I am afraid you can't lock just view with framework but rotate the activity.
You may want to listen to orientation change and rotate the view in code, so
no matter what's device orientation, your view will remains 'unchanged'. And
do not foget to care rotation right (so user can rotate the activity around
the clock, not just 90 degs)

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

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

2011-06-29 Thread Pepijn Van Eeckhoudt

Paint#setStrokeWidth

On 28/06/2011 20:23, Brian Hodge wrote:

Hey,

I've been looking around for a while now and can't really find much of
the subject. I've got a sudoku puzzle on the go to try and learn how
to use Android. The problem i have is that i want the smaller 3x3
grids to have a thin line separation the squares and a thicker line
separating the bigger grid.

I have the black colour stored in an XML file and am using:

canvas.drawLine(0, i * height, getWidth(), i * height, lineColour);

To draw a line.

Anyone now how to get thicker lines? Im sure it'll be something silly
that im over looking.

Thanks for your time.



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

2011-06-29 Thread Marcin Orlowski
On 29 June 2011 11:23, James Wang jameswangc...@gmail.com wrote:


 So if my app include only services and there is no shortcut for it in
 launcher, user have no way to let it back, right?

How can I to resolve such problem?


Add one?

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

2011-06-29 Thread huru
You can use adb install command.
Ex:

C:\android\android-sdk\platform-tools\adb install /sdcard/
your_file_name.apk (ex: adnroid.apk)

You also can download your file on PC.
And then you use this code to install:

C:\android\android-sdk\platform-tools\adb install C:\android.apk

On 28 Tháng Sáu, 14:41, Paulsen J Siahaan paulsen...@gmail.com
wrote:
 Hi all,

 somebody know how can i install apk file from sdcard programmatically and
 also run that application ??

 let me explain, first i download the apk file, and placed in
 data/data/package/sdcard. now i want to install and run that application as
 soon as after download completed..

 somebody can tell me the codes to install and run apk file??

 thx b4, and sorry for my english

 --
 Warm Regards,

  --
 Paulsen J Siahaan
 GTalk : paulsenjs5
 YM : siahaan_piter
 Phone : 70293135

 -don't just be a dreamer, be an actor !!-

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

2011-06-29 Thread Amit
Hi All,

Is there any way to start a new activity using
startActivityForResult(..) from an activity whose launch mode is
singleInstance in the manifest file. As I don't want to change the
launch mode, can we perform this task so that onActivityResult() gets
called at right time.

thanks in advance
Amit

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


  1   2   3   >