can i add layout.xml, R.java and string.xml files in my folder?

![enter image description here](https://i.stack.imgur.com/1eL02.png)

**Code:**

**NetconnectionFailureActivity.java:(My Sample Name)**

```
package stack.api.netfailure;

import sync.api.netfailure.R;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class NetconnectionFailureActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);        

    }
}

```

**CheckActivity.java:(My Activity -> have to convert this into jar file)**

```
package stack.api.check;

import sync.api.netfailure.R;
import android.app.Activity;
import android.os.Bundle;

public class CheckActivity extends Activity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.checklayout);

    }

}

```

If i have added this jar file to new project named "CheckingJarFile", and my layout in layout folder, it will crash as "`import sync.api.netfailure.R not found`". Please any one tell me how to convert my layout, my R.java file with myactivity into one package name?