[android-developers] Digest for android-developers@googlegroups.com - 20 Messages in 12 Topics

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

    Dev Guy <devguy.ca@gmail.com> Dec 30 12:53AM -0500  

    Hello I am getting the following error after I run the Android SDK Manager:
     
    Installing Google APIs, Android API 17, revision 1
    Installed Google APIs, Android API 17, revision 1
    Updated ADB to support the USB devices declared in the SDK add-ons.
    Stopping ADB server failed (code -1).
    Unable to run 'adb': Cannot run program
    "/opt/android-sdk-linux/platform-tools/adb": java.io.IOException: error=2,
    No such file or directory.
    Starting ADB server failed (code -1).
    Done. 9 packages installed.
    Done loading packages.
     
     
    I am trying to install Android on a Linux x64 box, I have
     
    $ uname -a
    Linux karma 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012
    x86_64 x86_64 x86_64 GNU/Linux
     
    I have the following java installed:
     
    $ java -version
    java version "1.6.0_37"
    Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)
     
     
    Also I am not seeing the ADT plugin getting installed when I install the
    ATD from eclipse following the instruction here:
     
    http://developer.android.com/sdk/installing/installing-adt.html
     
    I do see the Android preferences from eclipse but I do not see the ATD
    toolbar button in eclipse.
     
    --
    Kind Regards,
    Rajinder Yadav
     
    SafetyNet Test Driven Development
    http://safetynet.devmentor.org

     

    Jim Duda <jim@duda.tzo.com> Dec 29 06:38PM -0500  

    My application is using modern preference headers. I need to support
    compatibility with Gingerbread. The PreferenceHeaders work fine
    with post GingerBread.
     
    I am following this guide for legacy compatiblity.
     
    http://developer.android.com/guide/topic/ui/settings.html#BackCompatHeaders
     
    The initial PreferenceScreen loads fine. However, whenever
    selecting one of the entries, I get the following exception:
     
    android.content.ActivityNotFoundException: Unable to find explicit
    activity class {com.example.android.misterhouse.activity/
    com.example.android.misterhouse.activity.SettingsActivity};
    have you declared activity in your AndroidManifest.xml?
     
    For some reason, my Intents are not binding the the SettingsActivity.
    The reference example doesn't want to work properly. I have attempted
    three different means of identifying the targetClass. None of these
    attempts works.
     
    Might anyone know what I might be doing wrong?
     
    PreferenceScreen and AndroidManifest follow below.
     
    Thanks, Jim
     
    Here is my PreferenceScreen:
     
    <PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android">
    <Preference
    android:title="@string/pref_settingsTitle"
    android:summary="@string/pref_settingsTitle_summ" >
    <intent
    android:targetPackage="com.example.android.misterhouse"
    android:targetClass="activity.SettingsActivity"

    android:action="com.example.android.misterhouse.activity.SETTINGS" />
    </Preference>
    <Preference
    android:title="@string/pref_connectionsTitle"
    android:summary="@string/pref_connectionsTitle_summ" >
    <intent
    android:targetPackage="com.example.android.misterhouse"
    android:targetClass=".activity.SettingsActivity"

    android:action="com.example.android.misterhouse.activity.CONNECTIONS" />
    </Preference>
    <Preference
    android:title="@string/pref_aboutTitle" >
    <intent

    android:targetPackage="com.example.android.misterhouse.activity"

    android:targetClass="com.example.android.misterhouse.activity.SettingsActivity"

    android:action="com.example.android.misterhouse.activity.ABOUT" />
    </Preference>
    </PreferenceScreen>
     
    And finally, my AndroidManifest:
     
    <application
    android:label="@string/app_name"
    android:icon="@drawable/mh_logo">
    <activity
    android:name=".activity.MisterhouseActivity"
    android:noHistory="false"
    android:configChanges="orientation|keyboardHidden"
    android:launchMode="singleInstance"
    android:label="@string/app_name">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category
    android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>
    <activity
    android:name=".activity.SettingsActivity" >
    </activity>
    <service
    android:name=".service.MisterhouseService"
    android:process=":misterhouse_process"
    android:icon="@drawable/mh_logo"
    android:label="@string/service_name">
    </service>
    </application>

     

    Jonathan S <xfsunoles@gmail.com> Dec 29 08:52PM -0800  

    How about
     
    <intent android:targetPackage="com.example.android.misterhouse.activity"
    android:targetClass="SettingsActivity" />
     
    On Saturday, December 29, 2012 6:38:32 PM UTC-5, Jim Duda wrote:

     

    jtoolsdev <brianjtools@gmail.com> Dec 29 07:57PM -0800  

    Of course that tuner is DVB which will work in Europe but they don't have
    an ATSC Android tuner which one would need in the US. They do have one for
    laptops.
     
    On Friday, December 28, 2012 2:08:31 PM UTC-8, bob wrote:

     

    "Zxanatos C. Omyda" <omydazx1@gmail.com> Dec 29 07:26PM -0800  

    I am trying to find a developer that understands USB devices. Basically I
    have a MK802 Android 4.0 device. I am trying to connect a USB Resistive
    touchscreen to it, but it does nothing. I here that Google stripped that
    out to keep Android light, since most devices now use capacitive screens.
    How would I go about finding a developer to add resistive touchscreen back
    into my devices.

    Basically I am using these for a Google powered car system. It features a
    MK802 in each seat, a MK808 for shared use. As of now they work great in
    the car, except the touchscreens will not work.

    Any help or advice would be great. I have searched all mighty Google, but
    all the information is fragmented or not understandable to me. The MK802,
    and MK808 are rooted if that makes a difference.

     

    Jake Colman <colman@ppllc.com> Dec 29 07:27PM -0500  

    Under what circumstances will getBestProvider return NULL and what is
    the best way to handle it?
     
    My app uses the provider to determine the current location. If
    getBestProvider returns NULL I request an update from NETWORK on the
    assumption that there is always a NETWORK provider even if the GPS is
    not available. What does it mean if there is no "best"? Doesn't
    Android automatically relax my criteria until it finds a match? And why
    would a device would not have a NETWORK provider?
     
    --
    Jake Colman -- Android Tinkerer

     

    Jake Colman <colman@ppllc.com> Dec 29 08:13PM -0500  

    >>>>> "T" == TreKing <trekingapp@gmail.com> writes:
     
    >> and what is the best way to handle it?
     
    T> Check for null?
     
    I'm already doing that! If I get NULL I hard-code a request to the
    NETWORK provider. Under certain circumstances I'm crashing my app since
    I assumed (stupidly) that when "best" returns NULL I can still access
    NETWORK. I guess when "best" returns NULL it really means there ain't
    nothing available to satisfy my request.
     
    >> And why would a device would not have a NETWORK provider?
     
    T> User disabled it?
    T> Device is in AirPlane mode?
    T> Device just doesn't have that radio?
     
    T> (I'm just guessing, I don't really know).
     
    That was really the core of my question. If "best" returns NULL I have
    to assume that I cannot determine the location - and then do something
    accordingly.
     
    Thanks.
     
    --
    Jake Colman -- Android Tinkerer

     

    Robert Green <rbgrn.net@gmail.com> Dec 29 10:46AM -0800  

    Yes, texture mapping is fairly standard and is very well supported.
     
    BAI means "Binary Asset Import" and is a compact memory-safe format of the
    internal structure of the open asset importer library. We did create it
    ourselves but it's simple, easy to maintain and extend and fully compatible
    with version 2 of that library, which is why you can easily add more
    formats to the engine.
     
    On Friday, December 28, 2012 2:24:49 PM UTC-6, bob wrote:

     

    "Italo Mendonça Rocha" <italomr@gmail.com> Dec 29 12:08PM -0300  

    Hello,
     
    I have an application that uses the Camera and SurfaceView to take
    pictures. When I take photos by Galaxy S2 or smaller devices the picture
    resolution is perfect. But when I try to take pictures by Galaxy S3 or
    tablets the picture resolution is too low. I use the following code:
     
    camera.takePicture(null, callBack, callBack, callBack);
     
    private PictureCallback callBack = new PictureCallback() {
    @Override
    public void onPictureTaken(byte[] data, Camera camera) {
    if (data != null) {
    savePhoto(data);
    }
    }
    };
     
    Any idea how to solve this? Thank you.
     
    Sorry for my bad English.
     
    Ítalo.

     

    Jim Graham <spooky130u@gmail.com> Dec 29 11:11AM -0600  

    On Sat, Dec 29, 2012 at 12:08:52PM -0300, Italo Mendon?a Rocha wrote:
    > }
    > };
     
    > Any idea how to solve this?
     
    Yes. Based on your code, you aren't specifying the image size, so you
    get what the device sets as the default. While working on my camera app,
    I have seen devices that set the maximum as the default, and some that
    set the minimum as the default. You need to determine the available
    image sizes for the device the app is running on (see camera.parameters)
    and either select one, or better still, let the USER select the image
    size THEY want to use. The user might want the max, or they might want
    a smaller image (say, for sending in an e-mail, using in a web page,
    etc., without having to resize it). Again, see camera.parameters.
     
    Later,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) MiSTie #49997 < Running Mac OS X Lion >
    spooky130u@gmail.com ICBM/Hurr.: 30.44406N 86.59909W
     
    "Now what *you* need is a proper pint of porter poured in a proper
    pewter porter pot.." --Peter Dalgaard in alt.sysadmin.recovery

     

    Balint <balintfarago@gmail.com> Dec 29 07:03AM -0800  

    Recently many users were complaining about a virus in my app. This is
    really annoying because I am losing many new users (my app has >150.000
    downloads).
    I checked with AVG and AVAST and neither of them found any viruses on my
    phone (I downloaded my app from the market before I scanned the whole
    phone).
    Both of them checks the newly installed apps at first run and neither of
    them found any virus. I scanned my whole phone as well.
     
    My guess is that these people are using bad antivirus applications.
     
    Any ideas?

     

    RLScott <fixthatpiano@yahoo.com> Dec 29 08:51AM -0800  

    Does the souce code contain only code that you wrote, or did you
    include a third party library that you did not write? I am assuming
    that if the code is all yours you would know well enough whether you
    put a virus in it.

     

    Nikolay Elenkov <nikolay.elenkov@gmail.com> Dec 30 02:05AM +0900  


    > My guess is that these people are using bad antivirus applications.
     
    Or a pirated version that may have malware injected. Or you are using
    and ad network that gets classified as malware by some AVs. Try to
    get the APK from a user, and do a search for your app in popular
    all-you-can-eat Android sites.
     
    'Bad antivirus' is actually not too likely. Even if some AV misclassifies
    your app as virus/malware, the chance of multiple AVs doing it is
    quite small.

     

    Jim Graham <spooky130u@gmail.com> Dec 29 11:06AM -0600  

    On Sat, Dec 29, 2012 at 07:03:29AM -0800, Balint wrote:
    > Recently many users were complaining about a virus in my app.
    [....]
    > My guess is that these people are using bad antivirus applications.
     
    > Any ideas?
     
    A virus? On a Unix-based OS? Last time I checked, this wasn't possible.
    On a windoze system, sure, a virus can have a field day. But file/group
    permissions alone can block a virus. Now...a worm is another story. But
    I'm still skeptical, even there. What are your users (or should that be
    lusers?) claiming it's doing?
     
    Later,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4)
    ICBM/Hurr.: 30.44406N 86.59909W || < Running Mac OS X Lion >
     
    Seen in alt.sysadmin.recovery: "Priceless; that's better than telling
    him to use the Read Manual command with the Real Fast option."

     

    Nobu Games <dev.nobu.games@gmail.com> Dec 29 08:13AM -0800  

    I would focus on your force close error and fix that one instead of trying
    to work around other apps.
     
    On Thursday, December 27, 2012 12:02:06 AM UTC-6, Amit Dwivedi wrote:

     

    lbendlin <lutz@bendlin.us> Dec 29 07:16AM -0800  

    I can second the map panning effect. That seems to be able to lock up some
    older devices (with less RAM, or poorly managed RAM?) randomly.
     
    On Friday, December 28, 2012 7:34:05 PM UTC-5, Nathan wrote:
     

     

    Priyanka <eratkar.priyanka89@gmail.com> Dec 29 12:36AM -0800  

    Hi Asheesh,
    I have seen this post, however it does not support 4.x
    android devices.
     
    On Friday, 28 December 2012 12:22:23 UTC+5:30, asheesh arya wrote:

     

    Dmitriy F <midnight.88s@gmail.com> Dec 29 12:08AM -0800  

    I have a couple of fragments which substitute one for another. The UI of
    these fragments changes and I need to hold it's new state. So the code
    looks pretty trivial:
     
    FragmentManager fragmentManager = getSupportFragmentManager();
    FragmentTransaction fragmentTransaction = fragmentManager
    .beginTransaction();
     
    if (mStepTwo == null) {
    mStepTwo = new QuizStepTwo();
    mStepTwo.setListener(mStepTwoListener);
    } else {
    fragmentTransaction.remove(mStepTwo);
    }
     
    fragmentTransaction.replace(R.id.step_holder, mStepTwo);
    fragmentTransaction.addToBackStack("second_step");
     
    fragmentTransaction.commit();
     
    However when I replace the second step with the first, for instance by
    pressing the back-button,- its' UI state rolls back to initial.
     
    How do I hold the state ? OnSaveInstanceState ? or something more
    comfortable ?

     

You received this message because you are subscribed to the Google Group android-developers.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.

--
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

No comments:

Post a Comment