Android :: Code Base Sync With ADP2
Dec 22, 2009
I'm trying to develop some middle layer application based on the source tree from android.git.kernel.org. I'm using the libmedia.so to link my code and has no problem. I also tried to link my code using the other libmedia.so which I pulled from HTC ADP2 (I ordered last week) and found that my code have many undefined references to some functions (or method).
This make me think that source code I gitted from android.git.kernel.org (two weeks ago) does not sync which the code in the HTC ADP2 Android device.
How do I sync my source tree with the HTC ADP2 ?
View 1 Replies
Feb 19, 2009
I have heard a lot about this code base, but have seen nothing.The possabilities are amazing, why are we so limited. If the sceen is multitouch capable, why not use it? When will we see a fix for the issue with the talk button on the headset, or the ability to run apps from the sd card, or the ability to stop running apps. This android os is linux based, yet these issues are holding us back? I am invested in this platform, and I really believe this is important. I hope to see more functionality. We have a platform that can truely compete with the iphone, but we must work hard to perserve our image.
View 2 Replies
View Related
Apr 15, 2010
I need to build several slightly different apps from one code base, where only the styling and some variables are different in each app.Right now I use an awful "Constants" class where I comment in/out the correct values for each app, in addition to copying the correct graphic resources to the res/drawable/ folder.One way to make this less painful would be to refer to a Java static Constants#appVariant from styles.xml and splash.xml, e.g like this pseudo-entry:
<style name="Artwork"> <item name="android:background">@drawable/ border_{Constants.appVariant}</item> </style>
Is this possible?And I guess there are better ways of solving this.All hints are appreciated!
View 2 Replies
View Related
Aug 22, 2010
I want to release multiple applications to android marketplace which are all very slightly customized based on a code base. I can't just change the package indentifier in the AndroidManifest.xml file because several other things dependet on this like action identifiers and so on.
What is the best approach to release several apps based on one eclipse project with the same code base?
View 1 Replies
View Related
Nov 15, 2010
I have an Android code base which uses APIs with settings to get different data for several apps. All apps use the same code base but with one or two design tweaks. So how do I re-use the main code base without having to copy the whole Android project each time?
iPhone uses multiple targets in the same project which works well. If android cant do this do I need to compile binaries of the code base in one project and then import into each new app project? If so how? I'm using Eclipse and am an intermediate Java developer.
View 2 Replies
View Related
Dec 15, 2009
I want to add,delete,update android Contact Database using native c code. please tell me how to do if any one have done it.
View 3 Replies
View Related
Jan 11, 2010
1- Does Android Browser (Éclair code base) support the "plug-in" or not?
2- Why "Google Gears" support is removed from the clair code base?
I searched the forum and came to know that earlier version of the Android does not support it at all? Here is the link for that, but this query asked in Dec'2008.
View 2 Replies
View Related
Dec 24, 2009
I see the following in the official description of the ADP2:
Modify and rebuild the Android operating system, and flash it onto a phone.
I'm not able to find anywhere a downloadable 2.0 or 2.0.1 for the ADP2, nor any indication that it could be done. To the contrary I see all kind of discussions suggesting it's either not possible, or at least not YET possible.
May someone please explain a developer withOUT any Android specific background, what is so difficult in uplading a new version of an O/S to a device that's specifically desgined for such purpose?
Do I really need to wait for HTC?
View 4 Replies
View Related
May 28, 2009
I've read: http://groups.google.com/group/android-developers/browse_thread/threa...[url] But both discussions seem a little outdated. At Google IO there were free HTC Magic phones (unlocked as ADP1?). So, basing on all this, I wonder if there's something official about ADP2.
View 3 Replies
View Related
Jun 29, 2010
Does anybody know when the 2.2 update will come out for the ADP2 phone?
I recently purchased the phone only to have it come out with a version that's 3 generations old.
View 2 Replies
View Related
Mar 10, 2010
I want to buy the ADP2 (HTC Magic) but I wonder if also Android 2.1 is available for it. Because I've heard that eclair doesn't run on HTC Magic as you can get it in the stores.
View 3 Replies
View Related
Mar 17, 2010
Can the adp2 that I just bought through the Android Market be flashed with Android 2.0? I can't find anything anywhere. The HTC developer support only has system images for the adp1 and adp2 phones up to 1.6. If it can't I will be sending the phone back for a full refund.
View 1 Replies
View Related
Nov 13, 2009
ADP2 is coming Brightstar just announced it:http://www.rcrnewsdirectory.com/pressrelease.aspx?id=325512
I have not seen Google mentions of it yet..
View 4 Replies
View Related
Mar 2, 2010
I am trying to access the sdcard on ADP2 from command prompt using adb tool and from window explorer, it says "Access is denied". I have followed the below procedure:
1) Installed the USB driver from Android site. 2) Connected the phone 3) Opened the "USB Connected" option from the notification bar of the phone, clicked "Mount". Also USB Debugging is enabled. 4) I am able to get the device name using "adb devices" command, also I am able to install APK file
But, when I tried to push APK or any text file to the sdcard, it is failing. This is the command I tried: "adb push Hello.apk /sdcard", it gives an error "Permission denied".
Also I tried accessing the sdcard from window explorer, it gives an error "Access is denied".
Also tried formating the sdcard, this sdcard works in the laptop and other non-Android phones, also did phone reset.
View 2 Replies
View Related
Oct 12, 2010
Sync Gmail on Android source code or packages. How do I get it
View 2 Replies
View Related
Aug 11, 2010
I've read through the SampleSyncAdapter project
(http:// developer.android.com/resources/samples/SampleSyncAdapter/index.html).
The main entry point for the SampleSyncAdapter appears to be the onPerformSync(...) method. In the documentation page for the sample, it mentions that "[onPerformSync]...gets called whenever the sync manager issues a sync operation for that sync adapter." Who is this 'sync manager', and at what intervals will it instruct the sync adapter to onPerformSync()?
View 2 Replies
View Related
Apr 14, 2010
I have the HTC Desire with Android 2.1. I sync it with exchange, but it tells me I have to have a "phone unlock code" to sync with exchange. This more or less ruins the phone for me, as I have to type a password EVERY single time the screen locks (or go to standby). Only way I can see around it is forwarding all my exchange mail + syncing all my exchange contacts and my exchange calendar with g-mail, but that is a rather poor solution I think : I have g-mail sync running as well, and that does not require me to have a "unlock password" Does anyone know a way to get around this annoying "you must have an unlock code to sync with exchange" issue?
View 18 Replies
View Related
Dec 31, 2009
I notice the default doesn't have any form of graphic equalizer!Also, Tunewiki seems cr*p at finding the correct album art, is there any alternative please?
View 1 Replies
View Related
Aug 27, 2009
Where in the source are the layouts for the built-in UI's?I would like to reuse (copy) a couple of the contact UI's rather than recreate the wheel.
View 4 Replies
View Related
May 19, 2010
Is there anyway to get the base station and/or cell Id information of the subscriber in Android?
View 1 Replies
View Related
Dec 24, 2009
Is there any official site that discusses any updates to whether or not the Ion will be able to upgraded to Android 2.0? Or is there any concrete news among users here?
View 4 Replies
View Related
Sep 18, 2010
Question before I dive deeper into converting my current rendering system to openGL. I heard that textures needed to be in base2 sizes in order to be stored for rendering. Is this true?
My application is very tight on memory, but most of the bitmaps are not a perfect square. Does storing non-base 2 textures waste extra memory?
View 3 Replies
View Related
Jul 22, 2010
i have created an application XYZApp and put it in package/ apps directory of eclair source code and i have added one directory name XYZFrame in framework/base and XYZFrame dir have native code, jni and interfaces. These interface define in framework/base/XYZFrame/ Interfaces/ directory are imported and implemented in class of package/app/XYZApp. The XYZFrame is added in build/core/pathmap.mk and compiled. The compilation is done and apk for XYZApp is created. I installed the XYZApp.apk in to galaxy phone using adb. Now when i execute the XYZApp. apk on galaxy phone, i m getting an error (interfaces not found and fail to link). These interfaces are defined in framework/base/XYZFrame/Interfaces/. i think that framwork/base/XYZFrame/Interfaces are not available on phone Or problem is some thing else.
View 3 Replies
View Related
Mar 16, 2010
I get a lot of requests in my application to allow for custom icons packs from BetterCut / Open Home. The way it seems to work is you install BetterCut or Open Home, then you can install tons of these free icon packs from the market. Once installed both those apps (and other apps) will poll for those icon packs and use the icons. I want to know how to poll the install applications for the asset folders that are available. I have opened up a few of the icon packs and verified that there is an assets folder in there and they are full of all the icon png files. I've searched on here, other code sites, google, etc., but haven't found any leads.
From the answer below I have written some code to try and list a file from my own projects assets directory but it does not seem to work.
Resources r = this.getResources();
AssetManager a = r.getAssets();
String[] list = a.list("/");
Log.d("test", "Length of / is "+list.length);
for (String s : list) { Log.d("test", s); }
Log.d("test", "Length of /assets is "+a.list("/assets").length);
Log.d("test", "Length of /assets/ is "+a.list("/assets/").length);
Log.d("test", "Length of /assets/ is "+a.list("/assets/").length);
Log.d("test", "Length of ./assets/ is "+a.list("./assets/").length);
Log.d("test", "Length of ./assets is "+a.list("./assets").length);
This is the output:
03-16 12:25:04.591: DEBUG/test(13526): Length of / is 6
03-16 12:25:04.591: DEBUG/test(13526): AndroidManifest.xml
03-16 12:25:04.591: DEBUG/test(13526): META-INF
03-16 12:25:04.591: DEBUG/test(13526): assets
03-16 12:25:04.591: DEBUG/test(13526): classes.dex
03-16 12:25:04.591: DEBUG/test(13526): res
03-16 12:25:04.591: DEBUG/test(13526): resources.arsc
03-16 12:25:04.614: DEBUG/test(13526): Length of /assets is 0
03-16 12:25:04.637: DEBUG/test(13526): Length of /assets/ is 0
03-16 12:25:04.661: DEBUG/test(13526): Length of /assets/ is 0
03-16 12:25:04.692: DEBUG/test(13526): Length of ./assets/ is 0
03-16 12:25:04.716: DEBUG/test(13526): Length of ./assets is 0
I figured out that you can read from the assets directory without actually using the folder name:
InputStream is = assetManager.open("test.png");
I also tried this with an asset in Appliction 2 from Application 1, where the folder path is /asset/icon/image.png:
InputStream is = assetManager.open("icon/image.png");
Next I figured out that you can list a directory inside assets:
String[] list = assetManager.list("icons");
That also works great. The only thing failing right now is how to list the base directory assets.
View 3 Replies
View Related
Jun 3, 2010
Does anybody know if there is an application for Doppler radar or base velocity? I know stuff like weatherbug have radar but it doesn't have base velocity...anybody know of anything?
View 8 Replies
View Related
Nov 6, 2009
There is this xml file under frameworks/base.
/frameworks/base/core/res/res/layout/simple_dropdown_item_2line.xml
How can I inflate that in my own android application?
View 2 Replies
View Related
May 29, 2010
I am extending BaseAdapter and trying to populate the List Screen on my Activity Screen. NotifyDataSetChanged is not working as expected. Please find the below snippet of code.
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); initialize();
context = this; config = Config.getInstance();
searchText = new EditText(this); handler = new Handler() {
@Override public void handleMessage(Message msg) {
msgQueueAdapter.notifyDataSetChanged();
context.msgQueueAdapter.notifyDataSetChanged();
msgQueueAdapter.notifyDataSetInvalidated(); } };
View 6 Replies
View Related
Mar 16, 2010
I am now reading contentProvider.java( under the base/core/java/android/content)
Ln 127 looks following:
CODE:..........
I'm really confused about that contentProvider invoke this.query()
CODE:.................
where is it implement? How can i find it? anyone can tell me?
View 3 Replies
View Related
Aug 18, 2010
How can I configure Eclipse to use the entire Android source code?
I'm working on the file settings.apk using eclipse...but with the editor, for example, I can't import
"android.os.SystemProperties" (error: 'cannot be resolved').
there's a guide to configure eclipse to work on system app??
View 3 Replies
View Related
Jul 23, 2009
Currently I am working on IM, and I am facing problem during implementations. I am implementing this messenger using XMPP client and using smack API for implementing all features like contacts list, online offline status, and chat also. Prblem which I am facing:
Its my list view where I am showing contacts list
public class ContactsList extends ListActivity implements OnClickListener{
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ContactsManager manager = new ContactsManager(this); setListAdapter(manager);
} public class ContactsManager extends BaseAdapter{
private LayoutInflater mInflater; private Bitmap mainListIcons[];
private static ContactsInfo contactsInfo; public ContactsManager(Context context) {
mInflater = LayoutInflater.from(context); mainListIcons= new Bitmap[3];
mainListIcons[0] = BitmapFactory.decodeResource (context.getResources(), R.drawable.online);
mainListIcons[1] = BitmapFactory.decodeResource (context.getResources(), R.drawable.offline);
} @Override public int getCount() { return Global.contacts.size();//
contacts is vector where I am saving my contacts
} public Object getItem(int position) { return position;
} public long getItemId(int position) { return position;
} public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder; if (convertView == null) {
convertView = mInflater.inflate (R.layout.main_settings_lists_icon_text, null);
holder = new ViewHolder(); holder.mainListDisplayText = (TextView) convertView.findViewById(R.id.main_settings_lists_text);
holder.mainListDisplayIcon = (ImageView) convertView.findViewById(R.id.main_settings_lists_icon);
convertView.setTag(holder);}else{ holder = (ViewHolder) convertView.getTag();
} contactsInfo = (ContactsInfo)Global.contacts.elementAt (position);
String username = contactsInfo.getUsername(); String status = contactsInfo.getUserstatus();
if(status.equalsIgnoreCase("unavailable")) { older.mainListDisplayIcon.setImageBitmap(mainListIcons[1]);
}else{ holder.mainListDisplayIcon.setImageBitmap(mainListIcons[0]);
} holder.mainListDisplayText.setText(username); return convertView;
} static class ViewHolder { TextView mainListDisplayText;
ImageView mainListDisplayIcon;}
public class ContactsHandler implements RosterListener {
@Override public void entriesAdded(Collection<String> c) {
for(String s:c) { Log.i("ADDED Contacts",s);
} } @Override public void presenceChanged(Presence p) {
Log.i("PRESENCE",p.getFrom()); Log.i("IS Available",""+p.isAvailable());
Log.i("UserStatus",""+p.getStatus()); if(p.getFrom().contains("@") && p.isAvailable())
{ ChatManager chatmanager = Connection.getVopConnection getXMPPConnection().getChatManager();
Chat newChat = chatmanager.createChat("gulfam@imran-mehmood", new ChatHandler());
} } }
View 2 Replies
View Related