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 6047189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:19:26+00:00 2026-05-23T07:19:26+00:00

Problem Description I am writing application for Android and use native code, And test

  • 0

Problem Description

I am writing application for Android and use native code, And test it on Android-Emulator. In order to see what happens in JNI code I create file in Android /data/LogTest/ folder and write my log information in it.

FILE * pFile;
pFile = fopen ("/data/LogTest/Log.txt"", "w");
// .... 
// Write some logs to file ...
// ....

When I run in the first time Android application everything goes Okay, I can see logs in Log.txt file. But when I close Android application and run it again nothing happening. Like application can’t write Logs to the file second time.

Self Ideas

I think that the main reason of this problem is that, when I create file at first time the creator application Name is for ex. 456 after when I try to write some more information to file application Name is for ex. 856 and so application 856 can’t write to file that have created application 456.

Question

  1. How I can launch application with same name, in order Android let me to write to file in second time.
  2. Or maybe the main reason o problem is not that Application every time get rundom names.
  • 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-05-23T07:19:27+00:00Added an answer on May 23, 2026 at 7:19 am

    I think you are not allowed to write in that folder. Read through the answers here. Either use the sdk card or your application directory to store files.

    File Operations in Android NDK

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

Sidebar

Related Questions

Expanding this question on how I learnt to pass from problem description to code
I have file writing permission denied problem in my web application, below is the
Description I'm trying to test application coded in Delphi (VCL components by DevEx) with
Uhm I'm not sure if anyone has encountered this problem a brief description is
Ok, so here's the full description of the problem I'm having: I am trying
Given the following xml fragment: <Problems> <Problem> <File>file1</File> <Description>desc1</Description> </Problem> <Problem> <File>file1</File> <Description>desc2</Description> </Problem>
I am writing an application which subdivides an N-dimensional axis aligned bounding box into
I am writing some kind of search engine for my web application and i
I am considering writing a simple database application for my wife, but I'm hung
I am having problem uplaoding file, here are my codes: Any help? Thanks! test.html

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.