|
Please put some proper details in your question. We have no idea what this program is or what it is doing.
|
|
|
|
|
i downloaded this :
Object Tracking on Android and Desktop
from:
[^]
i download the source code and i rebuilt the application but it is not working on the mobile , always i get " has stopped"
|
|
|
|
|
Sorry, but that tells us nothing of any use. We cannot guess what is happening on your system.
|
|
|
|
|
tell me how i can make this project work ?
iam using android studio.
|
|
|
|
|
No idea, try asking the author of the article.
|
|
|
|
|
Member 12259984 wrote: tell me how i can make this project work ? By removing the error(s).
"How do I do that?" you ask.
"Use the debugger to step through the code until you find the offending statement(s)," we all respond.
Then you ask, "So will that help me to narrow the problem down to just a handful of lines, or maybe a specific function?"
"Yes!" we reply in unison.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
thats the problem i got no errors in building the app ,
but still not working on mobile
|
|
|
|
|
Member 12259984 wrote: but still not working on mobile So use the debugger to step through the code.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I would like to Insert a text and Images in edit text as Note app in android Mobiles.Can any one suggest me to do that.
thanks in advance...
|
|
|
|
|
Tirumaleswara Reddy.K wrote: ...Note app in android... Which Note app?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Notes app in android or iOS phones which includes Text and Images in same Notes
|
|
|
|
|
You would need to add your items to the not dynamically, by having some sort of canvas type container as the note. Then, when the user starts typing text you create an edit box which adds the text to the canvas. When the user indicates they want to add an image (by menu action perhaps) you add that to the canvas in a picture control.
|
|
|
|
|
My app crashes always when displaying listview with youtube thumbnail. I've created this app with AsyncTask,in doInBackground i'm fetching youtube video id and title which is in json... Then in onPostExecute i'm inflating my youtube view layout with customadapter and adding thumbnail for each list items in listview. But my app crashes always when doing this process... I used this listview with youtube thumbnail without getting title and video id from json(I did normal string array of title and video id,so there is no problem with my custom adapter.it works fine)I heard that if an app delay to get views for 5 secs,it'll automatically crashes... Is it true ? and Please help me what to do for this issue.. I'm new to Android...
|
|
|
|
|
An application crashes when the code you wrote is wrong...However we can not say what wrong with it if we can't see it...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
MainActivity
protected void onPostExecute(Integer result){
if(result == 1){
Toast.makeText(getApplicationContext(),"Result = 1",Toast.LENGTH_SHORT).show();
if(progressDialog.isShowing()){
progressDialog.dismiss();
}
Toast.makeText(getApplicationContext(),"onPostExecute",Toast.LENGTH_SHORT).show();
Toast.makeText(getApplicationContext(),VideoID[0],Toast.LENGTH_SHORT).show();
CustomAdapter customAdapter = new CustomAdapter(context,Title,VideoID);
listView.setAdapter(arrayAdapter);
CustomAdapter
public CustomAdapter(Activity context,String[] Title,String[] VideoID){
super(context,R.layout.activity_main,VideoID);
this.context = context;
this.Title = Title;
this.VideoID = VideoID;
}
@Override
public View getView(final int position,View convertView,ViewGroup parent){
View ListItemView = convertView;
if (convertView == null){
LayoutInflater inflater = context.getLayoutInflater();
ListItemView = inflater.inflate(R.layout.youtubethumbnail_loader,null,false);
}
youTubeThumbnailView = (YouTubeThumbnailView)ListItemView.findViewById(R.id.youtubethumbnailviewnew);
youTubeThumbnailView.initialize(Config.API_KEY, new YouTubeThumbnailView.OnInitializedListener() {
@Override
public void onInitializationSuccess(YouTubeThumbnailView thumbnailView, YouTubeThumbnailLoader thumbnailLoader) {
Toast.makeText(context,"Success initialization",Toast.LENGTH_SHORT).show();
youTubeThumbnailLoader = thumbnailLoader;
thumbnailLoader.setOnThumbnailLoadedListener(new YouTubeThumbnailLoader.OnThumbnailLoadedListener() {
@Override
public void onThumbnailLoaded(YouTubeThumbnailView youTubeThumbnailView, String s) {
Toast.makeText(context, "Welcome to ShortFilmy", Toast.LENGTH_SHORT).show();
}
@Override
public void onThumbnailError(YouTubeThumbnailView youTubeThumbnailView, YouTubeThumbnailLoader.ErrorReason errorReason) {
Toast.makeText(context, "Failed to load thumbnail", Toast.LENGTH_SHORT).show();
}
});
thumbnailLoader.setVideo(VideoID[position]);
}
@Override
public void onInitializationFailure(YouTubeThumbnailView youTubeThumbnailView, YouTubeInitializationResult youTubeInitializationResult) {
Toast.makeText(context,"Failed to initialize",Toast.LENGTH_SHORT).show();
}
});
textView = (TextView)ListItemView.findViewById(R.id.textViewnew);
textView.setText(Title[position]);
return ListItemView;
}
}
Here,my customadapter is working fine when i used without asynctask but if I call customadapter class in asynctask(onPostExecute method) it'll force close my app. I googled a lot about this but i didn't know what to do for this.. But I heard that every app wants to view the widgets or anything within 5 secs in UI thread otherwise our app got crashed.So you guys wanna help me out...
|
|
|
|
|
Member 12263477 wrote: I googled a lot about this Did you try some debugging of your application? You need to identify where the crash occurred and what were the circumstances at the time. Only then will you be able to start figuring out why it crashed.
|
|
|
|
|
Help guys, I don't know how to inflate youtubethumbnailview layout and to add it in list items. I'm fetching video id and title from json... If anyone have source code for this ??? Please help me. Thanks in advanced
|
|
|
|
|
Typically, you inflate entire XML file for that view. I have never used this, but I think it would be used in a layout (RelativeLayout or LinearLayout), just like any other control.
From the following blog, the code would be something like this:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:orientation="vertical"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
<com.google.android.youtube.player.YouTubeThumbnailView
android:id="@+id/thumbnailview"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
Then, you can inflate it using any LayoutInflater object, get it using getLayoutInflater() .
Android Coding: Display YouTubeThumbnailView of YouTube Android Player API[^]
https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/YouTubeThumbnailView?hl=en
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
i'am trying to send string to webservice and get replay from.
i use android studio for programming on java for android
and visual-studio 2010 for programming the C# webservice.
i have this code on android
private static final String SOAP_ACTION = "http://tempuri.org/HELO";
private static final String OPERATION_NAME = "HELO";
private static final String WSDL_TARGET_NAMESPACE = "<a href="http:
private static final String SOAP_ADDRESS = "<a href="http:
SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE, OPERATION_NAME);
PropertyInfo info= new PropertyInfo();
info = new PropertyInfo();
info.setName("HELO");
info.setValue("New User");
info.setType(String.class);
request.addProperty(info);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS);
try {
httpTransport.call(SOAP_ACTION, envelope);
Object response = envelope.getResponse();
tvData1.setText(response.toString());
} catch (Exception exception) {
tvData1.setText(exception.toString());
}
and this my C# WebService
[WebService(Namespace = "<a href="http://tempuri.org/">http://tempuri.org/</a>")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public string HELO(string Name)
{
return "Hello : " + Name;
}
}
and i got only Helo: without the string that i send instead of Helo: New User
thans
|
|
|
|
|
I would suggest debugging to see if WCF is capturing the value being passed or not. It may be caused by the value not being passed to the function, or value being empty string or something.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Dears
I want to send data form one activity to another activity
i use intent to send data when i use on item click listener
this this my code for first activity
<blockquote class="quote"><div class="op">Quote:</div>lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent i = new Intent(getApplicationContext(),Details.class);
i.putExtra("id",position);
startActivity(i);
}
});</blockquote>
know the second activity
to get intnet is
ublic class Details extends AppCompatActivity {
DBAdapter myDbHelper = new DBAdapter(this);
SQLiteDatabase database;
int item;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_details);
TextView t1=(TextView)findViewById(R.id.t1);
ImageButton im=(ImageButton)findViewById(R.id.im);
Intent data=getIntent();
int des=data.getIntExtra("id", 1);
try {
String query = "SELECT description FROM sweet WHERE id = " + des + "";
database=myDbHelper.openDataBase();
database = myDbHelper.getReadableDatabase();
Cursor cursor = database.rawQuery(query, null);
cursor.getCount();
cursor.moveToFirst();
String description= cursor.getColumnName(2);
t1.setText(description);
}
know i want to use intent to use it in sql statment to search
in my table and get the details in the column description
and put the text of details in text view
can any one help me
|
|
|
|
|
|
|
What is the value of query ?
So what EXACTLY is the problem?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
modified 25-Jan-16 8:43am.
|
|
|
|
|
who to use the get intent to use the position of item to serche in database
|
|
|
|