I'm subclassing BaseAdapter to simply serve up images for a GridView based
on internal data.
The main UI allows the user to drag these images 'off' the grid. The drag
image is a separate ImageView vying for Z order with the grid in their
parent layout. Whenever I reposition the drag image usin
Missing closing quotes ( before the /> ) on the following 2 lines:
(and
--
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
(To the OP)
I may be missing something here, but why do you use a cached reference to
package B's context?
I believe you said that trying to grab the context after B has been
uninstalled fails, as expected - so why not use this as a test to see
whether A should be allowed to go ahead and use
I've create an object class but it cannot work. any mistake of my code?
private void setName() {
// TODO Auto-generated method stub
getNameText();
for (int i=0; iplayer.setPlayerName(name); // name is a String get from EditText by some
code before
}
}
when I run the programme, it have the
In my app a make button which is function to open item which has been open
before that-back button...but i whant to implement that function in button
on
android phone...button looks like arrow...
In your the activity you launch from your first button:
@Override
public void onBackPressed()
{
It does seem to decode the string into bytes(ie: not null), but the image
that is
made from thos bytes by the bitmapfactory is null. --
You need to confirm that the decoded bytes at the client end match the
original bytes at the server end. Can you manually download the image in
question and
means if more than 9 icon images the the other should include to the
next page like in applications list as grid.
can anybody suggest me to implement this
Take a look at the ViewPager class.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" gro
issue is in single alert box we display 16 buttons with different back
ground colors and we handling the listener for getting the result
which button is clicked(setonclick listener) but button is not
actionable(requirement is Color selector box).
It seems unlikely that just changing its colour
I don't know how to use this .vcf file to import all these contacts
using code. The .vcf file contains all the details of all contacts
including photos etc.
Please try to use search engines to find what you need before asking. A
Google search took 5 seconds:
http://en.wikipedia.org/wiki/VCard
and then it will be PackageManager manager =
this.getPackageManager();
Not quite. In a static method, there is no 'this' because the method does
not belong to an instance of the class - but to the class as a whole. You
will find that it won't compile.
Inside your isProInstalled() method, usi
>Well the problem is that iam trying to make somthing happen that iam
>not really understand (iam trying to learn)
>
>So what i wanna do is to "grabb" the "return true" or the "return
>false" so that i could create my if statement.
In that respect - using the static function call to grab the resul
>And that will throw me a NullPointerException.
>I guess that its something simple, but maybe somebody could point me
>in the right direction here?
This is the variable you have declared as the parameter:
protected static boolean isProInstalled(Context __context__) {
This is what you then
what will be the requirement and proposal of stock brokerage apps for
android apps that
i have to develop the apps should have following features so pls help me in
making of
apps requirement and proposal of the apps.
Even if this were the most appropriate group for your question, you are
unli
So I am trying Google Drive, but I did not found any suitable APIs or
example to implement.
I have gone through API documentation of Google Drive, but not able to
implement.
It seems you have to use the Document List API, as Drive is currently aimed
at Chrome.
See:
http://stackoverflow.com/q
I don't know whether my expected behavior is correct.
I would say it *is* correct. Consider the case where your phone is in
someone else's hands, and a call comes in that is of a sensitive nature.
Would you want them answering that call and pretending to be you?
Until the process of authoriz
Has anyone tried out Ms-Healthvault with android. I search it for 2 days
and all i
got is HealthVault Java Library .
I follow all steps successfully but unable to figure how to get start with
basic application.
Have you also followed the 'Getting Started' steps outlined here:
http://healthvau
How to change that-to refresh
SDK,to show automaticly picturs without unmounting...thank for share
('SD card', not 'SDK' - the SDK is what you're using to write code {:v) )
Try this link:
http://androidforums.com/droid-support-troubleshooting/21652-refresh-gallery.html
--
You received this me
Subject: [android-developers] Error reports where none of the stacktrace
elements
relate to your code?
For example, in the Developer Console, I got this:
Does this indicate a bug in the SDK?
Unfortunately, not necessarily. Consider a situation where you set some
undesirable data into a View
I am reviewing code of an application that contains only one activity but
more than 12 screen
application flows with change in layout of this activity.
I need your suggestion that it is better way to work or not ??
There is one train of thought that says 'If it ain't broke, don't fix it' -
so t
What exactly is the problem here? You get three buttons, that equally fill
the parent vertically.
Please try to be a little more specific about the problem - state what you
expected, and what you got (in case it doesn't match what somebody else
might get).
--
You received this message becau
Window window = screenDialog.getWindow();
WindowManager.LayoutParams wlp = window.getAttributes();
wlp.gravity = Gravity.CENTER_HORIZONTAL;
but it is not setting.
At the risk of this being a silly question... you *are* calling
setAttributes(wlp) afterwards, yes? {:v)
*Allege
I want to hide border of dialog.
It appears that you have to use a custom theme for the dialog - for example:
Dialog dialog = new Dialog(this,
android.R.style.Theme_Translucent_NoTitleBar);
(I don't know how to create themes, so you'll have to search for a
tutorial.)
The full StackOverflo
I have created dialog box dynamically
I am setting backgroung image of that dialog
but the image is not covering whole screen of dialog.
Which part of the dialog is still showing? If it's the title, then use
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
--
You received this message
here it is..This is the adapter class and in it there is a click on
holder.productName where
i am displaying the dialog..
There are a couple of questions you didn't answer:
1) How do you know it isn't getting to the click handler? Are you seeing the
dialog appear, but not get dismissed? Are y
In my custom dialog i have a Listview , on which i am invoking
OnItemClickListener()
but it is not detecting..
What can be the problem
Showing us the code would help... the part where you add the listener and
how you get a reference to the list view you add it to, and the listener's
onClick()
I'm developing this app using API Level 8 and testing the app on a Samsung
Intercept
running Android 2.2.2.
When I test this code on the Samsung Intercept it successfully makes a
directory on
the SD card and will read/write files.
Will some developers please test this code and provide feedbac
I am creating a ListView using customized TextView, as shown below:
Normally we use this code for multiple list item selection:
setListAdapter(new ArrayAdapter(this,
android.R.layout.simple_list_item_multiple_choice,
hometown));
But I have changed the 2nd argument of
above code will generate spinners dynamically,
when we will click on any spinner then that method will call.
OnItemSelectedListener listener=new OnItemSelectedListener(){
@Override
public void onItemSelected(AdapterView arg0, View view, int
position,long arg3) {
Notice the AdapterView argument
Now that I'm awake and read up on ListActivity, which I did not know
existed, I have a new suggestion:
Try having your class override onListItemClicked() instead of using
setOnItemClickedListener() directly on the list view itself. That appears to
be the correct way to handle item clicks for L
I have created 3 spinner dynamically
and adding listener with them but listener is single for all spinner.
I want to get selected value of particular spinner.
How can I get ?
How can we tell if you don't show us your code for the click listener you
are adding?
If you are using onSetOnClickLi
I think now u undrstood my problem???
That's pretty much what I guessed, but it was best to check.
In your onPostExecute(), which you say is getting called (which we know is
true, since you see list items), you have:
OnItemClickListener li=lv.getOnItemClickListener();
Log.i("LOGCAT", "View
My class is this:
Yikes... not quite what we needed.
1. Can we confirm that you *do* see items appearing in your list - in other
words, can we confirm that onPostExecute() *does* get called?
2. Can we confirm that - at the risk of insulting your intelligence - you
*are* stabbing a finger on
this is my adapter
...
I need to make the three views inside this listview clickable
This code is not working for me
lv.setOnItemClickListener(new OnItemClickListener() {
(For reference in the future, please state what *actually* happened - even
if the answer is 'nothing happened' -
i want to develop an App with an flexible User Interface. The User choose
an Element from
a given list and place it on the Screen. Did anyone an example for this or
do i have to start
from the ground?
The GUI should work like the Widget-Placement on the launchers. I'm
thankful for every tip
We don't need to see your picture, thanks. This isn't Facebook.
I created a list view and given the codes for list item click like
but the list item click is not working..why anybody pls help me
How are you determining that it isn't working - are you assuming your
activity sho
How do you go from one view to another? I need the user to select a
button and then go to another screen.
Each screen in Android is an Activity. The way to achieve what you are
asking is to create an Intent [object], quoting your target Activity's
class, and then start that intent.
This lin
I got this error:
ERROR/MapActivity(258): Couldn't get connection factory client
Try Googling for that error message. Plenty of hits for you to follow.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To
We really appreciate your thoughtful feedback, and we'll keep it in
mind as we work to improve Google Play.
Wow... hot off the photocopier, methinks.
Sorry to hear about your situation. I can only recommend - since it is clear
you're not going to get any help from Google on this - that you rel
But is it device wifi mac address or active wifi network mac address...
It will be the MAC address of the phone / device the software is being run
on.
I may have misunderstood what you were trying to do here - are you trying to
identify the 'other' end of the wi-fi connection? The access poi
So just want to know is any there any unique identifier for wifi
network which will be unique & constant on all devices..
The MAC address? This can be obtained from a WifiInfo object...
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group
Thank you Jason Teagle, The error was in player activity, the player
class needed a native library and that library was missing.
You were so kind to listen me. Thankyou so much.
Another happy customer {;v)
--
You received this message because you are subscribed to the Google
Groups
Sorry, It worked! I forgot to add the activity in manifest.
(Don't worry, I just learned something about activities there as well!)
OK, so the dummy activity worked, and that also means that taking focus away
from the tab arrangement *shouldn't* be the problem - since that would have
happen
The app crashes when i click on list item. Actually this listview
resides in a tab which is in another tab of a fragment.
It could be the nesting that is the problem, or the starting of the
activity. So let's just try and isolate the cause - in your click handler,
instead of creating the inten
05-09 16:19:07.751: E/AndroidRuntime(7043): Uncaught handler: thread
main exiting due to uncaught exception
05-09 16:19:07.771: E/AndroidRuntime(7043):
java.lang.RuntimeException: Unable to pause activity {com.m2.smartGui/
com.m2.smartGui.smartGuiPagerFragmentActivity}:
java.lang.NullPointerExc
and the error i got is:
05-09 16:19:07.723: D/PhoneWindow(7043): couldn't save which view has
focus because the focused view android.widget.LinearLayout@44ecc1d8
has no id.
Take a look at that line - what does it say is the reason for being unable
to do what it wants? The error message is pr
and one sub tab contains
listview. Now i want to start an Activity when an item from the list
is selected.
How it is possible?
Have you tried adding a listener to the list view to watch for selection
changes?
--
You received this message because you are subscribed to the Google
Groups "And
The strange thing... today I can't reproduce it anymore after
rebooting the eclipse (heap problem).
It wouldn't be the first time Eclipse has got a bit messed up... I had some
infinite recursion in some code this morning and Eclipse needed a couple of
kicks up the backside after I'd fixed the
I tried as the same in the example defined here . but didn't get the
menu displayed .
did not work - i am not getting the conext menu at all after clicking
button .
OK. At this point I would recommend (for test purposes) you leave your
existing project alone, start a new project with a new act
This is the code for registration class, when I click register button
nothing happens.
Please help so that I can do this..
Take a look at the code you have in the click handler you added (near the
beginning) to the button. This click handler is near the bottom of the file:
@Override
public
btnAbout.setOnClickListener(aboutSelected);
The NPE could also be because btnAbout is null - does the debugger confirm
that *that* is OK?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to andro
http://lmgtfy.com/?q=how+to+make+android+games
--
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+unsubs
I am trying to render a html page in WebView in my app, everything works
fine,
but the content is wraped arounf width of browser. But my requirement is
that
Have you tried making the main view a ScrollView, and embedding the WebView
as a child of that, allowing it to be larger than the physica
i tried with registerForContextMenu(button ). and setting onConext
Menu Listerner also but it did nt work .
Did you override onCreateContextMenu() to actually build the menu?
Define 'did not work'? What *did* happen - anything at all?
Try this link as an example of how to build one:
http://www
Take a look at the instructions here:
http://developer.android.com/guide/market/licensing/setting-up.html#add-library
Particularly, look a few lines down where it starts "If you are developing
using the SDK command-line tools...".
Why you aren't using Eclipse, though, is a mystery. Why make it
Depending on the version of Android you are targeting, this will also be
very helpful:
http://android-developers.blogspot.com/2009/12/back-and-other-hard-keys-three-stories.html
lol... I didn't even know you could long-press hard buttons.
--
You received this message because you are subscribe
The P1000 seems to have a lcd screen. Anyway, i believe it is just a
matter of time to have real 24-bpp screens on the market. My only
concern is about a way to identify them.
Have you considered the option of defaulting to 16 bpp, and letting the user
choose whether to try changing up to 24 or
Unfortunately the crash reports don't show the device model. The NPE happens
when the user clicks a row or one of the buttons in a row (since all three
actions share the same code).
I have imagined a possible cause for this issue. Looking into the sources
(android/view/View.java) here is what
One of these is that when the user press the back button of the phone -
I mean that with a curved arrow-, the application is closed, so I want
to ask for confirmation or something similar so, is there anyway to
easy control this?
I believe this link will help you considerably:
http://stackoverf
But as soon as i add a linear or relative layout as parent to list view
...i am
able to see the lag while scrolling
Although I can't really help you reach an answer that will help, I will just
say that using layouts as the parent *will* decrease speed performance due
to having to do the e
while debugging on my devices (and emulators) I never got this NPE, so
basically
I am blind and must try to figure out what could happen on other devices.
But, without being able to reproduce this behavior, the local debug is
useless. I'd
need to get in touch with the users
I don't envy you i
adapter = new SimpleCursorAdapter( /* query the SQLite db */);
I can't understand why cursor may be null, since onResume() it's clearly
initialized by
the query.
You would expect so, but it couldn't hurt to check (as a debugging test) if
adapter.getCursor() actually returns a valid cursor im
In the log it showing
05-07 16:58:29.400: INFO/WindowManager(183): ... DRAW NOW PENDING
OK... when is it showing this? Is this after you tried adding
setLongClickable() or setOnLongClickListener()? I'm not sure how this
relates to what you asked...
--
You received this message because you
In android 4.0 version, when u select & long press text(specially a
link or edit text),it shows an ui with some options like cut(scissor
image),select all,etc..
Is there any way to disable that or any callback method to intercept
that ???
Have you considered calling setLongClickable(false) on
My problem just solved by doing this little modification:
1) Refreshing the adapter on drag and drop.
2) And then setting the adapter to my gridview.
Good to know. Definitely a more 'correct' solution than most of the tricks I
was suggesting (not least because yours worked!).
--
You receive
Did you try changing the order of setSelection() and requestFocus()?
Did you try calling draggableGrid.invalidate() after setSelection() and
requestFocus()?
Yes, I tried all of them, but nothing worked.
OK, one more thing you could try, and then I'm out of ideas.
When you remove the last it
Make sure that you call setFocusable(true) and
setFocusableInTouchMode(true)
on the gallery view.
This one helped me doing what I wanted, but only for the first time. After
first dragging,
its not working according to me.
You only need to call those once, when you first create the gallery v
I have installed "Bluetoothchat" Example on my phone.
when i run "Connect Secure/Insecure" then it always show
...
I have debugged application. i found the error is : javaIO exception
Service Discovery failed
See if this link helps:
http://stackoverflow.com/questions/3397071/service-discovery
try mContext = this;
That would then be an activity context, not an application context. Although
it might work for the case required (I doubt it - see below), there are
reasons for using one over the other.
http://android-developers.blogspot.co.uk/2009/01/avoiding-memory-leaks.html
It als
i.e. using an html string like "199 km/h" seems
to work,
although you cannot specify the sizes exactly...
Just a quick note, specifying big / small or similar is considered better
than specific sizes in the world of accessibility since they refer to a size
*relative* to the user's current def
wish that is any help with this scenario thx in advance
Is this AccountAuthenticatorActivity-extending class the main class /
activity of your application, or are you starting this activity yourself
from somewhere? The reason I ask is that starting a new project, making my
main activity exten
i have problem with application context
when i call ContentResolver cr=mContext.getContentResolver(); its
return nullpointerexception and is coz of the appContext how i can
reslove that any help with that thx on advance
Where is 'mContext' set? If you could show us the lines of code where it is
sry for not being very clear,
ps have a look at it.
(Quick note: In every single case you call
int xxx = mDraggableView.getDragItemId();
When dragging from the gallery, you call it 'fromPosition'; when dragging
from the grid, you just call it 'position'. Since you *always* make this
same cal
Can anyone plz tell me why this is happening, or how do I solve this issue?
If we could, don't you think we would have done so by now?
Have you *tried* calling setSelection(-1), or calling requestFocus() on
another View to take the focus away from the GridView?
Have you posted some code to s
Any idea why does the request to acquire/allocate Graphic Buffer fail
with Bad address?
W/GraphicBufferMapper(2541): registerBuffer(0x3a2408) failed -14 (Bad
address)
Unfortunately that's one that I can't answer - how it can manage to get an
invalid address from within its own internal code is
I don't think my rotation is code is executing very well, because I was
testing now.
I took a picture in an Upright Position and when i loaded it it was
sideways and
stretched.
Oh dear! Hopefully the image without manipulation will be a good point to
re-start figuring it out.
One other thi
Believe it or not the project is running again :S,
I've seen plenty of weird stuff - I believe you {:v)
Check the attachment, what I'm trying to do for my project works perfectly
in the emulator but not the Samsung S2 Galaxy. I'm basically trying to load
One possible answer for this (workin
How can i read a file from a USB Pendrive from my HTC Desire Z with other
words
how can i enable usb host mode on my phone.
This is by no means a complete answer, but perhaps reading the docs here
might help get you started:
http://developer.android.com/guide/topics/usb/host.html
--
You re
How to create a Slide show app for android ??
can i get the source code for this app ??
http://lmgtfy.com/?q=slide+show+app+source+android
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-devel
How to integrate ads in android application. I have tried with google
android
developers steps. But it is not working
Please start by showing us the code you have tried, and explaining what you
expected and what actually happened...
--
You received this message because you are subscribed
I want to create a dialogbox when my item in my list is long clicked but
as you can see in the code new DialogInterface does not accept the
OnItemLongClickListener() method. How can I manage it?
Can you clarify what you are hoping to do here - display a dialog *after*
someone long-clicks an it
Can anyone show me how to get the htmlcode of a webpage?
I tried HttpURLConnection but it doesn't work.
The documentation for HttpURLConnection has a sample right near the top
demonstrating this - are you getting a compilation error? A run-time error
(show us your LogCat)? Just getting nothing
I have to suggest that line 23 as you indicate is incorrect; there's no
executable code there, not even if we assume it refers to the onCreate()
definition.
In the sample you gave us, possibilities for the problem reference include
R, R.layout, 'enter', 'moe' and the result of new Intent(moe).
so i did restart everything and still it doesn't want to run. And no i
didn't change
anything in my code.
Very odd! Are you relying on any external resources, such as phone hardware,
memory cards, etc.? Something that might have changed its state suddenly
(thus, your code remains the same but
I meant - If we use the app for a longer duration of time without
navigating out or switching to a different app we see Canvas Lock with
Bad address.
Hmmm... since that [particular case] pretty much eliminates problems caused
by activities going to the background and possibly being killed, that
If we keep the application up for long duration of time, this issue is
seen more frequently.
Here, do you mean you simply leave the application as the foreground app for
that length of time and it just 'happens', or do you mean the app is left at
the front and after a long time, when you sudde
What is this error, my project suddenly doesn't want to execute,
j"ava.lang.
RuntimeException: Unable to start activity ComponentInfo{project.moe/
project.moe.ProjectActivity}: java.lang.NullPointerException".. I didn't
change anything
First, I suggest you restart Eclipse, disconnect your phon
For testing purposes, I would suggest you temporarily put the camera code
aside, and do some testing on a simply image loaded from resources. My
reason for saying this is to remove any possible outside issues, and just
concentrate on the scaling of an image. I see your code, which seems like it
After using the code, still if i take a picture sideways or in an upright
position its not rotated.
When I take a picture sideways and load, it shows up in an upright position
but stretched.
Like I said, show us the code where you take that picture from the camera,
put it into an object, and t
This is the code im using to rotate an image,
All that code does is determine the angle in degrees to rotate by - it
doesn't actually try and rotate an image. Show us the code where you
actually load / set the image into an object, and then how you attempt to
apply the rotation angle you obta
It is not actually hard, but there are so much details that you have
to think of that your program needs to adjust to. A simple one is what
do the country use for decimal separator? Comma ',' or point '.'?
Another example is pricing - not all locales put the currency symbol in
front of the numb
So I have been trying to the give the user the ability to the rotate a
picture, but still i
haven't found much about it. Can you plz explain more to me. Thanks
http://lmgtfy.com/?q=rotate+image+android
--
You received this message because you are subscribed to the Google
Groups "Android Devel
There are two reason for canvas lock; the other is failed to dequeue
GL buffer. THe following is written to the logs when this happens:
W/GraphicBufferMapper(2541): registerBuffer(0x3a2408) failed -14 (Bad
Are you manually locking / unlocking this canvas yourself, in your code? Or
is it happen
E/ViewRootImpl(10414): IllegalArgumentException locking surface
I notice that it says 'illegal argument' - can you be absolutely sure that
at the point where it fails, the Rect you are passing for the dirty area is
a valid rect? Can you bounds check it against the extents of the surface as
a
how can i identify the click on my comment option inside each listview???
is it possible???coment is a textview inside listview...please
help
If I understand what you are asking correctly, you should be able to use
setOnClickListener() on the ListView. This has an onItemClick m
rect.intersects(left, top, right, bottom)
This version of the function does not change the rect:
"Returns true if this rectangle intersects the specified rectangle. In no
event is this rectangle modified. No check is performed to see if either
rectangle is empty. To record the intersection, u
we should get the notification on the main screen of android tat u have
recvd a update
like pop up ,so how to implement this can anybody please help me out
For the popup itself, take a look at the Toast class in the Android docs.
--
You received this message because you are subscribed to the
the point it should, and further sounds twice or even three times at
"same" time. At fastest speed it sounds three or four times fast at
the start, and then it does not sound anymore.
Have you tried increasing the number of streams, in case you are queuing too
many occurrences of the same sound
The problem is that my buttonContainer is not being displayed on the center
of the
viScroll scrollView. If the main layout BodyView haves low height then the
buttonContainer is not displayed... something is going wrong and i can't
find it.
Is your BodyView *changing* height at runtime, or are
>"... to call removeAllViews() on the RelativeLayout and simply rebuild
>all of its child widgets in the desired order..."
>
>when i called them? when I click the button? hmm..do you have any
>tutorial or sample for this one? couse i'm a newbie in android
>developer ^^
Correct, when you click the
when i click the Button "Top", the image position will change to the
top of screen, but when click the Button "bottom", image change to the
bottom of screen.
is there any idea how to do that? Using the relative layout
Changing the rules on widgets after the initial layout doesn't seem to quite
1 - 100 of 122 matches
Mail list logo