Why can't I add subversion package to my OpenBSD 4.5 machine?

Hi all, how do you add web view to an existing application if it already has a project and package name?

  • I am developing an android application and wanted to add a Web View with the Web kit engine inside the application. I get errors when I add a new package inside the app activity folder, i.e. (package remote.mobile.droidapp; existing package name. (package lewisham.ac.uk;) new package I added for web view....... It gives me an option to move the existing app package to the new package with the url link I'm trying to create for web view. The code I added is WebView myWebView = (WebView) findViewById(R.id.webview); WebSettings webSettings = myWebView.getSettings(); webSettings.setJavaScriptEnabled(true)… I also got an error with (R.id.webview), id within this area of the code. Its giving me an option to Create field 'id' in type 'R' or Create constant 'id' in type 'R'. I am truly grateful for any help, thanks.

  • Answer:

    Your question is a bit difficult to answer since you do not provide some essential information. Where did you add the code you supplied? What IDE are you using? What should the webview display? Why don't you just create a new class and/or activity in the existing package? Anyways, assuming you want the webview in a new activity, here's how I would add it 1. Create a new class In my class definition below I've named it MyWebView and added it in the package com.test, but you may want to change this to your existing package name. package com.test import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class MyWebView extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); WebView view = (WebView) findViewById(R.id.webview_id); view.loadUrl("http://myblog.com"); } } 2. Create a new layout xml file, for example <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.co… android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="right" > <WebView android:id="@+id/webview_id" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </RelativeLayout> 3. Add the new Activity to your AndroidManifest.xml file, for example: <activity android:name=".MyWebView" > <intent-filter > <action android:name="android.intent.action.VIEW… /> <category android:name="android.intent.category.IN… /> </intent-filter> </activity> 4. Alter existing code so the webview will be displayed when you press a button or something...

P a t r i c k at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.