android

Login page. How to match username and password from database to allow user to login?

I'm new to android. I've created a database for users. The thing is i do not know how to apply on android Java file to execute the function for user to login. ...

RE: Login page. How to match username and password from database to allow user to login?

Hi again. I managed to create the logic for the function but I have no idea how to match it with the database. I only know how to do it the hardcoding way. Below is how I did it. Can anyone help me with the 'guest' part which I believe an sql statement should be inserted there am I right? And I know I missed out something. Before I matc...

Starting an Android service with parameters

I want to start a service that has parameters public BackgroundHelperService(String name) How can I do this using Intent service = new Intent(cnx, BackgroundHelperService.class); I cannot pass the name param. ...

it may sound like a trivial question but who i make my layout scrollable

scrollable meaning by the user touch he can can go up and down in the layout given this is what i did and the emulator throw an exception null pointer somthing and i have problems figuring out from where it comes .... <?xml version="1.0" encoding="UTF-8"?> <ScrollView> <TableLayout xmlns:android="http://schemas.android.com/apk/res/and...

Android RemoteExceptions and Services

So I've written a Service and an Activity for the Android OS. My service is running in it's own process, so all the communication between my Activities and the Service happens via IPC. I use the standard Android .aidl mechanism for this. So far everything works fine. However, the AIDL generates all method stubs using "throws RemoteExc...

how to differentiate xml tags that belong to layer1 and those that belong layer2 if they use the same tag name?

in my xml file, i have same tag name used at different place (layer1 and layer2), how can i differenciate tags named "<tile gid ="int">" from layer1 and layer2 ? i need to process them differently depending if they belong to layer1 or layer2... here's a small sample of my parser and my xml file: // ================= // xml parser samp...

Getting device characteristics and network information.

Hi All, I am developing a context aware mobile application. I need to have information about the capabilities of terminal devices and network characteristics such as current bandwidth. My question is, are there APIs in android to access this information? Thanks. ...

SecureSAXParserFactory error in the gdata calendar sample code.

Hi, i am currently using gdata vesion 1.41.3 and android api level 3. i am trying to use the Calendar feature of gdata. my source code is] try { CalendarService myService = new CalendarService( "exampleCo-exampleApp-1"); myService.setUserCredentials("[email protected]", "xxx"); // Send the request and print the response ...

How to detect backlight is on ?

Hi guys. My application requires resource and drains a battery when it is working. So, I want to know the way that user is not available on the phone. Is there a way to use the built in power save mode on the blackberry to where if the screen dims to suspend the application works active and when the user wakes the device back up with ...

How to calculate the direction the screen is facing

How do you calculate the direction that your camera is pointing towards in Android? Azimuth works only if the device is vertical. How do you account for the pitch and roll? If R is the rotation matrix, I want to find something like: getRotationMatrix(R, I, grav, mag); float[] rotated = R {0, 0, -1} ; //not sure how to do matrix multip...

How to notify ListAdapter

Hi, Is there any way to notify ListAdapter? Because i need to load Tab content data when user click in that Tab. Thanks Chandana ...

from where can i get com.sun.cnpi package?

I m building an android application where I need these packages to import: import com.sun.cnpi.rss.elements.Item; import com.sun.cnpi.rss.elements.Rss; import com.sun.cnpi.rss.parser.RssParser; import com.sun.cnpi.rss.parser.RssParserException; import com.sun.cnpi.rss.parser.RssParserFactory; What should I do? From where can I find th...

how to upload the image taken by calling camera activity from andorid phone ?

hi i have an image which is taken from andorid by calling image _capture how do i upload it to a windows server? Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); startActivityForResult(intent, 0); public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivi...

how to show android checkbox at right side?

friends, by default android checkbox shows text at right side and checkbox at left i want to show checkbox at right side with text at left any one guide me how to achieve this? ...

Problem with PhoneStateListener.onSignalStrengthsChanged

I have written an android app which listens to the phone signal strength using PhoneStateListener.SignalStrengthChanged(int asu). The app works perfectly with Android 1.6 and lower, but not with higher versions since onSignalStrengthChanged(int asu) has been deprecated and replaced with onSignalStrengthsChanged(SignalStrength signalStren...

Activity layout inheritance

Hi! I start develop application on Android! I need to show common control on the top of few screens. In Blackberry I just inherit my screens from base screen with needed controls and it inherit UI and behaviour from base type. How can i do similar thing in Android? I mean, how can i organize it? Maybe, i need to create control or layout...

how to send data from android to server

hi expert, I'm exploring to scan ssid and rssi from android and I'm able to do it, but now i have want send the data to the server, so i explore i found below code HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://101.34.45.45/rawData"); try { List<NameValuePair> nameValuePai...

Android how to show another view on top of the existing ListView after checkbox is checked.

Currently I have a list view within it each row has a checkbox attached. I would like that once any checkbox is checked, at the bottom of the screen a view displays, and once none of the checkboxes are checked, the view automatically disappeared. Possible to do this? Any help or direction is appreciated. Thank you. ...

Access Voice recognition javascript API in Android 2.2 (Froyo)

I wonder if the javascript API to access the voice recognition is accessible in Android 2.2 ? or if it is going to be for a future release ? ...

Should app's with multiple layouts have multiple activities to handle each?

I'm planning to develop and app that presents the users with several different screens (of different information). Was wondering what would be the best way to implement this? Is it better to have separate XML layouts and an activity to display and allow the user to interact with each screen of data? OR would handling all of these in th...