Basically, you can rename your classes and packages as you want to.
What you need to keep intact is the interface package, i.e.
com.sonyericsson.extras.liveview.IPluginServiceCallbackV1/
IPluginService

And you need to keep track of your naming of the intents in the
manifest and res/values/strings.xml.

Manifest: application->service->intent-filter->action->name needs to
correspond to res/values/strings.xml->intent_service
Manifest: application->application->intent-filter->action->name needs
to correspon to res/values/strings.xml->intent_preferences

Renaming the other packages and names also need to be defined
correctly in the manifest. Easiest way to get that right is to check
the current manifest setup of the template-project or the other
examples, and change the manifest accordingly. Some things will
hopefully be corrected for you by the built-in functionality of your
IDE, e.g. Eclipse.

Kind regards
  /Johan, Sony Ericsson Developer Support

On Aug 21, 11:09 pm, PeLa <[email protected]> wrote:
> Hi,
>
> I would like to develop apps that uses Sony Ericsson's LiveView
> device. I'm new to Android and Java, so my question my seem stupid. My
> experience is mainly C/C++ with Microsoft's MFC and Nokia's Qt, but
> Java seems to be not too far from C++. I managed to make some changes
> to the Sandbox example app which is included with the LiveView SDK,
> and it behave like I expected, so it seems like have understood at
> least a bit of LiveView, Android and Java. Now, here's my stupid
> question.
>
> In Eclipse, I import the template app included with the SDK, and call
> it something else. Now, what changes should I do to it in terms of
> names of files, names of packages, etc?
>
> Everywhere I saw the name Template, I changed it to my own app name,
> but that leaves a lot of package names beginning with
> com.sonyericsson... and ending with my app name. I guess I should
> change the beginning of some package names, but probably not all.
> Which ones should I change?
>
> It would have been nice if the template files had more detaild
> instruction comments, like
> // TODO: change the next next line to the format
> myTopDomain.myDomain.MyExtraHierachy.MyAppname
>
> I used appXplore to check other LiveView plugins from Market, just to
> see how others did. And it's a mix. Some have kept  com.sony.ericsson
> in the beginning of their package names, process names, and preference
> activities, and some have changed to their own. (I know that some of
> the LiveView plugins in Marked are developed by Sony Ericsson, so it's
> natural that they kept com.sonyericsson... but some non-sony-ericsson
> also kept it).
>
> So, it seems like I'm not the only one who need guidence.It would be
> nice if Sony Ericsson presented guidlines on how they expect people to
> do. If they don't, it would be nice if someone else wrote detailed
> instructions.
>
> Should the following keep their names (including com.sonyericsson...)
> myProjName/src/com.sonyericsson.extras.liveview
> myProjName/src/com.sonyericsson.extras.liveview.plugins
>
> Should I change the following:
> myProjName/src/com.sonyericsson.extras.liveview.plugins.template
> to for example
> myProjName/src/
> myTopDomain.myDomain.myAppName.liveview.plugins.myAppName
>
> I tried that,and updated the manifest etc, but I didn't get it to
> work. Should I have done something else?
>
> It would have been really nice for beginners like me with specific
> TODO: comments saying exactly what to do.
>
> Thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to