I have remote views that are updated during their configuration. So far so good.
When later on the state they should monitor changes I want to update
them again and I use the same code to alter the remote views, but
nothing happens. When looking at the remote views in the debugger I
can see that
I've a Video View displayed on the UI. The Video View seems to be
working fine. But, I want to use Context Menu on that. For ex: I would
like to pause it if the user makes a long press. I registered the
ContextMenu in the activity onCreate as follows:
onCreate (...)
{
...
this.myVideo =
What's nice about Apple's approach here is that developers
don't have to do anything... it's a good way of improving the code
quality for *all* apps. I was pretty surprised and happy when it
came online a month or two ago because it confirmed that what
was crashing across our user base were
anyone?
On Feb 27, 2:41 pm, rukiman ruksh...@optushome.com.au wrote:
I did a dumpsys meminfo of my app and each time I go in and out of my
activity the asset allocations grows i.e
Asset Allocations
zip:/data/app/com.home.Test.apk:/assets/fonts/TEST.TTF: 118K
On Feb 27, 8:30 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
And only a fraction of the 30% cut goes to Google for payment
processing and running the martket infrastructure. The lion's share
goes to the various carriers.
I use the Market almost always over Wi-Fi. Where does the carrier
We put Purchase Checking in at AndAppStore for exactly this kind of
reason (http://andappstore.com/AndroidApplications/
purchase_checking.jsp).
Google, and particularly the Market team, seem to be very slow at
taking things on board an delivering what developers want, so I'd
suggest using the
Reply posted on [android-discuss]
On Feb 28, 12:34 am, Mark Murphy mmur...@commonsware.com wrote:
Rob Irondad wrote:
I just published a final draft. Feedback / comments still welcome.
http://docs.google.com/View?id=dd9hmc43_0c9zh58gd
Please use a proper list for this sort of discussion,
Thanks for your demo code...
But unfortunately, I can't use that method regarding the fact I have a
MapActivity and two ListActivity as sub activities.
My last idea is to write a singleton on which I will save the TabHost
instance. Thus it should be accessible from any sub activities by
hi,
adb -s HT96NLV00520 shell
$ sqlite /data/data/com.lam.recipedisplay/databases/recipe.db
sqlite /data/data/com.lam.recipedisplay/databases/recipe.db
sqlite: permission denied
is there a way to get around this?
--
You received this message because you are subscribed to the Google
Groups
I think you can use account manager to store account and password, but it
was from 2.0.
2010/2/28 Anna PS annapowellsm...@googlemail.com
OK, I found this:
http://code.google.com/apis/youtube/2.0/developers_guide_java.html#ClientLogin_for_Installed_Applications
Should have read the docs more
How can I turn off activity transitions? It looks a bit odd on my
game. Will the mechanism be safe for 1.5?
I am in the process of making my 1.5 game support multiple resolutions.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
By the way. It seems there is no gdata client library on android, how could
use YouTubeService on the android directly? I thought we should rewrite
gdata client library on android. What's your suggestion? thanks.
2010/2/28 Jiecong Li lijiec...@gmail.com
I think you can use account manager to
Alain wrote:
Mark,
I tried your suggestion with this code, but this throws an exception.
String varName = R.array.+itemName[listaa_position];
int itemsid=getResources().getIdentifier(varName, null,
getPackageName());
items = getResources().getStringArray(itemsid);
The
newbyca wrote:
Thanks Mark, makes sense enough. But any idea why permission to read
such IDs is bundled with reading phone state?
:: shrug ::
At least in the case of the IMSI, it's a value on the SIM card, so
perhaps that's why.
--
Mark Murphy (a Commons Guy)
http://commonsware.com |
+1
Good list. Some stuff less important and rather nice-to-have while
others are should-have-had-this-a-year-ago.
On Feb 21, 2:43 pm, Rob Irondad rob.iron...@gmail.com wrote:
Hi fellow developers.
I've come up with this text for a petition (warning: long):
ls02 wrote:
I didn't find simple ay of doing this. setBackground is not what I
want, it chnages the entire button including borders, not just the
background.
On Feb 27, 1:12 pm, jotobjects jotobje...@gmail.com wrote:
yes - See android.widget.Button documentation for details
On Feb 27,
ls02 wrote:
I didn't find simple ay of doing this. setBackground is not what I
want, it chnages the entire button including borders, not just the
background.
On Feb 27, 1:12 pm, jotobjects jotobje...@gmail.com wrote:
yes - See android.widget.Button documentation for details
On Feb 27,
It depends heavily on laws of your place of residence
and importance of your application. Most probably nobody will
ever notice. However, I managed to get attention of lawyers
representing
nice delaware company holding right of tetris because of my applet
game
(used to be 1th hit in google ) -
What I am trying to do is make my game center in any screen with the
best fit to screen and maintain ratio. Is there a good way to do this?
This is my current xml. I have an outer linearlayout to center the
middle one, all good in most resolutions but doesn't work well in
WQVGA400. If I could make
I should mention that my AndroidManifest.xml is
uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4 /
supports-screen anyDensity=false android:smallScreens=false
android:normalScreens=true android:largeScreens=true /
On Feb 28, 11:42 pm, rukiman ruksh...@optushome.com.au
Hello,
how do I convert a Drawable into a Bitmap?
Greetings,
Marco
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
On Feb 28, 11:52 am, Marco Alexander Schmitz
marco.alexander.schm...@googlemail.com wrote:
Hello,
how do I convert a Drawable into a Bitmap?
Greetings,
Marco
in general you cannot
you can however getBitmap from BitmapDrawable
but if you just want to get bitmap from your resources try
Can you not use ImageButton?
On Feb 28, 5:25 pm, skink psk...@gmail.com wrote:
ls02 wrote:
I didn't find simple ay of doing this. setBackground is not what I
want, it chnages the entire button including borders, not just the
background.
On Feb 27, 1:12 pm, jotobjects
Hi guys,
I need to create a new background service that listens to some events
(lock/unlock key event, notifications like missed calls, messages, rss
feed etc. and some sensor events) and takes some actions on the
occurrence of these events. My questions are
1) How can I make this service run
I have an activity that makes use of a surfaceview forced into
landscape mode using android:screenOrientation=landscape in the
manifest file. My concern is related to the use case where the screen
is turned off using the (red) hangup button, where I would assume that
the onPause() method of the
For a rather crazy reason I am trying to pass a linearLayout from one
activity to another.
Should I use an intent extra for this?
What would be the right way to create a LinearLayout in one activity and
then spawn a new activity using that linearLayout?
Thanks for ur help
--
-- -- -- -- -- --
Aniruddh Bajirao wrote:
For a rather crazy reason I am trying to pass a linearLayout from one
activity to another.
Please don't.
Should I use an intent extra for this?
You can't, as Views cannot be held in extras.
What would be the right way to create a LinearLayout in one activity and
Hello All,
I'm trying to notify a parent Activity that the child Dialog it
created has been closed. Normally with Activities, I would use
onActivityResult to determine which child activity had closed, etc.
How do I do this with Dialogs?
Cheers,
Don
--
You received this message because you are
I'm looking for a way of making TextToSpeech.synthesizeToFile save
output to internal memoryl instead of /sdcard. I've read the docs:
http://developer.android.com/intl/fr/resources/articles/tts.html, then
had a quick look at the SDK source code. Found out that SDK TTS
functions are using the PICO
Don wrote:
Hello All,
I'm trying to notify a parent Activity that the child Dialog it
created has been closed. Normally with Activities, I would use
onActivityResult to determine which child activity had closed, etc.
How do I do this with Dialogs?
If nothing els, you can call a method on the
Thank you Todd S.!
It worked great for me.
I still think it's strange to have to import a file through a
bytestream.
On 23 fév, 13:18, Todd S. toddstock...@gmail.com wrote:
I was able to get this to work by following post:
Actually managed to find out...
You just need to add a listener to the dialog's OnDismissListener.
E.g.
In the calling Activity:
...
MyDialog myDialog = new MyDialog(this, ...);
myDialog.setOnDismissListener(myDialogDismissListener);
myDialog.show();
...
private OnDismissListener
hi,
I wrote my own type of button. I want to pass values from main.xml
(the layout) to the class.
First I've got my attrs.xml:
?xml version=1.0 encoding=utf-8?
resources
declare-styleable name=OnOffButton
attr name=iBitmap format=reference /
attr
Mark:
But that's actually what I have set now:
activity android:name=.ResourcesList android:label=@string/app_name
android:theme=@android:style/Theme.Light
This is the main activity w/ the launcher intent. It's also the label that
shows up in the App list. Is there any way to specify the
Nikhil:
I tried all combinations but no joy. I'm sure the AlarmManager is firing
b/c it gets set w/ no errors and is almost the same code as in the App,
apart from the references to Context required from the BootReceiver. My
Receiver is obviously just not able to see the broadcast.
Thanks,
I tried several times to make it work... i tried searching on google
but works for everyone but not for me
Can anyone tell me how to make an image clickable?? i mean, I tried to
use onClickListener and onClick but nothing seems to work
onClickListener is always underlined and the error
Can you clarify what you are trying to do? It's hard to see why you
want to do what you are asking about.
If you are trying to display the same information, from the same data
model, in two identical-looking views in two different activities, you
should create a class that extends AdapterView if
Nick Owens wrote:
Mark:
But that's actually what I have set now:
activity android:name=.ResourcesList android:label=@string/app_name
android:theme=@android:style/Theme.Light
This is the main activity w/ the launcher intent. It's also the label that
shows up in the App list. Is there
Mark:
I took some excerpts from your fabulous sample online. I have never worked
w/ a WakefulIntentService before and am finding it hard to follow.
What is calling the doWakefulWork(Intent) function?
The AlarmManager is set to fire OnAlarmReceiver and passes a special Intent
to it w/ an
Hi all,
My program doesn't work correctly with Android 1.6 (running on Acer),
it works correctly with others devices.
Apparently, my xml view is not correctly understood with this device
(or Android version).
I've something like that
inside a tabhost, containing a ViewFlipper
ScrollView
Try View.OnClickListener and not DialogInterface.OnClickListener which
must be used for a dialogbox
On Feb 28, 6:41 pm, Kofa elk...@gmail.com wrote:
I tried several times to make it work... i tried searching on google
but works for everyone but not for me
Can anyone tell me how to make an
Nick Owens wrote:
I took some excerpts from your fabulous sample online. I have never worked
w/ a WakefulIntentService before and am finding it hard to follow.
Well, it's covered in (*ahem*) one of my books.
:-)
What is calling the doWakefulWork(Intent) function?
WakefulIntentService does.
arnouf wrote:
Hi all,
My program doesn't work correctly with Android 1.6 (running on Acer),
it works correctly with others devices.
Apparently, my xml view is not correctly understood with this device
(or Android version).
I've something like that
inside a tabhost, containing a
did you set it clickable?
On Feb 28, 9:41 am, Kofa elk...@gmail.com wrote:
I tried several times to make it work... i tried searching on google
but works for everyone but not for me
Can anyone tell me how to make an image clickable?? i mean, I tried to
use onClickListener and onClick but
Mark:
Is it awful obvious I'm new at this. Thanks for the tip - the bare
intent must be my problem.
I'm not used to all this obfuscation. I guess you just have to
memorize what calls what. Or read your book a few times :)
Thanks,
Nick Owens
VP Technology, ThreeClix
(847) 565-9392
On
Hi - on both the emulator and my actual phone (tattoo) I seem unable
to browse the SD card - when I run ddms and use the File Explorer, I
can browse /data or /system fine, but /sdcard refuses to open, and its
permissions appear to be d- (which of course might be the
problem).
Similarly
Hi,
I've been experiencing this problem too,
I don't rely on the order in which getView are called, but I do rely
on the position.
I noticed the *position* order (not call order) is reversed when I
turn on the onscreen keyboard, and back again when I exit it.
I've added a tag to the views i'm
Mark:
Oh, so I figured it out. There is some bug in the emulator I guess. I ran
into it once before and at the time, just assumed I had done something
wrong.
Basically, I created a new project from your sample Alarm service and ran it
to see if it would work on my emulator. Not only did it
OK turns out it was scaling ok. Not sure what happened.
On Feb 28, 12:20 am, rukiman ruksh...@optushome.com.au wrote:
How can I make that inner linearlayout scale correctly?
On Feb 27, 6:25 pm, James Wang jameswangc...@gmail.com wrote:
Pre-scale resource should be depend on density of
Nick Owens wrote:
Oh, so I figured it out. There is some bug in the emulator I guess. I ran
into it once before and at the time, just assumed I had done something
wrong.
Basically, I created a new project from your sample Alarm service and ran it
to see if it would work on my emulator.
Now I'm having a problem with aspect ratio. How does one handle for
this?
Getting the framework to rescale everything by density is not good
enough, there are some resolutions where the aspect ratio seems to
crop the game screen such as WQVGA400.
What can I do?
On Mar 1, 10:09 am, rukiman
You cannot compare the position and the tag of a previously bound
view. Like said before, there's no guarantee that a View previously
used at position=X will be reused at the same position. Do not rely on
this. At all. As for the convertView == null twice for the same
position that's probably
Evening all,
I had a quick questions around animations and what is going on. So I
have buttons in a vertical row down the side of the screen. Upon
clicking the last button the row animates and slides out at the top of
the screen. This works HOWEVER when the user clicks the same button
again (the
Loki117 wrote:
I had a quick questions around animations and what is going on. So I
have buttons in a vertical row down the side of the screen. Upon
clicking the last button the row animates and slides out at the top of
the screen. This works HOWEVER when the user clicks the same button
again
Hi Nick,
just another method (than the android:label):
you can hide the title bar with
requestWindowFeature(Window.FEATURE_NO_TITLE);
requestWindowFeature(Window.FEATURE_PROGRESS);
and create your own title bar.
I'm not sure what you want to do exactly so I'm not sure what'd be the
best
Hi Pierre, I have release a set of video android tutorials on
http://android.voxisland.com
and the free/sample chapter is on Intents. It should answers your
questions and provide you
some guidance to go further with Intents.
enjoy
On Feb 27, 4:41 pm, Pierre Henry phper...@gmail.com wrote:
Hey Mark thanks for the insight. I did indeed try to move the control
but I am getting a class cast issue (can't for the life of me work out
why) so I kinda gave up on that root. My layout am animating can you
shed any light? I am using the following chunks.
public void onAnimationEnd(Animation
Loki117 wrote:
public void onAnimationEnd(Animation animation)
{
if(arrowUP){
arrow.setBackgroundResource(R.drawable.arrowdown);
arrowUP = false;
Display display =
Hi Sean Hodges,
Thanks.
Now I can view the source code. I will take a look on this.
Rgds,
Mandy
On Feb 26, 4:47 pm, Sean Hodges seanhodge...@googlemail.com wrote:
On Fri, Feb 26, 2010 at 8:17 AM, DroidBy meikeng@gmail.com wrote:
I am happy that you give me a clue on this, however I am
Hi ZhangJun,
Thanks for yor input. But I do not understand how to make my lock
shows as like keyguard show. Can you provide me more details?
I have take a look into the PhoneWindowManager.java code, however I
meed more time to digest it. How should I make use of this
PhoneWindowManager.java? Can
Thanks a lot.
I just wanted to know if such things are possible and shud it be done.
I was havin a discussion on Intents and someone raised this question. After
thinking about it for a while and trying it out (obviously it didn't work),
I thought I'd ask for help on the forum.
What we were trying
Hi Romain,
It is not the problem that the value of the 'position' parameter in
getView is 'out of order' when getView is called repeatedly. The
problem is that the actual layout of the GridView (i.e. the GridView's
items) is reversed in some occasions.
When the layout is not animated, you won't
I responded to you, Mark, and Al over there yesterday, but nothing has
shown up. Perhaps I'm on moderation separately over there, as I've
not posted there before.
I'd rewrite the messages, no doubt better the second time, but that
would probably be incredibly confusing... :)
Bob Kerns wrote:
If I were to have one class(java non Android but within the same
Application) create a LinearLayout dynamically consisting of 'n' views
And then let us say we want to spawn a new Activity with this
LinearLayout in it then how would we do this.
Is there a good approach for this?
I do realize
Been exploring building a tablet based app. Some of the newer
(announced) tablets support full HD, 1366x768, up to a 15.6
touchscreen (Vega0).
I've been trying to create an emulator based on these specs but I just
hangs on launch. Creates fine, but doesn't launch.
Any ideas, settings?
Mahaloz,
and How can I change this
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
Hi,
Going through the ApiDemos sample code (in Android 2.1 platform), I
saw that there are two activities that make use of the Instrumentation
class: ContactsFilter and LocalSample. However, I'm having trouble
finding the menu that will launch any one of these activities from the
ApiDemos
Hi,
Full HD is 1920x1080 and greater.
Regards
On Mar 1, 2:50 pm, rooster 808 rich.al...@gmail.com wrote:
Been exploring building a tablet based app. Some of the newer
(announced) tablets support full HD, 1366x768, up to a 15.6
touchscreen (Vega0).
I've been trying to create an emulator
Hmm..nevermind I think I figured out why...it was disabled. Trying to
enable it now and see what happens...
On Feb 28, 10:15 pm, RCP2278 rcp2...@gmail.com wrote:
Hi,
Going through the ApiDemos sample code (in Android 2.1 platform), I
saw that there are two activities that make use of the
An API Im using in my Android application is opening a SQLite database
file:
public AndroidSQLiteDataStore() throws SQLiteException {
Logger logger = LoggerFactory.getDefaultInstance();
logger.information(TAG, OPEN CONNECTION TO DATABASE +
DB_PATH);
try {
Bob,
If it's your first post to the list you'll have to wait for the
moderator to approve it. It will come through, but even moderators get
the weekend off :).
Al.
On Mar 1, 2:41 am, Bob Kerns r...@acm.org wrote:
I responded to you, Mark, and Al over there yesterday, but nothing has
shown up.
Thanks for your prompt response.
Installing Java 5 is a pain, took me all day. I have forced built it
on Java 6. What next ? Is there some documentation out there to run
test cases on the build or some error.txt to identify errors that may
have occurred ?
MConDev Team
On Feb 27, 7:49 pm,
Hi,
System-Requirements Used:
=
Java 1.6, Android 2.0
Every Thing in Eclipse-Ganymade:
=
1) I did a android project and run it. It ran successfully.
2) Later i have develop a webservice and hosted it. Then i tried wrote
a client code to access the
My suggestion is to do as what Supporting multiple screens -
Resource directory qualifiers for screen size and density of dev
guards says.
If you sure to support WQVGA400, you should make specific layout and
drawable resource for it.
--
You received this message because you are subscribed to the
74 matches
Mail list logo