Try creating a new workspace.
On Jan 26, 2012 10:06 AM, "stringa" wrote:
> Hello. There was a time where I tried to setup an emulator launch
> option in Eclipse, since then, I have removed the string. I keep
> getting the following error. I've reinstalled the SDK, I've deleted
> and re-created
Hi aMeeN
The LogCat view is your friend. The cause of the error will always be
displayed there. To display the LogCat view in the current perspective in
Eclipse go to Window->Show View->Other->Android->LogCat.
When I ran your code, I saw this in the LogCat view:
06-19 21:34:29.586: ERROR/Android
The Message object contains two int fields arg1 and arg2 in addition
to the what field to store extra data. To pass a boolean value within
the message I would make use of of arg1 by mapping true to one and
false to zero.
On Apr 18, 9:40 am, DevilMayCry wrote:
> Hi All ,
> I am calling a remote s
Activity.findViewById() is different from View.findViewById().
The former uses the View set via setContentView() as the root and the
later uses this View as the root. In other words, in order for ...
findViewById(R.id.checkbox);
... to return a non-null View the button must be a child of your v
bject
allocation in Java. =)
On Apr 4, 10:54 am, Ikon wrote:
> Does that really help? I mean, is GC that bad?
>
> On Apr 4, 4:03 am, Greg Krimer wrote:
>
> > That sounds fine to me. Just remember to respect the clip rectangle
> > (canvas.getClipBounds()) and ideally not spend
Hi,
A good place to start is to look at the ApiDemos application to see if
there is anything there close to what you want. The best I found is
com.example.android.apis.view.Animation2, which uses a ViewFlipper to
transition from one view to another with various animations. It's not
exactly what w
That sounds fine to me. Just remember to respect the clip rectangle
(canvas.getClipBounds()) and ideally not spend time computing Paints
for areas outside the clip.
Also, don't create a new Paint object in onDraw(). Create the Paint
object once, store it in your view and re-use it on every draw
o
Your code looks fine to me. I have used similar code without problem.
Is it possible that some of your images are corrupt?
Check the logs. When BitmapFactory.decodeStream() returns null it logs
a single-line error message such as:
04-04 00:55:14.184: DEBUG/skia(31069): xxx jpeg error 53
Hi Taísa,
I am reversing the order of your questions.
> Did you say the main thread has its own handler?! So, if mine no more
> exists, the it will handle that message?
As Dianne said, your handler is not associated with the activity. The
behavior of your handler is not influenced by the state
wondering if someone can shed some light on this comment in the
Android source code.
Thanks,
Greg
On Mar 10, 4:08 pm, fadden wrote:
> On Mar 9, 7:17 pm, Greg Krimer wrote:
>
> > I have been finding it convenient to extend Handler in many of my
> > activities to handle messag
Hi, I am confused. Which project is running A or B? Is
com.example.A.test1 in project A or B?
What is the type of the object that you do create? Try this:
Object tmp = c.newInstance();
System.out.println(tmp);
Is framework/base in project A or B?
Finally, and this may not be important at all,
What do you mean readBytes never gets set to -1? Is the code going
into an infinite loop? Or are you stepping though it in a debugger. In
the later case, it would take a *very* long time for readBytes to be
set to -1 because you are reading and writing one byte at a time.
I am not sure if this is
My strategy for analyzing traces is to simply drill down on the child
with the largest percentage until I get to a method called from my
activity or the callstack is exhausted without reaching any of my
methods.
In the warm trace, for example, starting at the top level I drill down
on the followi
Well, I have not seen an example of exactly what you're doing, but
it's pretty easy. Since the data is not in an array or cursor, I would
extend BaseAdapter to create my own adapter for this data to drive the
list view. The data should probably be in some sort of collection that
the adapter can op
Hi everyone,
Is there an easy way to inject a header into all HTTP request sent
from the emulator, including HTTP requests made by my app and also by
the built-in web browser? I need this ability to model the behavior of
a carrier gateway. I tried running the emulator through Fiddler as a
proxy b
If you don't want buttons then you probably don't want to use
AlertDialog because an AlertDialog has to have at least one button.
Instead, use the Dialog class that AlertDialog extends. A Dialog can
display any view hierarchy you want. You can then attach listeners to
one or more views in your hie
Hello,
I have been finding it convenient to extend Handler in many of my
activities to handle messages specific to the activity. The handler
sublass is an inner class of the activity and needs to access its
state. I am wondering if there is any performance difference between
making the handler su
Did you add the following permission to your manifest:
Can you check the log to see if you have an error?
On Mar 9, 8:55 am, c6bro wrote:
> Hi,
>
> I am using the below to get the mobile number of the sim card which is
> inserted in the phone however it will not retrieve the number except
> r
You might consider putting session state into your own application
object. Make your own application class by extending
android.app.Application and specifying the application class in your
manifest. Every activity can access the application object by calling
getApplication().
On Mar 9, 9:46 am, z
I think you just need to declare the android namespace. Try
http://schemas.android.com/apk/res/
android"
android:id="@+id/carousel_row_layout"
android:gravity="left"
android:layout_width="fill_parent"
ent
> > > selector, or draw it on top (which requires a different selector
> > > anyway since the default one is opaque) or make your list items'
> > > background support the selected state.
>
> > > Also, instead of setting a single solid color, you should us
Hi Mariano, have you tried profiling your app? The profiler is the
ideal tool to tackle a fuzzy performance problem like this, I would
think. You can even upload the trace file here allowing us to analyze
it. This is probably nothing new, but when profiling try to exercise
the area that's sluggish
Hi, I think the behavior you are observing is by design. Have a look
at this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/3d96af1530a7d62a/9f9919a4b604c104?lnk=gst&q=clickable+focusable#9f9919a4b604c104
On Feb 19, 2:21 pm, Gil wrote:
> If the linksClickable pro
gt; true..
> We have a constructor like -- RelativeLayout.LayoutParams(Context c,
> AttributeSet attrs) --...
> Can u please tell me how to use attribute set?? or ne other method for
> setting align parentbottom to true?
>
> On Feb 17, 1:04 pm, Greg Krimer wrote:
>
> >
Can you check the return value of:
is.read(bitmapData2);
There is no guarantee that you will get all the bytes in one call to
read, even with the buffer.
As a quick fix try this:
(new DataInputStream(is)).readFully(bitmapData2)
If that works, I still would recommend writing your own readFully
See the section on Layout Params here:
http://developer.android.com/guide/topics/ui/declaring-layout.html
I think you need to call setLayoutParams() on your image view and pass
in an instance of the layout params that corresponds to the view group
containing your image view. For example, if your
Did you mean:
Anyway, I can confirm that it indeed does not work.
But this does (in the sense that the title bar is absent):
How odd. I'd like to know what's up with this, too. Anyone have any
ideas?
Thanks,
Greg
On Feb 16, 9:51 am, Adrien Guichard wrote:
> if I do add the property:
>
Hi, can you check out this thread to see if it is the same problem you
are having:
http://groups.google.com/group/android-developers/browse_thread/thread/ccb475c855e8785a/05a180ddac2c702c
Basically, try setting the text color to an explicit value (as opposed
to a style).
Also, have a look at:
There are several free file-browserish apps on the Android Market.
Search for "file" and you will get a list of them. But keep in mind
that in Android each application gets a private directory /data/data/
/ the contents of which you will not be able to examine
without root access. You should be ab
DDMS is indeed the tool for the job. You may want to check out
Romain's recent post on the subject on the Android blog:
http://android-developers.blogspot.com/2009/02/track-memory-allocations.html
I think you have to configure something to get your app to be seen by
DDMS on a real device. I canno
Transitioning to a previous activity via the Back hard-key should be
handled by Android for you (unless you are capturing the Back key
event yourself, which does not sound like what you are doing because
onPause() of your second activity is getting called). The only way I
have screwed this up is w
The R class is created in the package that is associated with your
application, Pack1 I am assuming. To access it from another package
you do the same thing that you would do with any other public class
that you wish to access outside of the package in which it resides:
either fully-qualify it whe
Hi Mark, if you are asking how to make a POST request then I would
have a look at the the java.net.URL and java.net.HttpURLConnection
classes.
Here is the gist of it:
URL u = new URL("http://your.remote.api...";);
HttpURLConnection http = (HttpURLConnection) u.openConnection();//
create an H
Hi Mark, if you are asking how to make a POST request then I would
have a look at the the java.net.URL and java.net.HttpURLConnection
classes.
Here is the gist of it:
URL u = new URL("http://your.remote.api...";);
HttpURLConnection http = (HttpURLConnection) u.openConnection();//
create an H
34 matches
Mail list logo