How is the website in the contact info for each app used?

by Teo » Sun, 08 Mar 2009 19:48:14 GMT


Sponsored Links
 Can users visit the app website before installing? Sorry for asking a
question that might be stupid but i don't have an Android phone...

Thanks in advance,
Teo
--~--~---------~--~----~------------~-------~--~----~



How is the website in the contact info for each app used?

by dar » Sun, 08 Mar 2009 23:08:57 GMT


 The phone, email, and website are displayed in the market app.  The
user can touch the website and it launches the browser to that page.
It can be done before they install the app.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. xmlpullparser does not work

Hello,

i have a thread, where i want to parse an gpx (xml) file. But it does
not work. My Thread and  XmlPullParser looks like:

getWpt = new Thread (new Runnable ()
        {
                        @Override
                        public void run()
                        {
                                XmlPullParserFactory pullFactory;
                        try {
                            pullFactory = XmlPullParserFactory.newInstance();

                            XmlPullParser pullParser = 
pullFactory.newPullParser();
                            FileReader file = new FileReader(new File
(Environment.getExternalStorageDirectory()+"/"+fileList[pos]));

                            pullParser.setInput(file);

                            Log.e("IMINININ","MEMEME");

                            // state flags
                            boolean inWayPoint = false;
                            boolean inDesc = false;
                            boolean inTrack = false;
                            boolean inTrackPoint = false;


                            int eventType = pullParser.getEventType();

                            //TEST:
                            Log.e("EVENTTYPE",""+eventType
+XmlPullParser.END_DOCUMENT);
                            if(eventType == XmlPullParser.END_DOCUMENT)
                            {
                                getWaypointHandler.sendEmptyMessage(3);
                            }

                           //NORMAL PARSER:
                            while (eventType != XmlPullParser.END_DOCUMENT) {
                                Log.e("START","TAG"+pullParser.getName());
                                switch (eventType) {
                                case XmlPullParser.START_DOCUMENT:
                                    break;
                                case XmlPullParser.START_TAG:
                                        
Log.e("START","TAG"+pullParser.getName());

                                    if (pullParser.getName().compareTo("wpt") 
== 0)
                                    {
                                        Log.e("WAY","POINT");
                                        inWayPoint = true;
                                    }
                                    else if 
(pullParser.getName().compareTo("desc")
==0)
                                    {
                                        if (inWayPoint)
                                                inDesc = true;
                                    }
                                    else if 
(pullParser.getName().compareTo("trk")
==0)
                                        {
                                                inTrack = true;
                                                //alle Wegpunkte eingelesen
                                                Log.e("WAY","POINTEND");
                                            
getWaypointHandler.sendEmptyMessage(0);
                                        }
                                    else 
if(pullParser.getName().compareTo("trkpt")
==0)
                                    {
                                        count ++;
                                        inTrackPoint = true;
                                         if(count%50 == 0)
                                                
getWaypointHandler.sendEmptyMessage(1);
                                    }
                                    break;

                                case XmlPullParser.END_TAG:
                                    if (pullParser.getName().equals("wpt")) {
                                        inWayPoint = false;

                                    }else if 
(pullParser.getName().equals("desc")) {
                                        inDesc = false;
                                    } else 
if(pullParser.getName().equals("trk")) {
                                        inTrack = false;
                                        getWaypointHandler.sendEmptyMessage(2);
                                    }else if 
(pullParser.getName().equals("trkpt"))
{
                                        inTrackPoint = false;
                                    }
                                    break;
                                case XmlPullParser.TEXT:
                                    if (inWayPoint)
                                        if (inDesc) {
                                           ....
                                        }
                                    }
                                    if(inTrack)
                                    {
                                    }
                                    break;
                                }
                                eventType = pullParser.nextTag(); //.next();
                                Log.e("END-EVENT",""+eventType
+XmlPullParser.END_DOCUMENT);
                            }
                         catch (Exception e) {

                        }
                        }
        });
        getWpt.start();


But it never find my tags (the handler getWaypointHandler is never
called). The XmlPullParser find the xml file, because my logcat shows:

I/ActivityManager(  579): Starting activity: Intent
{ cmp=de.stefandahmen.android/.NavTrack (has extras) }
E/ActivityThread(  692): Failed to find provider info for
com.google.settings
E/ActivityThread(  692): Failed to find provider info for
com.google.settings
E/ActivityThread(  692): Failed to find provider info for
com.google.settings

//GOES IN TRY BLOCK:
E/IMINININ(  692): MEMEME

//NOT THE END_TAG:
E/EVENTTYPE(  692): 01



I/ActivityManager(  579): Start proc android.tts for service
android.tts/.TtsService: pid=765 uid=10023 gids={3003, 1015}
I/jdwp    (  765): received file descriptor 10 from ADB
D/dalvikvm(  553): GC freed 282 objects / 10712 bytes in 419ms
I/MapActivity(  692): Handling network change notification:CONNECTED
E/MapActivity(  692): Couldn't get connection factory client
I/ARMAssembler(  579): generated
scanline__00000077:03515104_00000000_00000000 [ 27 ipp] (41 ins) at
[0x29dca8:0x29dd4c] in 922000 ns
D/dalvikvm(  553): GC freed 50 objects / 2184 bytes in 960ms
I/ARMAssembler(  579): generated
scanline__00000077:03515104_00000001_00000000 [ 46 ipp] (65 ins) at
[0x29dd50:0x29de54] in 1508000 ns
I/ActivityManager(  579): Displayed activity
de.stefandahmen.android/.NavTrack: 2574 ms (total 2574 ms)
I/TtsService(  765): TtsService.onCreate()
D/dalvikvm(  553): GC freed 2 objects / 48 bytes in 482ms
D/dalvikvm(  765): Trying to load lib /system/lib/libttssynthproxy.so
0x437600b0
D/dalvikvm(  765): Added shared lib /system/lib/libttssynthproxy.so
0x437600b0
E/TTS is loading(  765): /system/lib/libttspico.so
V/SynthProxy(  765): AudioTrack started
V/TtsService(  765): TtsService.setLanguage(eng, , )
I/SVOX Pico Engine(  765): TtsEngine::setLanguage found matching
language(eng) but not matching country().
I/SVOX Pico Engine(  765): loaded en-US successfully
I/SynthProxy(  765): setting speech rate to 100
I/TTS received: (  692): Umlaute wie u.a. ,  und  o.. sind
einigermaen einfach. Doch z.B. andere Abk.en sind schwieriger?
Nein!!! Aber 1. dies und 2. das geht auch
V/TtsService(  765): TTS service received Umlaute wie u.a. ,  und 
o.. sind einigermaen einfach. Doch z.B. andere Abk.en sind
schwieriger? Nein!!! Aber 1. dies und 2. das geht auch
I/TtsService(  765): Stopping
I/TtsService(  765): Stopped
I/TtsService(  765): TTS processing: Umlaute wie u.a. ,  und  o..
sind einigermaen einfach. Doch z.B. andere Abk.en sind schwieriger?
Nein!!! Aber 1. dies und 2. das geht auch
V/TtsService(  765): TtsService.setLanguage(deu, , )
I/SVOX Pico Engine(  765): TtsEngine::setLanguage found matching
language(deu) but not matching country().
I/SVOX Pico Engine(  765): loaded de-DE successfully
I/SynthProxy(  765): setting speech rate to 100
W/AudioTrack(  765): obtainBuffer timed out (is the CPU pegged?)
0x1a89a8 user=00001000, server=00000000
W/AudioFlinger(  554): write blocked for 49 msecs
W/AudioFlinger(  554): write blocked for 50 msecs
W/AudioFlinger(  554): write blocked for 49 msecs
W/AudioFlinger(  554): write blocked for 46 msecs
W/AudioFlinger(  554): write blocked for 52 msecs
W/AudioFlinger(  554): write blocked for 50 msecs
W/AudioFlinger(  554): write blocked for 55 msecs
W/AudioFlinger(  554): write blocked for 63 msecs
W/AudioFlinger(  554): write blocked for 48 msecs
W/AudioFlinger(  554): write blocked for 49 msecs
W/AudioFlinger(  554): write blocked for 47 msecs
W/AudioFlinger(  554): write blocked for 74 msecs
W/AudioFlinger(  554): write blocked for 56 msecs
W/AudioFlinger(  554): write blocked for 49 msecs
W/AudioFlinger(  554): write blocked for 49 msecs
W/AudioTrack(  765): obtainBuffer timed out (is the CPU pegged?)
0x1a89a8 user=00017800, server=00016800
W/AudioFlinger(  554): write blocked for 47 msecs
W/AudioFlinger(  554): write blocked for 48 msecs
W/AudioFlinger(  554): write blocked for 48 msecs
W/AudioFlinger(  554): write blocked for 50 msecs
W/AudioFlinger(  554): write blocked for 52 msecs
W/AudioFlinger(  554): write blocked for 52 msecs
W/AudioFlinger(  554): write blocked for 50 msecs
W/AudioFlinger(  554): write blocked for 55 msecs

Thanks for help,
Stefan
--~--~---------~--~----~------------~-------~--~----~

2. hello-jni example: works on emulator, not on G1

Hello all,

Learning about the NDK and JNI today.  I was able to build, install
and run the Quake demo that was ported to Android via the NDK 1.6.
Worked great.

I then started looking at the hello-jni example.  This example works
for me in the emulator, but does NOT work for me on the G1:

I/ActivityManager(   76): Start proc com.example.hellojni for activity
com.example.hellojni/.HelloJni: pid=508 uid=10030 gids={1015}
I/jdwp    (  508): received file descriptor 20 from ADB
W/dalvikvm(  508): Exception Ljava/lang/UnsatisfiedLinkError; thrown
during Lcom/example/hellojni/HelloJni;.<clinit>
W/dalvikvm(  508): Class init failed in newInstance call
(Lcom/example/hellojni/HelloJni;)
D/AndroidRuntime(  508): Shutting down VM
W/dalvikvm(  508): threadid=3: thread exiting with uncaught exception
(group=0x4001da28)
E/AndroidRuntime(  508): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  508): java.lang.ExceptionInInitializerError
E/AndroidRuntime(  508):        at java.lang.Class.newInstanceImpl(Native 
Method)
E/AndroidRuntime(  508):        at java.lang.Class.newInstance(Class.java:1472)
E/AndroidRuntime(  508):        at
android.app.Instrumentation.newActivity(Instrumentation.java:1097)
E/AndroidRuntime(  508):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316)
E/AndroidRuntime(  508):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
E/AndroidRuntime(  508):        at
android.app.ActivityThread.access$2100(ActivityThread.java:116)
E/AndroidRuntime(  508):        at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime(  508):        at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  508):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  508):        at
android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime(  508):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  508):        at 
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  508):        at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime(  508):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime(  508):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  508): Caused by: java.lang.UnsatisfiedLinkError:
Library hello-jni not found
E/AndroidRuntime(  508):        at 
java.lang.Runtime.loadLibrary(Runtime.java:489)
E/AndroidRuntime(  508):        at java.lang.System.loadLibrary(System.java:557)
E/AndroidRuntime(  508):        at
com.example.hellojni.HelloJni.<clinit>(HelloJni.java:64)
E/AndroidRuntime(  508):        ... 15 more
I/Process (   76): Sending signal. PID: 508 SIG: 3
I/dalvikvm(  508): threadid=7: reacting to signal 3


This seems to be clearly because the loading of the library hello-jni
library is failing in the static initializer block inside
HelloJni.java.  The apk does include the .so file
(libs/armeabi/libhello-jni.so) and as I said, this example does work
on the emulator.  The apk also worked on another device (which had
Cupcake installed).

I am using Donut (SDK 1.6 r1 and NDK 1.6 r1).  The Android app was set
to have API level 4 in Eclipse.

Any pointers appreciated,
Jeff Schiller

--~--~---------~--~----~------------~-------~--~----~

3. some questions about using gdbserver and JNI libraries

4. Unable to receive AVRC Bbuetooth buttons presses on HTC Hero devices

5. How to Make SDK addon ?

6. A new way to link to apps from the web & twitter - drdmkt.com

7. Want to use 2 WVGA screens while viewing a html page in web-browser application