[android-developers] Digest for android-developers@googlegroups.com - 24 Messages in 18 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    Dianne Hackborn <hackbod@android.com> Sep 30 10:26PM -0700 ^
     
    That is used to request an install.
     
    An app can't run immediately after install, by design. Prior to 3.1 there
    were some tricks you could play to make it likely you would get launched
    soon after an install. As of 3.1 this restriction is strongly enforced.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@android.com
     
    Note: please don't send private questions to me, as I don't have time to
    provide private support, and so won't reply to such e-mails. All such
    questions should be posted on public forums, where I and others can see and
    answer them.

     

    TreKing <trekingapp@gmail.com> Oct 01 01:50AM -0500 ^
     

    > That is used to request an install.
     
    Whoops. Meant this one:
    http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED
     
    An app can't run immediately after install, by design. Prior to 3.1 there
    > were some tricks you could play to make it likely you would get launched
    > soon after an install. As of 3.1 this restriction is strongly enforced.
     
    Word - I was thinking the OP wanted to run his app after another was
    installed.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Sam Deleon <samjdeleon@gmail.com> Sep 30 11:32PM -0700 ^
     
    Before my question....Once again thanks for the help, I'm finding
    everyone around Android so helpful and kind :)
    I found a lot of info with the answers to my last question and have
    been reading even more :) I'm learning lots and I'm so happy that is
    it so far clicking with me, although its not easy, I thought I was
    going to have a much harder time. I just so glad I'm learning :)
     
    OK question time:
     
    I'm creating a app that is going to be storing lots of data. What I
    want to know is if there is a way to query (pull) this data and create
    a report/form, something I specifically make, I'm not looking for it
    to just list data in rows or something. I need the "report","form" to
    be specific (something I can create the look of and just have the data
    imported into the right places whenever someone asks the app to
    produce a report) Is there a way to program this, either within the
    same app that's going to be collecting the data, like in the
    background or can I make another app to do it. Like say a doc file or
    PDF (I'm sure I can't write from the database to a doc or PDF
    directly, but maybe export the data to some other file, that has my
    layout in place, and just puts the data where I want it then convert
    to doc or PDF, the doc and PDF are not important as long as I can just
    make a file with a specific look, that can be printed at some point)
     
    Example:
    Someone using the main app, which lets them document things like a
    patients name, birthday, vital signs, pain info, falls, and so on and
    so on....
    Now either same person or another person whats to print a report about
    that patient data.... but instead of just creating a file of some
    human readable kind with rows of data.. it creates a nice looking file
    something I pre-created/programed that just imported that certain data
    in the right places....
     
    Sorry that took so long to get out, I also kinda repeated myself, I'm
    just making sure my point get across right :)
    Thank you Thank you for reading and trying to help me!!!!!!!!!

     

    Marco Alexander Schmitz <marco.alexander.schmitz@googlemail.com> Oct 01 08:46AM +0200 ^
     
    Hi sam, yesterday I read something about couchdb and nosql db. Please try
    your favourite search machine, I think this will point you into the right
    direction. Gretings marco

     

    Dianne Hackborn <hackbod@android.com> Sep 30 11:43PM -0700 ^
     
    TabActivity is a subclass of Activity, so if you inherit from TabActivity,
    you are also getting everything from Activity as well.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@android.com
     
    Note: please don't send private questions to me, as I don't have time to
    provide private support, and so won't reply to such e-mails. All such
    questions should be posted on public forums, where I and others can see and
    answer them.

     

    Zsolt Vasvari <zvasvari@gmail.com> Sep 30 11:12PM -0700 ^
     
    > Having said that however, it will also say that using hardware buttons is
    > likely to give a more pleasant user experience so it would be worth
    > considering even for the end user interface.
     
    What's your definition of "hardware" buttons? Do you consider the
    buttons on the Nexus One to be hardware? I don't -- they are
    dedicated buttons, but there is nothing mechanical about them. It
    really is no different than using the button bar on Honeycomb.

     

    Dianne Hackborn <hackbod@android.com> Sep 30 11:42PM -0700 ^
     
    What do you mean by go to settings and map their buttons? There is a
    well-defined keycode for search; you shouldn't need to ask the user to map
    that to anything.
     
    Anyway, our recommendation is to assume the search button isn't there and
    always have another way to start a search. In practice many users won't be
    aware they can search if you are only relying on the hardware button. (Good
    argument for that button going away...)
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@android.com
     
    Note: please don't send private questions to me, as I don't have time to
    provide private support, and so won't reply to such e-mails. All such
    questions should be posted on public forums, where I and others can see and
    answer them.

     

    TreKing <trekingapp@gmail.com> Sep 30 07:22PM -0500 ^
     

    > I would like to know. Is it possible to make our application to run on all
    > android devices, it may be tablet or mobile or some thing else.
     
     
    Yes, it is possible. There have been numerous blog posts on this topic.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Sam Neel <neel.sam11@gmail.com> Oct 01 11:51AM +0530 ^
     
    Thanks
     

     

    Zsolt Vasvari <zvasvari@gmail.com> Sep 30 11:17PM -0700 ^
     
    I didn't read the rest of your question when I saw this:
     
    "40% of users have my application installed on more than one
    device."
     
    How do you know this? If you go by the numbers given to you on the
    Developer Console, those numbers are at least misleading, and probably
    completely wrong. I have very, very hard to believe that 40% of
    Android users have multiple devices with the same Google Id tied to
    the,
     
     
     

     

    Zsolt Vasvari <zvasvari@gmail.com> Sep 30 11:09PM -0700 ^
     
    Look at the source code of the Contacts app.
     

     

    Pradeep <prasai08@gmail.com> Sep 30 09:08PM -0700 ^
     
    Hello Mark,
     
    I Have imported the class file, due to which I am not getting the
    compile error and Moreover, by importing the class file, we should be
    able to access the static variable.
     
    How would other application know about the URI of this content
    provider. So, I thought this Content_URI was introduced as a concept
    for content provider, as done for other providers like contacts etc.
     
    Accessing the URiI like "Content:// abc.com.provider/books" looks a
    wage usage i think. What do u say.
     

     

    MComputing Lab <mobilecomputinglab@gmail.com> Oct 01 08:34AM +0530 ^
     
    Keep a centralized server where the data gets populated. The app retrieves
    the data from the data server based on the profile of the user and displays.

     

    Thomas <tbirchmire@usa.net> Sep 30 08:39PM -0700 ^
     
    I think also you would have to have some central server that would be
    aware of your location and your friends location and then would be
    able to inform the two of you that you areiwithn some speificated
    distance.
     
    Best Regards
     
    Tom B
     

     

    R S <musicgu7@gmail.com> Oct 01 05:22AM +0300 ^
     
    Hi!
     
    Right now I am loading my tiny music clips in the same class that I am using
    it in like this:
    ========================================================================
    public static final int A1 = 1;
    public static final int A3 = 3;
    private SoundPool soundPool;
    private HashMap<Integer, Integer> soundPoolMap;
    soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 100);
    soundPoolMap = new HashMap<Integer, Integer>();
     
    soundPoolMap.put(A1,soundPool.load(GameScreen_bugfix.this, R.raw.a, 1));
    soundPoolMap.put(A3,soundPool.load(GameScreen_bugfix.this, R.raw.b, 1));
    //etc
     
    AudioManager mgr = (AudioManager)
    GameScreen_bugfix.this.getSystemService(Context.AUDIO_SERVICE);
    float streamVolumeCurrent = mgr.getStreamVolume(AudioManager.STREAM_MUSIC);
    float streamVolumeMax = mgr.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
    float volume = streamVolumeCurrent / streamVolumeMax;
     
    try {
    soundPool.play(soundPoolMap.get(sound), volume, volume, 1, 0,
    1f);
    } catch (Exception e) {
    e.printStackTrace();
    }
    ========================================================================
     
    Can someone please tell me how I can load all the soundclips in Activity A,
    and then call them in Activity B?
     
    Thanks!
    Ryan

     

    Studio LFP <studio.lfp@gmail.com> Sep 30 05:57PM -0700 ^
     
    Correct.
     
    Note that this may have been fixed somewhere along the way and they haven't
    taken time to mark that issue resolved. As you can see, the Droid and others
    I confirmed that on were Android 2.0.1, which is hardly in use today.
     
    At the time of posting that issue, I spent a ton of time trying to figure
    out why I couldn't get a lock in another application at any speed while I
    had a background location request set at 15 minutes. Turned out it was my
    application causing the issue and prompted me to write that post.
     
    I haven't revisited that part of our internal app yet, so feel free to test
    and see what results you get.
     
    Hopefully that is fixed and we can all be happy about it!
     
    Steven
    Studio LFP
    http://www.studio-lfp.com
     
     
    On Friday, September 30, 2011 3:16:57 PM UTC-5, Pinheiro wrote:

     

    Emanuel Moecklin <1gravityllc@gmail.com> Sep 30 05:51PM -0700 ^
     
    Hi Ricardo
     
    An IntentService is perfect for your purpose.
    Wrap every notification in an Intent and send it to the IntentService
    (startService(Intent)).
    The service will start as needed and handles each Intent using a
    worker thread to keep the ui thread responsive. If it runs out of work
    it stops itself.
    Should your app crash or should Android decide it needs to destroy the
    service because it needs resources for other purposes, the service
    will be restarted as soon as possible. To achieve this you must call
    setIntentRedelivery(true) in your constructor.
     
    IntentServices are not a solution for your problem if you want to
    process several requests at a time, but you can easily extend Service
    to handle multiple requests simultaneously.
     
    Ah and RTM: http://developer.android.com/guide/topics/fundamentals/services.html.
     
    Cheers
    Emanuel Moecklin
    1gravity LLC
     

     

    chen potato <scholarlovepotato@gmail.com> Sep 30 05:48PM -0700 ^
     
    -----------------------------------------------------------------------
     
    chen potato wants to stay in better touch using some of Google's coolest new
    products.
     
    If you already have Gmail or Google Talk, visit:
    http://mail.google.com/mail/b-7981ba847c-b9d8fc5c3d-oHKO77wSOPqP-hhxVRXCVyd1Z3c
    You'll need to click this link to be able to chat with chen potato.
     
    To get Gmail - a free email account from Google with over 2,800 megabytes of
    storage - and chat with chen potato, visit:
    http://mail.google.com/mail/a-7981ba847c-b9d8fc5c3d-oHKO77wSOPqP-hhxVRXCVyd1Z3c
     
    Gmail offers:
    - Instant messaging right inside Gmail
    - Powerful spam protection
    - Built-in search for finding your messages and a helpful way of organizing
    emails into "conversations"
    - No pop-up ads or untargeted banners - just text ads and related information
    that are relevant to the content of your messages
     
    All this, and its yours for free. But wait, there's more! By opening a Gmail
    account, you also get access to Google Talk, Google's instant messaging
    service:
     
    http://www.google.com/talk/
     
    Google Talk offers:
    - Web-based chat that you can use anywhere, without a download
    - A contact list that's synchronized with your Gmail account
    - Free, high quality PC-to-PC voice calls when you download the Google Talk
    client
     
    We're working hard to add new features and make improvements, so we might also
    ask for your comments and suggestions periodically. We appreciate your help in
    making our products even better!
     
    Thanks,
    The Google Team
     
    To learn more about Gmail and Google Talk, visit:
    http://mail.google.com/mail/help/about.html
    http://www.google.com/talk/about.html
     
    (If clicking the URLs in this message does not work, copy and paste them into
    the address bar of your browser).

     

    TreKing <trekingapp@gmail.com> Sep 30 07:21PM -0500 ^
     

    > I would like to get the path of the directry which I will choose it when
    > I click on a button, of couse without finich my application. how can I do
    > this?
     
    Your questions is really not clear.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Sep 30 07:19PM -0500 ^
     

    > i am coded to do almost anything after "enter" (ie; Toast,
    > hideSoftInput), but cannot figure out how to create a new text.
     
    Use a valid constructor.
     
     
    > I constantly get an error "The constructor
    > EditText(new View.OnKeyListener(){}) is undefined"
     
    That is not a valid constructor.
     
     
    > below was created programatticaly and i manually setId(601). i would
    > like the subsequesnt editTexts that are dynamically created to be ++
    > the previous editText (ie; editText1 id=601, editText2 id=602, etc.)
     
    See getId() and setId()
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Akhilesh Mani <coffeewithakhi@gmail.com> Sep 30 02:42PM +0530 ^
     
    Hi,
     
    I want to develop a screen like this(attachment),with help
    of ExtentedListView and Fragment.
    Please suggest me.
     
    Regards
    Mani.

     

    "davidshen84@googlemail.com" <davidshen84@gmail.com> Sep 30 12:45AM -0700 ^
     
    it is removed from the document, but it seems it is still used even in the
    demo app. i guess it will still be available for a while :P
     
     
    http://developer.android.com/resources/samples/ApiDemos/AndroidManifest.html
     
     
    <receiver android:name=".os.SmsMessageReceiver" android:enabled="false">
    <intent-filter>
    <action android:name="android.provider.Telephony.SMS_RECEIVED" />
    </intent-filter>
    </receiver>

     

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 23 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

 Topic: Need Help
    TreKing <trekingapp@gmail.com> Sep 30 07:12PM -0500 ^
     

    > so i need code to make search view in android. pl can any help me through
    > that code.
     
    Read the documentation - there is a section on Search.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Sep 30 07:10PM -0500 ^
     
    > uninstall my application form android emulator.but the still problame
    > i m facing.please give me some solution regarding to this problame.how
    > can i fix this intent problame?give me some solution
     
    The solution is to debug your application and fix the problem that causes
    your app to crash.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Sep 30 07:09PM -0500 ^
     

    > But since the app and the service run on the same UI thread, will the
    > service also close when my app force closes?
     
    Yes, but more because they run in the same process, not because of the same
    UI thread.
     
     
    > Is there any other way to solve this problem or I just have to do my best
    > so my app doesn't force close?
     
    The second one.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Sep 30 07:07PM -0500 ^
     

    > I want to extends "TabActivity" and "Activity" class in my main class..to
    > use their properties at one place..
     
     
    OK - so do it. This tells us nothing about what problem you're having.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Sep 30 07:05PM -0500 ^
     
    2011/9/29 Nguyễn Trung Tài <trungtai1805@gmail.com>
     
    > I can add a friend using facebook dialog, but i can't add a friend
    > without using it. (like facebook application for android )
     
    Try a Facebook SDK support forum.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Sep 30 07:05PM -0500 ^
     
    On Wed, Sep 28, 2011 at 11:30 PM, Chris Cullington-Johnson <
    > error
     
    > " The appication HelloTabWidget (process Tab.Widget) has stopped
    > unexpectedly......"
     
    You need to use the debugger and LogCat to determine what is throwing the
    exception causing the app to crash.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Sep 30 07:02PM -0500 ^
     

    > Can someone please help me out with the technologies i would need to do
    > this?
     
    There is documentation on getting the device location. That would be a good
    starting point.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Sep 30 07:00PM -0500 ^
     

    > 09-28 08:21:01.750: ERROR/AndroidRuntime(791): Caused by:
    > java.lang.ClassCastException: android.widget.CheckBox
     
    You are apparently trying to cast a CheckBox to an EditText. Don't do that.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Sep 30 06:58PM -0500 ^
     

    > hi if i am building the basic application for android in main .java
    > file in src folder then i have given a button in xml file...after
    > clicking on the button how could i go to next screen i.e screen 2??
     
    Read the documentation and go through the samples.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    "daniel_nyberg@hotmail.com" <daniel_nyberg@hotmail.com> Sep 27 03:44PM -0700 ^
     
    Help Me, please !
    I'm pretty new on Android, but I've been struggeling with this code 10
    hours now, and needs help.
    I am trying to read the data from a web site, (in string format).
    The problem is that, after executed the row "response =
    client.execute(request);" it jumps directly to "}finally{"
    WHY????
     
    My code is attached below (and i have made INTERNET permission in the
    maifest file).
     
    _______________________________________________________________
     
    package com.example.helloandroid;
     
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.net.URI;
    import org.apache.http.HttpResponse;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpGet;
    import org.apache.http.impl.client.DefaultHttpClient;
     
    public class GetMethodEx {
    public String getInternetData() throws Exception{
    BufferedReader In = null;
    String data = null;
    try {
    HttpClient client = new DefaultHttpClient();
    URI website = new URI("http://www.rl.se");
    HttpGet request = new HttpGet();
    request.setURI(website);
    HttpResponse response = null;
    response = client.execute(request);
    In = new BufferedReader(new
    InputStreamReader(response.getEntity().getContent()));
    StringBuffer sb = new StringBuffer("");
    String l = "";
    String nl = System.getProperty("line.separator");
    while((l = In.readLine()) !=null){
    sb.append(l + nl);
    }
    In.close();
    data = sb.toString();
    return data;
    }finally{
    if(In != null){
    try{
    In.close();
    return data;
    }catch (Exception e){
    e.printStackTrace();
    }
    }
    }
    }
     
    }
    _____________________________________________________

     

    TreKing <trekingapp@gmail.com> Sep 30 06:54PM -0500 ^
     
    On Tue, Sep 27, 2011 at 5:44 PM, daniel_nyberg@hotmail.com <
    > The problem is that, after executed the row "response =
    > client.execute(request);" it jumps directly to "}finally{"
    > WHY????
     
    I would guess because it's throwing an exception. Sounds like you need to
    read up on that topic. Also read the documentation section on debugging.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Dancing Fingers <batymahn@gmail.com> Sep 30 04:47PM -0700 ^
     
    Thanks Kostya,
    I changed the '0' to a '1' without success. Actually Chars have only
    2 fields: a char and an int, which I thought setters were for. The
    thing of it is that I keep getting an XMLPullParserException, saying
    that I'm reading line -1, column -1.
     
    Thanks.
     
    Chris
     

     

    TreKing <trekingapp@gmail.com> Sep 30 06:46PM -0500 ^
     

    > i want to customize os. ... any inputs is highly appreciated.
     
     
    Ask in a forum that is dedicated to customizing the OS.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Phil H <phil@surfsoftconsulting.com> Sep 30 04:41PM -0700 ^
     
    I'm looking at the LVL code and had a question about user identity and
    the DeviceLimiter interface. I've one app in the Android Market that
    uses LVL in its recommended form, so users can install the application
    on any device they have set up their account on. Early indications are
    that the software is being repeat-installed at a higher rate than I'd
    expect - 40% of users have my application installed on more than one
    device. That seems a bit high but, for that application in particular,
    it is no more significant than some lost sales - there are no ongoing
    running costs for me to support.
     
    It is enough to make me concerned about my next app though, which
    requires a server in the cloud. Application sales should cover the
    cost of this but if the repeat installation rate is high, my
    application may not be sustainable in the medium to long term - server
    costs will eat into income and I could end up running at a significant
    loss - and the more popular the app becomes, the bigger that problem
    is. So this got me thinking. Repeat installations by one used are not
    a problem, but one core function will account for the majority of
    server load - both processing and bandwidth. So, my tentative thought
    is that if a user is currently using that core function on one of
    their devices, they will not be able to use that function on any other
    until they are done with it on the first device.
     
    To be able to implement this I need access to a piece of data that is
    common to all the installations, which brings me round to the
    DeviceLimiter interface. Is the userId supplied here the same for a
    given application, purchased by a single user, regardless of the
    device it is installed on? Or is it the ANDROID_ID for the device? I
    don't want any identifying information (like an email address), I just
    want to be able to spot, from my server code, when multiple instances
    of a single purchase are using my (relatively) expensive resources
    simultaneously.
     
    A fall back solution would involve the user putting in their Google
    Checkout order number to activate the application - is there a service
    exposed to securely obtain details about an order that my server could
    make use of? All I really need is to know is the application
    purchased.
     
    A bit rambling I know, but any suggestions on ways of tackling this
    issue are most welcome.

     

    leigh8347 <leigh8347@aol.com> Sep 30 04:30PM -0700 ^
     
    im having a little trouble with my app
     
    i want the barcode scanner to open on the click of a button(scan1),
    scan barcode, and return details to a edittext (barcode1).
     
    here is what i have so far......
     
    package com.android.app;
     
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.Button;
    import android.widget.EditText;
     
    public class Scanner extends Activity {
     
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.scanner);}
     
    public Button.OnClickListener scan1 = new
    Button.OnClickListener() {
    public void onClick(View v) {
    Intent intent = new
    Intent("com.google.zxing.client.android.SCAN");
    intent.setPackage("com.google.zxing.client.android");
    intent.putExtra("SCAN_MODE", "PRODUCT_MODE");
    startActivityForResult(intent, 0);
    }
    };
     
    public void onActivityResult(int requestCode, int resultCode,
    Intent intent) {
    if (requestCode == 0) {
    if (resultCode == RESULT_OK) {
    String contents =
    intent.getStringExtra("SCAN_RESULT");
    // Handle successful scan
    EditText editComment =
    (EditText)findViewById(R.id.barcode1);
    editComment.setText(contents);
    } else if (resultCode == RESULT_CANCELED) {
    // Handle cancel
    }
    }
    }
     
    }
     
     
    this is my manifest entry......
     
    <activity android:name=".Scanner" android:label="@string/app_name" >
    <intent-filter>
    <action android:name="com.google.zxing.client.android.SCAN"/>
    <category android:name="android.intent.category.DEFAULT"/>
    </intent-filter>
    </activity>
     
     
    any help would be great
     
    many thanks

     

    Mark Murphy <mmurphy@commonsware.com> Sep 30 07:34PM -0400 ^
     
    I suggest using their IntentIntegrator, as I did in this somewhat-old
    sample project:
     
    https://github.com/commonsguy/zxingdemo
     
    Also, delete your <intent-filter> -- *you* are not *implementing* an
    activity supporting com.google.zxing.client.android.SCAN. You are
    *consuming* an activity from the Barcode Scanner application that
    implements com.google.zxing.client.android.SCAN.
     
    Beyond that, since you did not state what your problem is, it may be
    difficult for people to assist you.
     
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
    Available!

     

    Rags <noota83@gmail.com> Sep 28 12:34AM -0700 ^
     
    I konw that Applying style dynamically isn't supported.
     
    If that is supported, please give me method.
     
    thank you.

     

    Andreas <heertsch@gmail.com> Sep 29 12:33AM -0700 ^
     
    The Android Open Accessory Development Kit () states for the USB
    interfaces:
    "The first interface is for standard communication while the second
    interface is for ADB communication."
    I want see logcat on my Accessory USB-Device. Is there a description
    of the protocol for such ADB communication arround?
    Thanks
    Andreas

     

    Adrian Randall <adrian.randal@gmail.com> Sep 28 04:52AM -0700 ^
     
    Hey Guys,
    So my problem is i have tried almost everything i can think of to
    center a programitacally created table in a programitically created
    layout.
     
    I've tried all the usual layout params center setting but still
    nothing:
     
    Score List is a set of pairs of scores (Name, Score). I'm just looping
    through and adding them to cells in a table and its always aligned
    left when i run it.
     
     
    ArrayList<Score> scoreList = new ArrayList<Score>();
    public LinearLayout getHighScoresView(Context context) {
    final RelativeLayout.LayoutParams layoutParams = new
    RelativeLayout.LayoutParams(
    RelativeLayout.LayoutParams.FILL_PARENT,
    RelativeLayout.LayoutParams.FILL_PARENT);
     
    layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT);
     
    RelativeLayout relLay = new RelativeLayout(context);
    LinearLayout linLay = new LinearLayout(context);
     
    TableLayout td = new TableLayout(context);
    TextView name;
    TextView score;
    TableRow tr;
     
    TableLayout.LayoutParams lopForMainRow = new
    TableLayout.LayoutParams(
    LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
    lopForMainRow.gravity = Gravity.CENTER_HORIZONTAL;
    td.setLayoutParams(lopForMainRow);
     
    for (int i = 0; i < scoreList.size(); i++) {
    tr = new TableRow(context);
    name = new TextView(context);
    score = new TextView(context);
    name.setText(scoreList.get(i).name);
    score.setText(Integer.toString(scoreList.get(i).score));
    tr.addView(name);
    tr.addView(score);
    td.addView(tr);
    }
    relLay.addView(td, lopForMainRow);
    linLay.setOrientation(LinearLayout.HORIZONTAL);
     
    linLay.addView(relLay);
    linLay.setGravity(Gravity.CENTER);
     
    return linLay;
    }
     
    Cheers
    Adrian

     

    JanR <janreimone@gmail.com> Sep 29 12:42AM -0700 ^
     
    Hello guys,
    I'm doing my first steps in Android development and yesterday I found
    this nice tutorial:
    http://developer.android.com/guide/topics/ui/drag-drop.html
     
    When I wanted to start I found out that the API level at which I'm
    developing is to low for this tutorial. I use SDK 2.3.3 (API level 10)
    and the tutorial assumes at least API level 11. The detailed problem
    is that I want to start a drag&drop action after a long clicking event
    and so I added such a listener with setOnLongClickListener. But when I
    wanted to instantiate ClipData, as described in the tutorial, I
    recognized that this class is not yet available. Is there a tutorial
    where such a use case is described for API level 10?
     
    best regards,
    Jan

     

    Tony Hillerson <tony.hillerson@gmail.com> Sep 30 09:53AM -0700 ^
     
    Hello all!
     
    AnDevCon is coming up on November 6, and the last one sold out. You
    can still register and save $200 by using the code 'Hillerson' before
    it sells out again this year.
     
    I'll be speaking about using Git to make your Android project (or any
    other software project for that matter) better in a lot of ways. Git
    can make it easier to work with a team, safer and easier to
    experiment, and much easier to keep track of the path your development
    has taken thus far.
     
    There will also be a ton of other great speakers talking about
    Android, four of which are from the Googleplex.
     
    Sign up today, and see you in November!

     

    Andrei <entredia@gmail.com> Sep 30 03:24AM -0700 ^
     
    Got it thanks
     

     

    Sunil Mishra <suniljmishra@gmail.com> Sep 30 03:23AM -0700 ^
     
    Hi,
     
    I tried to create a serversocket, but it is throwing IOException. How
    to solve this issue?
     
    The code is:
     
    try {
    ServerSocket ss = new ServerSocket(port);
     
    TextView tv = (TextView)findViewById(R.id.status);
    tv.setText("Server Started");
    ss.setReuseAddress(true);
    while(isRunning){
    try {
    Socket socket = ss.accept();
    tv.setText("Connection Accepted");
    } catch (IOException e) {
    tv.setText("IOException 1");
    e.printStackTrace();
     
     
    }
    }
    }catch (IOException e) {
    // TODO Auto-generated catch block
    TextView tv = (TextView)findViewById(R.id.status);
    tv.setText("Could not listen on port: " + port);
    e.printStackTrace();

     

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 24 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    Nathan <crittermap@crittermap.com> Sep 30 04:21PM -0700 ^
     
    It turns out the math wasn't good enough. My approximation of distances
    wasn't accurate enough; I have to do a few more square roots.
     
    With that in mind, I can space the text along the path.
     
    I haven't solved the other problem yet, but if I have several labels at
    intervals on a path, chances are at least one of them won't look hideous.
     
    Nathan

     

    RLScott <fixthatpiano@yahoo.com> Sep 30 04:11PM -0700 ^
     
    I also have a need for accurate NTP embedded into my app. I am
    writing a very accurate musical instrument tuner. One of the things
    that such an app needs to do is to calibrate the device to compensate
    for variations in the sound system's quartz crystal time base. On
    another platform I did this by having the user call up the NIST's free
    time and frequency standard service on a wired phone and let my app
    listen to the 500 Hz or 600 Hz reference tones. But that is a pain
    for the user. I would like to offer a alternative NTP method of doing
    this for devices that have occasional broadband internet connection..
    My idea is to sample NTP time at the same time that I start counting
    audio packets coming in from the sound API. Then after some time
    (maybe 10 minutes) sample NTP again. By knowing the difference in NTP
    time and the number of audio packets processed I can find the
    necessary calibration for that device. The accuracy I am looking for
    is 1 part in 200,000. For a 10-minute sample interval that translates
    to a total time accuracy of 3 msec. If that is difficult to do with
    NTP then I could extend my sample time to 100 minutes. Then I would
    only need 30 msec. time accuracy. But the longer I make the sample
    period the more of a pain it becomes for the user, even if he only has
    to do this once when the app is first installed. Can anyone tell me
    if embedding NTP into my app is likely to serve this purpose?
     

     

 Topic: styling tabs
    Sam Rose <srose34@gmail.com> Sep 28 01:01PM -0700 ^
     
    I have a row of 5 tabs at the bottom of my app. The problem is the
    text is cut off on some of them. I want to be able to have the text in
    each tab stack on top of each other instead of following along
    horizontally aswell as move the text into the center of the tab
    instead of sitting at the bottom.
     
    I have created a styles.xml file and have altered the text size but I
    am not sure how to add the requirments I stated above to it. Can
    anyone help?
     
    Thanks

     

    natalka <mnatalka@gmail.com> Sep 28 12:30PM -0700 ^
     
    Dear all I would like to develop and app that would allow me to locate
    nearby friends.
     
    Ideally i would like to create an and app that will show friend that
    are near me.
    Can someone please help me out with the technologies i would need to
    do this?
     
    Thank you

     

    Sabre Tooth <sharksthatfly@gmail.com> Sep 28 10:51AM -0700 ^
     
    I have a Motorola Xoom with Android 3.2. I have an app with minSDK=8
    that won't install using adb install. However, I can use adb in debug
    mode and the app installs. The path to the apk is correct and the
    device is recognized (otherwise I wouldn't be able to install it in
    debug mode). Any ideas how to fix this problem?

     

    "backup263@sohu.com" <backup263@sohu.com> Sep 30 01:27AM -0700 ^
     
    Hello All,
     
    I have a confuse about statically publishing a receiver in Manifest.
    you know, if dynamically register a receiver, you need unregistered it
    when it is not useful. But if register the receiver statically in
    Manifest, we don't need unregistered it, So i want to know when system
    will registered/unregistered it? What the policy about system
    maintains the receivers?
     
    Grant

     

    Mark Murphy <mmurphy@commonsware.com> Sep 30 01:09PM -0400 ^
     
    > when it is not useful. But if register the receiver statically in
    > Manifest, we don't need unregistered it, So i want to know when system
    > will registered/unregistered it?
     
    The receiver is registered when the package is added. The receiver is
    unregistered when the package is removed (e.g., the app is
    uninstalled). You can also enable/disable the receiver component
    through PackageManager, if you wish.
     
    > What the policy about system maintains the receivers?
     
    This sentence does not parse, sorry.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
    Available!

     

    sunny <ash.best@gmail.com> Sep 28 01:59AM -0700 ^
     
    Hi,
     
    I would like to know how can I proceed in achieving a horizontal
    scroll in a view which extends from AbsListView. ?

     

    Maximus <sahinyanlik@gmail.com> Sep 28 07:47AM -0700 ^
     
    Good day, I have been trying to rotate an image. I set
    onTouchListenerListener but there is a problem on my zoom and rotate,
     
    else if(mode==ZOOM){
     
    float newDist=spacing(event);
    Log.d(TAG,"newDist="+newDist);
    if(newDist>10f){
    //matrix.set(savedMatrix);
    //Derece bul
    //float egim1 =(event.getY(1)-event.getY(0))/(event.getX(1)-
    event.getY(0));
    //float egim2=((event.getY()-start.y)/(event.getX()-start.x));
     
    //double tan=(double)((egim2-egim1)/(1+(egim2*egim1)));
    double r1=Math.atan2(event.getX()-view.getWidth()/2,
    view.getHeight()/2-event.getY());
    int rotation=(int)Math.toDegrees(r1);
     
    Log.d("deger",Double.toString(rotation));
     
     
    float payda=start.x-event.getX();
    float x=event.getX(0)+event.getX(1);
    float y=event.getY(0)+event.getY(1);
     
    //matrix.setTranslate(mid.x, mid.y);
    matrix.set(savedMatrix);
     
     
     
    //matrix.postRotate((float)rotation, mid.x, mid.y);
     
    matrix.postRotate(rotation,mid.x,mid.y);
     
    float scale=newDist/oldDist;
    matrix.postScale(scale, scale,mid.x,mid.y);
    //view.setScaleType(ScaleType.CENTER);
     
     
    }
     
    This is my code for rotate and zoom. It works but not very smooth ,
    how can I make it smooter ? There is a problem with atan function I
    guess.

     

    Rakesh C <android.developer.rakesh@gmail.com> Sep 28 01:45AM -0700 ^
     
    Hi Developers,
     
    I want to disable SMS Notification programmatic means When a
    particular text sms is received my default message application should
    not show the notification for that message. I already checked two
    ways
     
    1) Using abortBroadcast() when that particular message arrives but
    this works in Emulator not on Real device (Don't Know why) .
     
    2) Changing the sharedPreference of the mms application where the
    application use to check for key pref_key_enable_notifications is true
    or not , if key is true then it is to show the notification.
    Programmatic I changed that key to false but still notification is
    being shown.
     
     
    Help me in disabling the notification for sms.

     

    djcharon <dj.charon@yahoo.com> Sep 28 07:39AM -0700 ^
     
    Practically i want to make an application that notify me when another
    app installed on mobile access the content provider or retrieve
    information(shortly when an app call SELECT statement). As far as i
    know SQLlite allow you to create a trigger but only for(INSERT,
    UPDATE, DELETE), also there is an android class ContentObserver that
    is making the same thing.

     

    aditi badwe <aditi.abadwe@gmail.com> Sep 28 06:13AM -0700 ^
     
    hi if i am building the basic application for android in main .java
    file in src folder then i have given a button in xml file...after
    clicking on the button how could i go to next screen i.e screen 2??

     

    SoulEdge <wakkas.m@gmail.com> Sep 28 03:50AM -0700 ^
     
    Hi all,
    i posted already in other forums but no answer I received, I hope that
    here i will get an answer :)
     
    Now I zoom the image into an ImageView with this class:
    public class ExtImageView extends View {
    private Drawable image;
    public int zoomControler=125;
    public Cl_ImageView(Context context, Drawable img) {
    super(context);
    image=img;
    setFocusable(true);
    }
    @Override
    protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);
    image.setBounds((getWidth()/2)-zoomControler, (getHeight()/2)-
    zoomControler,(getWidth()/2)+zoomControler, (getHeight()/
    2)+zoomControler);
    image.draw(canvas);
    }
    }
     
    and through a SeekBar I can change the zoom level (editing
    zoomControler var via an other function). But now I've got a problem:
    how can i have the ImageView pannable( to add pan function to
    ImageView)?
    I tried to use some java code to enable pinch to zoom function but I
    don't need pinch to zoom (zoom is already managed by my seekbar) but
    only pan function.
     
    Any advise?

     

    chen potato <scholarlovepotato@gmail.com> Sep 28 01:28AM -0700 ^
     
    Help me : loginButton = (Button)findViewById(R.id.loginButton);
    registerButton = (Button)findViewById(R.id.registerButton);
    //cb = (CheckBox)findViewById(R.id.cbRemember);
    //registerButton.setOnClickListener(this);
    //loginButton.setOnClickListener(this);
     
    View v=findViewById(R.id.userID);
    uid=(EditText)v; //
    note: problem line i
    //uid = (EditText)findViewById(R.id.userID);
    //pwd = (EditText)findViewById(R.id.passWord);
     
     
    09-28 08:21:01.750: ERROR/AndroidRuntime(791):
    java.lang.RuntimeException: Unable to start activity
    ComponentInfo{com.zhuhaiyuanli/com.zhuhaiyuanli.Login}:
    java.lang.ClassCastException: android.widget.CheckBox
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
    2663)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
    2679)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    android.app.ActivityThread.access$2300(ActivityThread.java:125)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    android.os.Handler.dispatchMessage(Handler.java:99)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    android.os.Looper.loop(Looper.java:123)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    android.app.ActivityThread.main(ActivityThread.java:4627)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    java.lang.reflect.Method.invokeNative(Native Method)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    java.lang.reflect.Method.invoke(Method.java:521)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    com.android.internal.os.ZygoteInit
    $MethodAndArgsCaller.run(ZygoteInit.java:868)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    dalvik.system.NativeStart.main(Native Method)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): Caused by:
    java.lang.ClassCastException: android.widget.CheckBox
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    com.zhuhaiyuanli.Login.onCreate(Login.java:66)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
    1047)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): at
    android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
    2627)
    09-28 08:21:01.750: ERROR/AndroidRuntime(791): ... 11 more

     

    Chad Schultz <chadswebdevelopment@gmail.com> Sep 28 09:59AM -0700 ^
     
    Is there a documented list of MediaPlayer error codes anywhere? That
    would be very helpful.
     
    I keep getting (-38, 0) when trying to switch streams. Since I'm
    stopping the MediaPlayer, resetting it, setting the new URL and
    preparing it, I shouldn't be getting errors--especially since each URL
    works if I play it directly. I've Googled the error, but cannot find
    any consensus. Any insight as to what this error code means? Thanks!

     

    Vasyl Boyko <boyko.vasyl.ph@gmail.com> Sep 28 05:32AM -0700 ^
     
    Hello. How to direct adb commands to specified device?
     
    I have two devices:
    > adb devices
    List of devices attached
    172.24.226.35:5555 device
    MT-ndQmBAnwoVyC3ikKVCNc5yqC device
     
    I'm tried:
    > adb -s MT-ndQmBAnwoVyC3ikKVCNc5yqC forward tcp:8080 tcp:8080
    everything ok,
     
    but when
    > adb -s 172.24.226.35:5555 forward tcp:8080 tcp:8080
    error: unknown host service
    or
    > adb -s 172.24.226.35 forward tcp:8080 tcp:8080
    error: device not found
     
    What's wrong?

     

    bmacphee <macphee@gmail.com> Sep 28 08:04AM -0700 ^
     
    I have a class that depends on querying contacts data. It's not an
    activity, service, content provider or anything like that (although it
    may be used by one) - it just accepts a Context object at construction
    time and gets a content resolver from that to do queries. It's
    effectively a layer on top of ContactsContract and I'd like to test
    that this layer does its job of translating contacts data into the
    format that I want by pre-populating specific RawContacts records and
    verifying the output.
     
    What I think would be ideal is the type of thing that the
    ProviderTestCase2 class provides me when I am testing my own content
    providers. It looks like database operations are done in such a way
    that the data is not persisted between test runs (or even between
    individual tests) and it is not available outside the testing context.
     
    Does anyone know if I can put together a test using the existing
    testing framework that will perform similar data isolation with
    contacts? It doesn't look like I could leverage ProviderTestCase2
    since it's not my provider that I'm using in the test.
     
    Will I be forced to just manage the contacts data manually during
    testing? I suppose I could do something like mark all the RawContacts
    I insert with a special account name/type and clean them out between
    tests.
     
    Suggestions welcome. Thanks.

     

    "Mike L." <mplang1@gmail.com> Sep 28 08:18AM -0700 ^
     
    I have recently got a Samsung LS6410 project board, and I was
    wondering how I can access all the different pins on the board in the
    Android programs. I have expereance using C for microproccesor
    programing. Is this done in the same way using Android Java.

     

    ankur jhavery <ajhavery@gmail.com> Sep 28 07:12AM -0700 ^
     
    I am using my phone in a college network which provides internet
    behind a http proxy server. I have looked all around but I've found
    everywhere that android doesn't supports http access behind a proxy
    server.
    Please help me if there is a way to use internet on android phone
    behind a proxy server.
    Thanks in advanced.

     

    Arnaud VALLAT <rno.rno@gmail.com> Sep 30 02:35AM -0700 ^
     
    Hello,
     
    I have written my own authenticator activity which instead of extending
    AccountAuthenticatorActivity extends FragmentActivity and implements what
    was supposed to do an AccountAuthenticatorActivity. Everything works like a
    charm, I'm able to use fragments.
     
    I would like to know if I can encounter any kind of problem by doing this
    (I'm using the compatibility library) or if AccountAuthenticatorActivity is
    really here as an helper.
     
    Moreover, if this is correct, how can I submit this as a patch for the
    compatibility library?
     
    Looking forward to reading your answers.
     
    Rno

     

    "Mike L." <mplang1@gmail.com> Sep 29 07:38AM -0700 ^
     
    I am trying to access the ADC that is the LS6400 project board. I have
    only programed micro is C, never Java or in the Android operating
    system. Do I need some kind of header file the tells Java what my
    ports are? I have Android 2.1 OS installed on the board. Any help with
    this would be much appretiated.
     
    Thanks,
    Mike L.

     

    "Ümit Uzun" <umituzun84@gmail.com> Sep 29 07:48AM -0700 ^
     
    Hi Droid Folks;
     
    Firstly this is my first e-mail to group :)
     
    I want to fake audio recording from main parts on Native Android
    sources. I have looked to AudioRecord.cpp, AudioFlinger.cpp and
    StageFrightRecorder.cpp.
    But I can't find the critical and target code block to change recorded
    audio buffer to silent or mixed meaningless audio buffer.
     
    How can I achieve this operation?
    Or is it possible changes would be achieved?
    Please direct me to right block if you had handled kind of this
    operation before?
     
    Thanks in advance.
    Regards.
     
    Ümit Uzun

     

    sujee <sujeeshlal@gmail.com> Sep 30 12:03AM -0700 ^
     
    I want to connect to Samsaung Galaxy Tab 750 from my Windows PC and
    want to debug my application.
     
    I had tried like
    From Galaxy Tab
    check options of "USB Debugging" in Apllications ->Devlopment
    under Settings.
     
    After that , when I try to connect using adb connect with IP of my
    Galaxy Tab from My PC, it is not recognizing it.
     
    Any thing I have missed? Any additional drivers i want to install in
    my Tab? I googled it , but didnt get enough information.
     
    Thanks in advance
    Sujee

     

    M J <fakeacc.mj@googlemail.com> Sep 28 02:19AM -0700 ^
     
    Hey,
     
    I really need your help. All I want to do is adding a number to an
    existing contact with a specific label and the ability to remove
    numbers again.
     
    I really tried a lot of things, but none of it works for me. I want
    only support the contacts api > 2.0 and not 1.6. And I do not want to
    create an own Sync Adapter or any Sync Accounts like Skype Twitter and
    so on.
     
    I just want to add and remove numbers to the standard phone book. Is
    this really so hard? I cannot find any documentation for this.
     
    My problem is the raw contact id, I do not have this raw contact id, I
    only have the contact id of the agregated contact and the contact
    name. It seems that I need to add a number a raw contact id, but I how
    do I know to which raw contact id I should add the number? I think the
    best would be to make my own raw contact and add the number there, but
    how can I do this?
     
    I found out how to add a completely new Contact described in the
    ContactManager sample, but if I try this, there are two contacts with
    completely the same name. So this cannot be the right way, too.
     
    I hope any one can help me
    Thank you in advance!

     

    AMIT SAMAL <amitsamal@gmail.com> Sep 30 03:05AM -0700 ^
     
    Hii
     
    Friends can anyone help me in the stuff on how to retrieve data
    dynamically during runtime from a local server where data is exported
    to server in form of .war file from an eclipse project in json format.
    While i have been able to retrieve the text for the Content
    dynamically can anyone suggest how to retrieve the associated image
    also. The Json script has the path of the image resource so can anyone
    suggest a simple sample code which can be useful in retrieving the
    image into the application (without caching).

     

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en