Hey Sagar,
I tried using it
But i am facing a problem in it.
I have a class say
class abc
{
public String id;
public String ver;
}
class pqr
{
public String lmn;
public String xyz;
}
class holder
{
public Object [] params;
}
public void method()
{
abc aobj = new
ok i tried it like u said but it crashing here it is how i tried please
check n tell me how to correct it
class someactivity extends extends Activity
{
*public* *void* onCreate(Bundle savedInstanceState) {
//...
call();
}
public void call()
{
SmsReceiver *b* =*new*
kapnk...@gmail.com wrote:
ok i tried it like u said but it crashing here it is how i tried please
check n tell me how to correct it
class someactivity extends extends Activity
{
*public* *void* onCreate(Bundle savedInstanceState) {
//...
call();
}
I have a listview and when i select an item a new activity is started,
but when i go back the listview's scroll is positioned at the
beginning the list. How can i save the scroll position and when i go
back to the listview the scroll to be positioned in the same place.
Sorry for the post my mistake i just reload every time the view in onResume :)
On Fri, Sep 11, 2009 at 2:45 PM, manigault manig...@gmail.com wrote:
I have a listview and when i select an item a new activity is started,
but when i go back the listview's scroll is positioned at the
beginning
Hi!you have a method in listvie class:setCachedColor or something like
this..
Hope this will help you..
On Sep 8, 2009 9:43 AM, whitech whit...@163.com wrote:
Hi all~
I've met this problem: while scrolling, the background of a listview
change to black but not the background color which I'd
Hi,
Will Android add Java APIs of JAVA 1.6 related to XML Digital
Signatures in the upcoming versions of Android ?
Is there any other APIs in Android for validating XML Digital
Signatures ?
Regards,
Vinay H V
--~--~-~--~~~---~--~~
You received this message
Hello,
My app has a webview.It opens a web browser when it receives 303 http
response.
I would like to make it display the new location page.
I tried some WebSettings values,but I couldn't find any way.
Does anybody have idea?
Thank you.
--~--~-~--~~~---~--~~
You
Hai,
In my application in need to use the java.image.io package, but it is
not suppoted by android. Is there any way i can import packages into
android. Please help me.
I need to do the image processing in my app, which can be done through
image.io. If it is not really possible please let me
If you have a jar package or the source code you can always add a
dependency to the project settings.
When you open the properties of your project and check the Java build
path you can add libraries or Java Projects as additional
dependency.
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· ·
Here is a tip on how to use generated layout id's. If your layout has
id=@+id/foobarid -- THIS IS WRONG
this will NOT work with findViewById method. You have to do it this
way
android:id=@+id/foogarid -- CORRECT
In both cases, the build will generate R.id.foobarid, but
jotobjects wrote:
ERROR IN DOCUMENTATION - see
http://developer.android.com/guide/topics/resources/available-resources.html
--- quote --
When declaring an ID value for an XML tag, use this syntax. Example:
TextView id=@+id/nameTextbox/, and refer to it this way in Java:
Looks like the page has some id attribute with the proper namespace
prefix and some that are missing it.
I've filed a bug internally to make sure this gets fixed.
thanks!
Xav
On Fri, Sep 11, 2009 at 9:08 AM, Mark Murphy mmur...@commonsware.com wrote:
jotobjects wrote:
ERROR IN DOCUMENTATION
How about USB?
Can we access USB from Java?
-jim
On Aug 24, 2:02 pm, gymshoe gyms...@bresnan.net wrote:
Ah. Thank you.
On Aug 24, 12:58 pm, Mark Murphy mmur...@commonsware.com wrote:
The current Android release offers:
StereoBluetoothsupport (A2DP and AVCRP profiles)
There are other ways to make a Service always work even if the phone
sleeps; it depends on what your Service does. For example, if the
Service's job is to respond to an Activity, then it is awake when the
Activity is awake. Or if it responds to a broadcast Intent, ditto.
Generally speaking, a
The service is picking up GPS locations; and sending to the server. Hence it
needs to stay awake -- the server is tracking locations of the user on the
web.
On Fri, Sep 11, 2009 at 2:30 PM, Yusuf Saib (T-Mobile USA)
yusuf.s...@t-mobile.com wrote:
There are other ways to make a Service always
There is a cross-compiler for Android-iPhone, and there is of course
the Android emulator on WinXP. But the best way to run Android on
WinMo without a virtual machine would be to implement the Android low-
level API in WinMo.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions
BouncyCastle is also included in Android, if you're looking for
encryption.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA,
Jason wrote:
The service is picking up GPS locations; and sending to the server.
Hence it needs to stay awake -- the server is tracking locations of the
user on the web.
Keeping the service alive all the time is very bad for the battery. I
provide an analysis of this here:
When is onSaveInstanceState called and how can I use the save
variables in the bundle? In my experiment, this is what I observed:
When the application is running is foreground, pressing the Home key
resulted in:
onSaveInstanceState
onPause
onStop
Clicking the application icon again (i.e. bring
jason wrote:
How does one then save and restore the application state when
the Back key is pressed and then the application is brought to
foreground?
When the BACK button is pressed, the currently-running activity is
destroyed, not put in the background.
If you wish to save something when
You are so right!!
2009/9/11 Mark Murphy mmur...@commonsware.com
jason wrote:
How does one then save and restore the application state when
the Back key is pressed and then the application is brought to
foreground?
When the BACK button is pressed, the currently-running activity is
Mark Murphy wrote:
If you wish to save something when the activity is being destroyed,
implement onDestroy() and save it. Where you save it (flat file,
SharedPreferences, database, the Internet) is up to you.
Bear in mind that onDestroy() may also be called in the case of a screen
rotation
Thanks, Mark.
Hmm, pressing the Back key so easily kills the activity. Is there a
way to trap Back key within an application and prevent/control this
behavior?
For sub-activity screens, does the Back key have the same behavior
(killing the app/activity) or does it go back to the parent activity
jason wrote:
Is there a
way to trap Back key within an application and prevent/control this
behavior?
Implement onKeyDown() in your activity and watch for KeyEvent.KEYCODE_BACK.
Please bear in mind that your users will get irritated if you make it
difficult for them to navigate your
Thanks, Mark. That was helpful.
If you are referring to activities started by one of your activities via
startActivity(), then, yes, the BACK button behaves the same. The BACK
button's job is to destroy the current activity and return control to
the previous activity on the stack.
Is there
jason wrote:
Is there a way for an (sub-)activity to pass values to the previous
activity on the stack (when Back key is pressed) without resorting to
persistence storage or static varables in the app?
Use startActivityForResult() rather than startActivity() to start it,
use setResult() to
Nope, there is nothing available on Java level. You could try to write
some JNI wrapper to access the interfaces on native level (look in
extern/bluez folder).
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of
Hi,
I want to completely exit my application under test in my test code
(ActivityInstrumentationTestCase) before launching each test.
Since there is no exit in an android app. Is there a way I can
traverse through all the activities of an app so that I call Finish()
on each i.e. finish all the
I have to say creating layouts in Android would have to be the most
frustrating experience in all my years of programming. I dread it
every time I create a new Android app.
I simply want to have four images laid out horizontally across the
screen. All four images are the same size and have the
You should be able to do this as follows:
setMinimumWidth(w);
setMaxWidth(w);
setMinimumHeight(h);
setMaxHeight(h);
Or, if you set it up as a horizontal linear layout that contains the four
different views and give each view the same weight (e.g. give each ImageView
a weight value of 1), then the
31 matches
Mail list logo