Re: [android-developers] It's not the browser?

2011-02-13 Thread Kostya Vasilyev

Isn't Dolphin basically the standard browser with a new UI?

If so, it wouldn't be surprising that they behave the same wrt. networking.

-- Kostya

13.02.2011 9:18, kypriakos пишет:

Hi all,

I have tried a number of other browsers (Dolphin, Opera Mini, Opera
Mobile) and although
the last two falsely advertise that they implement cross-origin
resource sharing solutions,
Dolphin seems to work exactly the same as the native browser - it
sends out the Ajax
request to the remote web server, the web server executes the service
call but the result
does not get posted by the browser. This may indicate that it is a NOT
a browser issue
I am facing with but rather and Android OS-lever issue (http layers??)
where for some
reason the responses are not allowed to reach the browser. Would this
be a correct
assessment? From what I understand, Android OS does not implement a
personal
firewall correct? What else would be causing this disconnect? I will
greatly appreciate
any hints on this.

Thanks




--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


[android-developers] Re: Serious problem on Android 2.3 and XmlSerializer

2011-02-13 Thread Bob Kerns
I believe the documentation is confused -- and possibly the spec on which it 
is based.

Having a namespace value (null) which causes the the XML to take on some 
value which cannot be determined except by examining the past program 
execution trace possibly back all the way to when the document was begin, is 
crazy.

Note very carefully: no namespace prefix is printed but just the name is 
suddenly departing from the realm of semantics, where every other value for 
the namespace parameter resides, to PURELY COSMETIC SYNTAX -- and leaving 
the choice of ACTUAL NAMESPACE to the luck of the draw.  Every other value 
there is precisely the reverse: specify the namespace, and leave the 
cosmetic choice of prefix up to the context in which it is used (including a 
preceding call to setPrefix()).

Any code which supplies null here, and is called by other code, will behave 
with different semantics, depending on NON-SEMANTIC CHANGES in the calling 
code.

Remember, namespace prefixes DO NOT CONVEY SEMANTIC CONTENT. They are 
cosmetic. You can replace all the namespace prefixes in an XML document with 
x001: x002:, etc., and not change the meaning of the document at 
all.

It is entirely understandable that people are confused by this. It is also 
entirely necessary that people get clear on it.

I will argue that it is HARMFUL to accept null here. I don't know how to 
weigh that harm against the known harm of breaking code that runs, but it is 
definitely not free to accept null -- and given that it has already broken 
the code, I argue it should NOT start accepting null again, but rather 
should be properly documented as offering no direct control over the choice 
of namespace prefixes in this method (and refer to setPrefix()), and 
document it as throwing a NullPointerException if either argument is null.

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

2011-02-13 Thread Abhijeet Pathak
Is there any reliable/official method/intent to retrieve the details of the 
songs currently being played in stock music player?

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

2011-02-13 Thread Marcin Orlowski
On 12 February 2011 17:17, Oded O. olb...@gmail.com wrote:
 Hi,
 I've just finished the first iteration on my dragdrop framework I'm
 building.
 http://code.google.com/p/mobile-anarchy-widgets/wiki/Drag_and_Drop?ts=1297527301updated=Drag_and_Drop

Download not there? And it's GPL, right? What about less restrictive
one, i.e. BSD?

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

2011-02-13 Thread Oded O.
The code is there
http://code.google.com/p/mobile-anarchy-widgets/source/browse/#svn%2Ftrunk%2FWidgets%2Fsrc%2Fcom%2FMobileAnarchy%2FAndroid%2FWidgets%2FDragAndDrop

It's GNUv3...
I'm not familiar with all the nuances of open source licensing world.
GNUv3 isn't open enough?

Oded

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

2011-02-13 Thread Neilz
Hi all - I have a problem with my WebView...

I'm using the method setUseWideViewPort(true). Within the view I load
a webpage which includes a form.

I'm testing on two devices: When I test on the Nexus, I can fill in
the form fields as usual. With my Hero, I click into the form fields,
and the soft keyboard fails to pop up. This only happens when I set
the method as above.

I'm wondering why the two devices are acting differently, and also
what is stopping the keyboard from appearing?

Thanks.

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


[android-developers] Re: Android Licensing

2011-02-13 Thread Dudero
says Google/OHA that Android it therefore completely under the Apache
Software License, because they think only with Android the platform,
which does not include the libraries and the Linux-Kernel?

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

2011-02-13 Thread Marcin Orlowski
On 13 February 2011 14:24, Dudero sinfanh...@googlemail.com wrote:
 says Google/OHA that Android it therefore completely under the Apache
 Software License, because they think only with Android the platform,
 which does not include the libraries and the Linux-Kernel?

Mind rephrasing your question? I got no clue what you ask about.

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

2011-02-13 Thread Mark Murphy
On Sun, Feb 13, 2011 at 8:24 AM, Dudero sinfanh...@googlemail.com wrote:
 says Google/OHA that Android it therefore completely under the Apache
 Software License, because they think only with Android the platform,
 which does not include the libraries and the Linux-Kernel?

They are referring to their own code contributions, which are licensed
with Apache Software License 2.0. To the extent you see terminology
that indicates a broader scope, that is shorthand on the part of the
media and/or whoever is speaking.

Android the operating system uses source code with a variety of
licenses, as you noted.

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

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

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


Re: [android-developers] Share some of my work - DragDrop framework

2011-02-13 Thread String
Some folks (including me) consider GPL too open, in that products derived 
from it must also be released under a license that's just as open - which, 
paradoxically, restricts what you can do with GNU-licensed software.

String

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

2011-02-13 Thread Oded O.
I'm not sure I can change the license type on Google Code after a project is 
created...
But in any case... what type of license do you recommend (considering the 
fact that I want my code to be completely free and open for everyone)

Thanks,

Oded

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

2011-02-13 Thread Kim
I have found tht when the Streak 7 goes to sleep, the last thing it
does is issue an onDestroy() followed by an onCreate() to my app and
then pauses the cpu shortly later. A look at logcat shows me that this
is caused by Dell deciding to change the orientation before going to
sleep, apparently so that it wakes up in the landscape mode by
default. I have orientation fixed to portrait in my activities, but
the Streak is ignoring this.
Thought others might want to be aware of this.
If anyone has a way to over ride this, let me know. I tried Overriding
onConfigurationChange, but it is not being called when this happens.

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

2011-02-13 Thread Marcin Orlowski
On 13 February 2011 16:47, Oded O. olb...@gmail.com wrote:
 I'm not sure I can change the license type on Google Code after a project is
 created...
 But in any case... what type of license do you recommend (considering the
 fact that I want my code to be completely free and open for everyone)

BSD?

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

2011-02-13 Thread Rutton
I tried your stuff and its great. I was suprised how little code for
that is needed.

To the licence: GPLed code can only used by also free stuff. So
the projects using it, have to be also open source. Which prohibits
the use in
closed source projects.

The Apache License would do as well as it fits to the android
ecosystem.
Read here:
http://stackoverflow.com/questions/40100/apache-licence-vs-bsd-vs-mit
and here:
http://www.reddit.com/r/programming/comments/8mflw/hey_reddit_can_you_tell_whats_the_difference/
for some insights.

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

2011-02-13 Thread Oded O.
Changed to BSD.
Enjoy.

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

2011-02-13 Thread Pent
Someone pointed out to me that when you call tts.shutdown(), any
synthesized files are deleted.

Has this always been the case ? I don't remember it happening when I
wrote the TTS stuff for cupcake.

It's a bit of a pain and I struggle to see why it's a good idea to be
honest..

Pent

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


[android-developers] Adding external Jar

2011-02-13 Thread LG
Hi all,

I am trying to add an external static java library in to
frameworks/base/service but i getting compilation errors

this is how i am trying to add

my library is foo.jar and it is places in external/foo


LOCAL_PATH:= $(call my-dir)

# the library
# 
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
$(call all-subdir-java-files) \
com/android/server/EventLogTags.logtags \
com/android/server/am/EventLogTags.logtags

LOCAL_JAVA_LIBRARIES := android.policy
LOCAL_STATIC_JAVA_LIBRARIES := foo

LOCAL_MODULE:= services

LOCAL_NO_EMMA_INSTRUMENT := true
LOCAL_NO_EMMA_COMPILE := true

include $(BUILD_JAVA_LIBRARY)
include $(BUILD_DROIDDOC)



and this is my external/foo/Android.mk

LOCAL_PATH := $(my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := foo
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := foo.jar
# This will install the file in /system/framework
LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := foo:foo.jar
include $(BUILD_MULTI_PREBUILT)

can you guys please help me out

LG

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

Re: [android-developers] Adding external Jar

2011-02-13 Thread Marcin Orlowski
On 13 February 2011 20:43, LG lgma...@gmail.com wrote:

Hi,

 can you guys please help me out

This is not the right group for your question. This one is:
http://groups.google.com/group/android-framework?pli=1

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

2011-02-13 Thread Streets Of Boston
I think it was mainly meant for XML documents that don't use namespaces at 
all, since there is no startTag(String elementName) method.
 
And i think you can leave it null if it implicitly takes on the namespace of 
its parent-element.

Whether the acceptance of null for this parameter is OK or not, if it's not 
working in 2.3.3 but working as documented in 2.2 and earlier, it is a 
regression. 

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

2011-02-13 Thread Alok Kulkarni
Answer 2 :- Not possible. Change account password if u want noone else
to get the access.

On 2/8/11, Alok Kulkarni kulsu...@gmail.com wrote:
 Ok i got my first answer.Deleting a non primary account also deleted
 the associated mails with that account.

 Thanks,
 Alok

 On Tue, Feb 8, 2011 at 12:20 PM, Alok Kulkarni kulsu...@gmail.com wrote:
 Any answers ???

 On Mon, Feb 7, 2011 at 7:55 PM, Alok Kulkarni kulsu...@gmail.com wrote:
 Hi,
 I am trying to delete all the mails of an existing account .Is that
 possible?
 When i tried to delete the accounts on the phone , i saw that i  could
 delete all the accounts programatically except the primary account
 which i know that can be deleted only on phone reset.(In program i get
 false return value for the AccountManagerCallback)So it seems
 impossible to delete mails as the mails are loaded as and when needed
 for the account.
 So following are my questions.
 1 ) Can we delete all the mails on the device of the non primary Email
 account?
 2)Is there any way to delete the primary mail account programatically ?

 Thanks ,
 Alok.




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

2011-02-13 Thread davemac
I think I understand the logic behind using Bundles to pass in and
store values associated with a Fragment, but I wondered if someone
could validate my understanding.

I believe that it makes sense to use a Bundle to pass in initial
values at the time of construction of a Fragment for a number of
reasons:
1) Bundles are a simple way to pass in an arbitrary number of
arguments of different types, so the pattern of using Fragments is the
same for everyone. This makes understanding them easier.
2) The arguments Bundle on a Fragment (setArguments, getArguments)
is a convenience over having to create class member fields to keep
track of the specifics of a Fragment object.
3) It is simple to take an extras Bundle from an inbound Intent
and pass it to a Fragment's creation logic.

This doesn't mean you always need to use a Bundle when creating a
Fragment, but if you have a few or more values to pass in, a Bundle
makes a lot of sense. Are there other reasons why you'd want to use
Bundles in this way? Or situations where you wouldn't? The Shakespeare
example that Dianne blogged about recently used a Bundle for a single
int value. Was this more for demonstration purposes? Or would it have
been acceptable to simply use a constructor that takes an int, and
save it in a member field for later? 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] sdk r09 breaks my app, r08 works fine

2011-02-13 Thread Adam Tybor
Is anyone having problems with the newest sdk tools?

When I compile the app using r8 it works fine, however when I compile the 
app using the new r9 tools one of my activities views are all messed up. 
 The colors are wrong and the onClick= attributes are trying to find 
methods on my Application context instance and not my Activity instance. 
 Very bizarre.  I am not running proguard or anything else on these builds 
either.

Any thoughts on how to troubleshoot this?  Can I diff the unsigned apks in 
some way?

Thanks,
Adam

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

[android-developers] What does Android do when you click on a widget whose application is not running?

2011-02-13 Thread AndroidDevTime
If you add a widget to the home screen that is part of an application
that does not start on boot, and then you power on/off the device,
and  click on the widget does Android restart the widget's
application?  Right now my widget does nothing when clicked unless
added when my application is already running.  I would like to
understand if android attempts to start the application that a widget
is part of when you click on the widget and its application is not
running?

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

2011-02-13 Thread AndroidDevTime
Is it possible to have an Android application that runs without a Main
Activity?  I have mostly Widget--Service communication and I really
don't want a Main Activity to show most of the time.  But anyway my
question is can this be done?  Does an application have to have a Main
Activity? Can it start and run invisibly or does it always have to
have screen visible when its running?

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

2011-02-13 Thread davemac
Sure you can! There's nothing that says you must have an Activity in
your application. Does your widget handle all user interaction though?
Do you have any notifications that a user might click on and expect to
see an activity UI? A user can always find your application in the
Settings - Applications - Manage Applications list, so has a way to
remove it even if there is no launcher icon in the Apps area. What
about preferences? That's an activity too. But if you don't need any
of that, you don't have to have an activity in your app.

- dave

On Feb 13, 6:40 pm, AndroidDevTime androiddevd...@gmail.com wrote:
 Is it possible to have an Android application that runs without a Main
 Activity?  I have mostly Widget--Service communication and I really
 don't want a Main Activity to show most of the time.  But anyway my
 question is can this be done?  Does an application have to have a Main
 Activity? Can it start and run invisibly or does it always have to
 have screen visible when its running?

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

2011-02-13 Thread Handita Okviyanto
I just newbie in android. Somebody help me to find out how to make a
gis(Geographic Information System) application in android. I want to
use google map but I still confuse how to navigate with it's content
to define user's click and detecting the place and finally showing the
related information based on user's choise. And I want to show like a
different color in various data of map.
If any other way, How?
If can i use SVG please 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


Re: [android-developers] What does Android do when you click on a widget whose application is not running?

2011-02-13 Thread Kostya Vasilyev
It just depends on how you set up a click handler for your widget. Normally,
you should be using a PendingIntent of some type, so that when it's fired,
Android can take it from there in the usual way, and that includes bringing
your application into memory and instantiating the component as necessary.

If this is not happening, then (and I'm reading my tarot deck here) it
*might* be because your code sets up the widget in multiple distinct steps:
one for the layout and the pending intent for clicking, then another to
update some kind of indicator. Is that the case? If so, make sure that each
widget update is complete and contains all of the above.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
14.02.2011 2:31 пользователь AndroidDevTime androiddevd...@gmail.com
написал:
 If you add a widget to the home screen that is part of an application
 that does not start on boot, and then you power on/off the device,
 and click on the widget does Android restart the widget's
 application? Right now my widget does nothing when clicked unless
 added when my application is already running. I would like to
 understand if android attempts to start the application that a widget
 is part of when you click on the widget and its application is not
 running?

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

2011-02-13 Thread Kostya Vasilyev
You don't have to have the main activity in your application, or any
activities at all. Check the manifest and remove the launcher-specific
intent filter from your main activity if you don't want it to show up in the
application list.

However, my personal observation is that doing this can cause user confusion
and a bunch of 1-star duznt opin type comments in Market.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
14.02.2011 2:40 пользователь AndroidDevTime androiddevd...@gmail.com
написал:
 Is it possible to have an Android application that runs without a Main
 Activity? I have mostly Widget--Service communication and I really
 don't want a Main Activity to show most of the time. But anyway my
 question is can this be done? Does an application have to have a Main
 Activity? Can it start and run invisibly or does it always have to
 have screen visible when its running?

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

2011-02-13 Thread Stephen Lebed
Hi All,

I wanted to start this thread to list problems people have discovered
writing their apps on various devices.  There are so many devices that
Android runs on, and its getting harder to track down problems when
one particular device isn't performing as expected.  Hopefully this
will help save programmers time when they test out their code.  I'll
start this thread with my own contribution to the cause.  Please add
to this list.


HTC DESIRE HD - In the current devices
Camera.Parameters.getHorizontalViewAngle(), get.VerticalViewAngle(),
and .getFocalLength() report -1 instead of a real value form the
cameras lens.

MOTOROLA DROID - It doesn't seem possible to have a 'headless' Camera
preview.  In other words, being able to capture a camera preview
without the need for a dedicated surface as in
SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS.  It does work on current
Motorola devices and HTC devices like the TMobile G2.

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

2011-02-13 Thread AndroidDevTime
Its clear that for long running work IntentService is very cool.  But
are there other reasons to use Intent service? If you have no long
running work does it still make sense to use it?  When do you not use
IntentService  is another way of asking this question.

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

2011-02-13 Thread Stephen Lebed
Hi Kim,

I've started a thread to list problems with devices.  Please consider
adding your experience to the list.

http://groups.google.com/group/android-developers/browse_thread/thread/501b5195e0cbc3e2



On Feb 13, 8:22 am, Kim kimknap...@gmail.com wrote:
 I have found tht when the Streak 7 goes to sleep, the last thing it
 does is issue an onDestroy() followed by an onCreate() to my app and
 then pauses the cpu shortly later. A look at logcat shows me that this
 is caused by Dell deciding to change the orientation before going to
 sleep, apparently so that it wakes up in the landscape mode by
 default. I have orientation fixed to portrait in my activities, but
 the Streak is ignoring this.
 Thought others might want to be aware of this.
 If anyone has a way to over ride this, let me know. I tried Overriding
 onConfigurationChange, but it is not being called when this happens.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] GPS icon stuck. Is GPS in use or not?

2011-02-13 Thread savio
Hi,

I am developing application with GPS, but I come into this problem:
when I try to turn off GPS using
LocationManager.removeUpdates(locationListener) and
locationManager.removeProximityAlert(PendingIntent)

I found the GPS icon stuck on the status bar, with three wave lines
frozen.

Is GPS still in use? If GPS is still in use, how can I completely turn
if off?

In my code, I found the following line is problematic:

locationManager.addProximityAlert(latitude, longitude, radius,
expiration, pendingIntent);


Thanks a lot!

-- savio

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] GPS icon stuck. Is GPS in use or not?

2011-02-13 Thread Mark Murphy
On Sun, Feb 13, 2011 at 8:25 PM, savio savioche...@gmail.com wrote:
 I am developing application with GPS, but I come into this problem:
 when I try to turn off GPS using
 LocationManager.removeUpdates(locationListener) and
 locationManager.removeProximityAlert(PendingIntent)

 I found the GPS icon stuck on the status bar, with three wave lines
 frozen.

 Is GPS still in use? If GPS is still in use, how can I completely turn
 if off?

If this is the emulator, do not worry -- the emulator never removes the icon.

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

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

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


[android-developers] OpenGL textures fail to load, white image

2011-02-13 Thread peter
Greetings,

I've been having an interesting problem with a game I'm developing.

The game is being built using the cocos2d-android-1 library.

All sprites are loaded from ARGB files.  They are of varying size
(not powers of 2).

When I deploy a test build to my Nexus One after making any code
changes (anything that forces the device to redeploy the APK) all the
sprites show up just fine.  Alpha shows up correctly, etc.

If I rerun the application from my N1, it will be missing some or all
of the textures at random.  Occasionally this is my splash screen
sprite.  Sometimes it is sprites of individual items on the screen.
There doesn't seem to be any rhyme or reason as to what sprites are
rendered and which are not.  All the items move and behave correctly,
but the sprites have been rendered with white textures.

If I reboot my phone, the game loads fine for the initial play
through, but subsequent play throughs have the bug again.

Now I've done some research and it looks like some people had issues
using non-power of 2 images for openGL textures.  However this doesn't
explain why my non-power of 2 textures render fine on the first
passthrough, and fail on subsequent passthroughs.

Also I've noticed that this problem seems to occur more often when I
have the application loading images from the sdcard.  If I load the
images from the assets folder and use the AssetManager I don't run
into the issue as much, although I did see it very rarely.

Is there some type of file locking going on here that is preventing
subsequent playthroughs from accessing the image file?  When a bitmap
is loaded, does it prevent other applications from reading the image
file while it's in use?

I'm going to try using sprite sheets and/or switching everything to
use powers of 2, but I'm not sure if that will fix it.  I swear it is
something wrong with how the files are loaded (asset folder vs folder
on sdcard) that is prevent subsequent playthroughs from correctly
loading the texture.

This is the code I'm using to read in the files:

private static HashMapString, CCTexture2D textureMappings = new
HashMapString, CCTexture2D();
public static final CCTexture2D addTexture(String filePath) {
if(filePath.contains(../)) {
return null;
}
CCTexture2D rtn = textureMappings.get(filePath);
if (rtn == null) {
String path = Constants.DEFAULT_PATH  + filePath;
File f = new File(path);
if (f.exists()) {
Bitmap bmp = 
BitmapFactory.decodeFile(Constants.DEFAULT_PATH +
filePath);
rtn = new CCTexture2D(bmp);
textureMappings.put(filePath, rtn);
}
}
return rtn;
}

This is the constructor for CCTexture2D:

public CCTexture2D(Bitmap image) {

CGSize imageSize = CGSize.make(image.getWidth(),
image.getHeight());
CGAffineTransform transform = CGAffineTransform.identity();

int width = toPow2((int) imageSize.width);
int height = toPow2((int) imageSize.height);

while (width  kMaxTextureSize || height  kMaxTextureSize) {
width /= 2;
height /= 2;
transform = transform.getTransformScale(0.5f, 0.5f);
imageSize.width *= 0.5f;
imageSize.height *= 0.5f;
}

if (imageSize.width != width || imageSize.height != height) {
Bitmap bitmap = Bitmap.createBitmap(width, height,
image.hasAlpha() ? Bitmap.Config.ARGB_ :
Bitmap.Config.RGB_565);
Canvas canvas = new Canvas(bitmap);
canvas.drawBitmap(image, 0, 0, null);
image.recycle();
image = bitmap;
}

init(image, imageSize);
}

This is what happens in init:

private void init(Bitmap image, CGSize imageSize) {
mBitmap = image;

mWidth = image.getWidth();
mHeight = image.getHeight();
mContentSize = imageSize;
// _format = image.getConfig();
_maxS = mContentSize.width / (float) mWidth;
_maxT = mContentSize.height / (float) mHeight;
_texParams = _gTexParams;
ByteBuffer vfb = ByteBuffer.allocateDirect(4 * 3 * 4);
vfb.order(ByteOrder.nativeOrder());
mVertices = vfb.asFloatBuffer();

ByteBuffer tfb = ByteBuffer.allocateDirect(4 * 2 * 4);
tfb.order(ByteOrder.nativeOrder());
mCoordinates = tfb.asFloatBuffer();

if(mBitmap.getConfig() == Bitmap.Config.ARGB_)
premultipliedAlpha = true;
}

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

[android-developers] Re: Careful, Dell Streak 7 ignores manifest setting for Orientation

2011-02-13 Thread Kim
Good idea! I will!

On Feb 13, 5:14 pm, Stephen Lebed srle...@gmail.com wrote:
 Hi Kim,

 I've started a thread to list problems with devices.  Please consider
 adding your experience to the list.

 http://groups.google.com/group/android-developers/browse_thread/threa...

 On Feb 13, 8:22 am, Kim kimknap...@gmail.com wrote:



  I have found tht when the Streak 7 goes to sleep, the last thing it
  does is issue an onDestroy() followed by an onCreate() to my app and
  then pauses the cpu shortly later. A look at logcat shows me that this
  is caused by Dell deciding to change the orientation before going to
  sleep, apparently so that it wakes up in the landscape mode by
  default. I have orientation fixed to portrait in my activities, but
  the Streak is ignoring this.
  Thought others might want to be aware of this.
  If anyone has a way to over ride this, let me know. I tried Overriding
  onConfigurationChange, but it is not being called when this happens.

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

2011-02-13 Thread AndroidDevTime
Well the exact behavior I want is if the application is auto started
on boot then no activity will show, until via widget user makes such a
request.  However, I also want to allow the user to launch the
application via the application list and in that case I want an
activity to show.  If the device is powered on/off then it will come
back on without the activity.  So I don't really want to take the main
activity out in the case of a user launch.  Is there anyway in the
application to detect the application launch method and if it is not a
user application driven lauch avoid showing the main activity.

On Feb 13, 4:03 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 You don't have to have the main activity in your application, or any
 activities at all. Check the manifest and remove the launcher-specific
 intent filter from your main activity if you don't want it to show up in the
 application list.

 However, my personal observation is that doing this can cause user confusion
 and a bunch of 1-star duznt opin type comments in Market.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com
 14.02.2011 2:40 пользователь AndroidDevTime androiddevd...@gmail.com
 написал:

  Is it possible to have an Android application that runs without a Main
  Activity? I have mostly Widget--Service communication and I really
  don't want a Main Activity to show most of the time. But anyway my
  question is can this be done? Does an application have to have a Main
  Activity? Can it start and run invisibly or does it always have to
  have screen visible when its running?

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

2011-02-13 Thread William Ferguson
Try doing a clean build.
If you have some classes compiled against an old R (resource file)
then those constant values will not be updated and you will see the
kind of behaviour you are describing. It is not necessarily a product
of compiling against a new version of SDK.


On Feb 14, 8:32 am, Adam Tybor adam.ty...@gmail.com wrote:
 Is anyone having problems with the newest sdk tools?

 When I compile the app using r8 it works fine, however when I compile the
 app using the new r9 tools one of my activities views are all messed up.
  The colors are wrong and the onClick= attributes are trying to find
 methods on my Application context instance and not my Activity instance.
  Very bizarre.  I am not running proguard or anything else on these builds
 either.

 Any thoughts on how to troubleshoot this?  Can I diff the unsigned apks in
 some way?

 Thanks,
 Adam

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

2011-02-13 Thread TreKing
On Fri, Feb 4, 2011 at 6:17 AM, Ramit Pagaria ramitpaga...@gmail.comwrote:

 i have created one more project inside the same project folder and
 interlinked it with the main one. so when i compile the previous project
 this project gets precompiled somehow and throws 2 errors -


You may want to explain what you mean by creating a project inside the same
project folder and how you interlinked it with the main one.

-
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

Re: [android-developers] possible to track movement without GPS

2011-02-13 Thread TreKing
On Fri, Feb 4, 2011 at 7:55 AM, dica steven.mu...@gmail.com wrote:

 Possible?


Not really, no, AFAIK.

-
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

Re: [android-developers] Scrolling Problem

2011-02-13 Thread TreKing
On Fri, Feb 4, 2011 at 9:29 AM, Patrick z...@ouvaton.org wrote:

 How can I do this? Should I extend ScrollView, or create a custom View from
 scratch?


Extending ScrollView sounds reasonable. Try that.

-
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

Re: [android-developers] How to assign unique identifier to regions of an Image and do image overlay?

2011-02-13 Thread TreKing
On Fri, Feb 4, 2011 at 8:19 PM, playbox21 makad...@gmail.com wrote:

 I'm not sure how to get started on this.  Can you some point me to some
 documentation, provide sample code and tutorials to help me get started?


When you don't know where to start, search the internet for related topics
to get ideas and examples. I'm sure there are plenty of examples out there
on working with Images and / or Bitmaps in Java.

-
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

Re: [android-developers] Problems with notification bar when called from a widget

2011-02-13 Thread TreKing
2011/2/5 Raivis raivu...@gmail.com

 I call it like this  notification(context, intent);

 To sum up, I can only create a notification once, I can't update the
 existing one and can't create another one.


What is the purpose of the intent parameter if you're creating and using a
new one in the function?

-
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

Re: [android-developers] Emulator Uninstall to Previous One (2.3 to 2.2)

2011-02-13 Thread TreKing
On Sat, Feb 5, 2011 at 7:38 AM, Umair you.m...@gmail.com wrote:

 Can I do that?


The emulator is not something you install (technically) nor does it have a
version number. It's a tool which allows you to load an arbitrary platform
image on it. If you want Android 2.2, create an AVD with Android 2.2.


 Can you please write those steps?


Check the documentation. This is explained.

-
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

Re: [android-developers] Where is best to start?

2011-02-13 Thread TreKing
On Sat, Feb 5, 2011 at 9:20 AM, luoruize luoru...@gmail.com wrote:

 So I have a question - where would you suggest going next?
 Basically, my direction is game development, and I'm also a little familiar
 with Unity3D. Would that be a better solution considering my aim?


This is a very broad and generic question. Hard to say without knowing
details of your exact skill level and experience.
Make some simple games?
Look at any available Android Game engines?

-
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

Re: [android-developers] Widget USSD

2011-02-13 Thread TreKing
On Sat, Feb 5, 2011 at 1:31 PM, zamcio PL zam...@gmail.com wrote:

 I ask for help in writing such a widget?


Help with what?

-
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

Re: [android-developers] How to save geolocation data on server.....

2011-02-13 Thread TreKing
On Sat, Feb 5, 2011 at 10:36 PM, taranjeet singh taran1...@gmail.comwrote:

 I started learning android application development. I want to
 create friends tracking android application.


Oh boy ...

 I dont know how to store geolocation of friends on server my sql database.


Google SQL databases, or get a book on the subject, and learn.


  Can you help to find how to upload data to server and request data from
 server.. and what kind of server i may need.


Sorry, but none of that has anything to do with Android. There is plenty of
information out there on getting data to and from servers.


 It will be good if you provide with sample codes.


It will be good if you set your bar a little lower: learn more about
Android, talking to servers, and SQL, then come back with Android-specific
questions.

Good luck.

-
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

Re: [android-developers] lg ally android cant connect to blocks editor

2011-02-13 Thread TreKing
On Sun, Feb 6, 2011 at 7:45 AM, Martin mroy...@gmail.com wrote:

 what needs to be done to make this work?


To make this work, you need to explain what a blocks editor is.

-
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

Re: [android-developers] How To Consume .NET Web Services via Android Mobile Device

2011-02-13 Thread TreKing
On Sun, Feb 6, 2011 at 2:33 PM, ROH rhol...@gmail.com wrote:

 I have a receiving a message that I don't understand too much about.


When you get an error you don't understand, punch it into Google and see
where that takes you.

-
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

[android-developers] Re: List issues with Android devices here

2011-02-13 Thread Kim

All HTC, as far as I can tell - do not implement UDP multi-cast
properly. Join command does not get issued.

Dell Steak 7 - When the device goes to sleep, orientation is forced to
landscape even when your activity is set to only portrait mode. This
causes your app to get the  onDestroy() and onCreate() that result
from the change configuration. Overriding the onConfigurationChanged()
method does not work in this case.

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

2011-02-13 Thread Adam Tybor
If you control the webservices, my best suggestion is don't use SOAP with 
WCF.  Expose REST or POX bindings for WCF.  You can then use libraries like 
Simple XML to parse the xml into entities or if its a big payload you can 
use the built in SAX parsers or XML pull parsers.

Adam

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

2011-02-13 Thread TreKing
On Sun, Feb 6, 2011 at 1:46 PM, AndrewD findingdevot...@gmail.com wrote:

 Anyone could tell me where I could specify the onclick handler?


Probably wherever you actually instantiate your view.

-
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

Re: [android-developers] test app in a inactive cell phone

2011-02-13 Thread TreKing
On Sun, Feb 6, 2011 at 7:15 PM, henry zhlu...@gmail.com wrote:

 My question is can I use his old one to test my  cell phone apps in Android
 if the cell phone supports Java?


Sure.

-
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

Re: [android-developers] AlertDialog error with events

2011-02-13 Thread TreKing
On Sun, Feb 6, 2011 at 8:18 PM, prolink007 prolink...@gmail.com wrote:

  I am trying to create an AlertDialog inside my SmartApp class when an
 event is fired in my DataRobot class. I am getting an error when doing this.
 The event is firing and calling the function successfully in SmartApp, but
 when it gets to alert.show() the following error is printed to logcat. Does
 anyone know what i am doing wrong or a better way to implement what i am
 wanting?


Is this event being triggered from a different thread?

-
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

[android-developers] Re: Android Market: New country/region pricing - non-US sales drop to zero

2011-02-13 Thread JP


On Feb 12, 9:46 pm, Nathan critter...@crittermap.com wrote:
 I don't think it takes yet, although it isn't clear when it does. I
 have not seen a single non USD value, or any variance from the USD
 price.

Sigh. For some unknown reason things are rolling again, starting this
morning.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Can Main Activity be conditionally shown based on app launch method?

2011-02-13 Thread AndroidDevTime
Can an application detect the manner it is being launched.
Specifically if it is a user launching from application list or on
boot.  I want the Main Activity to show when the user launches the
application, but not when the application is launched on boot.

Thanks,
Steve

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Can Main Activity be conditionally shown based on app launch method?

2011-02-13 Thread Dianne Hackborn
You shouldn't be launching an activity on boot.

On Sun, Feb 13, 2011 at 8:30 PM, AndroidDevTime androiddevd...@gmail.comwrote:

 Can an application detect the manner it is being launched.
 Specifically if it is a user launching from application list or on
 boot.  I want the Main Activity to show when the user launches the
 application, but not when the application is launched on boot.

 Thanks,
 Steve

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




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

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

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

Re: [android-developers] Careful, Dell Streak 7 ignores manifest setting for Orientation

2011-02-13 Thread Dianne Hackborn
This isn't specific to the dell streak.  In the standard platform, the lock
screen forces the orientation to portrait, so when going to sleep if the
screen is landscape then it will get changed to portrait.  As always, an app
should handle being destroyed and recreated.

On Sun, Feb 13, 2011 at 8:22 AM, Kim kimknap...@gmail.com wrote:

 I have found tht when the Streak 7 goes to sleep, the last thing it
 does is issue an onDestroy() followed by an onCreate() to my app and
 then pauses the cpu shortly later. A look at logcat shows me that this
 is caused by Dell deciding to change the orientation before going to
 sleep, apparently so that it wakes up in the landscape mode by
 default. I have orientation fixed to portrait in my activities, but
 the Streak is ignoring this.
 Thought others might want to be aware of this.
 If anyone has a way to over ride this, let me know. I tried Overriding
 onConfigurationChange, but it is not being called when this happens.

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




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

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

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

Re: [android-developers] When to use an IntentService vs. Service

2011-02-13 Thread Dianne Hackborn
IntentService is just a fairly simply convenience class for doing a common
pattern of implementation with Service.  If it does what you want, use it;
if it doesn't, don't.

On Sun, Feb 13, 2011 at 4:11 PM, AndroidDevTime androiddevd...@gmail.comwrote:

 Its clear that for long running work IntentService is very cool.  But
 are there other reasons to use Intent service? If you have no long
 running work does it still make sense to use it?  When do you not use
 IntentService  is another way of asking this question.

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




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

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

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

Re: [android-developers] Fragment question on the use of the arguments bundle

2011-02-13 Thread Dianne Hackborn
Actually the big reason for using a Bundle is because this needs to be saved
as part of the saved instance state of the activity.  The Bundle class
provides a data structure that is Parcelable (can be saved) and
automatically takes care of the marshalling/unmarshalling for you (so the
app developer won't need to deal with that complexity).

If you use a constructor that takes an int, you will then need to write the
code in onSaveInstanceState() to store the int and retrieve it in
onCreate().  Since you are going to be dealing with bundles, anyway, you
might as well just have it in a bundle up-front and let the framework take
care of the saving and restoring.

In fact the whole arguments API was added to fragment just to reduce the
amount I was seeing that you had to write that save/restore boilerplate
code.

Of course if you don't really care about retaining your arguments across
instances, then there is no reason to use the formal arguments bundle and go
ahead and have a constructor with the typed arguments.  That said, if you
think this is the case, there is probably a 90% chance you actually aren't
realizing that you *do* need to have those arguments saved so will run into
problems later.

Also you need to be aware that a fragment needs to have an empty constructor
so it can be re-created later from saved state, so if you do have a
constructor with arguments, you need to be sure to also explicitly write an
empty constructor.

On Sun, Feb 13, 2011 at 2:32 PM, davemac davemac...@gmail.com wrote:

 I think I understand the logic behind using Bundles to pass in and
 store values associated with a Fragment, but I wondered if someone
 could validate my understanding.

 I believe that it makes sense to use a Bundle to pass in initial
 values at the time of construction of a Fragment for a number of
 reasons:
1) Bundles are a simple way to pass in an arbitrary number of
 arguments of different types, so the pattern of using Fragments is the
 same for everyone. This makes understanding them easier.
2) The arguments Bundle on a Fragment (setArguments, getArguments)
 is a convenience over having to create class member fields to keep
 track of the specifics of a Fragment object.
3) It is simple to take an extras Bundle from an inbound Intent
 and pass it to a Fragment's creation logic.

 This doesn't mean you always need to use a Bundle when creating a
 Fragment, but if you have a few or more values to pass in, a Bundle
 makes a lot of sense. Are there other reasons why you'd want to use
 Bundles in this way? Or situations where you wouldn't? The Shakespeare
 example that Dianne blogged about recently used a Bundle for a single
 int value. Was this more for demonstration purposes? Or would it have
 been acceptable to simply use a constructor that takes an int, and
 save it in a member field for later? Thanks!

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




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

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

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

[android-developers] Re: test app in a inactive cell phone

2011-02-13 Thread Brill Pappin
Yup it will work just fine.
You will want to allow it to connect to your wifi though.

- Brill

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

2011-02-13 Thread Brill Pappin
Any particular reason for the upper/camel case package names?
It's unusual for java and may cause issues on some machines.

- Brill Pappin


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

2011-02-13 Thread Nightwolf
Have you looked at logcat? Are there any suspicious messages?
Probably there's a problem with freeing bitmaps and you run out of
memory.

On Feb 14, 5:21 am, peter petero...@gmail.com wrote:
 Greetings,

 I've been having an interesting problem with a game I'm developing.

 The game is being built using the cocos2d-android-1 library.

 All sprites are loaded from ARGB files.  They are of varying size
 (not powers of 2).

 When I deploy a test build to my Nexus One after making any code
 changes (anything that forces the device to redeploy the APK) all the
 sprites show up just fine.  Alpha shows up correctly, etc.

 If I rerun the application from my N1, it will be missing some or all
 of the textures at random.  Occasionally this is my splash screen
 sprite.  Sometimes it is sprites of individual items on the screen.
 There doesn't seem to be any rhyme or reason as to what sprites are
 rendered and which are not.  All the items move and behave correctly,
 but the sprites have been rendered with white textures.

 If I reboot my phone, the game loads fine for the initial play
 through, but subsequent play throughs have the bug again.

 Now I've done some research and it looks like some people had issues
 using non-power of 2 images for openGL textures.  However this doesn't
 explain why my non-power of 2 textures render fine on the first
 passthrough, and fail on subsequent passthroughs.

 Also I've noticed that this problem seems to occur more often when I
 have the application loading images from the sdcard.  If I load the
 images from the assets folder and use the AssetManager I don't run
 into the issue as much, although I did see it very rarely.

 Is there some type of file locking going on here that is preventing
 subsequent playthroughs from accessing the image file?  When a bitmap
 is loaded, does it prevent other applications from reading the image
 file while it's in use?

 I'm going to try using sprite sheets and/or switching everything to
 use powers of 2, but I'm not sure if that will fix it.  I swear it is
 something wrong with how the files are loaded (asset folder vs folder
 on sdcard) that is prevent subsequent playthroughs from correctly
 loading the texture.

 This is the code I'm using to read in the files:

         private static HashMapString, CCTexture2D textureMappings = new
 HashMapString, CCTexture2D();
         public static final CCTexture2D addTexture(String filePath) {
                 if(filePath.contains(../)) {
                         return null;
                 }
                 CCTexture2D rtn = textureMappings.get(filePath);
                 if (rtn == null) {
                         String path = Constants.DEFAULT_PATH  + filePath;
                         File f = new File(path);
                         if (f.exists()) {
                                 Bitmap bmp = 
 BitmapFactory.decodeFile(Constants.DEFAULT_PATH +
 filePath);
                                 rtn = new CCTexture2D(bmp);
                                 textureMappings.put(filePath, rtn);
                         }
                 }
                 return rtn;
         }

 This is the constructor for CCTexture2D:

     public CCTexture2D(Bitmap image) {

         CGSize imageSize = CGSize.make(image.getWidth(),
 image.getHeight());
         CGAffineTransform transform = CGAffineTransform.identity();

         int width = toPow2((int) imageSize.width);
         int height = toPow2((int) imageSize.height);

         while (width  kMaxTextureSize || height  kMaxTextureSize) {
             width /= 2;
             height /= 2;
             transform = transform.getTransformScale(0.5f, 0.5f);
             imageSize.width *= 0.5f;
             imageSize.height *= 0.5f;
         }

         if (imageSize.width != width || imageSize.height != height) {
             Bitmap bitmap = Bitmap.createBitmap(width, height,
                     image.hasAlpha() ? Bitmap.Config.ARGB_ :
 Bitmap.Config.RGB_565);
             Canvas canvas = new Canvas(bitmap);
             canvas.drawBitmap(image, 0, 0, null);
             image.recycle();
             image = bitmap;
         }

         init(image, imageSize);
     }

 This is what happens in init:

     private void init(Bitmap image, CGSize imageSize) {
         mBitmap = image;

         mWidth = image.getWidth();
         mHeight = image.getHeight();
         mContentSize = imageSize;
         // _format = image.getConfig();
         _maxS = mContentSize.width / (float) mWidth;
         _maxT = mContentSize.height / (float) mHeight;
         _texParams = _gTexParams;
         ByteBuffer vfb = ByteBuffer.allocateDirect(4 * 3 * 4);
         vfb.order(ByteOrder.nativeOrder());
         mVertices = vfb.asFloatBuffer();

         ByteBuffer tfb = ByteBuffer.allocateDirect(4 * 2 * 4);
         tfb.order(ByteOrder.nativeOrder());
         mCoordinates = tfb.asFloatBuffer();

                 if(mBitmap.getConfig() == Bitmap.Config.ARGB_)
              

[android-developers] Re: What parameters are needed send C2DM messages?

2011-02-13 Thread Indu
After some more research, i decided to collect the GoogleLogin auth
from the phone and send it to the application server which sends C2DM
message.

However, in order to do that, I've to ask for the user's credentials
in my app. Is it possible to get the credentials of the default
registered user on the phone programmatically and get the auth token?

thanks,
Jay

On Feb 12, 11:44 pm, Indu isadas...@gmail.com wrote:
 I am writing the third party application server part of the C2DM
 messages. I've signed up and have the following:
 sender_id = my...@abc.com
 application_id = mycompany.test

 Using the above two pieces of information I can register on the mobile
 and can send the registration id to my application sever. Now, to send
 a message to the device through google 
 serverhttps://android.clients.google.com/c2dm/send
 I have the data for parameters: registration_id, data, etc.

 My question is how do I get the client login auth information
 (GoogleLogin auth) that is needed in the header? Should the mobile
 application collect user information and get the login auth
 information on the phone and send it to the third party server? Or
 should the mobile application user send the Google credentials to the
 third party server and the server stores it? Or is there any other
 way?

 Also, what should be in the collapse_key?

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

2011-02-13 Thread Rahul Garg
Hi all,

I want to set one text icon in status bar. Actually i want to show the 
strength of the signal, which will be updated continuously. So anyone have 
any idea about it, please let me know.

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

2011-02-13 Thread Androidbaby
Just a simple answer is yes you can record call conversation.

Currently i am leaving to attend a meeting and will update you about
code shortly.



On Feb 7, 1:51 pm, deepak kumar deepu.007ro...@gmail.com wrote:
 Dear Sir/Madam,
                 We are trying to develop an application based on
 answering machine, in which the application has to receive the call
 during certain period, has to answer the call by playing a pre-
 recorded message and has to record the message of the caller. The
 application has to allow the user to play the message whenever he is
 free. Here we had few questions in mind and wanted to confirm if this
 was possible.

 1. can we receive an incoming call using an application??
 2. can we record a call conversation??

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

2011-02-13 Thread Narendra Bagade
Mac will be best option for unique representation of devices

On Fri, Feb 11, 2011 at 10:24 PM, Oceanblue ns1...@gmail.com wrote:

 Like a lot of other applications, my application has different levels
 of features access. Depending on the unique device ID, it switches on
 certain features (paid/licensing issues). This feature switching on-
 off is already done in existing native C/C++ code for all kind of
 mobile devices/PCs etc, so I wouldn't be using Androids new in-app
 billing (even if it provides this functionality)

 I need a unique (6 byte, hex string) device id. I have looked at the
 following options:

 1. ANDOID_ID

 Looks good, but there seem to be some issues with this.
1. This can show up null, unless the device has atleast once logged
 onto Android market, as per this thread:

 http://groups.google.com/group/android-developers/browse_thread/thread/cbc9d4cad48a7fb7/9d4caaac1fc78f96?lnk=gstq=android_id#9d4caaac1fc78f96
I've read in other places too, that it might be null - due to this
 or
 other causes.

2. Certain devices have a bug where many devices show up the same
 (supposedly) unique id, as per this thread:

 http://groups.google.com/group/android-developers/browse_thread/thread/53898e508fab44f6/3aca6310acc63915?q=android_idlnk=ol;


 2. MAC address

 Not sure if this is available under the following conditions:
1. Device is not wi-fi enabled
2. Wi-fi is switched off


 3. IMEI/ MEID

 Application will be potentially running on non-telephone devices like
 tablets too, so this is not an option.

 I'm really stumped at this point. Any guidance would be 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




-- 
Regards,
Narendra
.

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

2011-02-13 Thread Jayanthi
Hi Dude,
 I worked on camera preview for taking live image , Here I
get following Exception

java.io.FileNotFoundException: /sdcard/1297668185153.jpg (Permission
denied)

image is not saved in sd card can anyone tell me  where  i did
mistake .

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] Camera preview demo

2011-02-13 Thread Jayanthi
Hi Dude,
 I worked on camera preview for taking live image , Here I
get following Exception

java.io.FileNotFoundException: /sdcard/1297668185153.jpg (Permission
denied)

image is not saved in sd card can anyone tell me  where  i did
mistake .

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] Where can I find stats on Android distribution (number of devices) by cpu?

2011-02-13 Thread elik
As a developer of android application that implements part of its
functionality using native code (c++), I would like to prioritize my
effort based on a per cpu brand and architecture (e.g. ARMv6, ARMv7,
etc)

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

2011-02-13 Thread Anand Android
hi all,
actually when i mount mysd card . i see 2 partitions ,/mnt/sdcard and
/mnt/secure/asec.
what is /mnt/secure/asec? whats the use ?

-
Anand

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

2011-02-13 Thread guru sagar
hi,

  check permissons in android manifest file

On Mon, Feb 14, 2011 at 12:59 PM, Jayanthi jaia...@gmail.com wrote:

 Hi Dude,
 I worked on camera preview for taking live image , Here I
 get following Exception

 java.io.FileNotFoundException: /sdcard/1297668185153.jpg (Permission
 denied)

 image is not saved in sd card can anyone tell me  where  i did
 mistake .

 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] Re: Development Tools Crashing

2011-02-13 Thread Zarah
Hi Xav,

As pointed out by one of the answers on StackOverflow:
http://stackoverflow.com/questions/4811564/eclipse-android-graphical-layout-editor-broken

I think I agree, the error appears when the Build Target is set to one
of the Google APIs.  I started encountering this error when I changed
my build target to use Maps.



Thanks and best regards,
Zarah.



On Feb 8, 8:42 am, Xavier Ducrohet x...@android.com wrote:
 I think the issue is when you open the editor while the SDK is still loading.
 We've done some work around this for 10.0 so it should be better.

 Xav

 On Mon, Feb 7, 2011 at 3:23 PM, Evan Ruff







 evan.r...@hendersonsawmill.com wrote:
  Also, not sure if I tried this previously, but it seems that now I can get
  the layout editor if I close the opened XML tab, wait a minute, then reopen.
  I still get the No theme selected message, but after selecting one it does
  render properly!
  E

  On Mon, Feb 7, 2011 at 6:22 PM, Evan Ruff evan.r...@hendersonsawmill.com
  wrote:

  Xavier,
  Here's the output from NPE issue in the Layout Editor with the ADT Plug
  w/Debug:
  java.lang.NullPointerException
  at
  com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar
   t.renderWithBridge(GraphicalEditorPart.java:1484)
  at
  com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar
   t.recomputeLayout(GraphicalEditorPart.java:1211)
  at
  com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar
   t.activated(GraphicalEditorPart.java:1039)
  at
  com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.pageChange
   (LayoutEditor.java:365)
  at
  org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.j
   ava:1067)
  at
  org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607)
  at
  org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPa
   rt.java:352)
  at
  org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.ja
   va:670)
  at
  org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465
   )
  at
  org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReferen
   ce.java:595)
  at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
  at
  org.eclipse.ui.internal.presentations.PresentablePart.setVisible(Presentabl
   ePart.java:180)
  at
  org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(Pre
   sentablePartFolder.java:270)
  at
  org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftT
   oRightTabOrder.java:65)
  at
  org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPa
   rt(TabbedStackPresentation.java:473)
  at
  org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.ja
   va:1254)
  at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207)
  at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606)
  at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
  at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
  at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
  at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
  at
  org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.j
   ava:63)
  at
  org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:
   225)
  at
  org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:21
   3)
  at
  org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:77
   8)
  at
  org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManage
   r.java:677)
  at
  org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)
  at
  org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.j
   ava:2860)
  at
  org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:276
   8)
  at
  org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
  at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
  at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
  at
  org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
  at
  org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
  at
  org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682)
  at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
  at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
  at
  org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUti
   lity.java:365)
  at
  org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUti
   lity.java:168)
  at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:229)
  at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:208)
  at
  org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDis
   patchAction.java:274)
  at
  

[android-developers] HTML5 Hardware Access

2011-02-13 Thread perumal316
Hi All,

Is it now possible to access Android's Hardware APIs through the
Webkit Browser by HTML5?

For example I start up the Android Browser and access a website which
will requires file upload and camera API. Can this be done?

There are some frameworks available, like Titanium and PhoneGap, but
it still in the form of an native app installation only the code is in
HTML or javascript.

I want a full web app that can access the hardware API. Is this
possible?

Regards,
Perumal

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

2011-02-13 Thread Jayanthi
Hi,
uses-feature android:name=android.hardware.camera /
 uses-feature android:name=android.hardware.camera.autofocus /
uses-permission android:name=android.permission.CAMERA /
 uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE /

I gave all the above permission

On Feb 14, 12:38 pm, guru sagar gurusagar...@gmail.com wrote:
 hi,

   check permissons in android manifest file

 On Mon, Feb 14, 2011 at 12:59 PM, Jayanthi jaia...@gmail.com wrote:
  Hi Dude,
              I worked on camera preview for taking live image , Here I
  get following Exception

  java.io.FileNotFoundException: /sdcard/1297668185153.jpg (Permission
  denied)

  image is not saved in sd card can anyone tell me  where  i did
  mistake .

  Thanks in Advance,

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



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


Re: [android-developers] Share some of my work - DragDrop framework

2011-02-13 Thread Oded O.
Sorry for that...
I'm coming from the .NET world (5+ years of C# development) where 
CamelCasing is the way to go...
I'm still adjusting, and had no way of knowing that upper-cased namespaces 
can be problematic

BTW, why is this an issue, and on what machines?

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