Skip to content

Android

Discussions on Android development

This category can be followed from the open social web via the handle android@forum.codeproject.com

882 Topics 2.6k Posts
  • 0 Votes
    5 Posts
    12 Views
    U
    sorry
  • Android control smart home

    android com
    4
    0 Votes
    4 Posts
    11 Views
    L
    Nowhere near you. You can find out everything you need to know about this site, including how to ask proper questions, by using the help menu at the top, and reading the FAQs. But be aware that this is not a recruitment forum.
  • Can html5 css and javascript apps run on andriod o.s

    html csharp javascript css design
    2
    0 Votes
    2 Posts
    8 Views
    Kornfeld Eliyahu PeterK
    The link goes nowhere... Android based devices has a web browser installed with (and if not you can install one). So there is no problem using web application with HTML, CSS and JS. However you have to design you site to display well on different devices with different screen sizes and resolutions... You may start reading here: http://en.wikipedia.org/wiki/Responsive_web_design[^] I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
  • Android AsynkTask Taking too Long Rotating Progress Dialog

    java php apache android com
    3
    0 Votes
    3 Posts
    6 Views
    B
    First you are not supposed to access UI components directly from a background thread. String doInBackground(String... args) { String firstName = args\[0\]; String lastName = args\[1\]; String email = args\[2\]; String password = args\[3\]; String experience = args\[4\]; String eduLevel = args\[5\]; String phoneNo = args\[6\]; // create the parser inside doInBackground JSONParser jsonParser = new JSONParser(); ..... JSONObject json = jsonParser.makeHttpRequest(URL_RegisterJobSeeker, "POST", params); return String.valueOf(json.getInt(TAG_SUCCESS)); } //NOTE: Only Interact with the UI components only in onPostExecute or onPreExecute //After completing background task Dismiss the progress dialog protected void onPostExecute(String success) { // dismiss the dialog once done pDialog.dismiss(); if (success == "1") { // successfully created product Toast.makeText(RegisterJobSeeker.this, "Job Seeker Successfully Registered.", Toast.LENGTH\_LONG).show();; // Intent i = new // Intent(getApplicationContext(),RegisterJobSeeker.class); // startActivity(i); // closing this screen // finish(); } else { // failed to create product } } You might want to host your AsyncTask in a headless fragment so that device configuration changes don't crash your app. Hope this helps. “Everything is simple when you take your time to analyze it.”
  • 0 Votes
    1 Posts
    3 Views
    No one has replied
  • Rooting on all android device

    android tutorial
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • hi i want how to develop projects in real time?

    java tutorial question
    3
    0 Votes
    3 Posts
    8 Views
    A
    Google is your friend ;) https://www.google.fr/search?hl=fr&q=java+real+time+programming+&meta=[^] Light or darkness, we must choose ...
  • Android Sync Adapter Xamarin

    csharp c++ android mobile visual-studio
    2
    0 Votes
    2 Posts
    9 Views
    A
    Hi, Have a look on SQLite ;) http://docs.xamarin.com/recipes/ios/data/sqlite/create_a_database_with_sqlitenet/[^] http://docs.xamarin.com/guides/cross-platform/application_fundamentals/data/part_5_using_data_in_an_app/[^] http://iphonedevsdk.com/forum/iphone-sdk-development/6239-database-sync-between-iphone-and-server.html[^] http://stackoverflow.com/questions/7172611/sync-the-sqlite-data-of-iphone-application-to-server[^] Light or darkness, we must choose ...
  • Android Programming JSONParsing Error

    json java php apache android
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Call blocking

    question com help
    8
    0 Votes
    8 Posts
    17 Views
    L
    And given the 'quality' of their written communication, I tend to agree.
  • Android apps with interacting the web page

    question php android
    3
    0 Votes
    3 Posts
    13 Views
    Z
    Define what you mean by interact. Android apps can communicate with web application via JSON, for example.
  • Xamarin vs Eclipse/Java

    csharp java android mobile visual-studio
    5
    0 Votes
    5 Posts
    18 Views
    P
    The $999 is for Xamarin's Business version of their package. As far as for VS Express Editions, this is off Xamarin's blog site: Our Visual Studio Extensions for iOS and Android support any non-Express editions of Visual Studio 2010, Visual Studio 2012 and Visual Studio 2013 http://xamarin.com/faq "I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
  • 0 Votes
    2 Posts
    6 Views
    N
    You should use and Handlers... Not so easy to implement. //ON SERVICE SIDE public class YourService extends Service { public static final int SAY_HELLO = 1; public static final int REPLY_HELLO = 2; private int cnt = 0; class IncomingHandler extends Handler { @Override public void handleMessage(Message msg) { switch (msg.what) { case SAY_HELLO: msg.replyTo.send(Message.obtain(null, REPLY_HELLO, cnt++, 0)); break; } } /** * Target we publish for clients to send messages to IncomingHandler. */ final IncomingHandler mHandler = new IncomingHandler(); final Messenger mMessenger = new Messenger(mHandler); } //ON CLIENT SIDE ... final Messenger mMessenger = new Messenger(new IncomingHandler()); //You can do it... private Messenger mBoundService; private ServiceConnection mConnection = new ServiceConnection() { public void onServiceConnected(ComponentName className, IBinder service) { mBoundService = new Messenger(service); mIsBound = true; try{ Message msg = Message.obtain(null, 1); msg.replyTo = mMessenger; mBoundService.send(msg); } catch (RemoteException ex){ ex.printStackTrace(); } } public void onServiceDisconnected(ComponentName className) { mBoundService = null; Toast.makeText(context, "Connection GONE", Toast.LENGTH\_SHORT).show(); } }; public void doBindService() { Intent intent = new Intent("com.yourpackage.YourService"); if (!context.bindService(intent, mConnection, Context.BIND\_AUTO\_CREATE)) { try { context.unbindService(mConnection); } catch (Throwable t) {} // Clean up return; } } public void doUnbindService() { if (mIsBound) { Message msg = Message.obtain(null, MESSAGE\_UNREGISTER\_CLIENT); msg.replyTo = mMessenger; try{ mBoundService.send(msg); } catch (RemoteException ex){ } context.unbindService(mConnection); mIsBound = false; } } So Sry... Im not so good helping ppl. Just wanted to share this, becouse it has been hard for me to.
  • Serializable or parcelable

    question android tutorial
    2
    0 Votes
    2 Posts
    9 Views
    S
    http://www.developerphil.com/parcelable-vs-serializable/[^] So it looks mostly like a matter of optimization and how lazy you want to be :)
  • Which environment...

    android question workspace
    6
    0 Votes
    6 Posts
    24 Views
    M
    Eclipse, IntelliJ is good
  • How to run App in background??

    help tutorial question
    2
    0 Votes
    2 Posts
    11 Views
    O
    unachievable. except OEM
  • android longitude and latitude

    android database
    3
    0 Votes
    3 Posts
    8 Views
    J
    You have to use inteval.then set time.but before that you have to use service to keep it running all time.
  • How To create a Centralized Database In Android

    tutorial android database learning
    3
    0 Votes
    3 Posts
    10 Views
    J
    You have to use a database and a service.You can use mysql as database and php to make a service. You can follow this Link: http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/[^]
  • 0 Votes
    2 Posts
    6 Views
    L
    jayakanth_ceg wrote: Is there any tutorial / step by step process where i can refer Yes, lots if you try a Google search, or maybe head over to http://developer.android.com/index.html[^]. Veni, vidi, abiit domum
  • android

    android
    2
    0 Votes
    2 Posts
    7 Views
    J
    Android auto close apps when the memory is full.because of this you have to keep your apps running. to do this you have to use service. even you can download some apps which are used to keep running your apps.