All you need is an instance of a Context (Application, Service, or
Activity) to start an activity. If it's not an Activity, the intent
that launches the activity needs to have the flag
FLAG_ACTIVITY_NEW_TASK set on it. Any class and any thread can use
the Context to start the activity.
Doug
On
Why are you even trying to recycle a Bitmap? Do you know exactly what
you're doing with that method? Did you read the javadoc for that
method?
The only instance of recycle in your code is commented out, so you
should never even have the problem you're describing.
Doug
On Apr 7, 6:11 am, vani
Hi All,
I use Android 2.3 on NeuseOne.
Now, I use setPreviewCallbackWithBuffer to get preview callback and it
works well. But if I call takepicture, it will halt and I can not get
jpegcallback. But if I use setPreviewCallback, all things works well.
But as you know, its memroy is inefficient.
I
Make sure onNewIntent is overridden correctly. Should look like this:
@Override
public void onNewIntent(Intent intent) {
...
}
On 8 Apr, 16:11, Gorka gork...@gmail.com wrote:
Hi,
I am trying to read NFC tags with my Nexus S mobile.
In my Manifest file I have the intent filtered:
FWIW,
It's still not working for me - although it worked fine two or three
days ago.
Same phone, same account, same modified Dungeons sample. In fact, I made
no changes at all.
Now purchases for android.test.* are sent to Market, but never get any
response. This is as if I was running the
I am stuck at the part where you setup in app products. per the
Google guide it says not to publish the example but lto leave it as a
draft. Only problem is that the Developer Market won't let you
create in-App Products unless you publish it. So which is it to
publish or not to publish or am I
Disregard post as it was an issue with my browser, switched to Chrome
and everything is okay.
--
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
Hi all,
I am trying to make several apps that can listen to system states all
the time and give responses when there is any event happens. For
example, a battery state widget, but my widget doesnt work after a
certain period of time. I found that the problem is, the background
service is not
Hi,
I can't display Toast in my application:
I have this code but nothing happens. Any help please?
Many thanks and sorry for my english!
public void wakeonLan (){
try {
while (pruebaPing(maquina)){
Are you sure this code actually runs, and calls Toast? Add logcat printouts
just before Toast to make sure.
09.04.2011 13:13 пользователь David Tabernero davidt...@gmail.com
написал:
Hi,
I can't display Toast in my application:
I have this code but nothing happens. Any help please?
Many
Hallo Priti,
I can get a NfcA object using the getTag(tag) method.
NfcA myTag = NfcA.getTag(tag);
I then do a
[...]
retData = myTag.transcieve(apduCmd); //where apduCmd has a Select
AID cmd}
Right, you are supposed to get an exception with this. The NfcA tech
is for low-level access
Yes, I'm sure
I have:
public void wakeonLan (){
.
Thread.sleep(6000);
contadorDormido=contadorDormido+6;
Log.d(PRUEBA, No responde a ping despues de mandar el
paquete magico en... + contadorDormido);
Yes I'm sure.
I have:
public void wakeonLan (){
..
while (pruebaPing(maquina)){
//MIENTR=AS NO RESPONDA A PING. DORMIMOS 6 SEGUNDOS EL
PROCESO
OK. Try calling Toast from the UI thread. You can use Handler for this.
09.04.2011 14:10 пользователь ABSOLUT davidt...@gmail.com написал:
Yes I'm sure.
I have:
public void wakeonLan (){
..
while (pruebaPing(maquina)){
You may want to ask this question in a more appropriate group.
My uneducated guess is that you get the source code for the latest open
source version (ie NOT HoneyComb) from github and compile it for your
machine.
--
You received this message because you are subscribed to the Google
Groups
Ah, the juvenile excitement. Fond memories. Tell you what. Take your
keyboard, turn it keys down, and smash it on the table a few times. Maybe
the Caps Lock key becomes unstuck.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
On Apr 9, 11:13 am, David Tabernero davidt...@gmail.com wrote:
Hi,
I can't display Toast in my application:
I have this code but nothing happens. Any help please?
Many thanks and sorry for my english!
public void wakeonLan (){
try
There is no point in downloading all the SDK versions. Only download the one
you point to in MIN_SDK_VERSION and the one you point to in
TARGET_SDK_VERSION.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email
It is much safer (and easier) to use matrices for the scaling. You can then
use the same matrix for the touch event transforms.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hey guys,
I have a program that successfully accesses a gallery, allows a user
to select a picture from that gallery, and display that pic to the
user. I have tried to add a facedetector into this program but some
issues have arised, the picture is still displayed to the user but
when I try to
for the battery monitor an alarm manager is sufficient. No need to measure
the battery more frequent than, let's say, every five minutes.
for the music app use a foreground service. That is less likely to get
killed by the OS. Make sure it can easily be killed by the user though.
--
You
Hi,
I have a video list like;
*video1
*video2
*video3
And I chose one of these then I create a new video. My new video's
name is added in the videolist but doesn't display in the gallery.
To display the new video I have to restart the emulator.
How can I display the video without restart
Hi,
I am facing problem with list selector.
The code is as follows:
*1) Applied list selector in the listview layout*
ListView
android:id=@+id/android:list
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_weight=1
As I understand it, OpenSSL is a part of the standard build for
Android phones. Is there any way for an NDK app to access the OpenSSL
encryption interfaces?
I understand that one could simply compile a separate copy of OpenSSL
with the app, but, in addition to being stupid from a storage point
Thanks for ur reply =]
But what i wonder is, if i only update the battery state every 5 mins,
the update would be a bit too late.
I can see on the market there is some battery widget doing the same
(i.e. give immediate response when the phone is plugged to the AC),
how can i do the same??
for
On 9 April 2011 15:48, Eason dragonea...@gmail.com wrote:
Thanks for ur reply =]
But what i wonder is, if i only update the battery state every 5 mins,
the update would be a bit too late.
http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED
Besides, you
On Sat, Apr 9, 2011 at 10:42 PM, DanH danhi...@ieee.org wrote:
As I understand it, OpenSSL is a part of the standard build for
Android phones. Is there any way for an NDK app to access the OpenSSL
encryption interfaces?
Get Android source and build against the same libs/headers.
Interfaces
Use MediaScannerConnection to tell the MediaStore about the new video:
http://developer.android.com/reference/android/media/MediaScannerConnection.html
On Sat, Apr 9, 2011 at 8:23 AM, cervello eceooz...@gmail.com wrote:
Hi,
I have a video list like;
*video1
*video2
*video3
And I chose
On 8 April 2011 08:07, Williams Deepan will.m...@gmail.com wrote:
I have joined as new member.
Welcome.
for your kind reference , I am android developer.
Cool. That's quite unique here.
Regards,
Marcin Orlowski
*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
On Fri, Apr 8, 2011 at 7:59 PM, Jay SB jsb.andr...@gmail.com wrote:
If so, can I
easily target a range of devices (i.e. 3.0 and =3.0) or will I have
to jump through hoops?
It's not that hard, if your preferences will work OK all concatenated
together. Here's a sample project that uses
On Fri, Apr 8, 2011 at 4:26 PM, David Tabernero davidt...@gmail.com wrote:
Whenever I use this method InetAddress.isReachable to ping my pc it always
returns false even if I'm sure that's pc reachable
What can I use to ping my pc?
Ping and Java have never worked terribly well together, due
I was thinking the same hehe... xD
El 09/04/2011 12:49, lbendlin l...@bendlin.us escribió:
Ah, the juvenile excitement. Fond memories. Tell you what. Take your
keyboard, turn it keys down, and smash it on the table a few times. Maybe
the Caps Lock key becomes unstuck.
--
You received this
Just for apporting some search terms, I'll try to find something about
android cross-compiling for ARM architecture or similar...
El 09/04/2011 12:45, lbendlin l...@bendlin.us escribió:
You may want to ask this question in a more appropriate group.
My uneducated guess is that you get the source
Hi again,
I can't understand nothing.
I'm trying to execute a simple toast when the activity create but
doenn't show anything:
code:
public class ssh extends Activity {
/** Called when the activity is first created. */
public static final int PORT = 9;
@Override
public void
Hmm... that should work fine.
Are you running that in a real device? I've had problems not seeing Toasts
in the emulator...
2011/4/9 ABSOLUT davidt...@gmail.com
Hi again,
I can't understand nothing.
I'm trying to execute a simple toast when the activity create but
doenn't show anything:
The toast will only show after your code returns from onCreate, which it
should.
09.04.2011 19:01 пользователь ABSOLUT davidt...@gmail.com написал:
Hi again,
I can't understand nothing.
I'm trying to execute a simple toast when the activity create but
doenn't show anything:
code:
public
Hi,
I'm looking for any lib that allows me to apply some effects to images from
my android app. There are different effects I would like to apply, from
color filtering (ok, that's easy) to a polarized effect (adding the frame
around the image). I'll love to be able to use ImageMagick in Android
Hi all,
Is there anyone tried to use custom font for non-english characters? I see
that it's ok for english, but it doesn't work for Chinese etc.
Best Regards!
--
You received this message because you are subscribed to the Google
Groups Android
Hi,
As Android Market In-app Billing is now available to developers and
users to publish applications that use Android Market's in-app billing
service.
To implement this, i followed the instruction provided in
Implementing In-app Billing document carefully.
1. Downloading the Sample
I dont understand what do you say Kostya
I've installed the app in the devices but the Toast doesnt shows.
The complete Oncreate is:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.d(PRUEBA,
Should I do something like this? but it's not correct..
public void onCreate( Bundle savedInstanceState ) {
super.onCreate( savedInstanceState );
setContentView( R.layout.main );
ListView videoListView = (ListView)findViewById(R.id.List);
You have your Toast message inside an if, are you sure that condition is
satisfied? Also, if you uncomment the first toast, does it show?
2011/4/9 ABSOLUT davidt...@gmail.com
I dont understand what do you say Kostya
I've installed the app in the devices but the Toast doesnt shows.
The
You use the MediaScannerConnection when you add a new file to external
storage that the MediaStore needs. Your code below seems to have
nothing to do with adding new files to external storage.
On Sat, Apr 9, 2011 at 12:34 PM, cervello eceooz...@gmail.com wrote:
Should I do something like this?
the condition is satisfied. Anyway, I put other toast in the else
also. I uncomment the first Toast and nothing happens
On 9 abr, 18:38, luiX_ lui...@gmail.com wrote:
You have your Toast message inside an if, are you sure that condition is
satisfied? Also, if you uncomment the first toast,
Your code, as far as I can tell, runs inside onCreate. Android UI framework
is designed so that it expects callbacks like onCreate and others to return
control to Android within a reasonable amount of time.
Your code prevents Android from doing things in the UI, including showing
toasts (or
Many thanks,
I'm using now Asyntask and I'm using Toast in PreExecute and
PostExecute methods.
On 9 abr, 18:51, Kostya Vasilyev kmans...@gmail.com wrote:
Your code, as far as I can tell, runs inside onCreate. Android UI framework
is designed so that it expects callbacks like onCreate and
And does that work? :)
09.04.2011 22:35 пользователь ABSOLUT davidt...@gmail.com написал:
Many thanks,
I'm using now Asyntask and I'm using Toast in PreExecute and
PostExecute methods.
On 9 abr, 18:51, Kostya Vasilyev kmans...@gmail.com wrote:
Your code, as far as I can tell, runs inside
Yes, everything is ok.
Anyway, I didnt know that I cant use long operations inside oncreate
method. I'm trying to use asyntask or thread to do these things.
Thanks
On 9 abr, 20:38, Kostya Vasilyev kmans...@gmail.com wrote:
And does that work? :)
09.04.2011 22:35 пользователь ABSOLUT
dejeme a decirte que no tienes que ser un troll solo hay que leir y
decide si lo yo he escrito se le vaya ayudar. Tal vez puedo utilizar
mi keyboard a pegarle en la cara
On Apr 9, 6:48 am, lbendlin l...@bendlin.us wrote:
Ah, the juvenile excitement. Fond memories. Tell you what. Take your
i think it is because of threading..(ASYNC TASK),i.e UIThreading
thanks...
On Tue, Apr 5, 2011 at 10:48 PM, TreKing treking...@gmail.com wrote:
On Sun, Apr 3, 2011 at 3:39 PM, Saurabh Patil hi5ranjits...@gmail.comwrote:
some times it shows me message to force to close without any changes to
i think it is because of threading..(ASYNC TASK),i.e UIThreading
thanks...
On Wed, Apr 6, 2011 at 12:32 AM, Justin Anderson magouyaw...@gmail.comwrote:
When you get an exception, what does the stack trace say the cause of it
is?
Thanks,
Justin Anderson
MagouyaWare Developer
then we would be able to read his expression.
On Apr 9, 3:07 pm, scott scottlu...@gmail.com wrote:
let me tell you do not have to be a troll just have to Leira anddecide if I
wrote it will help.Maybe I can usemy keyboard to hit in the face
On Apr 9, 6:48 am, lbendlin l...@ bendlin.us wrote:
On Fri, Apr 8, 2011 at 12:06 PM, Dustin r.dustin.l...@gmail.com wrote:
Tor,
Thanks for the input. I was not aware of the New Android XML File
wizard. I was just creating a new folder called Menu and then
placing a new xml inside it called menu.xml. After trying the
wizard, everything seems
I still try but first off all can you tell me what the uri means here??
--
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
There is no Uri. The parameters to scanFile() are a path and a MIME type.
On Sat, Apr 9, 2011 at 5:28 PM, cervello eceooz...@gmail.com wrote:
I still try but first off all can you tell me what the uri means here??
--
Mark Murphy (a Commons Guy)
http://commonsware.com |
But in onScanCompleted one of the parameter is the uri..Shouldn't I
use this function?
Can you write an example code? I couldn't find how it should be.. I'm
confused..
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group,
On Sat, Apr 9, 2011 at 7:47 PM, cervello eceooz...@gmail.com wrote:
But in onScanCompleted one of the parameter is the uri..Shouldn't I
use this function?
If you use the other flavor of scanFile, one that takes a
MediaScannerConnection.OnScanCompletedListener object, you will need
to implement
Getroffene Hunde bellen
Let me say it differently: All capitals is perceived as shouting on the
intertubes. Your finding will be more effective if you use normal spelling.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
Anyone know how to make this function do a green hue
android.graphics.Canvas.drawBitmap(Bitmap bitmap, float left, float
top, Paint paint)
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
I think the problem is that your RestaurantInfo needs to implement
toString() so that it can be filtered on correctly.
On Apr 2, 12:19 pm, Igor Nesralla Ribeiro nesra...@gmail.com
wrote:
Hi,
i have a edittext and a listview ... I want to do thiswhen the users
type on a edittext this will
I am having some difficulty compiling the source code. This post is
largely posting my problems and solutions that I was unable to find
anywhere else.
(I have been following the directions from here:
http://source.android.com/source/downloading.html)
Repo seems to be downloading the code without
61 matches
Mail list logo