Android :: Resource Linking / Imports
Jun 23, 2010
First off; I know the implementation of this should be discussed on the framework list, but I'm putting this idea out on here to see if there is a need for it. I've recently worked on a project where the designer wanted a 2 x 3 grid of icons as the apps "home" page. This threw up an interesting situation because to do this using the best resolution possible it seems we would either need to copy the actual icons into multiple directories, or create a resource alias file for each icon, neither of which is ideal (think 30+ icons across the app which needed duplicating). What I'm wondering is if there is a need for a single file which contains all of the resources to use within another resource directory. To give you an idea of the problem I'll scale it down to 3 icons which have mdpi and hdpi variants;
drawables/icon1.png drawables/icon2.png drawables/icon3.png drawables-hdpi/icon1.png drawables-hdpi/icon2.png drawables-hdpi/icon3.png
As the Dell Streak is a WVGA device that identifies itself as a large- mdpi device we wanted to use the -hdpi icons for it, but this would result in three new files containing resource aliases; drawables-large-mdpi/icon1.xml drawables-large-mdpi/icon2.xml drawables-large-mdpi/icon3.xml What I'm wondering is should this be a single file which contains a list of all the imports. For example;
drawables-large-mdpi/imports.xml which contains;.......
View 7 Replies
Feb 4, 2009
Does android resource files for values and layouts have any way to import other xml files. This is a good approach for products, where there is a core module and many sub modules. The Submodule may also use some of the core defined key value pairs etc. Also, in case with a module, if the view is very complex.. better to manage them as different xml's. Are there any other approach to handle this.. by way R inheritance etc.. I suppose only one R supported per application.
View 2 Replies
View Related
Aug 26, 2010
Does anyone know the equivalent of these imports from J2ME to Android?
import javax.microedition.io.Connector; import javax.microedition.io.HttpConnection; import javax.microedition.io.SocketConnection; import javax.microedition.io.StreamConnection;
Also, I needed to import midpapi20.jar but I don't want to use packages outside Android into my app -- would I be able to find most of the related packages in Android libs?
View 20 Replies
View Related
Nov 12, 2010
I have to make other developers to be able to connect to my service, but my AIDL imports my classes. I don't want to give them the source code of the service, just the APK and some kind of a stub file (java, jar?). How can I give them something - "the glue" - which makes them to use the classes in my AIDL and using the service akp without getting the sources of the service?
View 1 Replies
View Related
Aug 19, 2010
I'm working on nifty enhancements to an Android app and I've cloned its source from android.git.kernel.org. How does one deal with imports not found, for example:
import android.content.entity*
import android.os.ServiceManager
import com.google.android.collect.*
import com.android.internal.*
etc. This is with a checkout of tag Android-2.1_r1 Android2.1-update1 with ADK 0.9.7.v20100514. I'm not seeing them in the platform source - maybe I'm looking the wrong way? I spose the answer is a library or something, but it's my first time in.
View 1 Replies
View Related
Aug 3, 2010
I have an XML resource file:
<resources> <section>
<category value="1" resourceId="@xml/categoryData1" />
<category value="2" resourceId="@xml/categoryData2" />
<category value="3" resourceId="@xml/categoryData3" />
</section> </resources>
Using XmlPullParser, on the START_TAG, I can use:
int value = parser.getAttributeIntValue(null, "value", 0);
to get values 1, 2, 3...however:
int resourceId = parser.getAttributeIntValue(null, "resourceId", 0);
doesn't work...it just yields the default value 0, or whatever I change the default value (3rd parameter) to be. Does anyone know what I am doing wrong or if this is possible?
View 1 Replies
View Related
Aug 9, 2010
Since I got my Droid X a few days ago I have been plagued by contact syncing issues and most notably how they relate to the facebook apps, both the Motorola Facebook and the Android market facebook. My suspicion is that these bugs are behind the comic sluggishness of my brand new phone. Here are the bugs I've discovered in the hopes that someone has a solution for me, or that the developers will catch on.
Motorola Facebook Issues:
This app imports ALL of your facebook friends to your contacts. There is no way to turn this off. I have over 1,000 facebook friends, most of whom I will never contact on the phone. This is exceedingly annoying. In reality I have about 300 contacts that I actually want in my phone which I imported easily from google. The Motorola facebook app did seem to sync up with these contacts just fine adding pictures, emails etc. Only problem was it brought everyone else along with it.
Market Facebook Issues:
- Despite setting my sync preferences to only syncing data to existing contacts, Facebook will still add anybody with a phone number attached to their facebook account to "Phone Contacts." "Phone Contacts" are different from "All Contacts" (bizarre), so it's not quite as bad as the Motorola FB importing everyone of my fb friends (phone # or not) to "All contacts", but it's still very, very annoying.
- The app will not sync pictures to contacts.
- The app creates dozens and dozens (in my case 43) "linked profiles" to each of my contacts. I am guessing this is what is causing the ridiculous sluggishness of my phone.
Conclusions:
- I am going to fully delete the Market FB app from my phone along with the data it added to my contacts.
- Since I really love having pics/fb info attached to my contacts, I am going to try using the Moto FB app by itself and just live with the 1000 or so contacts. This will be the first time I am trying the moto app w/o the market app. I am hoping this solves the sluggishness which I suspect has to do with the "linked profiles" created by the Market FB app.
Currently my phone is in the process of deleting the market FB app which is taking FOREVER. I will keep you all posted. And I'd love to hear if anyone else is having similar problems.
View 14 Replies
View Related
Sep 20, 2010
I am really struggling with linking menus together. The app I want to create is a collection of menus that leads to url links to various sites I plan to open within the application. I have created a list activity menu with 8 options and I have eight classes with further options. My problem is how to link the menus together. I ask the question and someone said that I should map. Here is the code:
public class MyList extends ListActivity {
private static final String Cp = null;
private static final String Pp = null;
private static final String L2 = null;
private static final String L1 = null;
/** Called when the activity is first created. */
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Create an array of Strings, that will be put to our ListActivity
String[] names = new String[] { "Pp", "Cp", "L1", "L2", "Bt", "Se", "As", "Travel"};
// Create an ArrayAdapter, that will actually make the Strings above................
View 1 Replies
View Related
Jul 6, 2010
I have a WebView which may contain data that appears to be getting "auto linked". Something that looks like an email address is becoming clickable, even though it's now within an <a> tag or has an onclick attribute. How do I disable this auto-linking? I've looked through the WebView docs, as well as the WebSettings docs, but didn't seem to see anything that mentions this behavior.
View 2 Replies
View Related
Aug 5, 2010
I'm trying to link my contacts with my Facebook friends so I have their pictures etc in my phonebook/messaging. The problem is that when I try to link them, it only displays my Facebook friends from E-Z. It won't display/let me link to any contacts before E in the alphabet.
View 1 Replies
View Related
Jul 1, 2010
I have developed two separate applications 1) android 2.1 that takes user input / registers , shared pref and stuff and 2) Google Maps GPS on target Google APIs 7. Now, I would like to embed the second project in first . That is, after the user registers it will bring up Maps and suggestions and stuff. How can I use both the targets (Apis ) together in a single App?
View 1 Replies
View Related
Oct 31, 2010
I have heard that the iPhone does not support dynamic linking. I want to know whether any mobile platforms support dynamic linking, such as Android or BlackBerry?
View 2 Replies
View Related
Feb 3, 2009
Is there any way to link directly to an application in the Marketplace? You know, so you could use something like AdMob to launch the Marketplace and bring users to your app. Or to launch the Marketplace from a URL or something. Been trying to figure out how to do this. Anyone sniff any G1 traffic yet?
View 6 Replies
View Related
Aug 24, 2010
I'm quite new to Android so please excuse if this is the wrong forum, but I have searched up and down and also this list, but is there no way to externally link from my website into the market to show my app within a desktop browser and not on the device? I mean similar to the iTunes links where you can view the application details right in any browser.
View 4 Replies
View Related
Feb 16, 2014
How to make a android app support Deep Linking?
View 7 Replies
View Related
Nov 24, 2013
linking two android galaxy s3 phones together, as in whenever one phone receives a text the other gets an alert and can view the the other phones incoming and outgoing texts. how and the steps to do it.
View 1 Replies
View Related
Oct 15, 2010
I am building an app which will let the user take a photo, then add some details which will be stored in a database. I want to be able to store some information (URI?) in the database so that when the user clicks the database entry from a listview it retrieves the photo. I hope it is clear what I want to do. Could I instead use a file path to locate the photo? Or do I need the URI? If I do need the URI then how do I get it?
View 3 Replies
View Related
Feb 24, 2009
I know with regular Google Checkout FEES if you link to Adwords some money you save there also credits towards your Google Checkout fees.
Does this apply for Android fees as well??
View 3 Replies
View Related
Feb 4, 2010
I have a static library: libhello.a and I want to create a executable file that link with this static library:Code...
View 3 Replies
View Related
Mar 7, 2010
I am successfully linking some of my code stored in a .jar-based library to my Android app. The .jar code references Android library content just fine.
The problem is I need to include 'res' resources in the library but can't work out how to do this. Any suggestions?
View 2 Replies
View Related
May 1, 2010
I am some facebook contacts that don't have phone numbers on their fb accounts so I go to People and then click Add Contact, I enter their name and number and then I hit save. I then have to search for the contact and then edit and link them. Is there a more efficient way to do this? For instance, is there a way to link a contact from the "Add contact" form instead of hitting save and then searching for the contact you just saved?
View 2 Replies
View Related
Jul 26, 2010
I had to go and delete my friend stream and delete my account because I kept getting force close errors when trying to update my friendstream. Now all my contacts are not linked to their facebook accounts anymore. When I try to re-link them they say No matches found. I know their names are correct. Does anyone know how to fix this?
View 1 Replies
View Related
Oct 18, 2012
I'm developing an app for android. The main screen has 6 buttons. Each button leads to another screen. I'm having trouble with the code to make the buttons do anything when clicked. this is what I have: on the main page my button id is glass the page opened when clicked is glass.xml
PHP Code:
android:onClick="Intent i = new Intent(FirstActivity.this, SecondActivity.class);"
and my scr folder I have the java activities FirstActivity.java
PHP Code:
package install.fineline;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;public class FirstActivity extends Activity implements OnClickListener {/** Called when the activity is first created. */@Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fine_line); Button btnload = (Button) findViewById(R.id.glass); btnload.setOnClickListener(this);}@Overridepublic void onClick(View v) { // TODO Auto-generated method stub Intent i = new Intent(this, SecondActivity.class); startActivity(i);}}
and SecondActivity.java
PHP Code:
package install.fineline;import android.app.Activity;import android.os.Bundle;public class SecondActivity extends Activity {@Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.glass);}}
View 2 Replies
View Related
May 23, 2013
Me and my Partner are creating an APP that uses the Facebook news feed to update an APP news feed. It can even work VIA Blogging. I cant see any coding upon the subject.
View 1 Replies
View Related
Nov 17, 2010
We have a great software foundation based on Microsoft MVC 2, Entity Framework 4, Repositories, POCOs, Service and Control layers, C# Views, JQuery and html. Firefox pulls 100 records in 250 ms, drops it in to a template, links the data to the markup, and we sit back and drink margaritas.
Boss walks in and says he wants an iPhone app. I bet we need an Android app too.
What frameworks could we use to easily jump from our Microsoft comfort zone in to the wide, wide world of the Apple iPhone / iPad, along with a follow-up Android baby.
I imagine we could use our JSON controller methods to communicate. Is there some type of a client side JavaScript consuming app framework we could get a reasonable Website like interface re-working? They didn't like the idea of simply running the whole thing in Safari, which works pretty well.
Needs:
Send and receive JSON objects
Some type of template engine so we can pair up objects to markup, or at least some way to separate design from programming
Something similar to JQuery would be nice
A good editor with auto-complete and highlighting, something that compares to VS2010
It took us two years to incorporate design patterns, Agile methods, and Domain Driven concepts using MVC and Javascript. We may have two or three months to re-produce the same functions.
View 5 Replies
View Related
Jun 6, 2010
Anyone else having problems where the pictures are all blurry? When I make calls and the picture of the person I'm calling pops up, it's looks horrible. Any way to change that?
View 3 Replies
View Related
Jul 2, 2010
I've seen a few threads on here about this but none with an answer to my question.I want to keep facebook on friend stream but i want to remove the contact sync option.Numerous people have said to remove the facebook for htc sense option in settings->accounts and sync.then to re-add the account and quickly untick the "sync contacts"box. I've done all this except for the last bit as there is not a check box.I can only imagine that the app has been updated to not include a check box.
View 5 Replies
View Related
May 2, 2010
I was wondering if you can change the picture of the contact when linked to his/her facebook page.Some people use dumb pictures on there, so I want to have there real faces.
View 3 Replies
View Related
Oct 8, 2010
I just got my first smart phone yesterday, HTC wildfire. I finally got my contacts onto it by using bluetooth, HTC Sync did not work for me, it was trying to connect but timed out every time.
My question is: I have 3 versions of the same contact, each with a different numbers - I can link the contacts that are on the phone but not the one that is on the SIM card. How can I transfer the contact from the SIM to the phone so that I can link all 3?
View 11 Replies
View Related
May 4, 2010
Is there a way to just use my messages icon and link handcent to it so I don't have to open up the handcent icon everytime?
View 6 Replies
View Related