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
03-13 18:06:00.712: DEBUG/PackageParser(52): Scanning package: /data/
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/
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
03-13 18:06:00.922: DEBUG/dalvikvm(662): HeapWorker thread has shut
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
03-13 18:06:02.842: DEBUG/PackageParser(52): Scanning package: /data/
03-13 18:06:02.992: DEBUG/PackageManager(52): Removing package
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
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/
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
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


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:
, problem is there is no proper private field one could use at least
c.getDeclaredFields() doesn't return anything useful from the activity

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

Every help is appreciated. Many Thanks,


** 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
** Unless required by applicable law or agreed to in writing,
** distributed under the License is distributed on an "AS IS" BASIS,
** See the License for the specific language governing permissions
** limitations under the License.


import android.content.Intent;

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

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

     * An application process has crashed (in Java).  Return true for
     * normal error recovery (app crash dialog) to occur, false to
     * 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
     * not responding" dialog, 1 to continue waiting, or -1 to kill it
     * immediately.
    int appNotResponding(String processName, int pid, String

     * Often you want to allow a service to call back to its clients.
     * This shows how to do so, by registering a callback interface
     * 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