Internet permission won't let application start

by The Savage Killer » Sun, 15 Mar 2009 13:13:23 GMT


Sponsored Links
 asically when i add internet permissions to my manifest file my
application refuses to even start.

03-13 18:05:59.262: DEBUG/AndroidRuntime(662): >>>>>>>>>>>>>>
AndroidRuntime START <<<<<<<<<<<<<<
03-13 18:05:59.262: DEBUG/AndroidRuntime(662): CheckJNI is ON
03-13 18:05:59.493: DEBUG/AndroidRuntime(662): --- registering native
functions ---
03-13 18:05:59.503: INFO/jdwp(662): received file descriptor 19 from
ADB
03-13 18:06:00.712: DEBUG/PackageParser(52): Scanning package: /data/
app/vmdl24071.tmp
03-13 18:06:00.862: WARN/PackageManager(52): Attempt to re-install
dev.funnyrss without first uninstalling.
03-13 18:06:00.862: INFO/installd(27): unlink /data/dalvik-cache/
d...@app@vmdl24071....@classes.dex
03-13 18:06:00.902: DEBUG/AndroidRuntime(662): Shutting down VM
03-13 18:06:00.902: DEBUG/dalvikvm(662): DestroyJavaVM waiting for non-
daemon threads to exit
03-13 18:06:00.913: INFO/dalvikvm(662): DestroyJavaVM shutting VM down
03-13 18:06:00.922: DEBUG/dalvikvm(662): HeapWorker thread shutting
down
03-13 18:06:00.922: DEBUG/dalvikvm(662): HeapWorker thread has shut
down
03-13 18:06:00.922: DEBUG/jdwp(662): JDWP shutting down net...
03-13 18:06:00.932: DEBUG/jdwp(662): +++ peer disconnected
03-13 18:06:00.932: INFO/dalvikvm(662): Debugger has detached; object
registry had 1 entries
03-13 18:06:00.952: DEBUG/dalvikvm(662): VM cleaning up
03-13 18:06:00.972: DEBUG/dalvikvm(662): LinearAlloc 0x0 used 529708
of 4194304 (12%)
03-13 18:06:01.252: DEBUG/dalvikvm(52): GC freed 5687 objects / 344760
bytes in 363ms
03-13 18:06:01.423: DEBUG/AndroidRuntime(670): >>>>>>>>>>>>>>
AndroidRuntime START <<<<<<<<<<<<<<
03-13 18:06:01.423: DEBUG/AndroidRuntime(670): CheckJNI is ON
03-13 18:06:01.653: DEBUG/AndroidRuntime(670): --- registering native
functions ---
03-13 18:06:01.672: INFO/jdwp(670): received file descriptor 19 from
ADB
03-13 18:06:02.842: DEBUG/PackageParser(52): Scanning package: /data/
app/vmdl24072.tmp
03-13 18:06:02.992: DEBUG/PackageManager(52): Removing package
dev.funnyrss
03-13 18:06:02.992: DEBUG/PackageManager(52): Activities:
dev.funnyrss.FRSS dev.funnyrss.FRSS2
03-13 18:06:03.002: DEBUG/PackageManager(52): Scanning package
dev.funnyrss
03-13 18:06:03.012: INFO/PackageManager(52): /data/app/vmdl24072.tmp
changed; unpacking
03-13 18:06:03.022: DEBUG/installd(27): DexInv: --- BEGIN '/data/app/
vmdl24072.tmp' ---
03-13 18:06:03.252: DEBUG/dalvikvm(676): DexOpt: load 41ms, verify
39ms, opt 1ms
03-13 18:06:03.262: DEBUG/installd(27): DexInv: --- END '/data/app/
vmdl24072.tmp' (success) ---
03-13 18:06:03.272: DEBUG/PackageManager(52): Activities:
dev.funnyrss.FRSS dev.funnyrss.FRSS2
03-13 18:06:03.442: INFO/installd(27): move /data/dalvik-cache/
d...@app@vmdl24072....@classes.dex -> /data/dalvik-cache/
d...@app@dev.funnyrss....@classes.dex
03-13 18:06:03.453: DEBUG/PackageManager(52): New package installed
in /data/app/dev.funnyrss.apk
03-13 18:06:03.672: DEBUG/AndroidRuntime(670): Shutting down VM
03-13 18:06:03.672: DEBUG/dalvikvm(670): DestroyJavaVM waiting for non-
daemon threads to exit
03-13 18:06:03.683: DEBUG/ActivityManager(52): Uninstalling process
dev.funnyrss
03-13 18:06:03.692: INFO/dalvikvm(670): DestroyJavaVM shutting VM down
03-13 18:06:03.692: DEBUG/dalvikvm(670): HeapWorker



Other Threads

1. Bind to system service

Hi,

is it possible somehow to bind to private system services?
What I want to do is listen to the activitymanagerservice and be
notified when other activites are started. I tried implementing the
IActivityController.aidl from the Sourcecode. It has methods like
activityStarting and activityResuming but this didn't really work. (I
used the idea from here: 
http://blog.codetastrophe.com/2008/12/accessing-hidden-system-service-apis-in.html
, problem is there is no proper private field one could use at least
c.getDeclaredFields() doesn't return anything useful from the activity
manager)

Any ideas how I can get notified of things going on in the Activity
Manager without having to do a getRunningTasks all the time? Because
this is the only workaround I came up with but it slows down the
phone.

Every help is appreciated. Many Thanks,
Chris


##IActivityController.aidl:

/*
**
** Copyright 2009, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing,
software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
** See the License for the specific language governing permissions
and
** limitations under the License.
*/

package android.app;

import android.content.Intent;
import android.app.IActivityWatcher;

/**
 * Testing interface to monitor what is happening in the activity
manager
 * while tests are running.  Not for normal application development.
 * {...@hide}
 */
interface IActivityController
{
    /**
     * The system is trying to start an activity.  Return true to
allow
     * it to be started as normal, or false to cancel/reject this
activity.
     */
    boolean activityStarting(in Intent intent, String pkg);

    /**
     * The system is trying to return to an activity.  Return true to
allow
     * it to be resumed as normal, or false to cancel/reject this
activity.
     */
    boolean activityResuming(String pkg);

    /**
     * An application process has crashed (in Java).  Return true for
the
     * normal error recovery (app crash dialog) to occur, false to
kill
     * it immediately.
     */
    boolean appCrashed(String processName, int pid, String shortMsg,
            String longMsg, in byte[] crashData);

    /**
     * An application process is not responding.  Return 0 to show the
"app
     * not responding" dialog, 1 to continue waiting, or -1 to kill it
     * immediately.
     */
    int appNotResponding(String processName, int pid, String
processStats);

        /**
     * Often you want to allow a service to call back to its clients.
     * This shows how to do so, by registering a callback interface
with
     * the service.
     */
    void registerActivityWatcher(IActivityWatcher watcher);

    /**
     * Remove a previously registered callback interface.
     */
    void unregisterActivityWatcher(IActivityWatcher watcher);
}

-- 

2. What xml encodings work for non-europian languages

Assume I want to write an xml resource file with a  a non-europian
language, say
japanese, thai or chinese- What encodings can I use and
what do I have to to to both the xml header and the Writer to makes
these work -
Also is there an easy way to map a Locale into acceptable encodings

-- 

3. Oh crap. I missed IO registration :(

4. Pictbridge-- anyone know how?

5. API

6. What phone to buy for development?

7. Tab widget first tab intent oncreate always called regardless we set tab2 as default tab