Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2012 - 2013 Vektor Software. 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, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. /
Activator for Android main bundle. This activator will register service for accessing main activity for application.

Vladimir Djurovic
public class AndroidMainActivator implements BundleActivator {
Main activity for this application.
    private final DMXMainActivityService mainActivityService;
Creates new instance.

    public AndroidMainActivator(DMXMainActivityService service){
        this. = service;

Starts this bundle and registers DMXMainActivityService.

bc bundle context
Exception if an error occurs
    public void start(BundleContext bcthrows Exception {
        // register activity service
        Dictionary<StringObjectdict = new Hashtable<StringObject>();
    public void stop(BundleContext bcthrows Exception {
New to GrepCode? Check out our FAQ X