porting android to smartphone.

by shleeforandroid » Thu, 05 Mar 2009 03:18:11 GMT

Sponsored Links
 Hello guys.

I have some questions about porting android to smart phone(SPH-M4655).
SPH-M4655 is based on pxa300.
I think I can upload the bootload, kernel, file system to the
development board
by using JTAG , LAN , Serial cable.

But i didn't find the interface for JTAG , LAN , Serial on the smart

I have a data cable(usb based) Instead of this interface. And I
confirmed the COM port for this data cable to setting up the driver.
And I tried to connect this COM port by HyperTerminal and minicom.
But I didn't accept any response from remote device(smart phone).

How can I upload the bootloader or android kernel image to smart
phone ?
What can i use for this ?
And Where can I download the android kernel patches?

please help me ~
I appreciate for your help.


Other Threads

1. OK for one Service to bind to another?

I have a service (ServiceA) which is used by activities by binding to

I would like to kick off one operation on ServiceA, on occasion, via
AlarmManager. I thought the following chain of components would be
appropriate: AlarmManager -> BroadcastReceiver -> ServiceB ->

In my example, Service B would bind to Service A in
ServiceB.onCreate(), call functions via the bind interface, and unBind
in ServiceB.onDestroy().

The obvious solution is just to have Service A expose this operation
via an Intent, and then have the AlarmManager (via the
BroadcastReceiver) fire off this Intent  to ServiceA. However, for
reason I won't go into, this isn't very feasible for my situation.



2. Help with tabbed view

Sorry if this is a resend...been having issues emailing to the group.

I'm new to Android development so please bear with me.  I have created
an app in WebOS and I'm keen to try and re-create for the Android
platform.  I have tried to follow the tutorial for creating a tabbed
view and to some extent I have succeeded.  However, the problem that I
am having is that when I switch from tab to tab any text or graphics
is overwritting the tab elements and not displaying below the tabs
themselves.  I'm sure I've done something stupid that is easy to fix.

Here are the files that I have.  I have my main class which extends
TabActivity.  The code is as follows:

*package com.dtwconsulting.golfcaddie;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.widget.TabHost;

public class GolfCaddie extends TabActivity {
   /** Called when the activity is first created. */

   public void onCreate(Bundle savedInstanceState) {

* *       Resources res = getResources(); // Resource object to get
       TabHost tabHost = getTabHost();  // The activity TabHost
       TabHost.TabSpec spec;  // Resusable TabSpec for each tab
       Intent intent;  // Reusable Intent for each tab

* *       // Create an Intent to launch an Activity for the tab (to be
       intent = new Intent().setClass(this, MainActivity.class);

* *       // Initialize a TabSpec for each tab and add it to the TabHost
       spec = tabHost.newTabSpec("main").**setIndicator("Main",

* *       // Do the same for the other tabs
       intent = new Intent().setClass(this, PlayersActivity.class);
       spec = tabHost.newTabSpec("players").**setIndicator("Players",

* *       intent = new Intent().setClass(this, CoursesActivity.class);
       spec = tabHost.newTabSpec("courses").**setIndicator("Courses",

* *       tabHost.setCurrentTab(0);

* *   }

* *   public boolean onCreateOptionsMenu(Menu menu) {
       MenuInflater inflater = getMenuInflater();
       inflater.inflate(R.menu.main_**menu, menu);
       return true;

My R.layout.splashmain XML code is as follows:

*<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android 

<TabWidget  android:id="@android:id/tabs"
                       android:layout_height="fill_**parent" />
<FrameLayout android:id="@android:id/**tabcontent"
                        android:padding="5dp" />

In addition to the above I have a class file for each tab and a layout
file for each tab too.  To give an example of the main class and XML
layout file:

*package com.dtwconsulting.golfcaddie;

import android.app.Activity;* *
import android.os.Bundle;

public class MainActivity extends Activity {* *
   public void onCreate(Bundle savedInstanceState) {

* *       setContentView(R.layout.main);

<?xml version="1.0" encoding="utf-8"?>* *
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/ 


So, when this main tab is displayed the background image
(golfcaddie.png) completely displays on the entire screen over the top
of the tabs.  I've tried playing around with things but all to no
avail.  I either get the background overlaying the tabs, or I get
nothing at all.  I suspect that I am just not grasping these layouts
and how they interact.

Any help/direction on this would be much appreciated, and perhaps I am
not even doing this the best way.  I ended up Googling about doing a
tabbed view and was lead a little away from the Google docs.


David Williams
Check out our WebOS mobile phone app for the Palm Pre and Pixi:
<http://www.dtw-consulting.com/GolfCaddie> Golf Caddie 
<http://www.dtw-consulting.com/GolfCaddie> | Golf Caddie Forum 
<http://www.dtw-consulting.com/GolfCaddie/forum> | Golf Caddie FAQ 
<http://www.dtw-consulting.com/GolfCaddie/faq.html> by DTW-Consulting, Inc.


<<inline: GClogo.png>>

3. Programatically change the color of layout

4. updating problem in eclipse

5. how to correct market issue

6. AudioFlinger DirectThread

7. Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0"