You can use Bitmap.createBitmap(.);
http://developer.android.com/reference/android/graphics/Bitmap.html#createBitmap%28android.graphics.Bitmap,%20int,%20int,%20int,%20int%29
I don't think you can do it from xml
On Feb 27, 4:30 pm, Marco Alexander Schmitz
OK I've found the answer in the TelephonyManager class
On Feb 21, 9:26 pm, Albert albert8...@googlemail.com wrote:
Hi all,
Is there any way at all where you can find in which country the phone
is currently in, let's say if I travel to Spain can I in code know
this information somehow
Hi all,
Is there any way at all where you can find in which country the phone
is currently in, let's say if I travel to Spain can I in code know
this information somehow. Using GPS is not good for me, but I know the
phone reconizes where it is, but I dont know if I can access that info
in code.
Hi there,
Can someone tell me how to create a progressDialog without the
background just with the spinner and the text(which is how the android
market when loading apps does it).
Also is it even possible to change the position of the dialog to for
example at the bottom instead of the middle???
Process.killProcess(pid); is killing the whole process
stopSelf() and stopService() stops the service but the process which
is still in the background and Android will kill it when needed.
You don't need to kill your process to stop a service, if you read
through the docs or this forum you will
hice una aplicacion para los moviles G1, usa un timer ya que muestra
un reloj, en este telefono me funciona a la perfeccion, se probo esta
misma aplicacion en un Nexus One, y cuando cambia a otra vista, la
aplicacion falla,
Make sure you change you manifest to support the latest SDKs,
What about this:
int pid = android.os.Process.myPid();
android.os.Process.killProcess(pid);
You exit the app asking android to kill your process. I think that
what is used in 3D games as most of them have and exit button, you
kill the process so that it wont drain battery and use memory.
Anyway
Hi there,
I have a widget which I developed using the 1.5 SDK, I am now looking
to make the necessary changes to make it work on 2.1. I have read the
docs regarding this and I have set my manifest as uses-sdk
android:minSdkVersion=3 / so that it can be used from 3 upwards.
What is unclear to me
, Albert albert8...@googlemail.com wrote:
solved! it appears that the emulator would not send the broadcast only
by not being connected, you also have to disconect it on the emulator.
Maybe in the future releases it will be better sync with the pc...
--
You received this message because you
Also I am implementing LocationListener() and I am updating my
location by requestLocationUpdates(...), so if my process gets killed
then I won't receive more location updates untill the alarm manager
fires the service again. Is this correct? How can I deal with this?
Thanks,
Alberto
--
You
Hi there,
I am seeing a curious behaviour in my app. I have a widget that gets
updated by a service every # hours, when the service finishes I stop
it, using stopService(new Intent(this, MyService.class));, the
widget if pressed launches an Activity. Now it gets interesting, while
im on the
Thanks String for your reply, I have indeed changed my approach there
and I am sending everything I need for my activity as Extras in the
intent. Still I find it a bit strange that the process gets killed
right after I exit the activity, it happens quite often and I do not
see on the log the same
Hi,
Im getting this error caused by VM( logcat below from emulator, it
also happens on the device)
This is a know bug filed at least 3 times with different issues
http://code.google.com/p/android/issues/detail?id=4450can=4colspec=ID%20Type%20Status%20Owner%20Summary%20Stars#c4
Hi,
Can someone see what I am doing wrong here, when I try to get the
extras I sent on my intent it always returns null
Intent activityIntent = new Intent(context, TopImage.class);
activityIntent.putStringArrayListExtra(com.mobile.dev.LIST,
mStringList); //mStringList is not null for sure
thanks is working now, it was exactly what you said, I was looking
into Intent and put/get Extras...
I had no clue of this PendingIntent behavior.
On Jan 9, 10:06 pm, Mark Murphy mmur...@commonsware.com wrote:
Albert wrote:
Hi,
Can someone see what I am doing wrong here, when I try to get
to communicate with the AppWidget
There are many examples given,you can check the android developer site
for this..
On Jan 6, 5:54 pm, Albert albert8...@googlemail.com wrote:
Does anyone knows how to achieve this???
Thanks,
Alberto
--
You received this message because you are subscribed
Does anyone knows how to achieve this???
Thanks,
Alberto
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
The problem is probably that the images are too big and android cant
handle it. Try this solution I used when I had the same problem:
http://groups.google.com/group/android-developers/browse_thread/thread/6e9f1d7541871a11/49e961dd26ea544e#49e961dd26ea544e
Hope it helps,
Alberto
On Jan 5, 4:17
Hi there!
I am trying to find a way to create a widget and the program on the
same app so that i can give the user the choice to add to the home
screen either the dynamic widget or the normal program, same
functionality for both except that the widget would run a service to
update every x hours
Thanks Mark for your answer, maybe I didn't make myself very clear,
the widget is the application, when added to home screen it launches a
configuration activity to let the user set his/her preferences, after
that's done it will run a service updating the widget. If you click
the widget you will
solved! it appears that the emulator would not send the broadcast only
by not being connected, you also have to disconect it on the emulator.
Maybe in the future releases it will be better sync with the pc...
--
You received this message because you are subscribed to the Google
Groups Android
Hi everyone,
I have a service that gets updated every x minutes depending on the
user preferences. This service connects to a web service and pulls
some data. If during an update the user has no connection I register
my receiver and start listening for changes
I am experiencing the same issue, i have been testing my app on my
phone(HTC Hero 1.5) and it would give me a UnknownHostException from
time to time, I can only fix it by restarting the phone. I hope they
have a team working on this as this is very critical to the
development on Android as it's
Thanks Mark for your fast replay, I will give it a try...
Alberto
On Dec 10, 11:50 am, Mark Murphy mmur...@commonsware.com wrote:
Hello there! Im making an app that displays some text at the top, an
image then a couple of buttons. I got the design in a linear layout,
and I need to place
Hello there! Is there an easy way to rotate a text to some degree as
with bitmaps??
Matrix matrix = new Matrix();
matrix.postRotate(15);
Bitmap rotated = Bitmap.createBitmap(originalBitmap, 0, 0,
width, height, matrix, true);
If there is not, can you
Hello there! Im making an app that displays some text at the top, an
image then a couple of buttons. I got the design in a linear layout,
and I need to place the text at the top partially overlaying the image
which is in the middle. I have tried the frame layout but is very
unflexible and it pins
On Aug 29, 2:49 pm, Michel Albert exh...@gmail.com wrote:
Hmmm... I am trying the same thing. The method with setPhotoData
does indeed run without a hitch. Except that the photo does not show
on the contact when displaying it with the default Contacts
application. I double checked both
Incidentally, I am also writing a small backup tool and had a problem
that sounds very similar to yours. I figured out, that adding photos
does not work properly on the emulator.
I added a new menu option which, when clicked, added a photo from a
binary stream to a hard-coded contact URI. When I
Nevermind. I got it to work. The new way to insert contacts is:
Uri newPersonUri = Contacts.People
.createPersonInMyContactsGroup(getContentResolver(), values);
On Aug 28, 4:45 pm, Michel Albert exh...@gmail.com wrote:
I am trying to insert a new contact, but, even though I get
Hmmm... I am trying the same thing. The method with setPhotoData
does indeed run without a hitch. Except that the photo does not show
on the contact when displaying it with the default Contacts
application. I double checked both the Uri and the bytearray. Both are
perfectly fine. The whole thing
I am trying to insert a new contact, but, even though I get a valid
URI back, the Contacts do not appear in the Contacts application.
Code:
ContentValues values = new ContentValues();
values.put( People.NAME, contact.getString(name) );
Uri uri =
,
Albert Pinto
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android
I have lots of discrete points and want to link them together
smoothly. How to do that? Is there any api to call ? Thanks a lot.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
Hi everybody,
Does anybody know how to get the screen dimension? Is there any
difference between the emulator and the real mobile on the screen
dimension? Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Don't you have any idea?
Thanks
On Apr 6, 10:41 am, Albert Hernández albert.hernan...@gmail.com
wrote:
I've a doubt related with the Projection class. As I understand this
class translate beetween Lat/Lon to coordinate system in the screen.
In which format is the coordinate system
Hi Henry,
Check this link, maybe it can help you:
http://blog.pocketjourney.com/2008/03/15/tutorial-1-transparent-panel-linear-layout-on-mapview-google-map/
On Apr 4, 10:46 am, Henry hsen...@gmail.com wrote:
I'm trying to make an app that requires me to draw over a layout with
buttons, etc.
I've a doubt related with the Projection class. As I understand this
class translate beetween Lat/Lon to coordinate system in the screen.
In which format is the coordinate system in the screen? Pixels? If I
want to calculate some geometrical calculations, will I be able? For
example a distance,
Hi,
We are using cupcake source for MMS . My query is regarding
database. senario is like this.
In canonical address already one address is stored ( ex ).
and when i am trying to send a SMS/MMS to 33 TO field it is adding
this message to the message with 3.
I have
101 - 138 of 138 matches
Mail list logo