Query in Android Application development

by Raghav Rajagopalan » Sat, 12 Mar 2011 04:19:35 GMT

Sponsored Links
 Hi to all!!

         I am Raghav Rajagopalan from Chennai, India. I am a Android
application developer. I am new to this domain. I am working on building a
application. I have few queries. I hope you can help me out in solving my

My requirements are:

1. I have a Login Screen created. I need to create a SqLite DB to check if
user is a valid one or not.
2. If valid user navigate to my web site.
3. If new user he needs to register first.
3a. To register he needs click on the Register now button in Login screen,
Which will navigate user to my website for registration.
3b. After registeration i need to come back to login screen using a back
button in the Registeration screen(website).

I have designed the layout.

This is my task. I have tried many ways in developing this issue. But hardly
never worked fine for me.

Its my kind request to you to help me out in this issue.

Thanks in advance.

Raghav Rajagopalan


Re: Query in Android Application development

by Justin Anderson » Sat, 12 Mar 2011 05:16:06 GMT

 Ummm.... we aren't going to write your app for you.
 http://www.catb.org/ ~esr/faqs/smart-questions.html

Justin Anderson
MagouyaWare Developer

On Thu, Mar 10, 2011 at 12:12 AM, Raghav Rajagopalan <


Sponsored Links

Re: Query in Android Application development

by Chambras » Sat, 12 Mar 2011 12:34:34 GMT

 I think that the best way to work with DBs is using content providers you 
can read the documentation about them here:

also I would read the samples in the resources sections they have everything 
you need in order to start developing in android, sample code, tutorials, 
articles, everything



Re: Query in Android Application development

by A. Elk » Tue, 15 Mar 2011 10:05:57 GMT

 There's no reason to use a content provider to work with databases. A
content provider provides a common, abstract mechanism for offering
data to other applications. Its power is in handling all the small
details of connecting an application to a data source in another
process. The content provider framework has a few useful methods for
dealing with databases, but that is *not* its main focus. Don't get
hung up on content providers to provide data, especially if the only
use of the data is in your own application.

If you run into an error you can't figure out, or you need help with a
specific design decision, then this forum will work for you. If you
just say "Here's what I want to do, how do I do it?" we *can't* help
you effectively. We are bound to leave out some important detail that
you know. We can't substitute for experience and training.

To answer the OP:

You say that you need to create an SQLite DB to check if the user is
valid. That is fairly easy to do in Android, and it's documented in
the Dev Guide. However, you go on to say that the purpose of this DB
is to verify that the user is registered. You also note that the check
needs to be done on a website, not local to the device. If the user is
new, then he or she has to register on the website.

I can't see why you need a local database. All the information is on
your website. It seems to me that you want the user to go to the
website to login, and then proceed locally. This is tricky to do, but
not impossible. However, I don't see that you have to keep *any*
database data on your device, unless you're using it as a "cache" of

As far as the ways that you've used "hardly never worked fine", you
will have to post a specific method you used, and what happened.


Other Threads

1. Google TV Remote Control App

Has anyone put a packet sniffer on the remote control app provided for
Android devices to interact with Google TV? I'm curious about what the
protocol is.  I would guess that it's ProtoBuf, or possibly XBMC
(wouldn't that be nice?)...



2. Invisible AlertDialog?

Believe me, I am not trying to create an invisible AlertDialog.

But I believe I have one. I'm not making this up.

Behavior: main activity starts and is completely unresponsive. No
dialog appears. No Force close/ANR appears even after much time in
this state. But if I push the back button, it becomes responsive

This does not occur when debuggable is true in the manifest, so I
can't investigate using the de{*filter*}.

But I found out the following with log statements.

MainActrivity:OnCreate starts another activity, a welcome screen.
MainActivity:OnResume is called while the other activity is visible.
OnResume creates the dialog and calls dlg.Show();
WelcomeActivity is dismissed.
MainActivity:OnResume is called. The OnResume method is smart enough
to note that the dialog has already been shown and does not create it
MainActivity is unresponsive. No dialog in sight.
When I push the back button, a log statement confirms that the
OnCancelListener is called on the dialog.

This is Nexus One with  2.2.1.

As cool as an invisible dialog is, I'd rather not have it. Can I fix


3. problems with cancelling of BackgroundAsyncTask in Activity

4. displaying nearby schools and airports in google maps android

5. Best way for accessing web service

6. gmail.com not working on webview (after login)

7. is there a way to send an event like a user would...