can replace default dialer?

by Fred Grott(shareme) » Fri, 10 Apr 2009 00:04:03 GMT


Sponsored Links
 I want to verify something..

I already did some app tests but I am coming to the conclusion that I
can nnto as non root replace the default dialer like one might replace
the HomeScreen.

is this assumption correct?



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



can replace default dialer?

by Dianne Hackborn » Fri, 10 Apr 2009 00:42:24 GMT


 You can replace the entire "dialtacts" activity.  You can't replace just one
tab in it.  This is regardless of whether you are running as root.






-- 
Dianne Hackborn
Android framework engineer
hack...@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.

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


Sponsored Links


can replace default dialer?

by Fred Grott(shareme) » Sat, 11 Apr 2009 03:32:36 GMT


 Thanks I also found your other Feb answers which  was helpful as
well..






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



Other Threads

1. ERROR: Unknown command 'compile'

Hi all,

I followed the GettingStarted. After I created project with
activitycreator. I ran mvn install. But I get this error below. I
changed different version of android but the error is still. I am
using the same pom.xml as the example.

Anyone can help have a look. Thanks.

=============================logs===============================================
C:\work\Google-Android\phase2\android-maven\testAndroidMaven>mvn
install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building maven-test
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [aidl:generate]
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [aapt:compile]
android/android/m3-rc20a/android-m3-rc20a.jar
[INFO] aapt [compile, -m, -J, C:\work\Google-Android\phase2\android-
maven\testA
droidMaven\src, -M, C:\work\Google-Android\phase2\android-maven
\testAndroidMave
\AndroidManifest.xml, -S, C:\work\Google-Android\phase2\android-maven
\testAndro
dMaven\res, -I, C:\products\.m2\repository\android\android\m3-rc20a
\android-m3-
c20a.jar]
[ERROR] ERROR: Unknown command 'compile'
[ERROR] Android Asset Packaging Tool
[ERROR]
[ERROR] Usage:
[ERROR]  aapt l[ist] [-v] [-a] file.{zip,jar,apk}
[ERROR]    List contents of Zip-compatible archive.
[ERROR]
[ERROR]  aapt d[ump] WHAT file.{apk} [asset [asset ...]]
[ERROR]    permissions      Print the permissions from the APK.
[ERROR]    resources        Print the resource table from the APK.
[ERROR]    configurations   Print the configurations in the APK.
[ERROR]    xmltree          Print the compiled xmls in the given
assets.
[ERROR]
[ERROR]  aapt p[ackage] [-f][-u][-m][-v][-x][-M AndroidManifest.xml] \
[ERROR]         [-I base-package [-I base-package ...]] \
[ERROR]         [-A asset-source-dir] [-P public-definitions-file] \
[ERROR]         [-S resource-sources] [-F apk-file] [-J R-file-dir] \
[ERROR]         [raw-files-dir [raw-files-dir] ...]
[ERROR]
[ERROR]    Package the android resources.  It will read assets and
resources th
t are
[ERROR]    supplied with the -M -A -S or raw-files-dir arguments.  The
-J -P -F
and -R
[ERROR]    options control which files are output.
[ERROR]
[ERROR]  aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]
[ERROR]    Delete specified files from Zip-compatible archive.
[ERROR]
[ERROR]  aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]
[ERROR]    Add specified files to Zip-compatible archive.
[ERROR]
[ERROR]  aapt v[ersion]
[ERROR]    Print program version.
[ERROR]
[ERROR]  Modifiers:
[ERROR]    -a  print Android-specific data (resources, manifest) when
listing
[ERROR]    -c  specify which configurations to include.  The default
is all
[ERROR]        configurations.  The value of the parameter should be a
comma
[ERROR]        separated list of configuration values.  Locales should
be speci
ied
[ERROR]        as either a language or language-region pair.  Some
examples:
[ERROR]             en
[ERROR]             port,en
[ERROR]             port,land,en_US
[ERROR]        If you put the special locale, zz_ZZ on the list, it
will perfor

[ERROR]        pseudolocalization on the default locale, modifying all
of the
[ERROR]        strings so you can look for strings that missed the
[ERROR]        internationalization process.  For example:
[ERROR]             port,land,zz_ZZ
[ERROR]    -d  one or more device assets to include, separated by
commas
[ERROR]    -f  force overwrite of existing files
[ERROR]    -j  specify a jar or zip file containing classes to include
[ERROR]    -m  make package directories under location specified by -J
[ERROR]    -u  update existing packages (add new, replace older,
remove deleted
files)
[ERROR]    -v  verbose output
[ERROR]    -x  create extending (non-application) resource IDs
[ERROR]    -z  require localization of resource attributes marked with
[ERROR]        localization="suggested"
[ERROR]    -A  additional directory in which to find raw asset files
[ERROR]    -F  specify the apk file to output
[ERROR]    -I  add an existing package to base include set
[ERROR]    -J  specify where to output R.java resource constant
definitions
[ERROR]    -M  specify full path to AndroidManifest.xml to include in
zip
[ERROR]    -P  specify where to output public resource definitions
[ERROR]    -S  directory in which to find resources
[ERROR]    -0  don't compress files we're adding
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO]

Embedded error: ANDROID-040-001: Could not execute: Command = aapt
compile -m -
 C:\work\Google-Android\phase2\android-maven\testAndroidMaven\src -M C:
\work\Go
gle-Android\phase2\android-maven\testAndroidMaven\AndroidManifest.xml -
S C:\wor
\Google-Android\phase2\android-maven\testAndroidMaven\res -I C:
\products\.m2\re
ository\android\android\m3-rc20a\android-m3-rc20a.jar, Result = 2
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Jan 08 16:34:17 EST 2009
[INFO] Final Memory: 6M/127M
[INFO]
------------------------------------------------------------------------

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

2. BitmapFactory.decodeStream bug?

My app needs to save some data to a file. Part of that data includes
two bitmaps. So when saving, I use :

bitmapThumbnail.compress(CompressFormat.PNG, 100, streamBuffer);
m_bitmap.compress(CompressFormat.PNG, 100, streamBuffer);

then, when loading, I just want to recreate the two bitmaps from the
data, using :

Bitmap bitmapThumbnail = BitmapFactory.decodeStream(streamBuffer);
Bitmap bitmapTemp = BitmapFactory.decodeStream(streamBuffer);

But for some reason, the second bitmap can never be recreated on load.
BitmapFactory always returns null. I tried the following on save :

bitmapThumbnail.compress(CompressFormat.PNG, 100, streamBuffer);
streamBuffer.writeInt(SECTION_MARKER);
streamBuffer.flush();
m_bitmap.compress(CompressFormat.PNG, 100, streamBuffer);

And then on load, I do :

Bitmap bitmapThumbnail = BitmapFactory.decodeStream(streamBuffer);
int section = streamBuffer.readInt();
if (section != SECTION_MARKER)
        throw new IOException();
Bitmap bitmapTemp = BitmapFactory.decodeStream(streamBuffer);

Sure enough, the section marker I read is not the one I had saved. It
seems as if BitmapFactory::decodeStream does not read exactly the same
amount of data as was written by Bitmap::compress.

the bitmaps are 64x64 and 512x512 respectively.

I would be fine with saving the raw bitmap data myself, but Bitmap
takes an array of integers for getting/setting the pixels, and the
stream classes take arrays of bytes for saving/loading, which would
mean I would have to manually copy them around, which is wasteful.

Surely there is an easier way to achieve this ?

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

3. How to use ScaleDrawable?

4. How to test PVPlayer engine and PVAuthor engine ?

5. Is there a media player in Android

6. The droid is spreading its wings....

7. how to have the type of DATA (for email?)