My understanding is that almost all calls are made on the main
dispatch
thread, including the onCreate call. The only exceptions are calls
from specialized
threads like the OpenGL drawing thread.
This means calls are always sequential, and in particular onCreate and
onProgressChanged
will be
Hi all,
I have some requirement as given below:
I have to write an email app that should send a mail to the particular
mail id.
I have written a code like this:
Intent i = new Intent(Intent.ACTION_SEND);
i.putExtras(Intent.EXTRA_MAIL,abc.gmail.com);
i.putExtras(Intent.EXTRA_SUBJECT,subject);
On Nov 21, 2009, at 12:12 AM, manoj wrote:
It is working fine, I mean sending the mail to the reciever.
But it is launching another Email app (android default app I guess).
But I dont want it to be launched, I want directly send the mail to
reciepent.
Then you will need to write ESMTP
Extracting just a single tile out of JPEG file is a really big PITA
There are about 27 different variants of JPEG (though not all really
matter
and are widely used)
Usually you've got 8x8 tiles in row-order, and because of entropy
encoding
you can not navigate just to random tile - you'll
Hi all,
Can anybody please confirm, that button.setHeight and button.setWidth
is not changing the height and width of buttons at the run time ? I am
using android 1.5
regards
Jagat
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
Hi,
I am using android 1.6. In that , its working fine, but setHeight()
and setWidth() are pretty straight forward, nothing complex in that.
You are creating button in code right ?.
Thanks
On Nov 21, 3:00 pm, Jags jag...@gmail.com wrote:
Hi all,
Can anybody please confirm, that
thanks for replying,
i was wondering that too, i wrote a plain code, there it works. is my
linearlayout restricting it ?
i have my layout defined as below
LinearLayout android:id=@+id/LinearLayout01
android:layout_width=fill_parent
android:layout_height=wrap_content
Thanks for responding!!
Well!! I am working with emulator currently and the behaviour is same.
I have confirmed from the logs that the service is not crashing. All I
could observe from the logs that System is killing the service(and
hence the process) as its not a system service.
your service is
I guess as my linearlayout's width is wrap_content, it will expand
when my button expands. width might not expand, because of the weight
= 1 factor
On Nov 21, 4:38 pm, Jags jag...@gmail.com wrote:
thanks for replying,
i was wondering that too, i wrote a plain code, there it works. is my
Hi Nishant,
Just try getLine1Number() in the TelephonyManager. It may help
Thanks
Nithin
On Nov 21, 11:57 am, Nishant nish...@saltriver.com wrote:
Hi,
Is it possible to fetch Owner Mobile number.
I have got the operator name but not able to fetch the Mobile Number.
Which intent will be
Ash wrote:
your service is not using a background thread
Well my service is a multi-threaded application but not sure what you
mean here.
Your service presumably implements some combination of onCreate(),
onStart(), onBind(), and onDestroy(). It might also implement some other
callbacks,
ok ! setting the buttons' height and width to wrap-content, worked !,
but it screwed something else in the application.
Is there a possibility that i have 5 linearlayouts in main.xml, and i
start displaying with 3 linearlayouts and ad one by one after some
time ? what woyld that code be ?
i have put 6 linearlayouts in the main.xml file vertically arranged in
the main linearlayout. initially i want 1, 2, 3 and 6 ll to be
displayed, then after sometime, 1, 2, 3, 4, 6 and then after some time
1, 2, 3, 4, 5, 6
is it possible ?
regards
Jagat
--
You received this message because you
Jags wrote:
i have put 6 linearlayouts in the main.xml file vertically arranged in
the main linearlayout. initially i want 1, 2, 3 and 6 ll to be
displayed, then after sometime, 1, 2, 3, 4, 6 and then after some time
1, 2, 3, 4, 5, 6
is it possible ?
Set the visibility of the ones you do
Hmmm, I used that but I can't decipher what it's saying
11-21 06:04:48.388: WARN/dalvikvm(776): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
11-21 06:04:48.396: ERROR/AndroidRuntime(776): Uncaught handler:
thread main exiting due to uncaught exception
11-21
Hi friends
I have to restore factory settings of phone programmatically..Is
that possible?if yes,How can we do tht?
Thanks in Advance
Nemat
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Breezy wrote:
Hmmm, I used that but I can't decipher what it's saying
snip
11-21 06:04:48.487: ERROR/AndroidRuntime(776): Caused by:
java.lang.NullPointerException
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
com.example.comparibook.CompariBook.onCreate(CompariBook.java:65)
I was doing that but i was doing INVISIBLE and VISIBLE, so invisible
layout was still occupying layout space. So I used GONE and VISIBLE.
this worked. I am a moron :) it should have struck to my mind
anyways, hope it helps somebody else
thanks and regards
Jagat
On Nov 21, 6:07 pm, Mark Murphy
Hi All,
I am trying to write a recorder app (android 1.6).
I have used the following code:
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
I spent quite a long time trying to get my first custom dialog box to
work, following the example in the Android Dev Guide.
Specifically:
http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
---
Context mContext = getApplicationContext();
Dialog dialog = new
Hi,
Not sure if anyone else is experiencing this. My G1 will randomly
restart itself up to two times a day. Found this in DDMS as the
possible cause. I'm wondering if my app has anything to do with it,
but I doubt it since my app is usually closed or will have been idle
for hours when this
Does anyone have suggestions on this?
I appreciate the help!
On Nov 19, 5:38 pm, jsdf jasons...@gmail.com wrote:
Hi all,
A quick question (for those who know the answer, anyway):
In my app, user starts a service and shows a notification from
activity A.
The notification creates a
Hi,
I have tried it in emulator. It should return 5554
But it gives me another number.
Thanks Regards,
Nishant Shah
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
On Nov 21, 12:28 pm, Jags jag...@gmail.com wrote:
linearlayout.setvisibility=invisible is not the solution because ll is
invisible but it is aquiring screen space. i want that screen space
free, so that the buttons are arranged perfectly
so use GONE instead ov INVISIBLE
--
You received
Sukumar,
I see the exact same behavior in my code. It's confusing. Everything
seems to be setup properly, but the system never invokes by
implementation of AbstractAccountAuthenticator.
My assumption was that by defining the proper service and intent in
the manifest, the account settings
Dan,
I didn't see this call in your current Google code project. Is your
use of AddAccountExplicitly() in there?
Cheers,
Jerry
On Nov 20, 7:53 am, Dan Dumont ddum...@gmail.com wrote:
Yes. But I make the AddAccountExplicitly call in my Authenticator. You
use the AccountManager to create
This is for a touchscreen application. If I press a finger down and
drag it around, I would expect that getPressure and getSize would give
me a different value as I change how hard I press while dragging.
However, both of these methods always return the initial value from
the first MotionEvent
Dan,
Now I see what you are doing in your code and found the reference to
AddAccountExplicitly(). I want to skip returning an intent to fire
the an AccountAuthenticatorActivity and instead to return
KEY_ACCOUNT_NAME and KEY_ACCOUNT_TYPE directly from my
AbstractAccountAuthenticator's addAccount
Like some others suggested pre-process the large file, break it up in
smaller chunks, each chunk being a proper JPEG
Then put all the chunks in a RandomAccessFile or a database. Be sure
to be able to find the chunks by a row and column index.
Then put this RandomAccessFile or database on your
Okay, I see. So what would be a solution to an error like that? I'm a
PHP programmer in which I can write some sloppy code... I'm sort of
lost on that.
On Nov 21, 6:24 am, Mark Murphy mmur...@commonsware.com wrote:
Breezy wrote:
Hmmm, I used that but I can't decipher what it's saying
Today I received user feedback from a Droid user that my app The
vOICe for Android (one can find it on the Market by searching for
seeingwithsound) causes the Motorola Droid to shut down (really?)
within half a minute.
I tested my app on ADP1 (Android 1.6), where I've just had it running
for over
Can you show us the code you used to create the PendingIntent?
On Nov 21, 7:04 am, jsdf jasons...@gmail.com wrote:
Does anyone have suggestions on this?
I appreciate the help!
On Nov 19, 5:38 pm, jsdf jasons...@gmail.com wrote:
Hi all,
A quick question (for those who know the answer,
2009/11/20 Cédric Berger cedric.berge...@gmail.com
But if your service process is killed due to low memory, won't the
system try to restart it later ? (though of course if there are still
too many services running there is still a problem)
Yes if the service was started with startService(),
Hi please post questions about the platform implementation in
android-porting, thanks.
On Fri, Nov 20, 2009 at 10:16 PM, android-newbie k...@itsaver.com wrote:
I have read and learned that Windows manager creates surfaces for the
application on Android, but not able to understand how this
Hi,
i am also facing the same problem with android 1.6, i am sending
coordinate through telnet but LastKnownLocation is returning null, m
using android 1.6 eclipse window vista, am i doing anything wrong in
Java code, can please send me java code. is it require any changes in
menifest except
Null is a valid return value from this method. The documentation says
If the provider is currently disabled, null is returned. Possibly
there other situations when there is no known last location.
Thanks,
its working now, i was making mistake in Java side. its working
through telnet and DDMS both in windows.
thanks a lot
On Nov 22, 1:25 am, jotobjects jotobje...@gmail.com wrote:
Null is a valid return value from this method. The documentation says
If the provider is currently disabled,
android-developers@googlegroups.com wrote:
=
Today's Topic Summary
=
Group: android-developers@googlegroups.com
Url:
Does anyone know where the various arguments to shell dumpsys are
listed?
Four variations I have found are:
dumpsys
dumpsys activity
dumpsys activity service
dumpsys activity.services
The last two are similar but not identical. I suppose there are other
valid arguments
--
You received this
Thanks for the responses.
So basically
name=my_attr
and
name=com.example.android:my_attr
works. But not the xmlns approach used in widget styling.
And thank you Edward for bringing this up. I almost forgot I had this issue
standing.
On Mon, Nov 16, 2009 at 7:57 PM, Dianne Hackborn
Any of you folks tried this on a Droid?
Simply installing the project that contains an Authenticator in the
manfest and the other related items seems to cause the Add Account
option in the account list on te droid to simply reoot the phone with
an exception.
Anyone else seen this or find a way to
Ok I have put this in my manifest
supports-screens android:anyDensity=false
android:largeScreens=false android:normalScreens=true
android:smallScreens=false android:resizeable=false/supports-
screens
first of all what is the resizeable attribute? It does not seem to be
documented.
This is
rukiman wrote:
This is working almost 90% for my game except when testing in WVGA
screen resolution, all my images are scaled incorrectly, it is longer
vertically than horizontally. I was expecting the screen compatibility
to maintain aspect ratios as that of HVGA.
No.
DROID has been
Hi,
I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my
app. It has one feature I don't want though - it restarts the target
intent, instead of just resuming it. Example history stack, with
activity D making the call to B with that flag:
A B C D
new stack
A B
but 'B'
Mark Wyszomierski wrote:
Hi,
I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my
app. It has one feature I don't want though - it restarts the target
intent, instead of just resuming it. Example history stack, with
activity D making the call to B with that flag:
A B C
Hi Mark,
Here's the call:
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP |
Intent.FLAG_ACTIVITY_CLEAR_TOP);
same behavior though, 'B' gets its onCreate() method called. I added
an override for onNewIntent() just to see if it would be called, but
it isn't either, I must be missing something
I thought I'd create my own specialized LinearLayout so that I can
calculate the aspect ratio and center vertically. My game is only
designed to be played in portrait mode. However this code doesn't seem
to work. Spot what I am doing wrong?
import android.content.Context;
import
I just put harcoded fake values for time being, instead of centering.
I was expecting everything embedded with the linearlayout which is my
main layout to be shrunk by the top and bottom margins I specified.
On Nov 22, 1:25 pm, rukiman ruksh...@optushome.com.au wrote:
I thought I'd create my own
Ok this does work if you add the following to your activity definition
in the manifest file:
android:launchMode=singleTop
Thanks
On Nov 21, 8:15 pm, Mark Wyszomierski mar...@gmail.com wrote:
Hi Mark,
Here's the call:
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP |
Hi,
I'm just investing how crashed services are restarted. I've developed a
simple service and use a taskkiller from market place to kill the
application. Following are the logs after application is killed
Uninstalling the process test.sys
Force removing process ProcessRecord{432d6ad0
Hi,
I'm having trouble retrieving image references from my database and
then setting them to an ImageView. When I pass R.drawable.icon into
my database its compiled and stored as an Integer. how would I then
pull this Integer out and use ImageView.setImageDrawable(); ???
--
You received this
Nevermind, got it.
On Nov 21, 9:56 pm, JasonMP hyperje...@gmail.com wrote:
Hi,
I'm having trouble retrieving image references from my database and
then setting them to an ImageView. When I pass R.drawable.icon into
my database its compiled and stored as an Integer. how would I then
pull
I've put some debug prints in onCreate method but they are also not printed
which means service is never restarted. Any help ?
On Sun, Nov 22, 2009 at 1:53 PM, shahzad ahmad shahzad.s.ah...@gmail.comwrote:
Hi,
I'm just investing how crashed services are restarted. I've developed a
simple
Your authenticator is launched when the Service returns the binder for your
authenticator class.
Look at what the service in the project is doing.
On Sat, Nov 21, 2009 at 7:07 PM, NitroDesk gsuku...@gmail.com wrote:
Any of you folks tried this on a Droid?
Simply installing the project that
I get that exception in the emulator ( doesn't reboot though )
I thought it was due to missing pieces of the emulator...
does logcat output anything?
On Sat, Nov 21, 2009 at 7:07 PM, NitroDesk gsuku...@gmail.com wrote:
Any of you folks tried this on a Droid?
Simply installing the project
Its ImageView.setImageResource();
On Nov 21, 10:01 pm, JasonMP hyperje...@gmail.com wrote:
Nevermind, got it.
On Nov 21, 9:56 pm, JasonMP hyperje...@gmail.com wrote:
Hi,
I'm having trouble retrieving image references from my database and
then setting them to an ImageView. When I
just wanted to tell that the service is started with alarmmanager using
setrepeating method. is this the reason for service not restarting ?
On Sun, Nov 22, 2009 at 2:03 PM, shahzad ahmad shahzad.s.ah...@gmail.comwrote:
I've put some debug prints in onCreate method but they are also not printed
just tested it with startService but still service is not restarting even
though system is displaying scheduling restart of crahsed service
On Sun, Nov 22, 2009 at 2:25 PM, shahzad ahmad shahzad.s.ah...@gmail.comwrote:
just wanted to tell that the service is started with alarmmanager using
I was at Shenzhen last week. It is strange that the google sync
doesn't work in Shenzhen, but it works perfectly in Beijing. I hadn't
modified any settings. And in Beijing, both CNC network and CMCC APN
work fine.
Best regards,
On Sat, Nov 21, 2009 at 9:26 AM, shimsim shim@gmail.com wrote:
I had never seen so much use required of OR until I started doing
Android application development.
On Nov 21, 5:07 pm, Mark Murphy mmur...@commonsware.com wrote:
Mark Wyszomierski wrote:
Hi,
I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my
app. It has one feature I
My Droid restarts about once a day. This discussion probably belongs
another board, perhaps Android discuss, or as a bug report.
On Nov 21, 6:38 am, Mark Wyszomierski mar...@gmail.com wrote:
Hi,
Not sure if anyone else is experiencing this. My G1 will randomly
restart itself up to two times
If my app runs for more then half an hour on the G1 it will fail on
inflating views from xml, giving an error about insufficient memory
creating a bitmap. Another issue, which may be a side effect is that
global static strings that are assigned at startup become null.
I have worked around that
My OpenGL app animates only every now and then, so I decided to use
RENDERMODE_WHEN_DIRTY to save some battery life. However, I found that
when I go to Home Screen and return to my app, I often get a black
screen, and I see this in logcat:
E/SurfaceComposerClient( 6055): using an invalid surface
Hi
i want to pair with a device using android 2.0
how can i do that
there is no method does this ..
thanks
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
64 matches
Mail list logo