Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8341341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:27:06+00:00 2026-06-09T05:27:06+00:00

I am new to java and android.I am following and making app from here

  • 0

I am new to java and android.I am following and making app from here for drag and drop.

the following files are giving error of cannot be resolved.

import android.view.View.DragShadowBuilder;
import android.view.View.OnDragListener;
import android.view.DragEvent;
import android.content.ClipData;

I know that means the above mentioned classes are not present in main library. how should i add them or is there alternate way of doing drag and drop(please explain with give examples).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:27:08+00:00Added an answer on June 9, 2026 at 5:27 am

    Right click on your projects –> properties –> android —-> set target 4.0

    Refer this links,

    http://www.edumobile.org/android/android-beginner-tutorials/drag-and-drop-ui-element/

    http://techdroid.kbeanie.com/2010/04/simple-drag-n-drop-on-android.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

New to android programming. Getting Following error. 04-07 14:49:05.452: ERROR/AndroidRuntime(1566): FATAL EXCEPTION: main java.lang.OutOfMemoryError
I am also new to Java and Android Development, been making a simple game
I am making an android database app in which when i fetch values from
I got the following code inside my templateApp.java: package com.android.templateApp; import android.app.Activity; import android.os.Bundle;
I am fairly new to Java programming and was following a tutorial located here:
I got following error message: main.xml: java.lang.UnsupportedOperationException Stacktrace says: java.lang.UnsupportedOperationException at android.graphics.Paint_Delegate.nativeGetStringBounds(Paint_Delegate.java:897) at android.graphics.Paint.nativeGetStringBounds(Paint.java)
What is the return type of the following code, android.text.format.DateFormat.format(MM/dd/yyyy hh:mm, new java.util.Date()); I'm
Im very new to android/java and have been following a few youtube tutorials and
I'm new to Java/Eclipse/Android, so this is probably an easy (if not stupid) question:
I'm fairly new to Java and Android programming in general but I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.