@@ -20,6 +20,9 @@ import ohos.aafwk.ability.Ability;
|
||||
import ohos.aafwk.content.Intent;
|
||||
import ohos.agp.window.service.WindowManager;
|
||||
|
||||
/**
|
||||
* The type Main ability.
|
||||
*/
|
||||
public class MainAbility extends Ability {
|
||||
@Override
|
||||
public void onStart(Intent intent) {
|
||||
|
@@ -17,6 +17,9 @@ package com.xcl.search.test;
|
||||
|
||||
import ohos.aafwk.ability.AbilityPackage;
|
||||
|
||||
/**
|
||||
* The type My application.
|
||||
*/
|
||||
public class MyApplication extends AbilityPackage {
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
|
@@ -20,6 +20,9 @@ import ohos.aafwk.ability.Ability;
|
||||
import ohos.aafwk.content.Intent;
|
||||
import ohos.agp.window.service.WindowManager;
|
||||
|
||||
/**
|
||||
* The type Search demo ability.
|
||||
*/
|
||||
public class SearchDemoAbility extends Ability {
|
||||
@Override
|
||||
public void onStart(Intent intent) {
|
||||
|
@@ -23,6 +23,9 @@ import ohos.agp.components.Component;
|
||||
import ohos.agp.window.service.WindowManager;
|
||||
import ohos.utils.net.Uri;
|
||||
|
||||
/**
|
||||
* The type Main ability slice.
|
||||
*/
|
||||
public class MainAbilitySlice extends AbilitySlice {
|
||||
|
||||
@Override
|
||||
@@ -50,6 +53,11 @@ public class MainAbilitySlice extends AbilitySlice {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Route.
|
||||
*
|
||||
* @param route the route
|
||||
*/
|
||||
public void Route(String route) {
|
||||
Intent intent1 = new Intent();
|
||||
intent1.setParam("SEARCH_PD", route);
|
||||
|
@@ -33,6 +33,9 @@ import ohos.hiviewdfx.HiLogLabel;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* The type Search demo ability slice.
|
||||
*/
|
||||
public class SearchDemoAbilitySlice extends AbilitySlice {
|
||||
private static final HiLogLabel label = new HiLogLabel(HiLog.LOG_APP, 0x00234, "SearchDemoAbilitySlice");
|
||||
private int PDD = -2;
|
||||
|
Reference in New Issue
Block a user