[android-developers] Re: Android 2.0 (eclair) source

2009-10-28 Thread tu

Yes, I also entered the same error message, some body can help us
ASAP? thanks and best regards.

On 10月29日, 上午2时53分, Doug  wrote:
> Any idea when theeclairsourcewill be available via git?
> If I try to init a repo with "-beclair" I get an error stating that
> the manifest is missing.
> If I init a repo to head there doesn't seem to be much/anyeclaircode
> in there.
>
> Why do I ask?  Well, the docs looks like they're still in the process
> of being updated (fair enough) but certain methods that have now been
> deprecated don't seem to have been replaced with ones that perform
> similar tasks - I need to browse thesourceso I can find out how to
> get my application working against this new build.
>
> (I got the following init command fromhttp://source.android.com/download)
>
> $ repo init -u git://android.git.kernel.org/platform/manifest.git -beclair
> Getting repo ...
>    from git://android.git.kernel.org/tools/repo.git
> remote: Counting objects: 945, done.
> remote: Compressing objects: 100% (372/372), done.
> remote: Total 945 (delta 592), reused 894 (delta 553)
> Receiving objects: 100% (945/945), 282.14 KiB, done.
> Resolving deltas: 100% (592/592), done.
> .
> .
> .
>  * [new branch]      eclair    -> origin/eclair
> .
> .
> .
> From git://android.git.kernel.org/platform/manifest
>  * [new tag]        android-1.0 ->android-1.0
> fatal: manifest 'default.xml' not available
> fatal: manifest default.xml not found

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] problem of compiling Opencore to enable BUILD_STREAMING_MANAGER_NODE=y

2009-12-16 Thread tu
Hi everybody, I am re-compiling opencore from the software stack of
Eclair, my modification likes the following:
1) eclair/external/opencore/build_config/opencore_dynamic/
pv_config_selected.mk, set  BUILD_STREAMING_MANAGER_NODE=y
2)eclair/external/opencore/build_config/opencore_dynamic/pv_config.h
#define BUILD_STREAMING_MANAGER_NODE 1

then I re-compile all of Eclair, I met the following error message:
target SharedLib: libopencore_player (out/target/product/generic/obj/
SHARED_LIBRARIES/libopencore_player_intermediates/LINKED/
libopencore_player.so)
out/target/product/generic/obj/STATIC_LIBRARIES/
libpvplayer_engine_intermediates/libpvplayer_engine.a
(pv_player_node_registry_populator.o): In function `OsclUuid':
/source/eclair/out/target/product/generic/obj/include/libpv/
oscl_uuid.h:66: undefined reference to
`PVMFStreamingManagerNodeFactory::CreateStreamingManagerNode(int)'
/source/eclair/out/target/product/generic/obj/include/libpv/
oscl_uuid.h:66: undefined reference to
`PVMFStreamingManagerNodeFactory::DeleteStreamingManagerNode
(PVMFNodeInterface*)'
out/target/product/generic/obj/STATIC_LIBRARIES/
libpvplayer_engine_intermediates/libpvplayer_engine.a
(pv_player_node_registry_populator.o): In function
`PVPlayerRegistryPopulator::RegisterAllNodes
(PVPlayerNodeRegistryInterface*, void*&)':
/source/eclair/external/opencore/engines/player/src/../config/core/
pv_player_node_registry_populator.cpp:420: undefined reference to
`PVMFDownloadManagerNodeFactory::DeletePVMFDownloadManagerNode
(PVMFNodeInterface*)'
/source/eclair/external/opencore/engines/player/src/../config/core/
pv_player_node_registry_populator.cpp:420: undefined reference to
`PVMFDownloadManagerNodeFactory::CreatePVMFDownloadManagerNode(int)'
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
libopencore_player_intermediates/LINKED/libopencore_player.so] error 1


anybody can  help me about it?

Thanks and best regards.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: PackageManager.installPackage() ?

2008-03-23 Thread tu
I do think so! I think there is no way to register a manifest other than
package manager API now. The nearest approach I got is the following:
 ActivityThread thread = ActivityThread.currentActivityThread();
 PackageManager manager = this.getPackageManager();
 PackageInfo info =
manager.getPackageArchiveInfo("/data/data/my.test/install/testHello.apk",
0x);
 ApplicationInfo ai = info.applicationInfo;
 ai.dataDir = "/data/data/my.test";
 ai.processName = "my.test";
 ai.uid = 10008;  //uid of the running package
 ActivityThread.PackageInfo actPackageInfo = thread.getPackageInfo(ai,
Context.CONTEXT_IGNORE_SECURITY|Context.CONTEXT_INCLUDE_CODE
);
 thread.getApplicationThread().scheduleLaunchActivity(intent, null,
ai.packageName, "/data/data/my.test/",
   "/data/data/my.test/", ai.theme, ai.nonLocalizedLabel, ai.labelRes,
null, null, null, false);

It would work if ApplicationThread class is public.


2008/3/24, [EMAIL PROTECTED] <
[EMAIL PROTECTED]>:
>
>
> I guess package manager API is what you want, hackbod said is still
> under development.
>
> On Mar 23, 5:03 pm, Ben Dodson <[EMAIL PROTECTED]> wrote:
> > Right, but is there a way to load these dynamically, given another
> > manifest file? Can I edit my manifest file on the fly and inject the
> > activities of the .apk I want to load? Or can I adjust the context I'm
> > running in so the downloaded .apk's manifest is used instead of my own
> > until it is removed from the application stack?
> >
> > On Mar 23, 7:54 pm, "[EMAIL PROTECTED]"
> >
> > <[EMAIL PROTECTED]> wrote:
> > >http://code.google.com/android/devel/bblocks-manifest.html
> >
> > > "Every Activity must have an  tag in the manifest whether it
> > > is exposed to the world or intended for use only within its own
> > > package. If an Activity has no matching tag in the manifest, you won't
> > > be able to launch it."
> >
> > > On Mar 23, 3:17 pm, Ben Dodson <[EMAIL PROTECTED]> wrote:
> >
> > > > Well it looks like I jumped the gun.. no, I haven't yet been able to
> > > > launch an activity from my data folder. I can load classes from them
> > > > with the PathClassLoader, but can't call an activity. I think I need
> > > > to somehow create a new Context with my PathClassLoader as the
> > > > ClassLoader. Then use this context to run:
> >
> > > > Context packageContext =
> > > > context.createPackageContext(mclassname.substring(
> mclassname.lastIndexOf(". ")),
> > > > Context.CONTEXT_IGNORE_SECURITY);
> > > >     intent = new Intent();
> > > > intent.setClass(packageContext, m_class);
> >
> > > > no luck yet on creating that context.. I'm not positive this is the
> > > > way to go, but it's my best guess for now.
> >
> > > > Is it possible to load the contents of a foreign .apk's manifest
> file
> > > > into the current context?
> >
> > > > On Mar 23, 2:15 pm, tu <[EMAIL PROTECTED]> wrote:
> >
> > > > > Can you launch an activity defined in
> "/data/data/my.app/files/test.apk" ?!
> > > > > For start an acitivity in a installed apk, just use
> > > > > Intent.setClassName(packageName,
> > > > > foreignClassName)
> >
> > > > > 2008/3/23, Ben Dodson <[EMAIL PROTECTED]>:
> >
> > > > > > Well thanks for the help, I made some good progress on this once
> I
> > > > > > realized I needed the full path to the apk file
> (/data/data/my.app/
> > > > > > files/test.apk)
> >
> > > > > > Now I'm able to load classes dynamically using the
> PathClassLoader and
> > > > > > instantiate/run methods on them. Dependency classes also load
> with no
> > > > > > problem, including the R class.
> >
> > > > > > I'm still stuck on the last step of running an activity from
> > > > > > another .apk. I've tried two main approaches. One is to use
> > > > > > startActivity(this, foreignClass), so the context is that of the
> > > > > > calling app. The result:
> >
> > > > > > ERROR/lobos(796): java.lang.RuntimeException: Not supported in
> system
> > > > > > context
> > > > > > ERROR/lobos(796): at
> > > > > > android

[android-developers] Re: PackageManager.installPackage() ?

2008-03-24 Thread tu
As far as I know, launching an activity in an uninstalled apk is impossible.
The problem is not the correct context enviroment, but the manifest file not
be registered. That means you can use resouces and codes in dynamic loaded
apk, but can not use activities, services directly.

2008/3/24, Ben Dodson <[EMAIL PROTECTED]>:
>
>
> what does that snippet do now?
>
> I was also thinking on my approach of creating my own Context with my
> own ClassLoader. I haven't thought it out completely but it may be a
> security risk, as you could override "com.google.os.securePackage" to
> do something else, and it may be possible to skirt around permissions.
> This is of course not what I'm trying to do =) But it may mean that
> method is not possible and/or should be examined as a possible
> security risk.
>
> I'm going to try something later today- I can define my own
> Context.getResources() method, so rather than launching activities,
> I'll have an alternate entry point called MyActivity.load(), called
> from within a  Context with getResources overwritten to use that apk's
> resources.
>
> So many paths, so many dead ends ; (
>
>
> On Mar 23, 9:17 pm, tu <[EMAIL PROTECTED]> wrote:
> > I do think so! I think there is no way to register a manifest other than
> > package manager API now. The nearest approach I got is the following:
> >  ActivityThread thread = ActivityThread.currentActivityThread();
> >  PackageManager manager = this.getPackageManager();
> >  PackageInfo info =
> > manager.getPackageArchiveInfo
> ("/data/data/my.test/install/testHello.apk",
> > 0x);
> >  ApplicationInfo ai = info.applicationInfo;
> >  ai.dataDir = "/data/data/my.test";
> >  ai.processName = "my.test";
> >  ai.uid = 10008;  //uid of the running package
> >  ActivityThread.PackageInfo actPackageInfo = thread.getPackageInfo
> (ai,
> >
> Context.CONTEXT_IGNORE_SECURITY|Context.CONTEXT_INCLUDE_CODE
> > );
> >  thread.getApplicationThread().scheduleLaunchActivity(intent, null,
> > ai.packageName, "/data/data/my.test/",
> >"/data/data/my.test/", ai.theme, ai.nonLocalizedLabel,
> ai.labelRes,
> > null, null, null, false);
> >
> > It would work if ApplicationThread class is public.
> >
> > 2008/3/24, [EMAIL PROTECTED] <
> > [EMAIL PROTECTED]>:
> >
> >
> >
> > > I guess package manager API is what you want, hackbod said is still
> > > under development.
> >
> > > On Mar 23, 5:03 pm, Ben Dodson <[EMAIL PROTECTED]> wrote:
> > > > Right, but is there a way to load these dynamically, given another
> > > > manifest file? Can I edit my manifest file on the fly and inject the
> > > > activities of the .apk I want to load? Or can I adjust the context
> I'm
> > > > running in so the downloaded .apk's manifest is used instead of my
> own
> > > > until it is removed from the application stack?
> >
> > > > On Mar 23, 7:54 pm, "[EMAIL PROTECTED]"
> >
> > > > <[EMAIL PROTECTED]> wrote:
> > > > >http://code.google.com/android/devel/bblocks-manifest.html
> >
> > > > > "Every Activity must have an  tag in the manifest
> whether it
> > > > > is exposed to the world or intended for use only within its own
> > > > > package. If an Activity has no matching tag in the manifest, you
> won't
> > > > > be able to launch it."
> >
> > > > > On Mar 23, 3:17 pm, Ben Dodson <[EMAIL PROTECTED]> wrote:
> >
> > > > > > Well it looks like I jumped the gun.. no, I haven't yet been
> able to
> > > > > > launch an activity from my data folder. I can load classes from
> them
> > > > > > with the PathClassLoader, but can't call an activity. I think I
> need
> > > > > > to somehow create a new Context with my PathClassLoader as the
> > > > > > ClassLoader. Then use this context to run:
> >
> > > > > > Context packageContext =
> > > > > > context.createPackageContext(mclassname.substring(
> > > mclassname.lastIndexOf(". ")),
> > > > > > Context.CONTEXT_IGNORE_SECURITY);
> > > > > > intent = new Intent();
> > > > > > intent.setClass(packageContext,
> m_class);
> >
> > > > > > no luck yet on creating 

[android-developers] GTalk Data Send parse error!

2008-04-03 Thread tu
I found when I put string like "name <[EMAIL PROTECTED]>" in the intent sent by 
gtalk
data send service. I got an "invalid-xml" error tagged by "Smack/Packet".  I
think it just because there is '<' and '>' in the string. So I think it
maybe a bug for gtalk data send service

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting e-mail of selected person in Contacts

2008-04-05 Thread tu
I also meet the similar problem with
Contacts.ContactMethods.CONTENT_EMAIL_URI, but it works fine with
Contacts.ContactMethods.CONTENT_URI. My code is:

Uri uri = Contacts.ContactMethods.CONTENT_URI;
String selection = Contacts.ContactMethods.KIND + "=" +
Contacts.ContactMethods.EMAIL_KIND
Cursor c = this.getContentResolver().query(uri, EMAIL_PROJECTION, selection,
null, null);

2008/4/6, Maxim Yudin <[EMAIL PROTECTED]>:
>
>
>
> I write new article abotu using Content Provider. I get info about
> person's name and person's phones in contact list. But I can not get e-
> mail of person. Help. I have found URI -
> Contacts.ContactMethods.CONTENT_EMAIL_URI, but it not help
>
> My code:
>
> Java:
>
> package maximyudin.contentproviderexample;
>
> import android.app.Activity;
> import android.content.Context;
> import android.content.ContentUris;
> import android.database.Cursor;
> import android.net.Uri;
> import android.os.Bundle;
> import android.provider.Contacts;
> import android.provider.Contacts.People;
> import android.provider.Contacts.PeopleColumns;
> import android.widget.ExpandableListAdapter;
> import android.widget.ExpandableListView;
> import android.widget.SimpleCursorTreeAdapter;
> import android.widget.TabHost;
> import android.widget.TabHost.TabSpec;
>
> public class ContentProviderExample extends Activity {
> private int mGroupIdColumnIndex;
>
> private String mPhoneNumberProjection[] = new String[] {
> People.Phones._ID, People.Phones.NUMBER
> };
>
> private ExpandableListAdapter mAdapter;
>
> @Override
> public void onCreate(Bundle icicle) {
> super.onCreate(icicle);
> setContentView(R.layout.main);
>
> TabHost tabs = (TabHost)this.findViewById(R.id.tabs);
> tabs.setup();
>
> TabSpec one = tabs.newTabSpec("one");
> one.setContent(R.id.content1);
> one.setIndicator("Contacts",
> this.getResources().getDrawable(R.drawable.person));
> tabs.addTab(one);
>
> TabHost.TabSpec two = tabs.newTabSpec("two");
> two.setContent(R.id.content2);
> two.setIndicator("Empty");
> tabs.addTab(two);
> tabs.setCurrentTab(0);
>
> final ExpandableListView contactlist =
>
> (ExpandableListView)this.findViewById(R.id.contactlist);
>
> // Query for people
> Cursor groupCursor = managedQuery(People.CONTENT_URI,
> new String[] {People._ID, People.NAME}, null,
> null, null);
>
> // Cache the ID column index
> mGroupIdColumnIndex =
> groupCursor.getColumnIndex(People._ID);
>
> // Set up our adapter
> mAdapter = new MyExpandableListAdapter(groupCursor,
> this,
> android.R.layout.simple_expandable_list_item_1,
> android.R.layout.simple_expandable_list_item_1,
> new String[] {People.NAME}, // Name for group
> layouts
> new int[] {android.R.id.text1},
> new String[] {People.NUMBER}, // Number for child
> layouts
> new int[] {android.R.id.text1});
>
> contactlist.setAdapter(mAdapter);
> }
>
> public class MyExpandableListAdapter extends
> SimpleCursorTreeAdapter {
> public MyExpandableListAdapter(Cursor cursor, Context
> context, int groupLayout,
> int childLayout, String[] groupFrom, int[]
> groupTo, String[] childrenFrom,
> int[] childrenTo) {
> super(context, cursor, groupLayout, groupFrom,
> groupTo, childLayout, childrenFrom,
> childrenTo);
> }
>
> @Override
> protected Cursor getChildrenCursor(Cursor groupCursor) {
> // Given the group, we return a cursor for all the
> children within that group
>
> // Return a cursor that points to this contact's
> phone numbers
> Uri.Builder builder = People.CONTENT_URI.buildUpon();
> ContentUris.appendId(builder,
> groupCursor.getLong(mGroupIdColumnIndex));
>
> builder.appendEncodedPath(People.Phones.CONTENT_DIRECTORY);
> Uri phoneNumbersUri = builder.build();
>
> // The returned Cursor MUST be managed by us, so we
> use Activity's helper
> // functionality to manage it for us.
> return managedQuery(phoneNumbersUri,
> mPhoneNumberProjection, null, null, null);
> }
> }
> }
>
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02

[android-developers] Re: Logcat stopped working

2008-04-09 Thread tu
I also encountered the problem several times. When it happens, I just
restart eclipse and click the emulator item in device view in DDMS
perspective. It works again in most time. In few times I have to kill adb
process and restart eclispe, and it works again.


2008/4/10, Anil <[EMAIL PROTECTED]>:
>
>
> Since this morning when I rebooted, it is working. When I rebooted
> yesterday, it did not.
> However, command line adb logcat still worked.
> thanks,
> Anil
>
> On Apr 8, 3:19 pm, Anil <[EMAIL PROTECTED]> wrote:
> > Clicking on the Logcat view doesn't show any of my Log.v messages.
> > I used -wipe-data, restarted eclipse, rebooted computer. Doesn't show
> > it any more.
> > File explorer also stopped. rc15
> > Any help appreciated.
> > thanks,
> > Anil
> >
> > console:
> >
> > [2008-04-08 14:15:59 - yo android] --
> > [2008-04-08 14:15:59 - yo android] Android Launch!
> > [2008-04-08 14:15:59 - yo android] adb is running normally.
> > [2008-04-08 14:15:59 - yo android] Launching:
> > com.yo.blockpad.yoViewer
> > [2008-04-08 14:15:59 - yo android] Automatic Target Mode: launch
> > emulator.
> > [2008-04-08 14:15:59 - yo android] Launching a new emulator.
> > [2008-04-08 14:16:03 - yo android] New emulator found: emulator-
> > tcp-
> > [2008-04-08 14:16:58 - yo android] HOME is up on device 'emulator-
> > tcp-'
> > [2008-04-08 14:16:58 - yo android] Pushing yo android.apk to /data/
> > app on device 'emulator-tcp-'
> > [2008-04-08 14:17:01 - yo android] Starting activity on device:
> > com.yo.blockpad.yoViewer
> > [2008-04-08 14:17:12 - yo android] ActivityManager: Starting: Intent
> > { comp={com.yo.blockpad/com.yo.blockpad.yoViewer} }
> > [2008-04-08 14:17:14 - yo android] Attempting to connect debugger to
> > 'com.yo.blockpad' on port 8606
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Announcing: RCP for Android & Unify-Message Open Platform

2008-04-15 Thread tu
I have summited two framework projects for developers to ADC.

1. RCP for Android
http://rcpandroid.googlecode.com/files/RCPAndroid.pdf
http://rcpandroid.googlecode.com/files/RCPAndroid.apk

2. Unify-Message Open Platform

http://unifymessage.googlecode.com/files/UnifyMessage.pdf

Comments and sugesstions are welcome! :-)

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Announcing: RCP for Android & Unify-Message Open Platform

2008-04-15 Thread tu
RCP for Android introduce some OSGI's bundle features to android. Maximally
supports various building blocks of Android and the operation of multi
processes. Take advantages of both OSGi and Android.

Unify-Message Open Platform is a message center for Andorid, based in RCP
for android.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Announcing: RCP for Android & Unify-Message Open Platform

2008-04-15 Thread tu
I found that there is much more download for RCPAndroid.pdf than
RCPAndroid.apk. But I packed many source code and client libary into apk's
assets directory. So I recommend download the apk too.

I hope RCP for Android is useful to developers wether they submitted to ADC
or not.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Protecting data and application from illegal use

2008-04-19 Thread tu
I am working on this topic recently, base on my project RCP for Android.
http://code.google.com/p/rcpandroid/

Now bundles (sub-apks) can be loaded after encrypted.


2008/4/19, Jackkk <[EMAIL PROTECTED]>:
>
>
> Hi!
>
> I was wondering about some real world issues about commercial
> applications:
>
> - Will there be a possibility for encrypted APKs as some of the
> information included with the app (files, media, images, databases)
> can be copyrighted with the need to protect it from illegal copy.
> - Could there be an Android based solution for evaluation purposes and
> time limitations?
> - How can we protect our software from being just copied from one
> phone to another? The trick would be to add some checksum files
> created from serial no and phone info, but what are the proper
> mechanisms for that? What is the unique and reliable info from the OS
> or phone that could be used and could not be cracked very easily?
> - How to protect data in SQLite? For example, the software needs a
> load of data that will be stored in database after initial launch. But
> the data could be also suitable for other illegal purposes - sharing
> on Internet, creating your own apps etc. But it is once again
> intellectual property of someone.
> - Another issue is the actual protection of user data itself.
> Currently the emulator is as open as it can be! If the phone is stolen
> for example, some data could be really sensitive that can be stored in
> the Phone SQLite database? Will there be any solutions how to restrict
> access to the console level in the future that the user himself can
> set and manage?
>
> Possible solutions that I have come to are:
> - hardcoding the copyrighted data into code
> - using obfuscators to protect the code from some reverse engineering
> attempts
> - authenticating the app over Internet on the first use and creating
> some MD5 checkfiles
>
> I find those questions important! If you have similar doubts or you
> could extend the list of those issues, we could try to improve those
> questions together through a wider dialogue!
>
> Regards
>
> Jack
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Protecting data and application from illegal use

2008-04-19 Thread tu
Yeah, the framework is mostly transparent. You can generate your own private
key and encrypt or sign your bundle. The main-apk has public key. You can
try to download my project and extract sources packed in apk to study how to
bundle programming. I will upload my security solutions some days later.


2008/4/19, Jackkk <[EMAIL PROTECTED]>:
>
>
> Nice work!
>
> Is there going to be an option for transparent framework also? If I
> could include my real app encrypted inside the bundle and distribute
> it as one package leaving the wrapper invisible to the end user.
>
> Regards
>
> Jack
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Protecting data and application from illegal use

2008-04-19 Thread tu
Yeah, the framework is mostly transparent. You can generate your own private
key and encrypt or sign your bundle. The main-apk has public key. You can
try to download my project and extract sources packed in apk to study how to
bundle programming. I will upload my security solutions some days later.


2008/4/19, Jackkk <[EMAIL PROTECTED]>:
>
>
> Nice work!
>
> Is there going to be an option for transparent framework also? If I
> could include my real app encrypted inside the bundle and distribute
> it as one package leaving the wrapper invisible to the end user.
>
> Regards
>
> Jack
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Protecting data and application from illegal use

2008-04-19 Thread tu
Then performance is acceptable according to my test. It cost a few seconds
to install a bundle. Because the ClassLoader provided by Android now is only
support apk file than memory bytes, so I have to decrypt the bundle(sub-apk)
to main-apk's data directory.

2008/4/19, Jackkk <[EMAIL PROTECTED]>:
>
>
> This is of course obvious that we can never get full protection for
> apps that the program files have been given away. For server based
> things this is rather simple.
>
> Tu, your work seems to be very interesting… Combined with other
> methods and technics it can provide a very good system. What I'm
> conserned is the actual performance that might go down. How is the
> decryption done - loading the code into memory and launching from
> there? Also, if in the future there will be other database engines
> available for Android, the data protection might become much easier
> also!
>
> To extend the idea of IMEI encrypted check keys, a rather good
> solution would also be to compile the app each time it is downloaded
> with unique keys hardcoded for identification purposes or make a
> number of apk's that are all different from inside and let the buyers
> download different version each time. This all can be 100% automated.
>
> The thing where the user has to authenticate himselt over network each
> time is impossible. Even the first time might be hard! I think the
> issue here is to make it a little bit harder than the cost of $10.
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Load a class from another .apk file dynamic?

2008-04-21 Thread tu
I have a solution based on android.dalvik.DexFile. see my project
http://code.google.com/p/rcpandroid/

2008/4/21, frankl <[EMAIL PROTECTED]>:
>
>
> Hi chris.p,
>
> Have you resolved the issue of classloader.getResource? I met the same
> problem. Please let me know if any updates. that will be highly
> appreciated.
>
> Thanks
> Frank
>
> On Apr 13, 10:23 pm, "chris.p" <[EMAIL PROTECTED]> wrote:
> > Hello everyone,
> >
> > I've already managed to load a single class from anothers application
> > context:
> > --- code ---
> > Context foreignContext = context.createPackageContext(packageName,
> > Context.CONTEXT_INCLUDE_CODE | Context.CONTEXT_IGNORE_SECURITY);
> > Class c =
> > foreignContext.getClassLoader().loadClass(qualifiedClassName);
> > //Do things with c
> > --- code ---
> >
> > What I would like to do now, is to load all the classes contained in a
> > certain package
> > --- code ---
> > ClassLoader cld = foreignContext.getClassLoader();
> > String packagePath = "name.to.a.package".replace('.', '/');
> > URL resource = cld.getResource(packagePath);
> > File packageDirectory = new
> > File(URLDecoder.decode(resource.getPath(),"UTF-8"));
> > //iterate over the contents of the packageDirectory
> > --- code ---
> >
> > The above code works perfect in Java SE 1.5 (For testing in standard
> > Java I use the Thread.currentThread().getContextClassLoader() instead
> > of Androids-Context ClassLoader)
> > But Android always gives me an exception because resource (URL) is
> > null.
> > I also tried providing the package-path differently, with e.g.
> > the .apk-path as prefix, but that doesn't work either.
> > From the doc of Classloader in Android, I've seen that the default
> > behaviour of getResource() is to return null.
> > This is something the Java SE doesn't state.
> > Does this mean I can't use Classloader.getResource() in Android?
> >
> > What else could I do to get all classes of a package in Android? -
> > Load the dex-File?
> > Any suggestion is greatly appreciated! - Thanks chris
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Load a class from another .apk file dynamic?

2008-04-22 Thread tu
See tips in
http://blog.luminis.nl/luminis/entry/osgi_on_google_android_using





I got the idea from this blog.

在08-4-22,Macro <[EMAIL PROTECTED]> 写道:
>
>
> There are none code at SVN?
> I want to reference how to use DexFile correctly...
>
>
>
> On 4月21日, 下午6时31分, tu <[EMAIL PROTECTED]> wrote:
> > I have a solution based on android.dalvik.DexFile. see my projecthttp://
> code.google.com/p/rcpandroid/
> >
> > 2008/4/21, frankl <[EMAIL PROTECTED]>:
> >
> >
> >
> >
> >
> > > Hi chris.p,
> >
> > > Have you resolved the issue of classloader.getResource? I met the same
> > > problem. Please let me know if any updates. that will be highly
> > > appreciated.
> >
> > > Thanks
> > > Frank
> >
> > > On Apr 13, 10:23 pm, "chris.p" <[EMAIL PROTECTED]> wrote:
> > > > Hello everyone,
> >
> > > > I've already managed to load a single class from anothers
> application
> > > > context:
> > > > --- code ---
> > > > Context foreignContext = context.createPackageContext(packageName,
> > > > Context.CONTEXT_INCLUDE_CODE | Context.CONTEXT_IGNORE_SECURITY);
> > > > Class c =
> > > > foreignContext.getClassLoader().loadClass(qualifiedClassName);
> > > > //Do things with c
> > > > --- code ---
> >
> > > > What I would like to do now, is to load all the classes contained in
> a
> > > > certain package
> > > > --- code ---
> > > > ClassLoader cld = foreignContext.getClassLoader();
> > > > String packagePath = "name.to.a.package".replace('.', '/');
> > > > URL resource = cld.getResource(packagePath);
> > > > File packageDirectory = new
> > > > File(URLDecoder.decode(resource.getPath(),"UTF-8"));
> > > > //iterate over the contents of the packageDirectory
> > > > --- code ---
> >
> > > > The above code works perfect in Java SE 1.5 (For testing in standard
> > > > Java I use the Thread.currentThread().getContextClassLoader()
> instead
> > > > of Androids-Context ClassLoader)
> > > > But Android always gives me an exception because resource (URL) is
> > > > null.
> > > > I also tried providing the package-path differently, with e.g.
> > > > the .apk-path as prefix, but that doesn't work either.
> > > > From the doc of Classloader in Android, I've seen that the default
> > > > behaviour of getResource() is to return null.
> > > > This is something the Java SE doesn't state.
> > > > Does this mean I can't use Classloader.getResource() in Android?
> >
> > > > What else could I do to get all classes of a package in Android? -
> > > > Load the dex-File?
> > > > Any suggestion is greatly appreciated! - Thanks chris- 隐藏被引用文字 -
> >
> > - 显示引用的文字 -
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Protecting data and application from illegal use

2008-05-11 Thread tu
RCP for Android is open source now.
http://code.google.com/p/rcpandroid/

2008/4/20 CAT <[EMAIL PROTECTED]>:

>
>
>
> On Apr 19, 10:09 am, Jackkk <[EMAIL PROTECTED]> wrote:
> > Hi!
> >
> > I was wondering about some real world issues about commercial
> > applications:
> >
> > - Will there be a possibility for encrypted APKs as some of the
> > information included with the app (files, media, images, databases)
> > can be copyrighted with the need to protect it from illegal copy.
> > - Could there be an Android based solution for evaluation purposes and
> > time limitations?
> > - How can we protect our software from being just copied from one
> > phone to another? The trick would be to add some checksum files
> > created from serial no and phone info, but what are the proper
> > mechanisms for that? What is the unique and reliable info from the OS
> > or phone that could be used and could not be cracked very easily?
> > - How to protect data in SQLite? For example, the software needs a
> > load of data that will be stored in database after initial launch. But
> > the data could be also suitable for other illegal purposes - sharing
> > on Internet, creating your own apps etc. But it is once again
> > intellectual property of someone.
> > - Another issue is the actual protection of user data itself.
> > Currently the emulator is as open as it can be! If the phone is stolen
> > for example, some data could be really sensitive that can be stored in
> > the Phone SQLite database? Will there be any solutions how to restrict
> > access to the console level in the future that the user himself can
> > set and manage?
>
> You could encrypt the data itself bego
> You could encrypt the information itself before storing it to the DB.
> Or implement your own custom ContentProvider using a different data
> store.  Regards, Werner
>  > Possible solutions that I have come to are:
> > - hardcoding the copyrighted data into code
> > - using obfuscators to protect the code from some reverse engineering
> > attempts
> > - authenticating the app over Internet on the first use and creating
> > some MD5 checkfiles
> >
> > I find those questions important! If you have similar doubts or you
> > could extend the list of those issues, we could try to improve those
> > questions together through a wider dialogue!
> >
> > Regards
> >
> > Jack
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] RCP for Android is open source now

2008-05-11 Thread tu
http://code.google.com/p/rcpandroid/

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Programatic download, install, remove apk??? Who know???

2008-05-12 Thread tu
My solution is for sub-apk. see http://code.google.com/p/rcpandroid/

2008/5/12 Wesley Sagittarius <[EMAIL PROTECTED]>:

>
> Anyone know how to download apk, auto install apk, auto remove apk
> using coding???
> any example???
> Thanks...
>
> wesley sagittarius.
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Programatic download, install, remove apk??? Who know???

2008-05-12 Thread tu
read "doc/StartGuide.pdf" first, then go through demos directory. RCPAndroid
is the Main-apk project. "RCPAndroid.apk" is the compiled apk.
There are some batch files in tool directory for generating keypairs,
ciphering and packing bundle.

2008/5/13 Wesley <[EMAIL PROTECTED]>:

> is a great project... but too many files... which files/folder I should
> refer to???
> any more direct example???
>
> thanks.
>
> Wesley Sagittarius.
>
>
> On Mon, May 12, 2008 at 10:29 PM, tu <[EMAIL PROTECTED]> wrote:
>
> > My solution is for sub-apk. see http://code.google.com/p/rcpandroid/
> >
> > 2008/5/12 Wesley Sagittarius <[EMAIL PROTECTED]>:
> >
> >
> > > Anyone know how to download apk, auto install apk, auto remove apk
> > > using coding???
> > > any example???
> > > Thanks...
> > >
> > > wesley sagittarius.
> > >
> > >
> >
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Programatic download, install, remove apk??? Who know???

2008-05-13 Thread tu
Main Bundle should be put into assets\bundles directory
and should be defined in assets\appini.xml

2008/5/13 Wesley <[EMAIL PROTECTED]>:

> hi tu,
>
> I try your project... it say cannot find Main bundle.. means???
>
>
> Wesley.
>
>
> On Tue, May 13, 2008 at 11:23 AM, tu <[EMAIL PROTECTED]> wrote:
>
> > read "doc/StartGuide.pdf" first, then go through demos directory.
> > RCPAndroid is the Main-apk project. "RCPAndroid.apk" is the compiled apk.
> > There are some batch files in tool directory for generating keypairs,
> > ciphering and packing bundle.
> >
> > 2008/5/13 Wesley <[EMAIL PROTECTED]>:
> >
> > is a great project... but too many files... which files/folder I should
> > > refer to???
> > > any more direct example???
> > >
> > > thanks.
> > >
> > > Wesley Sagittarius.
> > >
> > >
> > > On Mon, May 12, 2008 at 10:29 PM, tu <[EMAIL PROTECTED]> wrote:
> > >
> > > > My solution is for sub-apk. see http://code.google.com/p/rcpandroid/
> > > >
> > > > 2008/5/12 Wesley Sagittarius <[EMAIL PROTECTED]>:
> > > >
> > > >
> > > > > Anyone know how to download apk, auto install apk, auto remove apk
> > > > > using coding???
> > > > > any example???
> > > > > Thanks...
> > > > >
> > > > > wesley sagittarius.
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



RE: 回复: Re: [android-developers] 找工作

2012-02-12 Thread TU QINGHONG
我们公司在找人,有兴趣,可以聊聊啊,专做Android平台开发

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of 微μ漫岭云天
Sent: Monday, February 13, 2012 2:22 PM
To: android-developers
Subject: 回复: Re: [android-developers] 找工作

 


先找个公司,不给钱也给他干。 等干2月熟悉了。 钱自然就来了、

 

 

-- 原始邮件 --

发件人: "涂涛";

发送时间: 2012年2月13日(星期一) 下午2:04

收件人: "android-developers"; 

主题: Re: Re: [android-developers] 找工作

 

求教了???android market?

2012/2/13 nainfanta 

为什么要找工作,自己做应用赚钱

 

  _  

nainfanta

 

发件人: James W.  

发送时间: 2012-02-13 12:38

收件人: android-developers  

主题: Re: [android-developers] 找工作

 你找个,便宜一点的啊!

有了经验就好了

 

2012/2/13 fei ji :

> 为什么找得到工作

> 

> 

> 2012/2/13 ttgdz 

>> 

>>  android学了半年,没工作经验,本人在深圳,为什么找不到工作?悲苦
啊

>> 

>> --

>> 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+unsubscr...@googlegroups.com
 

>> For more options, visit this group at

>> http://groups.google.com/group/android-developers?hl=en

> 

> 

> --

> 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+unsubscr...@googlegroups.com
 

> For more options, visit this group at

> http://groups.google.com/group/android-developers?hl=en

 

-- 

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+unsubscr...@googlegroups.com
 

For more options, visit this group at

http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en